:root {
  color-scheme: light;
  --navy-950: #071b2b;
  --navy-900: #0a2437;
  --navy-800: #12334a;
  --blue-700: #166993;
  --blue-600: #1883b7;
  --blue-100: #e5f5fb;
  --ink: #132332;
  --muted: #6c7b88;
  --line: #dfe8ed;
  --canvas: #f3f7f9;
  --card: #ffffff;
  --green: #22a06b;
  --amber: #d89121;
  --shadow: 0 14px 38px rgba(16, 44, 62, 0.08);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; color: white; background: radial-gradient(circle at 75% 15%, rgba(28, 134, 178, .28), transparent 32%), linear-gradient(145deg, #061925, #0a2d43); }
.auth-brand { position: absolute; top: 30px; left: 34px; display: flex; align-items: center; gap: 11px; }.auth-brand strong, .auth-brand small { display: block; }.auth-brand strong { letter-spacing: .14em; }.auth-brand small { margin-top: 3px; color: #85aabd; font-size: 9px; letter-spacing: .2em; }
.auth-card { width: min(430px, 100%); padding: 30px; border: 1px solid rgba(184, 220, 235, .22); border-radius: 20px; color: var(--ink); background: rgba(255,255,255,.97); box-shadow: 0 28px 90px rgba(0,0,0,.28); }.auth-copy { text-align: center; }.auth-copy h1 { margin: 8px 0 7px; font-family: Georgia, serif; font-size: 27px; }.auth-copy > p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.auth-form { display: grid; gap: 13px; margin-top: 23px; }.auth-submit { height: 43px; margin-top: 4px; border-radius: 10px; font-size: 11px; font-weight: 800; }.password-help { margin: -3px 0 0; color: #7b8b94; font-size: 9px; line-height: 1.5; }.auth-error { min-height: 16px; margin: 10px 0 0; color: #a94242; font-size: 10px; text-align: center; }.auth-security { display: flex; gap: 9px; margin-top: 17px; padding: 11px; border: 1px solid #d7e9df; border-radius: 10px; color: #577164; background: #f1faf5; font-size: 9px; line-height: 1.45; }.auth-security > span { color: var(--green); font-weight: 900; }.auth-security p { margin: 0; }.auth-security strong { display: block; color: #35614d; }

button, textarea { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 18px 20px;
  color: #d7e7ef;
  background: linear-gradient(165deg, var(--navy-950), #082338 60%, #0b2f47);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 34px; }
.brand-mark, .agent-avatar, .mini-avatar {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #20a3d5, #11638c);
  box-shadow: 0 8px 20px rgba(20, 147, 196, 0.28);
}
.brand-mark { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.28); border-radius: 13px; transform: rotate(8deg); }
.brand-mark span { transform: rotate(-8deg); font-size: 21px; font-weight: 800; }
.brand strong { display: block; color: white; font-size: 16px; letter-spacing: .14em; }
.brand small { display: block; margin-top: 3px; color: #81a5b8; font-size: 9px; letter-spacing: .2em; }

.nav-list { display: grid; gap: 6px; }
.nav-item {
  width: 100%; height: 48px; display: flex; align-items: center; gap: 13px;
  border: 0; border-radius: 11px; padding: 0 14px; color: #9fb8c7; background: transparent; text-align: left;
}
.nav-item:hover, .nav-item.active { color: white; background: rgba(45, 151, 195, .17); }
.nav-item.active { box-shadow: inset 3px 0 #23a5d7; }
.nav-icon { width: 20px; color: #89b4c8; font-size: 19px; text-align: center; }
.nav-badge { margin-left: auto; min-width: 21px; padding: 2px 6px; border-radius: 99px; color: #082338; background: #78d3ef; font-size: 11px; font-weight: 800; text-align: center; }

.sidebar-note { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid rgba(136, 189, 212, .12); border-radius: 12px; background: rgba(1, 17, 28, .2); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 12px; color: #d6e9f1; }
.sidebar-note small { margin-top: 3px; color: #7998a9; font-size: 10px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #36c98b; box-shadow: 0 0 0 5px rgba(54,201,139,.1); }

.profile { margin-top: 13px; display: flex; align-items: center; gap: 10px; padding: 12px 9px; border: 0; color: #d9e8ee; background: transparent; text-align: left; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: white; background: #1a5573; font-size: 11px; font-weight: 800; }
.profile strong, .profile small { display: block; }
.profile strong { font-size: 12px; }.profile small { margin-top: 2px; color: #7596a8; font-size: 10px; }
.chevron { margin-left: auto; color: #7997a7; font-size: 23px; }

.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 88px; display: flex; align-items: center; gap: 16px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: blur(16px); }
.topbar h1 { margin: 3px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.eyebrow { margin: 0; color: var(--blue-700); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.security-pill { padding: 8px 12px; border: 1px solid #cce8d9; border-radius: 99px; color: #237453; background: #f0faf5; font-size: 11px; font-weight: 700; }
.security-pill span { margin-right: 5px; color: var(--green); }
.icon-button, .menu-button, .more-button { border: 0; background: transparent; }
.icon-button { position: relative; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 10px; color: #536774; background: white; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: #e6864a; }
.menu-button { display: none; font-size: 20px; }

.content-grid { min-height: calc(100vh - 88px); display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.app-view[hidden] { display: none !important; }
.chat-panel { min-width: 0; display: flex; flex-direction: column; background: #fbfdfe; }
.chat-heading { height: 72px; display: flex; align-items: center; gap: 12px; padding: 0 30px; border-bottom: 1px solid var(--line); background: white; }
.agent-avatar { width: 40px; height: 40px; border-radius: 13px; font-family: Georgia, serif; font-size: 19px; }
.chat-heading strong, .chat-heading span { display: block; }
.chat-heading strong { font-family: Georgia, serif; font-size: 15px; }
.chat-heading span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.chat-heading i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green); }
.more-button { margin-left: auto; color: #7a8c96; letter-spacing: 2px; }

.messages { flex: 1; overflow-y: auto; padding: 25px clamp(22px, 5vw, 62px) 15px; }
.date-divider { display: flex; align-items: center; gap: 14px; margin: 2px 0 25px; color: #91a0aa; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.date-divider::before, .date-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.message { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; }
.message-body { max-width: min(650px, 84%); }
.mini-avatar { flex: 0 0 auto; width: 29px; height: 29px; border-radius: 9px; font-size: 11px; font-weight: 800; }
.mini-avatar.user { background: #e4edf1; color: #49606e; box-shadow: none; }
.message-meta { display: flex; align-items: center; gap: 8px; margin: 0 2px 6px; color: #98a5ad; font-size: 9px; }
.message-meta strong { color: #435866; font-size: 10px; }
.bubble { padding: 13px 16px; border: 1px solid #e2eaee; border-radius: 3px 14px 14px 14px; background: white; box-shadow: 0 4px 14px rgba(23, 53, 70, .035); font-size: 12px; line-height: 1.6; }
.bubble p { margin: 0; }.bubble p + p { margin-top: 8px; }
.user-message { justify-content: flex-end; }
.user-message .message-meta { justify-content: flex-end; }
.user-message .bubble { border-color: #c9e8f4; border-radius: 14px 3px 14px 14px; background: #e8f7fc; }
.priorities { padding-bottom: 6px; }
.priorities ol { list-style: none; margin: 11px 0 0; padding: 0; }
.priorities li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid #edf1f3; }
.priorities li > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: var(--blue-700); background: var(--blue-100); font-size: 9px; font-weight: 800; }
.priorities strong, .priorities small { display: block; }.priorities strong { font-size: 11px; }.priorities small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.composer { padding: 12px clamp(22px, 5vw, 62px) 18px; background: linear-gradient(transparent, #fbfdfe 18%); }
.composer-box { border: 1px solid #cfdce3; border-radius: 14px; background: white; box-shadow: 0 8px 25px rgba(21, 52, 69, .07); overflow: hidden; }
.composer textarea { width: 100%; min-height: 53px; max-height: 140px; resize: none; border: 0; outline: 0; padding: 17px 18px 5px; color: var(--ink); background: transparent; font-size: 12px; }
.composer-actions { height: 39px; display: flex; align-items: center; gap: 10px; padding: 0 10px 8px; }
.composer-actions span { margin-left: auto; color: #a2aeb5; font-size: 9px; }
.attach-button, .send-button { border: 0; border-radius: 9px; }
.attach-button { width: 29px; height: 29px; color: #5a6f7b; background: #f0f4f6; font-size: 19px; }
.send-button { width: 31px; height: 31px; color: white; background: var(--blue-700); font-size: 16px; }
.composer > p { margin: 8px 0 0; color: #9aa7af; font-size: 9px; text-align: center; }

.context-panel { padding: 22px; border-left: 1px solid var(--line); background: #f1f6f8; }
.context-card { margin-bottom: 15px; border: 1px solid #dce6eb; border-radius: 15px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.card-title { display: flex; align-items: center; gap: 10px; padding: 15px 16px; border-bottom: 1px solid #e7eef1; }
.card-title strong, .card-title small { display: block; }.card-title strong { font-family: Georgia, serif; font-size: 13px; }.card-title small { margin-top: 3px; color: #8a99a3; font-size: 9px; }
.card-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: 13px; }
.card-icon.shield { color: #227a58; background: #e6f6ee; }.card-icon.clock { color: #a46814; background: #fff4de; }
.system-card dl { margin: 0; padding: 8px 16px 12px; }
.system-card dl div { display: flex; justify-content: space-between; padding: 8px 0; color: #677984; font-size: 10px; }
.system-card dd { margin: 0; color: #435762; font-weight: 700; }.system-card dd.good { color: #27805c; }

.approval-card { border-top: 3px solid #e2a33e; }
.approval-body { padding: 16px; }
.approval-label { color: #a66b17; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.approval-body h2 { margin: 8px 0 6px; font-family: Georgia, serif; font-size: 15px; line-height: 1.3; }
.approval-body p { margin: 0; color: #71818b; font-size: 10px; line-height: 1.55; }
.approval-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.approval-actions button { height: 34px; border-radius: 9px; font-size: 10px; font-weight: 800; }
.secondary-button { border: 1px solid #d5e0e5; color: #536874; background: white; }.primary-button { border: 1px solid var(--blue-700); color: white; background: var(--blue-700); }

.activity-card { padding: 15px 16px; }
.section-row { display: flex; justify-content: space-between; align-items: center; }.section-row strong { font-family: Georgia, serif; font-size: 12px; }.section-row button { border: 0; color: var(--blue-700); background: transparent; font-size: 9px; font-weight: 700; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.stat-row div { text-align: center; border-right: 1px solid #e8eef1; }.stat-row div:last-child { border: 0; }
.stat-row strong, .stat-row small { display: block; }.stat-row strong { font-family: Georgia, serif; font-size: 18px; }.stat-row small { margin-top: 4px; color: #8b99a2; font-size: 8px; }
.prototype-note { display: flex; gap: 9px; padding: 11px 12px; border: 1px dashed #c9dbe4; border-radius: 11px; color: #758892; background: rgba(255,255,255,.54); font-size: 9px; line-height: 1.45; }
.prototype-note > span { flex: 0 0 auto; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--blue-700); background: #dceff7; font-weight: 800; }
.prototype-note p { margin: 0; }.prototype-note strong { display: block; color: #516975; }

.clients-view { min-height: calc(100vh - 88px); padding: 30px; background: #f4f8fa; }
.clients-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.clients-toolbar h2 { margin: 5px 0 4px; font-family: Georgia, serif; font-size: 26px; font-weight: 600; }.clients-toolbar p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.new-client-button { min-width: 132px; height: 39px; border-radius: 10px; }
.client-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.client-stats article { display: flex; align-items: center; gap: 13px; min-height: 96px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.stat-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-weight: 800; }.stat-icon.blue { color: var(--blue-700); background: var(--blue-100); }.stat-icon.green { color: #247a57; background: #e4f6ed; }.stat-icon.amber { color: #a56a14; background: #fff2d8; }.stat-icon.red { color: #a64444; background: #fff0f0; }
.client-stats small, .client-stats strong, .client-stats em { display: block; }.client-stats small { color: #6e7f89; font-size: 9px; }.client-stats strong { margin: 2px 0; font-family: Georgia, serif; font-size: 23px; }.client-stats em { color: #91a0a8; font-size: 8px; font-style: normal; }
.maintenance-overview { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); overflow: hidden; }.maintenance-overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-bottom: 1px solid var(--line); }.maintenance-overview-heading h3 { margin: 4px 0 3px; font-family: Georgia, serif; font-size: 16px; }.maintenance-overview-heading span { display: block; color: #83929b; font-size: 9px; }.internal-reminder-chip { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #d7e6ec; border-radius: 99px; color: #58717f !important; background: #f7fafb; font-weight: 800; }.reminder-list { display: grid; max-height: 255px; overflow-y: auto; }.reminder-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid #edf2f4; }.reminder-item:last-child { border-bottom: 0; }.reminder-indicator { width: 8px; height: 8px; border-radius: 50%; background: #d89121; box-shadow: 0 0 0 4px #fff2d8; }.reminder-item.overdue .reminder-indicator { background: #bd5252; box-shadow: 0 0 0 4px #fdeaea; }.reminder-item.upcoming .reminder-indicator { background: #268eb8; box-shadow: 0 0 0 4px #e3f3f8; }.reminder-copy strong, .reminder-copy span { display: block; }.reminder-copy strong { color: #3e5663; font-size: 10px; }.reminder-copy span { margin-top: 3px; color: #85949d; font-size: 8px; }.reminder-date { color: #627681; font-size: 9px; font-weight: 800; text-align: right; }.reminder-date small { display: block; margin-top: 3px; color: #a64a4a; font-size: 8px; }.reminder-open { min-width: 72px; height: 30px; border: 1px solid #d6e2e7; border-radius: 8px; color: var(--blue-700); background: white; font-size: 8px; font-weight: 800; }.reminder-empty { margin: 0; padding: 28px 18px; color: #85959e; font-size: 9px; text-align: center; }
.warranty-overview { border-top: 3px solid #2b91b9; }.warranty-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }.warranty-summary > span { padding: 7px 9px; border: 1px solid #deeaef; border-radius: 9px; color: #687b86; background: #f8fbfc; white-space: nowrap; }.warranty-summary strong { color: #2f566b; font-size: 11px; }
.records-card { border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.records-controls { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid #d3dfe5; border-radius: 10px; color: #768994; background: #fbfdfe; }.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.records-controls select, .field select { border: 1px solid #d3dfe5; border-radius: 10px; color: #526671; background: white; }.records-controls select { min-width: 155px; padding: 0 10px; font-size: 10px; }
.records-table-wrap { overflow-x: auto; }.records-table { width: 100%; border-collapse: collapse; text-align: left; }.records-table th { padding: 11px 14px; color: #85949d; background: #f8fafb; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }.records-table td { padding: 14px; border-top: 1px solid #edf2f4; color: #627681; font-size: 9px; white-space: nowrap; }.records-table td:first-child { min-width: 190px; }.records-table strong, .records-table small, .client-name { display: block; }.records-table strong, .client-name { color: #344b58; font-size: 10px; font-weight: 700; }.records-table small { margin-top: 3px; color: #93a0a8; font-size: 8px; }
.record-status { display: inline-block; padding: 5px 8px; border-radius: 99px; font-weight: 800; }.record-status.active, .record-status.completed { color: #287a58; background: #e7f6ef; }.record-status.warning, .record-status.scheduled, .record-status.postponed { color: #9a6415; background: #fff2d9; }.record-status.upcoming { color: var(--blue-700); background: var(--blue-100); }.record-status.expired { color: #a64444; background: #fff0f0; }.record-status.inactive, .record-status.retired, .record-status.cancelled, .record-status.voided { color: #687983; background: #edf2f4; }.row-action { width: 28px; height: 28px; border: 1px solid #dce5e9; border-radius: 8px; color: #58717f; background: white; font-size: 17px; }
.demo-data-warning { margin: 0; padding: 10px 16px; border-top: 1px solid #edf2f4; color: #8b9aa3; background: #fbfcfd; font-size: 8px; }
.client-dialog { width: min(630px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 17px; color: var(--ink); background: white; box-shadow: 0 30px 90px rgba(7, 27, 43, .28); }.client-dialog::backdrop { background: rgba(5, 23, 36, .65); backdrop-filter: blur(3px); }.client-dialog header { display: flex; justify-content: space-between; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); }.client-dialog h2 { margin: 5px 0 3px; font-family: Georgia, serif; font-size: 22px; }.client-dialog header span { color: var(--muted); font-size: 9px; }.dialog-close { align-self: flex-start; width: 30px; height: 30px; border: 0; border-radius: 9px; color: #738691; background: #f1f5f7; font-size: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px 24px; }.field { display: grid; gap: 6px; }.field.full { grid-column: 1 / -1; }.field > span { color: #536976; font-size: 9px; font-weight: 800; }.field input, .field select, .field textarea { width: 100%; border: 1px solid #d3dfe5; border-radius: 9px; outline: none; padding: 10px 11px; color: var(--ink); background: #fbfdfe; font-size: 10px; }.field input:focus, .field select:focus, .field textarea:focus { border-color: #50a8cc; box-shadow: 0 0 0 3px rgba(37, 151, 195, .1); }.field textarea { resize: vertical; }
.form-notice { display: flex; gap: 9px; margin: 0 24px 18px; padding: 11px 12px; border: 1px solid #d7e9df; border-radius: 10px; color: #577164; background: #f1faf5; font-size: 9px; }.form-notice > span { color: var(--green); font-weight: 900; }.form-notice p { margin: 0; }.form-notice strong { display: block; color: #35614d; }.client-dialog footer { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 24px; border-top: 1px solid var(--line); background: #f9fbfc; }.client-dialog footer button { min-width: 110px; height: 36px; border-radius: 9px; font-size: 10px; font-weight: 800; }
.toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: 380px; padding: 13px 16px; border-radius: 11px; color: white; background: #15384d; box-shadow: 0 18px 45px rgba(7,27,43,.24); font-size: 10px; line-height: 1.5; opacity: 0; transform: translateY(15px); pointer-events: none; transition: .2s ease; }.toast.visible { opacity: 1; transform: translateY(0); }
.password-dialog footer .primary-button { min-width: 190px; }.dialog-error { min-height: 16px; margin: -6px 24px 8px; color: #a94242; font-size: 10px; text-align: center; }
.client-detail-dialog { width: min(760px, calc(100vw - 28px)); }.detail-tabs { display: flex; gap: 5px; padding: 11px 24px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }.detail-tab { flex: 0 0 auto; padding: 9px 13px 11px; border: 0; border-bottom: 2px solid transparent; color: #7a8b94; background: transparent; font-size: 10px; font-weight: 800; }.detail-tab.active { color: var(--blue-700); border-bottom-color: var(--blue-700); }.detail-section { max-height: min(58vh, 580px); overflow-y: auto; }.audit-panel { min-height: 280px; padding: 18px 24px; }.audit-list { display: grid; gap: 10px; }.audit-event { position: relative; padding: 12px 14px 12px 37px; border: 1px solid #e0e9ed; border-radius: 11px; background: #fbfdfe; }.audit-event::before { content: ""; position: absolute; top: 16px; left: 15px; width: 8px; height: 8px; border-radius: 50%; background: #42a5c9; box-shadow: 0 0 0 4px #e3f3f8; }.audit-event strong, .audit-event span { display: block; }.audit-event strong { color: #415965; font-size: 10px; }.audit-event span { margin-top: 4px; color: #87969e; font-size: 9px; }.detail-footer > span { flex: 1; }.danger-button { min-width: 125px; border: 1px solid #e6caca; color: #a64444; background: #fff8f8; }.audit-empty { padding: 40px 10px; color: #8a99a2; font-size: 10px; text-align: center; }
.asset-panel { min-height: 310px; padding: 18px 24px 24px; background: #fbfdfe; }.asset-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }.asset-panel-heading strong, .asset-panel-heading span { display: block; }.asset-panel-heading strong { color: #344b58; font-family: Georgia, serif; font-size: 14px; }.asset-panel-heading span { margin-top: 4px; color: #81919a; font-size: 9px; }.compact-button { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 9px; font-weight: 800; white-space: nowrap; }.asset-list { display: grid; gap: 11px; }.asset-card { padding: 14px; border: 1px solid #dfe8ed; border-radius: 12px; background: white; box-shadow: 0 4px 13px rgba(16,44,62,.035); }.asset-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.asset-card-heading strong, .asset-code { display: block; }.asset-card-heading strong { margin-top: 3px; color: #344b58; font-size: 11px; }.asset-code { color: var(--blue-700); font-size: 8px; font-weight: 900; letter-spacing: .08em; }.asset-details { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 10px; color: #71838e; font-size: 9px; }.asset-notes { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid #edf2f4; color: #687b86; font-size: 9px; line-height: 1.5; }.asset-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 11px; }.text-button { border: 0; padding: 4px 7px; color: var(--blue-700); background: transparent; font-size: 9px; font-weight: 800; }.danger-text { color: #a64a4a; }.asset-empty { margin: 0; padding: 65px 20px; border: 1px dashed #d5e2e8; border-radius: 12px; color: #85959e; background: white; font-size: 10px; text-align: center; }
.asset-card.maintenance-overdue, .asset-card.warranty-expired { border-color: #e8c4c4; box-shadow: inset 3px 0 #bd5252; }.completion-note { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; color: #287a58; background: #eef9f4; font-size: 9px; font-weight: 800; }
.warranty-coverage { margin: 10px 0 0; padding: 9px 10px; border-radius: 8px; color: #4e6876; background: #f1f7fa; font-size: 9px; line-height: 1.5; }
.record-status.pending_review { color: #966119; background: #fff1d7; }.record-status.verified { color: #287a58; background: #e7f6ef; }
.document-security-note { display: flex; gap: 9px; margin-bottom: 14px; padding: 11px 12px; border: 1px solid #d8e8ef; border-radius: 10px; color: #5d7480; background: #f1f8fb; font-size: 9px; line-height: 1.45; }.document-security-note > span { color: var(--blue-700); font-weight: 900; }.document-security-note p { margin: 0; }.document-security-note strong { display: block; color: #3c6173; }
.document-card.pending_review { box-shadow: inset 3px 0 #d89a31; }.document-card.verified { box-shadow: inset 3px 0 #2f9a70; }.document-details { align-items: center; }.document-original-note, .document-clean-note { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; font-size: 9px; font-weight: 800; }.document-original-note { color: #8d5d18; background: #fff6e5; }.document-clean-note { color: #287a58; background: #eef9f4; }.document-actions { flex-wrap: wrap; }.document-open { display: inline-flex; align-items: center; text-decoration: none; }.document-file-field small { color: #84949d; font-size: 8px; line-height: 1.45; }.document-file-field input { padding: 8px; background: white; }.document-file-field input::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 1px solid #d1e0e6; border-radius: 7px; color: #456575; background: #f3f8fa; font-size: 9px; font-weight: 800; }
.document-upload-state { margin: 0 24px 18px; padding: 12px; border: 1px solid #cfe2eb; border-radius: 10px; color: #516b78; background: #f4fafd; }.document-upload-state strong, .document-upload-state small { display: block; }.document-upload-state strong { margin-top: 8px; font-size: 9px; }.document-upload-state small { margin-top: 4px; color: #82939c; font-size: 8px; }.document-progress { height: 7px; overflow: hidden; border-radius: 99px; background: #dfecef; }.document-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2389b1, #49aece); transition: width .2s ease; }.client-dialog button:disabled, .client-dialog input:disabled { cursor: wait; opacity: .58; }
.user-list { display: grid; }.user-row { display: grid; grid-template-columns: 42px 1fr auto auto; align-items: center; gap: 13px; padding: 16px 18px; border-bottom: 1px solid #edf2f4; }.user-row:last-child { border: 0; }.user-row .avatar { width: 38px; height: 38px; }.user-row strong, .user-row small { display: block; }.user-row strong { color: #344b58; font-size: 11px; }.user-row small { margin-top: 3px; color: #8a9aa3; font-size: 9px; }.role-chip { padding: 6px 9px; border-radius: 99px; color: #3e6579; background: #e8f3f7; font-size: 9px; font-weight: 800; }.role-chip.owner { color: #755512; background: #fff2d5; }.user-state { color: #287a58; font-size: 9px; font-weight: 800; }

.import-view { display: grid; gap: 16px; }.import-toolbar { margin-bottom: 0; }.import-upload-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 18px; border: 1px solid #cfe2eb; border-radius: 15px; background: linear-gradient(135deg, #f7fcfe, #eef8fb); box-shadow: 0 8px 22px rgba(22, 79, 105, .06); }.import-upload-copy { display: flex; align-items: center; gap: 13px; }.import-upload-copy strong, .import-upload-copy p { display: block; }.import-upload-copy strong { color: #355262; font-size: 12px; }.import-upload-copy p { max-width: 560px; margin: 4px 0 0; color: #70858f; font-size: 9px; line-height: 1.5; }.import-upload-icon { display: grid; place-items: center; flex: 0 0 43px; height: 48px; border-radius: 11px; color: white; background: linear-gradient(145deg, #248ab4, #51b7d3); font-size: 9px; font-weight: 900; letter-spacing: .08em; }.import-file-button, .import-start-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 13px; border-radius: 9px; font-size: 9px; font-weight: 800; cursor: pointer; white-space: nowrap; }.import-start-button:disabled { cursor: default; opacity: .5; }.import-private-note { grid-column: 1 / -1; margin: 2px 0 0; padding-top: 12px; border-top: 1px solid #dcecf2; color: #5d7580; font-size: 9px; }.import-private-note span { margin-right: 6px; color: #2b976c; font-weight: 900; }.import-upload-queue { grid-column: 1 / -1; display: grid; gap: 7px; }.import-upload-entry { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid #dce8ed; border-radius: 9px; background: white; }.import-upload-entry strong, .import-upload-entry small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.import-upload-entry strong { color: #45606d; font-size: 9px; }.import-upload-entry small { margin-top: 2px; color: #8b9aa2; font-size: 8px; }.import-mini-progress { height: 6px; overflow: hidden; border-radius: 99px; background: #e3edf1; }.import-mini-progress span { display: block; width: 0; height: 100%; background: #3aa4ca; transition: width .2s ease; }.import-upload-status { color: #71848e; font-size: 8px; font-weight: 800; }
.import-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.import-summary article { padding: 14px 16px; border: 1px solid #e0e9ed; border-radius: 12px; background: white; }.import-summary small, .import-summary strong { display: block; }.import-summary small { color: #82939c; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }.import-summary strong { margin-top: 4px; color: #365563; font-family: Georgia, serif; font-size: 22px; }.import-records { overflow: hidden; }.import-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 18px; border-bottom: 1px solid #e6edf0; }.import-list-heading h3 { margin: 3px 0 0; color: #38505d; font-family: Georgia, serif; font-size: 15px; }.import-list-heading button { min-height: 33px; padding: 0 12px; border-radius: 8px; font-size: 9px; }.import-list { display: grid; }.import-item { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(130px, .8fr) auto; align-items: center; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #edf2f4; }.import-item:last-child { border-bottom: 0; }.import-item-main { min-width: 0; }.import-item-main strong, .import-item-main span, .import-item-main small { display: block; }.import-item-main strong { overflow: hidden; color: #344e5b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.import-item-main span { margin-top: 4px; color: #71848e; font-size: 9px; }.import-item-main small { margin-top: 3px; color: #96a3aa; font-size: 8px; }.import-item-analysis { color: #6c7f89; font-size: 9px; line-height: 1.45; }.import-item-analysis strong { display: block; color: #45606d; }.import-item-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }.import-item-actions button, .import-item-actions a { min-height: 31px; padding: 0 10px; border-radius: 8px; font-size: 8px; font-weight: 800; text-decoration: none; }.import-status { display: inline-block; margin-bottom: 6px; padding: 5px 8px; border-radius: 99px; font-size: 8px; font-weight: 900; }.import-status.needs_review { color: #8c5c16; background: #fff0d2; }.import-status.processing, .import-status.queued { color: #2d708b; background: #e4f3f8; }.import-status.failed { color: #a34141; background: #fff0f0; }.import-status.imported { color: #277655; background: #e9f7f0; }.import-item.failed { box-shadow: inset 3px 0 #bd5252; }.import-item.needs_review { box-shadow: inset 3px 0 #d89a31; }
.import-review-dialog { width: min(700px, calc(100vw - 28px)); }.import-review-file { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 24px 0; padding: 12px 13px; border: 1px solid #d8e7ed; border-radius: 10px; background: #f5fafc; }.import-review-file strong, .import-review-file span { display: block; }.import-review-file strong { max-width: 420px; overflow: hidden; color: #395563; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.import-review-file span { margin-top: 4px; color: #84949d; font-size: 8px; }.import-review-file a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 10px; border-radius: 8px; font-size: 8px; font-weight: 800; text-decoration: none; white-space: nowrap; }.import-review-grid { max-height: min(54vh, 570px); overflow-y: auto; }.import-new-client-fields { grid-column: 1 / -1; padding: 2px; border: 1px solid #dbe7ec; border-radius: 11px; background: #f8fbfc; }.nested-form-grid { padding: 13px; }.ocr-details { margin: 0 24px 16px; padding: 10px 12px; border: 1px solid #e0e9ed; border-radius: 9px; color: #627985; background: #fbfdfe; font-size: 9px; }.ocr-details summary { cursor: pointer; color: #456777; font-weight: 800; }.ocr-details p { max-height: 100px; margin: 9px 0 0; overflow-y: auto; line-height: 1.55; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 210px 1fr; }
  .content-grid { grid-template-columns: minmax(0, 1fr) 290px; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 20; width: 250px; transform: translateX(-100%); transition: transform .2s ease; }
  body.menu-open .sidebar { transform: translateX(0); }
  .menu-button { display: block; }
  .content-grid { grid-template-columns: 1fr; }
  .context-panel { border-top: 1px solid var(--line); border-left: 0; }
  .security-pill { display: none; }
  .client-stats { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar { height: 76px; padding: 0 16px; }.topbar h1 { font-size: 19px; }
  .content-grid { min-height: calc(100vh - 76px); }
  .chat-heading { padding: 0 16px; }
  .messages, .composer { padding-left: 14px; padding-right: 14px; }
  .message-body { max-width: 88%; }
  .context-panel { padding: 16px; }
  .clients-view { min-height: calc(100vh - 76px); padding: 18px 14px; }.clients-toolbar { align-items: stretch; flex-direction: column; }.new-client-button { width: 100%; }.records-controls { flex-direction: column; }.records-controls select { height: 38px; }.form-grid { grid-template-columns: 1fr; }.field.full { grid-column: auto; }
  .detail-tabs { padding-left: 14px; padding-right: 14px; }.asset-panel { padding: 15px 14px 18px; }.asset-panel-heading { align-items: stretch; flex-direction: column; }.compact-button { width: 100%; }.client-dialog footer { padding-left: 14px; padding-right: 14px; }.detail-footer { flex-wrap: wrap; }.detail-footer > span { display: none; }
  .maintenance-overview-heading { align-items: flex-start; flex-direction: column; }.warranty-summary { justify-content: flex-start; }.reminder-item { grid-template-columns: 10px minmax(0, 1fr) auto; }.reminder-open { grid-column: 2 / -1; width: 100%; }.reminder-date { align-self: start; }
  .document-actions { justify-content: flex-start; }.document-upload-state { margin-left: 14px; margin-right: 14px; }
  .import-upload-card { grid-template-columns: 1fr; }.import-file-button, .import-start-button { width: 100%; }.import-upload-entry { grid-template-columns: minmax(0, 1fr) 90px; }.import-upload-status { grid-column: 1 / -1; }.import-summary { grid-template-columns: 1fr 1fr 1fr; }.import-item { grid-template-columns: 1fr; gap: 9px; }.import-item-actions { justify-content: flex-start; }.import-item-actions button, .import-item-actions a { flex: 1; justify-content: center; }.import-review-file { align-items: stretch; flex-direction: column; margin-left: 14px; margin-right: 14px; }.import-review-file a { width: 100%; }.ocr-details { margin-left: 14px; margin-right: 14px; }
  .auth-brand { position: static; margin-bottom: 22px; }.auth-screen { display: flex; flex-direction: column; justify-content: center; }.auth-card { padding: 24px 19px; }.user-row { grid-template-columns: 38px 1fr; }.user-row .role-chip, .user-row .user-state { grid-column: 2; justify-self: start; }
}
