:root {
  color-scheme: dark;
  --canvas: #0b1220;
  --sidebar: #101a2c;
  --surface: #131f33;
  --surface-raised: #1a2941;
  --surface-hover: #223450;
  --line: rgba(190, 205, 228, .12);
  --line-strong: rgba(190, 205, 228, .2);
  --text: #f2f4f8;
  --muted: #aab5c8;
  --faint: #78869c;
  --brand: #5b4bc4;
  --brand-light: #a99cff;
  --red: #e30613;
  --green: #5fc397;
  --amber: #dfad66;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
body.drawer-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@font-face { font-family: "Manrope"; src: url("/brand/manrope-latin.woff2") format("woff2"); font-style: normal; font-weight: 200 800; font-display: swap; }

.login-shell { min-height: 100vh; padding: 36px; display: grid; grid-template-columns: minmax(380px, 520px) 1fr; gap: 8vw; align-items: center; background: radial-gradient(ellipse at 88% 82%, rgba(91,75,196,.17), transparent 38%), var(--canvas); }
.login-card { width: 100%; max-width: 430px; justify-self: center; }
.login-brand { width: 132px; height: 55px; margin-bottom: 56px; display: flex; align-items: center; }
.login-brand img, .brand-lockup img { width: 100%; height: auto; display: block; }
.eyebrow { margin: 0 0 11px; color: #b3a9ff; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.login-card h1 { margin: 0; font-size: clamp(25px, 3vw, 33px); line-height: 1.2; letter-spacing: -.045em; font-weight: 720; }
.login-description { max-width: 370px; margin: 13px 0 30px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.field-label { display: block; margin: 20px 0 8px; color: #dce2ed; font-size: 12px; font-weight: 700; }
.text-input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; background: #101a2b; color: var(--text); font-size: 13px; transition: border-color .16s, box-shadow .16s; }
.text-input:focus, .search-box:focus-within, .select-wrap select:focus { border-color: var(--brand-light); box-shadow: 0 0 0 3px rgba(169,156,255,.14); }
.text-input[readonly] { color: #cad3e1; }
.button { min-height: 39px; border: 1px solid transparent; border-radius: 7px; padding: 0 13px; display: inline-flex; gap: 9px; align-items: center; justify-content: center; font-size: 12px; font-weight: 750; cursor: pointer; transition: background .16s, border-color .16s, transform .16s; }
.button:focus-visible, .icon-button:focus-visible, .nav-item:focus-visible, .metric-card:focus-visible, .enquiry-open:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; }
.button:active { transform: translateY(1px); }
.button-primary { color: #fff; border-color: #7165d1; background: #5649b7; box-shadow: 0 8px 22px rgba(47,35,132,.25); }
.button-primary:hover { background: #6758ca; }
.login-button { width: 100%; min-height: 48px; margin-top: 25px; justify-content: space-between; padding-inline: 16px; }
.login-button span { font-size: 17px; }
.login-footnote { margin: 23px 0; color: var(--faint); font-size: 12px; }
.login-footnote a { color: #c4bbff; text-decoration: none; }
.login-footnote a:hover { text-decoration: underline; }
.form-message { padding: 10px 12px; border: 1px solid rgba(242,116,122,.25); border-radius: 7px; background: rgba(190,45,54,.12); color: #ffc5c6; font-size: 12px; line-height: 1.5; }
.login-aside { align-self: stretch; max-width: 790px; width: 100%; justify-self: center; border-left: 1px solid var(--line); padding: 10vh 0 8vh 6vw; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(ellipse at 80% 70%, rgba(49,39,131,.26), transparent 50%); }
.aside-rule { display: flex; align-items: center; gap: 12px; color: #c9d0dd; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.aside-rule span { width: 28px; height: 2px; background: var(--red); }
.login-aside > p { margin: 0; font-size: clamp(45px, 6.4vw, 94px); line-height: .98; font-weight: 740; letter-spacing: -.065em; }
.login-aside > p em { color: #b9b0ff; font-style: normal; }
.aside-caption { color: var(--muted); font-size: 12px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: 248px; min-height: 100dvh; padding: 24px 15px 15px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--sidebar); }
.brand-lockup { display: block; width: 135px; margin: 5px 0 7px 8px; text-decoration: none; }
.brand-caption { display: block; margin-top: 9px; color: #8f9bb0; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.nav-section-label { margin: 39px 12px 10px; color: #7f8ca1; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.primary-nav { display: grid; gap: 5px; }
.nav-item { min-height: 43px; padding: 0 11px; border-radius: 7px; display: flex; align-items: center; gap: 11px; color: #bdc7d6; text-decoration: none; font-size: 12px; font-weight: 650; transition: background .16s, color .16s; }
a.nav-item:hover { background: rgba(255,255,255,.055); color: #fff; }
.nav-item.active { background: rgba(112,97,215,.2); color: #eeeaff; }
.nav-mark { width: 15px; height: 15px; border: 1.4px solid currentColor; border-radius: 4px; position: relative; opacity: .85; }
.nav-mark::after { position: absolute; content: ""; left: 3px; right: 3px; bottom: 3px; height: 4px; border-top: 1px solid currentColor; }
.nav-item.active .nav-mark { color: #b8afff; }
.nav-count { min-width: 20px; min-height: 20px; margin-left: auto; padding: 0 5px; border-radius: 11px; display: grid; place-items: center; background: rgba(244,245,255,.12); color: #d3cbff; font-size: 10px; }
.nav-disabled { color: #7e8b9e; cursor: default; }
.nav-mark-muted { opacity: .5; }
.nav-soon { margin-left: auto; color: #718198; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.sidebar-spacer { flex: 1; }
.sidebar-footer { min-width: 0; padding: 13px 5px 3px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.account-avatar { flex: 0 0 31px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(192,182,255,.28); border-radius: 50%; background: #322c70; color: #e1dcff; font-size: 12px; font-weight: 800; }
.account-meta { min-width: 0; display: grid; gap: 3px; }
.account-meta strong { font-size: 11px; }
.account-meta small { overflow: hidden; color: #94a0b3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 7px; display: grid; place-items: center; background: transparent; color: #b7c2d1; font-size: 17px; cursor: pointer; }
.icon-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.055); color: white; }
.logout-button { margin-left: auto; }
.main-area { grid-column: 2; min-width: 0; }
.topbar { height: 62px; padding: 0 clamp(20px, 3vw, 46px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(13,21,35,.76); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #8e9bb0; font-size: 10px; font-weight: 750; letter-spacing: .11em; }
.breadcrumb strong { color: #e4e7ee; font-weight: 600; letter-spacing: 0; }
.crumb-separator { color: #4d5b70; }
.site-link { color: #c5bcff; font-size: 11px; font-weight: 700; text-decoration: none; }
.site-link:hover { color: white; }
.mobile-menu-button { display: none; }
.page-content { width: 100%; max-width: 1480px; margin: 0 auto; padding: 43px clamp(20px, 3vw, 46px) 22px; }
.page-heading { margin-bottom: 27px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.page-heading h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.2; letter-spacing: -.05em; font-weight: 730; }
.page-subtitle { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.live-tag { height: 24px; padding: 0 9px; border: 1px solid rgba(97,196,151,.22); border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; background: rgba(80,169,127,.09); color: #93d6b4; font-size: 9px; letter-spacing: .02em; font-weight: 750; }
.live-tag i { width: 6px; height: 6px; border-radius: 50%; background: #62ca9b; box-shadow: 0 0 0 3px rgba(98,202,155,.1); }
.button-quiet { border-color: var(--line-strong); background: rgba(255,255,255,.025); color: #d7ddea; }
.button-quiet:hover { border-color: rgba(190,205,228,.34); background: rgba(255,255,255,.07); }
.refresh-symbol { font-size: 17px; line-height: 1; }
.metrics-grid { margin-bottom: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { min-width: 0; min-height: 119px; padding: 16px 17px; border: 1px solid var(--line); border-radius: 9px; display: grid; justify-items: start; align-content: start; gap: 5px; background: var(--surface); text-align: left; cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.metric-card:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--surface-raised); }
.metric-card.metric-active { border-color: rgba(169,156,255,.45); box-shadow: inset 0 0 0 1px rgba(169,156,255,.08); }
.metric-label { color: #b7c2d2; font-size: 10px; font-weight: 700; }
.metric-card strong { margin-top: 4px; color: #f5f6fa; font-size: 27px; line-height: 1; letter-spacing: -.045em; font-weight: 720; }
.metric-foot { margin-top: 2px; color: #8d9ab0; font-size: 9px; display: inline-flex; align-items: center; gap: 6px; }
.metric-dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-new { background: #e78e88; }.dot-progress { background: #e0ae66; }.dot-complete { background: #5fc397; }
.inbox-panel { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.inbox-toolbar { min-height: 83px; padding: 16px 19px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.toolbar-title { display: flex; align-items: center; gap: 11px; }
.inbox-indicator { width: 9px; height: 9px; border-radius: 3px; background: #a394ff; box-shadow: 0 0 0 4px rgba(163,148,255,.12); }
.toolbar-title h2 { margin: 0; font-size: 12px; font-weight: 750; }
.toolbar-title p { margin: 4px 0 0; color: #8f9cb0; font-size: 10px; }
.toolbar-controls { display: flex; align-items: center; gap: 8px; }
.search-box { width: min(330px, 33vw); height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 7px; display: flex; align-items: center; gap: 8px; background: #10192a; color: #9ba8bc; transition: border-color .16s, box-shadow .16s; }
.search-box > span { font-size: 19px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 10px; }
.search-box input::placeholder { color: #77859a; }
.search-box kbd { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: #8290a4; font-size: 9px; }
.select-wrap select { height: 38px; padding: 0 28px 0 11px; border: 1px solid var(--line-strong); border-radius: 7px; outline: 0; appearance: auto; background: #10192a; color: #cbd4e1; font-size: 10px; cursor: pointer; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: rgba(9,16,28,.32); }
th { height: 42px; padding: 0 16px; color: #8794a9; font-size: 8px; font-weight: 800; letter-spacing: .13em; white-space: nowrap; }
td { height: 69px; padding: 10px 16px; border-top: 1px solid rgba(190,205,228,.085); color: #cbd4e1; font-size: 10px; }
.enquiry-row { transition: background .14s; cursor: pointer; }
.enquiry-row:hover, .enquiry-row:focus { background: rgba(255,255,255,.035); outline: 0; }
.enquiry-primary { max-width: 330px; display: grid; gap: 4px; }
.enquiry-primary strong { overflow: hidden; color: #eff1f5; font-size: 11px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.enquiry-primary span { overflow: hidden; color: #99a6ba; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.service-name { color: #c3cbd9; }
.received-time { color: #99a6b8; white-space: nowrap; }
.status-badge { padding: 5px 8px; border: 1px solid transparent; border-radius: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.status-badge::before { width: 5px; height: 5px; border-radius: 50%; content: ""; background: currentColor; }
.status-new { border-color: rgba(234,137,132,.2); background: rgba(190,61,67,.13); color: #f2a4a0; }
.status-in_progress { border-color: rgba(224,174,102,.2); background: rgba(194,132,43,.12); color: #e9be7c; }
.status-completed { border-color: rgba(95,195,151,.2); background: rgba(64,150,112,.12); color: #83d3ab; }
.status-archived { border-color: var(--line); background: rgba(255,255,255,.045); color: #aab5c4; }
.open-arrow { text-align: right; color: #76859a; font-size: 15px; }
.empty-state { min-height: 245px; padding: 42px 18px; display: grid; align-content: center; justify-items: center; text-align: center; }
.empty-icon { width: 38px; height: 38px; margin-bottom: 12px; border: 1px solid var(--line-strong); border-radius: 10px; display: grid; place-items: center; color: #afa3ff; font-size: 19px; }
.empty-state h3 { margin: 0; font-size: 13px; font-weight: 700; }
.empty-state p { max-width: 350px; margin: 7px 0 0; color: #97a4b7; font-size: 10px; line-height: 1.6; }
.list-status { margin: 14px 18px 0; padding: 10px 12px; border: 1px solid rgba(242,116,122,.25); border-radius: 7px; background: rgba(190,45,54,.12); color: #ffc5c6; font-size: 11px; }
.pagination { min-height: 57px; padding: 8px 17px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #92a0b5; font-size: 9px; }
.pagination > div { display: flex; gap: 7px; }
.page-button { min-height: 31px; padding: 0 10px; font-size: 9px; }
.page-button:disabled { opacity: .43; cursor: not-allowed; }
.page-footer { margin-top: 18px; display: flex; justify-content: space-between; gap: 14px; color: #768399; font-size: 9px; }
.page-footer > span:last-child { display: inline-flex; align-items: center; gap: 7px; letter-spacing: .1em; font-weight: 800; }
.page-footer i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

.drawer-backdrop { position: fixed; z-index: 19; inset: 0; background: rgba(3,7,14,.64); backdrop-filter: blur(2px); }
.detail-drawer { position: fixed; z-index: 20; inset: 0 0 0 auto; width: min(470px, 100vw); height: 100dvh; border-left: 1px solid var(--line-strong); display: flex; flex-direction: column; background: #111c2e; box-shadow: -25px 0 70px rgba(0,0,0,.28); animation: drawer-in .19s ease-out; }
@keyframes drawer-in { from { transform: translateX(16px); opacity: .7; } to { transform: translateX(0); opacity: 1; } }
.drawer-header { min-height: 78px; padding: 14px 21px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-header .eyebrow { margin-bottom: 4px; font-size: 8px; }
.received-label { color: #9aa7ba; font-size: 10px; }
.drawer-header .icon-button { border-color: var(--line); font-size: 23px; }
.drawer-body { min-height: 0; padding: 25px 23px 32px; overflow-y: auto; }
.detail-title-row { margin-bottom: 27px; display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.detail-title-row h2 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.detail-field { min-width: 0; margin-bottom: 21px; display: grid; gap: 8px; }
.detail-label { color: #8391a6; font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.detail-field strong, .detail-field a { overflow-wrap: anywhere; color: #e3e7ef; font-size: 12px; font-weight: 650; }
.detail-field a { color: #beb5ff; text-decoration: none; }
.detail-field a:hover { text-decoration: underline; }
.detail-contact-grid { margin-top: 7px; padding: 17px 0 2px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.message-section { margin: 5px 0 21px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); }
.message-copy { margin: 10px 0 0; color: #d2d9e5; font-size: 11px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.notification-section { margin-bottom: 27px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); }
.notification-section p { margin: 9px 0 0; color: #d4dce8; font-size: 11px; font-weight: 650; }
.notification-section small { display: block; margin-top: 5px; color: #8b99ad; font-size: 9px; line-height: 1.5; }
.status-select { margin-top: 0; }
.detail-message-status { margin-top: 10px; }

@media (min-width: 1600px) { .page-content { padding-top: 54px; } .metrics-grid { gap: 15px; } }
@media (max-width: 1050px) { .app-shell { grid-template-columns: 218px minmax(0, 1fr); }.sidebar { width: 218px; }.metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.inbox-toolbar { align-items: flex-start; flex-direction: column; }.toolbar-controls { width: 100%; }.search-box { width: 100%; flex: 1; } }
@media (max-width: 700px) {
  .login-shell { min-height: 100dvh; padding: 27px 22px; display: flex; justify-content: center; background: radial-gradient(ellipse at 50% 0%, rgba(91,75,196,.18), transparent 42%), var(--canvas); }
  .login-card { max-width: 420px; }.login-brand { margin-bottom: 45px; }.login-aside { display: none; }
  .app-shell { display: block; }.sidebar { width: 260px; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 15px 0 38px rgba(0,0,0,.3); }.sidebar.mobile-open { transform: translateX(0); }
  .main-area { min-height: 100dvh; }.topbar { height: 56px; padding: 0 16px; gap: 12px; }.mobile-menu-button { display: grid; margin-left: -8px; }.breadcrumb { margin-right: auto; font-size: 9px; }.site-link { font-size: 9px; white-space: nowrap; }
  .page-content { padding: 30px 14px 18px; }.page-heading { align-items: start; }.page-heading h1 { font-size: 25px; }.page-subtitle { max-width: 310px; font-size: 10px; line-height: 1.6; }.page-heading > .button { min-height: 34px; padding: 0 9px; font-size: 10px; }
  .metrics-grid { gap: 8px; margin-bottom: 15px; }.metric-card { min-height: 99px; padding: 12px; }.metric-card strong { font-size: 23px; }.metric-label { font-size: 9px; }.metric-foot { font-size: 8px; }
  .inbox-toolbar { min-height: 0; padding: 15px 13px; gap: 15px; }.toolbar-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; }.search-box { width: 100%; }.select-wrap select { max-width: 120px; font-size: 9px; }
  .table-wrap { overflow: visible; } table, tbody { display: block; width: 100%; } thead { display: none; } tbody { padding: 0 10px; }
  .enquiry-row { margin: 9px 0; padding: 13px 12px 12px; border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 8px; background: rgba(6,13,24,.24); }
  .enquiry-row td { height: auto; padding: 0; border: 0; } .enquiry-row td:first-child { grid-column: 1; }.enquiry-row td:nth-child(2) { grid-column: 1; color: #abb7c9; font-size: 9px; }.enquiry-row td:nth-child(3) { grid-column: 1; font-size: 9px; }.enquiry-row td:nth-child(4) { grid-row: 1 / span 2; grid-column: 2; justify-self: end; }.enquiry-row td:nth-child(5) { display: none; }
  .enquiry-primary { max-width: 65vw; gap: 5px; }.enquiry-primary strong { font-size: 11px; }.enquiry-primary span { font-size: 9px; }.open-arrow { display: none; }
  .pagination { align-items: flex-start; flex-direction: column; padding: 12px; }.pagination > div { width: 100%; justify-content: space-between; }.page-footer { flex-direction: column; font-size: 8px; }
  .detail-drawer { inset: auto 0 0; width: 100%; height: min(88dvh, 760px); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 15px 15px 0 0; animation: drawer-up .2s ease-out; }.drawer-body { padding: 22px 18px 32px; }
  @keyframes drawer-up { from { transform: translateY(20px); opacity: .7; } to { transform: translateY(0); opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
