:root {
  --primary: #b54600;
  --secondary: #e5660c;
  --accent: #f5a12b;
  --header-bg: #24130c;
  --header-color: #fff8ee;
  --breadcrumbs-bg: #6d2907;
  --link-fg: #9a3c00;
  --link-hover-color: #dd5a00;
  --body-bg: #f6efe5;
  --body-fg: #2a190f;
  --hairline-color: #e5d3bc;
  --border-color: #e2cfb7;
  --selected-bg: #fff1de;
  --selected-row: #fff7eb;
  --button-bg: #d65300;
  --button-hover-bg: #a83f00;
  --default-button-bg: #3d741f;
}

body { background: #f6efe5; }
#header { min-height: 72px; padding: 0 24px; background: linear-gradient(115deg, #24130c, #5d250b); box-shadow: 0 10px 35px rgba(36,19,12,.16); }
#branding { display: flex; align-items: center; }
.chm-admin-brand { display: flex; align-items: center; gap: 18px; }
.chm-admin-brand img { width: 225px; max-height: 50px; object-fit: contain; padding: 5px 9px; border-radius: 10px; background: #fff9ef; }
.chm-admin-brand strong { display: block; color: #fff; font-size: 16px; }
.chm-admin-brand span { display: block; margin-top: 3px; color: rgba(255,255,255,.58); font-size: 11px; letter-spacing: .04em; }
.chm-admin-links { display: flex; align-items: center; height: 100%; }
.chm-admin-links a { color: #ffce91; font-weight: 700; font-size: 12px; }
#user-tools { color: rgba(255,255,255,.7); }
#user-tools a { color: #ffd29e; }
div.breadcrumbs { padding: 12px 24px; background: #7c2e06; }

#content { padding: 30px; }
#content-main { max-width: 1240px; }
.module, .inline-group { overflow: hidden; border: 1px solid #e2cfb7; border-radius: 14px; background: #fffaf4; box-shadow: 0 8px 28px rgba(82,48,25,.05); }
.module h2, .module caption, .inline-group h2 { background: #f3e2ce; color: #57270d; font-weight: 800; }
.object-tools a:link, .object-tools a:visited { background: #d65300; border-radius: 999px; }
.object-tools a:hover { background: #a83f00; }
.button, input[type=submit], input[type=button], .submit-row input, a.button { border-radius: 9px; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], textarea, select { border-radius: 9px; border-color: #d8c6ae; background: #fffdf9; padding: 9px 10px; }
input:focus, textarea:focus, select:focus { border-color: #d65300; box-shadow: 0 0 0 2px rgba(214,83,0,.12); outline: 0; }
.submit-row { background: #fff8ef; border: 1px solid #e2cfb7; border-radius: 14px; }

.chm-dashboard-hero { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; margin-bottom: 24px; padding: 32px; border-radius: 20px; color: #fff; background: linear-gradient(115deg, #4d1e08, #a13a00 62%, #e16208); box-shadow: 0 18px 50px rgba(74,31,10,.18); }
.chm-dashboard-hero > div:first-child > span { color: #ffc77d; text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 800; }
.chm-dashboard-hero h1 { margin: 7px 0 8px; color: #fff; font-family: Georgia, serif; font-size: 38px; }
.chm-dashboard-hero p { margin: 0; max-width: 650px; color: rgba(255,255,255,.68); line-height: 1.6; }
.chm-staff-card { min-width: 210px; padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; background: rgba(36,13,3,.22); }
.chm-staff-card small, .chm-staff-card span { display: block; color: rgba(255,255,255,.58); }
.chm-staff-card strong { display: block; margin: 5px 0; font-family: ui-monospace, monospace; color: #ffe2b8; font-size: 20px; letter-spacing: .06em; }

.chm-quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.chm-quick-actions a { display: block; min-height: 135px; padding: 19px; border: 1px solid #e2cfb7; border-radius: 16px; background: #fffaf4; color: #2a190f; transition: transform .18s ease, box-shadow .18s ease; }
.chm-quick-actions a:hover { transform: translateY(-2px); box-shadow: 0 14px 35px rgba(69,40,21,.09); }
.chm-quick-actions span { display: block; color: #d65300; font-family: ui-monospace, monospace; font-size: 10px; }
.chm-quick-actions strong { display: block; margin: 14px 0 5px; font-size: 15px; }
.chm-quick-actions small { color: #806958; line-height: 1.4; }
.chm-app-list .module { margin-bottom: 16px; }

.login #container { width: min(440px, calc(100% - 28px)); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(56,28,12,.18); border: 1px solid #e0ccb3; }
.login #header { height: auto; padding: 22px; }
.login .chm-admin-brand { flex-direction: column; align-items: flex-start; gap: 10px; }
.login .chm-admin-brand img { width: 250px; }
.login #content { padding: 28px; background: #fffaf4; }
.login .form-row { padding: 7px 0; }
.login .submit-row { padding: 12px 0 0; border: 0; background: transparent; }

@media (max-width: 900px) {
  #header { padding: 12px 16px; min-height: 92px; }
  .chm-admin-brand img { width: 190px; }
  .chm-admin-brand > div { display: none; }
  #content { padding: 18px; }
  .chm-dashboard-hero { grid-template-columns: 1fr; }
  .chm-quick-actions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .chm-quick-actions { grid-template-columns: 1fr; }
  .chm-dashboard-hero { padding: 22px; }
}

.chm-inbox-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:18px; }
.chm-inbox-card { display:block; padding:20px; border:1px solid #e2cfb7; border-radius:16px; background:#fffaf4; color:#2a190f; box-shadow:0 8px 28px rgba(82,48,25,.05); }
.chm-inbox-card > span { display:block; color:#9a3c00; font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.chm-inbox-card > strong { display:block; margin:6px 0 2px; font-family:Georgia,serif; font-size:34px; color:#4b210b; }
.chm-inbox-card > small { color:#806958; }
.chm-inbox-card:hover { border-color:#d65300; }
.chm-inbox-info { background:#3b1b0d; color:#fff; }
.chm-inbox-info > span, .chm-inbox-info > strong { color:#ffd09a; }
.chm-inbox-info > small { color:rgba(255,255,255,.58); }
.chm-recent-enquiries { margin-bottom:28px; padding:22px; border:1px solid #e2cfb7; border-radius:16px; background:#fffaf4; }
.chm-section-title { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:14px; }
.chm-section-title span { color:#d65300; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.12em; }
.chm-section-title h2 { margin:3px 0 0; font-family:Georgia,serif; color:#3d1c0b; }
.chm-enquiry-list { display:grid; gap:7px; }
.chm-enquiry-row { display:flex; justify-content:space-between; gap:20px; padding:13px 14px; border:1px solid #eadbc9; border-radius:11px; background:#fff; color:#2a190f; }
.chm-enquiry-row.is-new { border-left:4px solid #d65300; background:#fff7ec; }
.chm-enquiry-row strong, .chm-enquiry-row span { display:block; }
.chm-enquiry-row span, .chm-enquiry-row time { margin-top:3px; color:#806958; font-size:11px; }
@media(max-width:900px){.chm-inbox-summary{grid-template-columns:1fr}.chm-enquiry-row{flex-direction:column;gap:3px}}
