:root {
  --bg: #eff4ff;
  --bg-deep: #dfe8fb;
  --surface: rgba(255, 255, 255, .7);
  --surface-strong: rgba(255, 255, 255, .86);
  --surface-soft: rgba(255, 255, 255, .45);
  --line: rgba(121, 143, 190, .2);
  --text: #1c2842;
  --muted: #71809e;
  --primary: #5868e8;
  --primary-dark: #4856cb;
  --accent: #9b8cf5;
  --success: #1f9c76;
  --warning: #d08c39;
  --danger: #d86177;
  --shadow: 0 24px 80px rgba(73, 93, 143, .14);
  --shadow-soft: 0 12px 30px rgba(73, 93, 143, .1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font: "DM Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --bg: #101524;
  --bg-deep: #19243d;
  --surface: rgba(31, 42, 69, .7);
  --surface-strong: rgba(31, 42, 69, .9);
  --surface-soft: rgba(31, 42, 69, .52);
  --line: rgba(175, 191, 239, .14);
  --text: #edf2ff;
  --muted: #a6b3cf;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(circle at 6% 6%, rgba(148, 166, 255, .32), transparent 30%), linear-gradient(140deg, var(--bg), var(--bg-deep));
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.12), transparent 40%, rgba(255,255,255,.08));
  mix-blend-mode: overlay;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.ambient { position: fixed; border-radius: 50%; filter: blur(2px); opacity: .38; pointer-events: none; z-index: -1; }
.ambient-one { width: 380px; height: 380px; top: -160px; right: 8%; background: #c5bdff; }
.ambient-two { width: 310px; height: 310px; bottom: -120px; left: 18%; background: #b8ddff; }
.glass-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); }
.login-shell { min-height: 100vh; display: grid; place-items: center; grid-template-columns: minmax(320px, 480px) minmax(280px, 420px); gap: 72px; padding: 40px 8vw; }
.login-card { width: 100%; padding: 44px; border-radius: var(--radius-xl); }
.brand { display: flex; gap: 12px; align-items: center; }
.brand-center { justify-content: center; margin-bottom: 36px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: white; font-weight: 700; font-size: 18px; border-radius: 13px; background: linear-gradient(140deg, var(--primary), var(--accent)); box-shadow: 0 10px 24px rgba(88, 104, 232, .3); }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.brand-subtitle { color: var(--muted); font-size: 11px; margin-top: 2px; }
.login-copy { text-align: center; margin-bottom: 28px; }
.eyebrow { margin: 0 0 9px; font-size: 10px; letter-spacing: .18em; color: var(--primary); font-weight: 700; }
.login-copy h1, .topbar h1 { margin: 0; letter-spacing: -.04em; }
.login-copy h1 { font-size: 30px; line-height: 1.2; }
.login-copy p:last-child { color: var(--muted); font-size: 13px; margin: 12px 0 0; line-height: 1.6; }
.stack-form { display: grid; gap: 16px; }
.stack-form label, .field-label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 13px 14px; outline: none; color: var(--text); background: var(--surface-soft); transition: border .2s, box-shadow .2s, background .2s; }
input:focus, select:focus, textarea:focus { border-color: rgba(88, 104, 232, .7); background: var(--surface-strong); box-shadow: 0 0 0 4px rgba(88, 104, 232, .1); }
textarea { min-height: 92px; resize: vertical; }
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.icon-button { position: absolute; right: 5px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; }
.primary-button, .secondary-button, .ghost-button, .danger-button { border: 0; border-radius: var(--radius-md); padding: 12px 16px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.primary-button { color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 12px 24px rgba(88, 104, 232, .24); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 15px 28px rgba(88, 104, 232, .3); }
.secondary-button { color: var(--primary); background: rgba(88, 104, 232, .1); }
.secondary-button:hover { background: rgba(88, 104, 232, .17); }
.ghost-button { color: var(--muted); background: transparent; text-align: left; }
.ghost-button:hover { color: var(--text); background: var(--surface-soft); }
.danger-button { color: #fff; background: linear-gradient(135deg, #d86177, #ec9b9b); }
.full-width { width: 100%; justify-content: center; display: flex; gap: 10px; }
.demo-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 11px; text-align: center; line-height: 1.5; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #a6b0c6; }
.status-dot.online { background: #42c898; box-shadow: 0 0 0 4px rgba(66, 200, 152, .12); }
.login-aside { padding: 18px; }
.pill { display: inline-flex; color: var(--primary); background: rgba(88, 104, 232, .1); padding: 8px 12px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.login-aside h2 { font-size: 42px; line-height: 1.12; letter-spacing: -.05em; margin: 22px 0 40px; }
.mini-stat-row { display: flex; gap: 32px; }
.mini-stat-row div { display: grid; gap: 6px; }
.mini-stat-row strong { font-size: 22px; }
.mini-stat-row span { color: var(--muted); font-size: 11px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; gap: 26px; padding: 24px; }
.sidebar { display: flex; flex-direction: column; border-radius: var(--radius-xl); padding: 24px 16px; min-height: calc(100vh - 48px); }
.sidebar .brand { padding: 0 10px; }
.profile-chip { display: flex; align-items: center; gap: 10px; margin: 30px 8px 18px; padding: 12px; border-radius: var(--radius-md); background: var(--surface-soft); border: 1px solid var(--line); }
.profile-chip .avatar { flex: 0 0 32px; width: 32px; height: 32px; font-size: 12px; }
.profile-name { display: grid; gap: 2px; min-width: 0; }
.profile-name strong { font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-name span { font-size: 10px; color: var(--muted); }
.main-nav { display: grid; gap: 5px; }
.nav-item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px; color: var(--muted); border: 0; border-radius: 13px; background: transparent; text-align: left; font-size: 12px; font-weight: 600; }
.nav-item .nav-icon { width: 25px; text-align: center; font-size: 16px; }
.nav-item:hover, .nav-item.active { color: var(--primary); background: rgba(88, 104, 232, .1); }
.sidebar-footer { margin-top: auto; display: grid; gap: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.danger-text:hover { color: var(--danger); }
.content-shell { min-width: 0; padding: 12px 24px 30px 2px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 30px; }
.topbar h1 { font-size: 30px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.status-indicator { color: var(--muted); font-size: 11px; display: flex; gap: 8px; align-items: center; }
.round-button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: var(--surface); }
.notification-badge { position: absolute; top: -3px; right: -3px; min-width: 16px; padding: 2px 4px; border-radius: 99px; color: #fff; background: var(--danger); font-size: 9px; }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 14px; color: #fff; background: linear-gradient(140deg, #7583ee, #a58df2); font-weight: 700; font-size: 13px; }
.page-content { animation: page-in .3s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.hero-row { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 24px; }
.hero-row h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.hero-row p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric-card { padding: 19px; border-radius: var(--radius-lg); }
.metric-card .metric-label { color: var(--muted); font-size: 11px; }
.metric-card strong { display: block; margin-top: 12px; font-size: 27px; letter-spacing: -.04em; }
.metric-card .metric-foot { display: flex; gap: 5px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 10px; }
.metric-foot .up { color: var(--success); }
.two-column { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr); gap: 18px; align-items: start; }
.panel { border-radius: var(--radius-lg); padding: 20px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-header h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.panel-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.panel-header-actions { display: flex; align-items: center; gap: 8px; }
.link-button { border: 0; color: var(--primary); font-size: 11px; background: transparent; }
.application-list { display: grid; gap: 9px; }
.application-row { display: grid; grid-template-columns: 1.4fr .9fr .8fr auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); }
.application-row:hover { border-color: rgba(88, 104, 232, .35); }
.application-main { display: grid; gap: 5px; min-width: 0; }
.application-main strong { font-size: 12px; }
.application-main span { color: var(--muted); font-size: 10px; }
.application-submitter { display: block; margin-top: 4px; color: var(--primary); font-size: 10px; font-weight: 600; }
.application-value { font-weight: 700; font-size: 12px; }
.application-meta { color: var(--muted); font-size: 10px; }
.status-tag { display: inline-flex; width: fit-content; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.status-tag.pending, .status-tag.reviewing { color: #9b6a28; background: rgba(208, 140, 57, .12); }
.status-tag.approved { color: #1a8b68; background: rgba(31, 156, 118, .12); }
.status-tag.rejected { color: #bf4e64; background: rgba(216, 97, 119, .12); }
.status-tag.returned { color: #a05a9d; background: rgba(180, 110, 176, .13); }
.status-tag.draft { color: var(--muted); background: rgba(113, 128, 158, .12); }
.empty-state { padding: 34px 20px; text-align: center; color: var(--muted); font-size: 12px; }
.chat-panel { position: sticky; top: 20px; }
.chat-preview { display: grid; gap: 12px; min-height: 222px; max-height: 280px; overflow: auto; padding: 4px; }
.message { display: flex; gap: 8px; align-items: flex-end; }
.message.me { justify-content: flex-end; }
.message-bubble { max-width: 80%; padding: 10px 12px; border-radius: 15px 15px 15px 5px; background: var(--surface-soft); font-size: 11px; line-height: 1.55; }
.message.me .message-bubble { color: #fff; border-radius: 15px 15px 5px 15px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.message-time { color: var(--muted); font-size: 9px; white-space: nowrap; }
.chat-compose { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.chat-compose input { flex: 1; padding: 10px 12px; font-size: 11px; }
.chat-compose button { width: 36px; height: 36px; padding: 0; }
.form-panel { max-width: 830px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 13px; top: 12px; color: var(--muted); font-weight: 700; }
.input-prefix input { padding-left: 30px; }
.file-drop { position: relative; display: grid; gap: 7px; place-items: center; padding: 24px; text-align: center; border: 1px dashed rgba(88, 104, 232, .4); border-radius: var(--radius-md); background: rgba(88, 104, 232, .06); }
.file-drop.dragging { border-color: var(--primary); background: rgba(88, 104, 232, .13); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop strong { font-size: 13px; }
.file-drop span { color: var(--muted); font-size: 10px; }
.file-list { display: grid; gap: 7px; margin-top: 10px; }
.file-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 10px; background: var(--surface-soft); font-size: 11px; }
.file-item span { color: var(--muted); }
.remove-file { color: var(--danger); border: 0; background: transparent; font-size: 16px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.tabs { display: flex; gap: 7px; padding: 5px; border-radius: 13px; background: var(--surface-soft); }
.tab { border: 0; border-radius: 10px; padding: 8px 12px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.tab.active { color: var(--primary); background: var(--surface-strong); box-shadow: var(--shadow-soft); }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.filter-row input, .filter-row select { width: auto; min-width: 140px; padding: 10px 12px; font-size: 11px; }
.application-date-filter { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.application-date-filter input { min-width: 132px; }
.date-separator { color: var(--muted); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 690px; }
th { color: var(--muted); font-size: 10px; font-weight: 600; text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
td { font-size: 11px; padding: 13px 8px; border-bottom: 1px solid var(--line); }
tbody tr:hover { background: var(--surface-soft); }
.modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(18, 27, 51, .24); z-index: 10; }
.modal { width: min(680px, 100%); max-height: 86vh; overflow: auto; border-radius: var(--radius-xl); padding: 24px; background: var(--surface-strong); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(30px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.modal-header h3 { margin: 0; font-size: 19px; }
.close-button { width: 30px; height: 30px; border: 0; border-radius: 50%; color: var(--muted); background: var(--surface-soft); }
.timeline { display: grid; gap: 0; margin-top: 20px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 10px; min-height: 56px; }
.timeline-item::before { content: ""; position: absolute; top: 17px; bottom: -3px; left: 7px; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { position: relative; z-index: 1; width: 15px; height: 15px; border: 4px solid var(--surface-strong); border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1px rgba(88, 104, 232, .2); }
.timeline-content strong { display: block; font-size: 11px; }
.timeline-content span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.toast-region { position: fixed; right: 24px; bottom: 24px; display: grid; gap: 8px; z-index: 30; }
.toast { min-width: 220px; padding: 13px 16px; border-radius: 14px; color: var(--text); background: var(--surface-strong); border: 1px solid var(--line); box-shadow: var(--shadow-soft); font-size: 12px; animation: toast-in .25s ease both; }
.toast.success { border-color: rgba(31, 156, 118, .35); }
.toast.error { border-color: rgba(216, 97, 119, .4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1020px) { .login-shell { grid-template-columns: minmax(320px, 480px); gap: 10px; } .login-aside { display: none; } .app-shell { grid-template-columns: 210px 1fr; } .two-column { grid-template-columns: 1fr; } .chat-panel { position: static; } .filter-row { flex-wrap: wrap; justify-content: flex-start; } .filter-row > input, .filter-row > select { flex: 1 1 180px; width: auto; } .application-date-filter { flex: 1 1 300px; } }
@media (max-width: 760px) { .app-shell { display: block; padding: 12px; } .sidebar { min-height: auto; padding: 14px; margin-bottom: 14px; } .sidebar .brand { display: none; } .profile-chip { margin: 0 0 12px; } .main-nav { display: flex; overflow: auto; } .nav-item { flex: 0 0 auto; width: auto; padding: 9px 11px; } .nav-item span:last-child { display: none; } .sidebar-footer { display: flex; border-top: 0; padding-top: 10px; } .sidebar-footer .ghost-button { flex: 1; } .content-shell { padding: 0 4px 18px; } .topbar { padding-bottom: 20px; } .topbar h1 { font-size: 24px; } .status-indicator { display: none; } .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .application-row { grid-template-columns: 1fr auto; } .application-row > :nth-child(2), .application-row > :nth-child(3) { display: none; } .form-grid { grid-template-columns: 1fr; } .form-grid .full { grid-column: auto; } .hero-row { align-items: flex-start; flex-direction: column; } .filter-row { align-items: stretch; flex-direction: column; } .filter-row input, .filter-row select { width: 100%; } }
@media (max-width: 430px) { .login-card { padding: 30px 22px; } .login-copy h1 { font-size: 26px; } .mini-stat-row { gap: 18px; } .metrics-grid { gap: 9px; } .metric-card { padding: 14px; } }

/* Components used by the live workspace */
.muted { color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.section-heading h2, .section-heading h3 { margin: 0; letter-spacing: -.04em; }
.section-heading h2 { font-size: 25px; }
.section-heading h3 { font-size: 16px; }
.section-heading p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.text-button { border: 0; padding: 7px 0; color: var(--primary); background: transparent; font-size: 12px; font-weight: 700; }
.metrics-grid .metric-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.metric-card > span { color: var(--muted); font-size: 11px; }
.metric-card > small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.metric-warning { box-shadow: inset 0 3px 0 rgba(208, 140, 57, .7), var(--shadow-soft) !important; }
.metric-info { box-shadow: inset 0 3px 0 rgba(88, 104, 232, .65), var(--shadow-soft) !important; }
.metric-success { box-shadow: inset 0 3px 0 rgba(31, 156, 118, .7), var(--shadow-soft) !important; }
.metric-returned { box-shadow: inset 0 3px 0 rgba(180, 110, 176, .7), var(--shadow-soft) !important; }
.table-card { overflow: hidden; padding: 8px; border-radius: var(--radius-lg); }
.application-row { width: 100%; border: 1px solid transparent; color: var(--text); text-align: left; cursor: pointer; }
.application-row + .application-row { margin-top: 7px; }
.application-amount { font-size: 12px; font-weight: 700; }
.application-date { color: var(--muted); font-size: 10px; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: 6px 9px; border-radius: 99px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status-badge.pending, .status-badge.reviewing { color: #9b6a28; background: rgba(208, 140, 57, .13); }
.status-badge.approved { color: #1a8b68; background: rgba(31, 156, 118, .13); }
.status-badge.rejected { color: #bf4e64; background: rgba(216, 97, 119, .13); }
.status-badge.returned { color: #a05a9d; background: rgba(180, 110, 176, .13); }
.form-card { max-width: 820px; padding: 24px; border-radius: var(--radius-xl); }
.amount-input { position: relative; }
.amount-input span { position: absolute; left: 14px; top: 12px; color: var(--primary); font-weight: 700; }
.amount-input input { padding-left: 31px; }
.upload-box { display: grid; gap: 12px; margin-top: 20px; padding: 18px; border: 1px dashed rgba(88, 104, 232, .42); border-radius: var(--radius-lg); background: rgba(88, 104, 232, .06); }
.upload-box input[type=file] { display: none; }
.upload-copy { display: flex; align-items: center; gap: 12px; }
.upload-copy strong, .upload-copy span { display: block; }
.upload-copy strong { font-size: 13px; }
.upload-copy span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.upload-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: var(--primary); background: rgba(88, 104, 232, .12); font-size: 20px; }
.file-list, .attachment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.file-pill { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface-soft); font-size: 11px; text-decoration: none; }
button.file-pill { cursor: pointer; }
.file-pill span { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; padding: 3px 5px; border-radius: 6px; color: var(--primary); background: rgba(88, 104, 232, .12); font-size: 9px; font-weight: 700; }
.file-pill small { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.detail-grid > div { padding: 12px; border-radius: 13px; background: var(--surface-soft); }
.detail-grid span, .detail-block > span { display: block; color: var(--muted); font-size: 10px; }
.detail-grid strong { display: block; margin-top: 7px; font-size: 12px; }
.detail-submitter { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.detail-block { padding-top: 17px; border-top: 1px solid var(--line); }
.detail-block + .detail-block { margin-top: 16px; }
.detail-block p { margin: 8px 0 0; font-size: 12px; line-height: 1.65; }
.review-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.chat-layout { display: grid; grid-template-columns: minmax(220px, .36fr) minmax(0, 1fr); gap: 16px; min-height: 540px; }
.conversation-list, .chat-panel { min-height: 540px; padding: 10px; border-radius: var(--radius-xl); }
.conversation-list { overflow: auto; }
.conversation-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 9px; align-items: center; width: 100%; padding: 11px; border: 0; border-radius: 14px; color: var(--text); background: transparent; text-align: left; }
.conversation-item:hover, .conversation-item.active { background: rgba(88, 104, 232, .1); }
.conversation-item .avatar { width: 32px; height: 32px; border-radius: 11px; font-size: 11px; }
.conversation-item div:nth-child(2) { min-width: 0; }
.conversation-item strong, .conversation-item span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.conversation-item strong { font-size: 11px; }
.conversation-item span, .conversation-item small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.conversation-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.conversation-unread { min-width: 20px; padding: 3px 6px; border-radius: 20px; background: var(--danger); color: #fff; text-align: center; font-size: 10px; font-style: normal; line-height: 1.2; }
.chat-panel { display: flex; flex-direction: column; }
.chat-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 8px 16px; border-bottom: 1px solid var(--line); }
.chat-header strong, .chat-header span { display: block; }
.chat-header strong { font-size: 13px; }
.chat-header span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.message-list { display: grid; gap: 12px; flex: 1; align-content: start; overflow: auto; padding: 18px 8px; }
.message.mine { justify-content: flex-end; }
.message.mine .message-bubble { color: #fff; border-radius: 15px 15px 5px 15px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.message > span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.message-form { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.message-form input { flex: 1; }
.message-form .primary-button { padding: 10px 15px; }
.user-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.user-summary { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-summary > div:last-child { min-width: 0; }
.user-summary strong, .user-summary span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-summary strong { font-size: 12px; }
.user-summary span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.small-button { padding: 8px 10px; font-size: 10px; }
.loading-state { padding: 30px 20px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-icon { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 10px; border-radius: 13px; color: var(--primary); background: rgba(88, 104, 232, .1); font-size: 20px; }
@media (max-width: 760px) { .section-heading { align-items: flex-start; flex-direction: column; } .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chat-layout { grid-template-columns: 1fr; } .conversation-list, .chat-panel { min-height: 360px; } .user-row { grid-template-columns: 1fr auto; } .user-row .status-badge { display: none; } .application-date-filter { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); } .application-date-filter input { width: 100%; min-width: 0; } }
