/* v1781435079 */
/* v1781432264 */
/* v1781367560 */
/* v1781366463 */
/* v1781366140 */
/* v1781365950 */
/* v1781365514 */
/* v1781365409 */
/* v1781365173 */
/* v1781364659 */
/* v1781364429 */
/* v1781362933 */
/* v1781360700 */
/* v1781359258 */
/* v1781358638 */
/* v1781357091 */
/* v1781356949 */
/* v1781356662 */
/* v1781356134 */
/* v1781354946 */
/* v1781346145 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --mh-yellow: #0EA5E9;
  --mh-dark: #0F172A;
  --mh-mid: #1E293B;
  --mh-border: #334155;
  --mh-text: #E2E8F0;
  --mh-muted: #94A3B8;
  --mh-card: #1E293B;
  --mh-input: #0F172A;
  --mh-green: #2ECC71;
  --mh-red: #E74C3C;
  --mh-orange: #E67E22;
  --mh-blue: #3498DB;
  --mh-purple: #9B59B6;
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--mh-dark);
  color: var(--mh-text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
}

/* AUTH */
#auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--mh-dark);
}

.auth-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  width: 64px;
  height: 64px;
  background: var(--mh-yellow);
  color: var(--mh-dark);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin: 0 auto 1rem;
}

.auth-brand h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.auth-brand p {
  color: var(--mh-muted);
  font-size: 14px;
  margin-top: 6px;
}

.auth-card {
  background: var(--mh-card);
  border: 1px solid var(--mh-border);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--mh-dark);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  border: none;
  background: none;
  border-radius: 6px;
  color: var(--mh-muted);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.auth-tab.active {
  background: var(--mh-yellow);
  color: var(--mh-dark);
}

.auth-msg {
  margin-top: 1rem;
  font-size: 13px;
  text-align: center;
  min-height: 20px;
}

.auth-msg.error { color: var(--mh-red); }
.auth-msg.success { color: var(--mh-green); }

/* HEADER */
header {
  background: var(--mh-mid);
  border-bottom: 2px solid var(--mh-yellow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  background: var(--mh-yellow);
  color: var(--mh-dark);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.brand-sub {
  font-size: 11px;
  color: var(--mh-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-chip {
  font-size: 13px;
  color: var(--mh-muted);
}

/* MAIN NAV */
#main-nav {
  background: var(--mh-mid);
  border-bottom: 1px solid var(--mh-border);
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#main-nav::-webkit-scrollbar { display: none; }

.nav-section-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  height: 50px;
  border: none;
  background: none;
  color: var(--mh-muted);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
  position: relative;
}

.nav-section-btn:hover { color: var(--mh-text); }
.nav-section-btn.active { color: var(--mh-yellow); border-bottom-color: var(--mh-yellow); }

.section-badge {
  background: #E74C3C;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  margin-left: 2px;
}

.section-badge.show { display: flex; }

/* SUB NAV */
#sub-nav {
  background: #1E1E1E;
  border-bottom: 1px solid var(--mh-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#sub-nav::-webkit-scrollbar { display: none; }

.sub-nav-group {
  display: flex;
  gap: 2px;
  padding: 0 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.sub-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 40px;
  border: none;
  background: none;
  color: #666;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
  position: relative;
}

.sub-nav-btn:hover { color: var(--mh-text); }
.sub-nav-btn.active { color: #fff; border-bottom-color: var(--mh-yellow); }

.sub-badge {
  background: #E74C3C;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.sub-badge.show { display: inline-flex; }

/* MAIN */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.tab-content { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.page-header p {
  color: var(--mh-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* FORMS */
.form-card {
  background: var(--mh-card);
  border: 1px solid var(--mh-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group.full { grid-column: 1 / -1; }

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mh-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.req { color: var(--mh-red); }

input, select, textarea {
  background: var(--mh-input);
  border: 1px solid var(--mh-border);
  border-radius: 8px;
  color: var(--mh-text);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  padding: 9px 12px;
  width: 100%;
  transition: border-color 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--mh-yellow);
}

input::placeholder, textarea::placeholder { color: #555; }

select option { background: var(--mh-mid); }

textarea { resize: vertical; min-height: 72px; }

.hint-box {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #93C5FD;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mh-border);
}

/* BUTTONS */
.btn-main {
  background: var(--mh-yellow);
  color: var(--mh-dark);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-main:hover { opacity: 0.85; }
.btn-main.full { width: 100%; padding: 12px; }

.btn-outline {
  background: none;
  border: 1px solid var(--mh-border);
  border-radius: 8px;
  color: var(--mh-text);
  padding: 8px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.btn-outline:hover { border-color: var(--mh-yellow); color: var(--mh-yellow); }

.btn-ghost {
  background: none;
  border: none;
  color: var(--mh-muted);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
}

.btn-ghost:hover { color: var(--mh-text); background: var(--mh-border); }

.btn-sm {
  background: none;
  border: 1px solid var(--mh-border);
  border-radius: 6px;
  color: var(--mh-muted);
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sm:hover { border-color: var(--mh-yellow); color: var(--mh-yellow); }
.btn-sm.danger:hover { border-color: var(--mh-red); color: var(--mh-red); }

.save-msg { font-size: 13px; color: var(--mh-green); }
.err-msg { font-size: 13px; color: var(--mh-red); }

/* STATS */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--mh-card);
  border: 1px solid var(--mh-border);
  border-radius: 10px;
  padding: 1rem;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mh-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--mh-yellow);
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
  width: auto;
  min-width: 140px;
}

/* JOB CARDS */
.job-card {
  background: var(--mh-card);
  border: 1px solid var(--mh-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}

.job-card:hover { border-color: #444; }

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.job-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.job-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-mech { background: rgba(52,152,219,0.15); color: #74B9FF; border: 1px solid rgba(52,152,219,0.3); }
.badge-elec { background: rgba(241,196,15,0.15); color: #F1C40F; border: 1px solid rgba(241,196,15,0.3); }
.badge-weld { background: rgba(231,76,60,0.15); color: #FF7675; border: 1px solid rgba(231,76,60,0.3); }
.badge-other { background: rgba(155,89,182,0.15); color: #D980FA; border: 1px solid rgba(155,89,182,0.3); }
.badge-done { background: rgba(46,204,113,0.15); color: #2ECC71; border: 1px solid rgba(46,204,113,0.3); }
.badge-open { background: rgba(231,76,60,0.15); color: #E74C3C; border: 1px solid rgba(231,76,60,0.3); }
.badge-prog { background: rgba(230,126,34,0.15); color: #E67E22; border: 1px solid rgba(230,126,34,0.3); }
.badge-due { background: rgba(230,126,34,0.15); color: #E67E22; border: 1px solid rgba(230,126,34,0.3); }
.badge-over { background: rgba(231,76,60,0.15); color: #E74C3C; border: 1px solid rgba(231,76,60,0.3); }
.badge-sched { background: rgba(52,152,219,0.15); color: #74B9FF; border: 1px solid rgba(52,152,219,0.3); }
.badge-lowstock { background: rgba(231,76,60,0.15); color: #E74C3C; border: 1px solid rgba(231,76,60,0.3); }
.badge-instock { background: rgba(46,204,113,0.15); color: #2ECC71; border: 1px solid rgba(46,204,113,0.3); }

.job-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--mh-muted);
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.job-detail {
  font-size: 13px;
  color: #aaa;
  padding-top: 8px;
  border-top: 1px solid var(--mh-border);
  margin-top: 8px;
  line-height: 1.6;
}

.job-detail strong { color: var(--mh-text); }

.card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--mh-border);
}

/* BANNERS */
.banner {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.banner-warn { background: rgba(230,126,34,0.12); border: 1px solid rgba(230,126,34,0.35); color: #E67E22; }
.banner-danger { background: rgba(231,76,60,0.12); border: 1px solid rgba(231,76,60,0.35); color: #E74C3C; }

/* REPORT */
.report-section {
  background: var(--mh-card);
  border: 1px solid var(--mh-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.report-section h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mh-yellow);
  margin-bottom: 10px;
}

.report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--mh-border);
  font-size: 14px;
}

.report-row:last-child { border-bottom: none; }
.report-row .val { font-weight: 600; color: #fff; }

/* MISC */
.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--mh-muted);
  font-size: 14px;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--mh-muted);
  font-size: 14px;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--mh-dark); }
::-webkit-scrollbar-thumb { background: var(--mh-border); border-radius: 3px; }

/* MOBILE */
@media (max-width: 640px) {
  main { padding: 1rem; }
  .header-inner { padding: 0 1rem; }
  .brand-sub { display: none; }
  .user-chip { display: none; }
  nav { justify-content: flex-start; }
  .nav-btn { padding: 0 12px; font-size: 13px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* TECHNICIAN CHECKBOXES */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.tech-check {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mh-input);
  border: 1px solid var(--mh-border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.tech-check:hover { border-color: #555; }
.tech-check.selected { border-color: var(--mh-yellow); background: rgba(245,200,0,0.08); }

.tech-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: var(--mh-yellow);
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.tech-name { font-size: 13px; font-weight: 500; color: var(--mh-text); line-height: 1.3; }
.tech-role { font-size: 11px; color: var(--mh-muted); }

/* SUGGESTIONS DROPDOWN */
.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--mh-mid);
  border: 1px solid var(--mh-border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 50;
  max-height: 200px;
  overflow-y: auto;
}

.suggestion-item {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--mh-text);
  cursor: pointer;
  border-bottom: 1px solid var(--mh-border);
}

.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--mh-border); color: var(--mh-yellow); }

/* DAILY CHECK CARDS */
.check-card {
  border-radius: 12px;
  border: 1px solid var(--mh-border);
  padding: 1.25rem;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.check-done {
  background: rgba(46,204,113,0.05);
  border-color: rgba(46,204,113,0.3);
}

.check-overdue {
  background: rgba(231,76,60,0.05);
  border-color: rgba(231,76,60,0.35);
}

.check-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.check-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.check-info { flex: 1; min-width: 140px; }

.check-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.check-desc {
  font-size: 13px;
  color: var(--mh-muted);
  margin-top: 2px;
}

.check-status { flex-shrink: 0; }

.check-completed-by {
  font-size: 13px;
  color: var(--mh-muted);
  padding-top: 10px;
  border-top: 1px solid rgba(46,204,113,0.2);
}

.check-completed-by strong { color: #2ECC71; }

.check-action {
  padding-top: 12px;
  border-top: 1px solid rgba(231,76,60,0.2);
}

/* COMPLIANCE TABS */
.comp-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.comp-tab {
  padding: 8px 20px;
  border: 1px solid var(--mh-border);
  border-radius: 99px;
  background: none;
  color: var(--mh-muted);
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.comp-tab:hover { border-color: var(--mh-yellow); color: var(--mh-yellow); }
.comp-tab.active { background: var(--mh-yellow); color: var(--mh-dark); border-color: var(--mh-yellow); }

/* NAV BADGES */
.nav-btn {
  position: relative;
}

.nav-badge {
  position: absolute;
  top: 6px;
  right: 4px;
  background: #E74C3C;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Barlow', sans-serif;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
}

/* SUMMARY BANNER */
#summary-banner {
  position: sticky;
  top: 108px;
  z-index: 50;
  margin-bottom: 1.25rem;
}

.summary-banner {
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
}

.summary-all-clear {
  background: rgba(46,204,113,0.1);
  border: 1px solid rgba(46,204,113,0.3);
  color: #2ECC71;
  font-weight: 500;
}

.summary-has-items {
  background: rgba(231,76,60,0.08);
  border: 1px solid rgba(231,76,60,0.35);
}

.summary-title {
  font-weight: 600;
  color: #E74C3C;
  margin-bottom: 6px;
  font-size: 13px;
}

.summary-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.summary-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 12px;
  color: #ccc;
  white-space: nowrap;
}

/* AI ASSISTANT BUBBLE */
#ai-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--mh-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(245,200,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  color: var(--mh-dark);
}

#ai-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(245,200,0,0.5);
}

#ai-badge {
  position: fixed;
  bottom: 66px;
  right: 20px;
  background: #E74C3C;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  pointer-events: none;
}

/* AI PANEL */
#ai-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #1E1E1E;
  border: 1px solid #333;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  overflow: hidden;
}

#ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #333;
  background: #222;
  flex-shrink: 0;
}

#ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#ai-messages::-webkit-scrollbar { width: 4px; }
#ai-messages::-webkit-scrollbar-thumb { background: #444; border-radius: 2px; }

.ai-msg { display: flex; flex-direction: column; max-width: 90%; }
.ai-msg-assistant { align-self: flex-start; }
.ai-msg-user { align-self: flex-end; }

.ai-msg-content {
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.ai-msg-assistant .ai-msg-content {
  background: #2A2A2A;
  border: 1px solid #333;
  color: #E8E8E8;
  border-bottom-left-radius: 4px;
}

.ai-msg-user .ai-msg-content {
  background: var(--mh-yellow);
  color: #1A1A1A;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.ai-typing {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  background: #2A2A2A;
  border: 1px solid #333;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}

.ai-typing span {
  width: 6px;
  height: 6px;
  background: #888;
  border-radius: 50%;
  animation: typing 1.2s infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

#ai-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #333;
  background: #222;
  flex-shrink: 0;
  align-items: flex-end;
}

#ai-input {
  flex: 1;
  background: #2A2A2A;
  border: 1px solid #333;
  border-radius: 10px;
  color: #E8E8E8;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  padding: 8px 12px;
  resize: none;
  max-height: 100px;
  overflow-y: auto;
  line-height: 1.5;
}

#ai-input:focus { outline: none; border-color: var(--mh-yellow); }

#ai-send {
  width: 36px;
  height: 36px;
  background: var(--mh-yellow);
  border: none;
  border-radius: 8px;
  color: #1A1A1A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

#ai-send:hover { opacity: 0.85; }
#ai-send:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 640px) {
  #ai-panel {
    bottom: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    height: 70vh;
    border-radius: 16px 16px 0 0;
  }
  #ai-bubble { bottom: 16px; right: 16px; }
}

/* JOB COMMENTS */
.comment-section { display: flex; flex-direction: column; gap: 8px; }

.comment-list { display: flex; flex-direction: column; gap: 6px; }

.comment-item {
  background: var(--mh-input);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

.comment-meta strong { color: #fff; font-size: 12px; }

.comment-tag {
  background: rgba(245,200,0,0.15);
  color: var(--mh-yellow);
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 99px;
  border: 1px solid rgba(245,200,0,0.3);
}

.comment-text { color: #ccc; line-height: 1.5; }

.comment-form {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.comment-form input {
  min-width: 140px;
  font-size: 12px;
  padding: 6px 10px;
}

.comment-form select {
  font-size: 12px;
  padding: 6px 8px;
}

/* DASHBOARD */
#dashboard-content .stats-row {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

/* ANNOUNCEMENTS */
.ann-card {
  background: var(--mh-card);
  border: 1px solid var(--mh-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 10px;
}

.ann-urgent {
  background: rgba(231,76,60,0.08);
  border-color: rgba(231,76,60,0.4);
}

.ann-important {
  background: rgba(230,126,34,0.08);
  border-color: rgba(230,126,34,0.4);
}

.ann-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.ann-priority-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 3px;
}

.ann-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.ann-message {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 8px;
}

.ann-meta {
  font-size: 12px;
  color: var(--mh-muted);
}
