:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1d2c3c;
  background: #f5f7fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #1d2c3c;
  --muted: #8291a1;
  --line: #e7ecf1;
  --blue: #2469a5;
  --blue-dark: #1e598c;
  --green: #29856b;
  --navy: #142c42;
  --soft-blue: #edf5fc;
  --soft-green: #e8f5ee;
  --soft-orange: #fff4e5;
  --soft-red: #fff0ed;
  --shadow: 0 10px 30px rgba(29, 53, 77, .06);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5f7fa; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
a { color: inherit; }

.app-shell { min-height: 100vh; }
.sidebar { width: 248px; position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; padding: 26px 16px 18px; background: #fff; border-right: 1px solid #edf0f3; }
.brand, .login-brand { display: flex; align-items: center; gap: 11px; }
.brand { padding: 0 10px 35px; }
.brand-logo { width: 86px; height: 43px; flex: 0 0 auto; border-radius: 6px; object-fit: cover; }
.brand-name { font-family: Manrope,sans-serif; font-size: 15px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; color: #213548; }
.brand-name span { color: #2d8c75; }
.brand-name small { display: block; margin-top: 5px; font-size: 8px; font-weight: 700; letter-spacing: 1.7px; color: #98a4b1; }
.workspace-label { padding: 0 12px; margin: 4px 0 10px; color: #a0abb7; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; }
.nav-group { display: grid; gap: 5px; }
.nav-link { height: 44px; width: 100%; display: flex; align-items: center; gap: 13px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #738394; font-size: 13px; font-weight: 500; text-align: left; transition: .18s ease; }
.nav-link:hover { background: #f5f8fa; color: #2e5069; }
.nav-link.active { background: #edf5fc; color: #28699e; font-weight: 700; }
.nav-link.active svg { color: #2874ad; }
.nav-badge { min-width: 21px; height: 20px; display: inline-grid; place-items: center; margin-left: auto; border-radius: 6px; background: #e9f1f7; color: #477292; font-size: 10px; font-weight: 700; padding: 0 5px; }
.sidebar-divider { height: 1px; margin: 20px 8px 21px; background: #eff2f5; }
.sidebar-spacer { flex: 1; min-height: 26px; }
.sidebar-tip { display: flex; gap: 10px; padding: 13px 11px; margin-bottom: 18px; border-radius: 10px; background: #f6f8fa; }
.tip-icon { color: #b27c39; }
.sidebar-tip strong,.sidebar-tip span { display: block; }
.sidebar-tip strong { margin-bottom: 4px; color: #46586a; font-size: 11px; }
.sidebar-tip span { color: #8c9aa7; font-size: 10px; line-height: 1.5; }
.profile-button { display: flex; align-items: center; gap: 10px; padding: 13px 7px 2px; border: 0; border-top: 1px solid #edf0f3; background: transparent; color: #8795a3; text-align: left; }
.avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #326789; background: #e7f0f6; font-size: 11px; font-weight: 700; }
.profile-copy { display: grid; gap: 3px; flex: 1; min-width: 0; }
.profile-copy strong { overflow: hidden; color: #34495c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { color: #a0abb6; font-size: 10px; }
.sidebar-close,.mobile-menu,.mobile-scrim { display: none; }

.main-panel { min-height: 100vh; margin-left: 248px; }
.topbar { height: 72px; position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 0 46px; border-bottom: 1px solid #edf0f3; background: rgba(255,255,255,.93); backdrop-filter: blur(10px); }
.topbar-left,.topbar-right { display: flex; align-items: center; gap: 16px; }
.breadcrumb { color: #9aa6b2; font-size: 11px; font-weight: 600; }
.breadcrumb span { padding: 0 8px; color: #c2cad2; }
.connection-status { display: flex; align-items: center; gap: 7px; color: #8b98a5; font-size: 10px; font-weight: 600; }
.connection-status span { width: 7px; height: 7px; border-radius: 50%; background: #d3a251; box-shadow: 0 0 0 3px #fbf2e5; }
.connection-status.connected span { background: #41a27e; box-shadow: 0 0 0 3px #e9f5ef; }
.avatar-top { width: 32px; height: 32px; border: 0; }
.page-content { max-width: 1400px; padding: 36px 46px 60px; margin: 0 auto; }
.demo-banner { min-height: 40px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: -10px 0 23px; border: 1px solid #f2e4c8; border-radius: 8px; background: #fffaf0; color: #8a6a33; }
.demo-banner>span { display: flex; }
.demo-banner p { flex: 1; margin: 0; font-size: 10px; line-height: 1.5; }
.demo-banner strong { font-weight: 700; }
.demo-banner .icon-button { width: 28px; height: 28px; color: #9e875e; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading-compact { margin-bottom: 32px; }
.eyebrow { margin: 0 0 10px; color: #8d9aa7; font-size: 9px; font-weight: 700; letter-spacing: 1.7px; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 8px; color: #243649; font-family: "Segoe UI",Arial,sans-serif; font-size: clamp(25px,3vw,32px); font-weight: 700; letter-spacing: -1.1px; line-height: 1.2; }
h1 span { color: #358b76; }
.heading-subtitle { margin: 0; color: #8795a2; font-size: 12px; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 700; transition: .18s ease; white-space: nowrap; }
.button-primary { color: #fff; background: #2877a9; box-shadow: 0 4px 10px #2877a922; }
.button-primary:hover { background: #216894; box-shadow: 0 6px 14px #2877a932; transform: translateY(-1px); }
.button-outline { border-color: #e2e8ed; color: #546b7e; background: #fff; }
.button-outline:hover { border-color: #b8d0df; background: #f8fbfd; }
.button-quiet { color: #748494; background: transparent; }
.button-quiet:hover { background: #f5f7f8; }
.button-small { min-height: 31px; padding: 0 10px; border-radius: 7px; font-size: 10px; }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #8b99a6; }
.icon-button:hover { background: #f1f5f7; color: #46647a; }

.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.stat-card { min-height: 132px; padding: 17px 18px 14px; border: 1px solid #edf0f3; border-radius: 11px; background: #fff; box-shadow: 0 2px 8px rgba(27,50,72,.02); }
.stat-card-label { display: flex; align-items: center; justify-content: space-between; color: #788899; font-size: 10px; font-weight: 600; }
.stat-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; }
.stat-icon.mint { color: #398a6f; background: #e9f5ef; }
.stat-icon.blue { color: #3e7ba3; background: #edf5fa; }
.stat-icon.amber { color: #af8243; background: #fbf3e8; }
.stat-icon.coral { color: #bf745f; background: #fdf0ec; }
.stat-value { margin: 8px 0 6px; color: #27394c; font-family: "Segoe UI",Arial,sans-serif; font-size: 27px; font-weight: 700; letter-spacing: -.7px; }
.stat-value span { color: #9ba7b2; font-family: "Segoe UI",Arial,sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.stat-foot { display: flex; align-items: center; gap: 6px; color: #a1acb7; font-size: 9px; }
.mini-dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-mint { background: #59a787; }.dot-blue { background: #6a9dbf; }.dot-amber { background: #c79954; }.dot-coral { background: #d28470; }

.quick-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 18px; }
.quick-action { min-width: 0; min-height: 82px; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e9edf1; border-radius: 10px; background: #fff; color: #8493a1; text-align: left; transition: .18s ease; }
.quick-action:hover { border-color: #c7dbe7; box-shadow: var(--shadow); transform: translateY(-1px); }
.quick-action-primary { border-color: #e0edf4; background: linear-gradient(115deg,#f5fafe,#fff); }
.quick-action>span:nth-child(2) { display: grid; gap: 5px; flex: 1; }
.quick-action strong { color: #354b5e; font-size: 11px; }
.quick-action small { color: #929eaa; font-size: 9px; }
.quick-action-icon { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #347fa6; background: #eaf4f8; }
.quick-maintenance { color: #b17d3d; background: #fbf3e8; }.quick-return { color: #43836f; background: #eaf4ef; }
.section-block { margin-top: 36px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-heading h2,.panel-header h2 { margin: 0 0 5px; color: #314558; font-family: "Segoe UI",Arial,sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.section-heading p,.panel-header p { margin: 0; color: #9aa6b2; font-size: 10px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; border: 0; background: transparent; color: #3b7da4; font-size: 10px; font-weight: 700; }
.text-button:hover { color: #215e85; }
.equipment-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.equipment-card { min-width: 0; padding: 15px; border: 1px solid #e9edf1; border-radius: 11px; background: #fff; box-shadow: 0 2px 8px rgba(27,50,72,.02); transition: .18s ease; }
.equipment-card:hover { border-color: #d5e0e8; box-shadow: var(--shadow); transform: translateY(-2px); }
.equipment-card-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.equipment-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #46806e; background: #eff7f2; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-available,.status-returned,.status-resolved { color: #398266; background: #eaf5ef; }
.status-checked-out,.status-active,.status-in-progress { color: #49799c; background: #edf4fa; }
.status-maintenance,.status-open { color: #a87731; background: #fbf3e8; }
.status-retired,.status-cancelled { color: #8995a0; background: #f0f2f4; }
.equipment-card-info { min-height: 79px; padding-top: 16px; }
.equipment-type { margin-bottom: 5px; color: #91a0ad; font-size: 9px; font-weight: 600; }
.equipment-card h3 { overflow: hidden; margin: 0 0 6px; color: #30465a; font-family: "Segoe UI",Arial,sans-serif; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.equipment-id { overflow: hidden; color: #98a4ae; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.equipment-id span { padding: 0 2px; }
.equipment-card-footer { display: flex; align-items: center; justify-content: space-between; min-height: 35px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f2f4; }
.equipment-assignee { min-width: 0; display: flex; align-items: center; gap: 6px; color: #8494a2; font-size: 9px; }
.avatar-small { width: 22px; height: 22px; font-size: 8px; }
.available-label { color: #67947f; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin: 0 0 20px; }
.search-box { width: min(350px,100%); height: 39px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #e5eaef; border-radius: 8px; background: #fff; color: #a0abb5; }
.search-box:focus-within { border-color: #98bfd4; box-shadow: 0 0 0 3px #e9f3f8; }
.search-box input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #3b4f60; font-size: 10px; }
.search-box input::placeholder { color: #a8b2bc; }
.filter-pills { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
.filter-pill { min-height: 31px; padding: 0 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #8997a4; font-size: 9px; font-weight: 600; white-space: nowrap; }
.filter-pill:hover { background: #fff; }
.filter-pill.selected { border-color: #dfe9ef; background: #fff; color: #346b91; box-shadow: 0 2px 6px #213b4d0a; }
.equipment-grid-main { grid-template-columns: repeat(3,minmax(0,1fr)); }

.panel { border: 1px solid #e9edf1; border-radius: 11px; background: #fff; box-shadow: 0 2px 8px rgba(27,50,72,.02); }
.table-panel { overflow: hidden; }
.panel-header { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 19px; border-bottom: 1px solid #edf0f3; }
.result-count { color: #99a5b0; font-size: 9px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 12px 18px; background: #fbfcfd; color: #a0abb5; font-size: 8px; font-weight: 700; letter-spacing: 1px; text-align: left; }
td { padding: 13px 18px; border-top: 1px solid #f0f2f4; color: #718292; font-size: 10px; }
tbody tr:hover { background: #fbfcfd; }
.table-equipment { display: flex; align-items: center; gap: 10px; }
.table-tool-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #47836e; background: #eef6f1; }
.table-equipment strong,.table-equipment small { display: block; }
.table-equipment strong { color: #354a5c; font-size: 10px; font-weight: 700; }
.table-equipment small { margin-top: 4px; color: #99a5af; font-size: 9px; }

.maintenance-list { display: grid; gap: 10px; }
.request-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -12px 0 15px; }
.request-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.maintenance-card { display: flex; align-items: flex-start; gap: 13px; padding: 17px; border: 1px solid #e9edf1; border-radius: 10px; background: #fff; }
.maintenance-indicator { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #ab7b40; background: #fbf3e8; }
.maintenance-indicator.resolved { color: #42846e; background: #eaf5ef; }
.maintenance-copy { flex: 1; min-width: 0; }
.maintenance-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.maintenance-title-row h3 { margin: 0; color: #344b5e; font-size: 11px; font-weight: 700; }
.maintenance-copy>p { margin: 8px 0 10px; color: #748594; font-size: 10px; line-height: 1.6; }
.maintenance-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: #9aa6b1; font-size: 9px; }
.priority-tag { padding: 4px 7px; border-radius: 5px; background: #f3f5f6; color: #7f8d99; font-size: 8px; }
.priority-urgent { color: #b55e4e; background: #fff0ed; }.priority-low { color: #54816c; background: #eef6f1; }

.admin-welcome { min-height: 83px; display: flex; align-items: center; gap: 13px; padding: 16px 18px; margin-bottom: 14px; border: 1px solid #e5edf2; border-radius: 11px; background: linear-gradient(110deg,#f4f9fc,#fff); }
.admin-welcome-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: #3f7da1; background: #eaf3f8; }
.admin-welcome h2 { margin: 0 0 5px; color: #31485a; font-family: "Segoe UI",Arial,sans-serif; font-size: 14px; }
.admin-welcome p { margin: 0; color: #8b99a5; font-size: 10px; }
.admin-id-chip { margin-left: auto; padding: 7px 9px; border-radius: 6px; background: #eff5f7; color: #678497; font-size: 9px; font-weight: 700; }
.admin-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.admin-summary-card { display: flex; align-items: center; gap: 10px; padding: 14px; border: 1px solid #e9edf1; border-radius: 10px; background: #fff; }
.summary-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #42836f; background: #edf6f0; }
.summary-amber { color: #a77d44; background: #fbf4e9; }.summary-blue { color: #4d7e9c; background: #eef5f9; }
.admin-summary-card small,.admin-summary-card strong { display: block; }
.admin-summary-card small { margin-bottom: 5px; color: #98a4ae; font-size: 9px; }
.admin-summary-card strong { color: #40576a; font-size: 11px; }
.admin-action-row { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 19px; border-top: 1px solid #f0f2f4; }
.admin-action-row>div { display: grid; gap: 5px; }
.admin-action-row strong { color: #45596b; font-size: 10px; }
.admin-action-row small { color: #9aa6b0; font-size: 9px; }
.security-note { display: flex; align-items: flex-start; gap: 9px; padding: 13px 14px; margin-top: 15px; border: 1px solid #f1e2cb; border-radius: 9px; background: #fffaf1; color: #9a763d; font-size: 9px; line-height: 1.6; }
.security-note svg { flex: 0 0 auto; }
.security-note strong { font-weight: 700; }
.employee-panel { margin-top: 16px; }
.maintenance-employee-note { display: flex; align-items: flex-start; gap: 10px; max-width: 620px; padding: 15px; border: 1px solid #e7edf1; border-radius: 9px; background: #fff; color: #728596; font-size: 11px; line-height: 1.6; }
.maintenance-employee-note svg { flex: 0 0 auto; color: #a77e49; }
.empty-state { grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 190px; padding: 24px; border: 1px dashed #dfe6eb; border-radius: 10px; background: #fcfdfe; text-align: center; }
.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 12px; color: #6b94a9; background: #edf5f8; }
.empty-state strong { margin-bottom: 6px; color: #53697a; font-size: 12px; }
.empty-state span { max-width: 280px; color: #99a5b0; font-size: 10px; line-height: 1.5; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 22px; background: rgba(25,42,57,.42); backdrop-filter: blur(3px); }
.modal-card { width: min(100%,510px); max-height: calc(100vh - 44px); overflow-y: auto; padding: 22px; border: 1px solid #e7edf1; border-radius: 14px; background: #fff; box-shadow: 0 22px 80px #142b4030; animation: modal-in .2s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.modal-heading { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.modal-heading h2 { margin: 0 0 5px; color: #30475b; font-family: "Segoe UI",Arial,sans-serif; font-size: 18px; letter-spacing: -.4px; }
.modal-heading p { margin: 0; color: #91a0ac; font-size: 10px; }
.modal-form { display: grid; gap: 9px; }
.field-label { margin: 5px 0 0; color: #596e7f; font-size: 10px; font-weight: 700; }
.field-label:first-child { margin-top: 0; }
.field-label .optional-label { color: #a5afb8; font-size: 9px; font-weight: 400; }
.modal-form input,.modal-form select,.modal-form textarea,.input-with-icon input { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #e3e9ed; border-radius: 7px; outline: none; background: #fff; color: #40576a; font-size: 10px; transition: .15s ease; }
.modal-form input:focus,.modal-form select:focus,.modal-form textarea:focus,.input-with-icon input:focus { border-color: #90b8cd; box-shadow: 0 0 0 3px #eaf4f8; }
.modal-form input::placeholder,.modal-form textarea::placeholder,.input-with-icon input::placeholder { color: #aab4bd; }
.modal-form textarea { resize: vertical; min-height: 68px; line-height: 1.55; }
.field-hint { margin: -4px 0 7px; color: #9ba7b1; font-size: 9px; }
.scan-input-row { display: flex; gap: 7px; }
.scan-input-row input { min-width: 0; flex: 1; }
.camera-button { flex: 0 0 auto; }
.available-pick { display: grid; gap: 8px; margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid>div { display: grid; gap: 8px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; margin-top: 7px; border-top: 1px solid #eef1f3; }
.camera-box { padding: 10px; margin-top: 5px; border-radius: 9px; background: #f4f7f9; text-align: center; }
.camera-box[hidden] { display: none; }
.camera-box video { display: block; width: 100%; max-height: 280px; border-radius: 6px; background: #172d46; object-fit: cover; }
.camera-box p { margin: 8px; color: #738697; font-size: 10px; }
.detail-layout { display: grid; grid-template-columns: 160px 1fr; align-items: start; gap: 18px; }
.detail-qr { min-height: 160px; display: grid; place-items: center; border: 1px solid #edf0f3; border-radius: 10px; background: #fff; }
.detail-rows { display: grid; gap: 12px; }
.detail-rows>div { display: grid; gap: 5px; }
.detail-rows span:not(.status-pill):not(.status-dot) { color: #92a0ac; font-size: 9px; }
.detail-rows strong { color: #43596b; font-size: 10px; font-weight: 600; }
.detail-actions { grid-column: 1/-1; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid #eef1f3; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; max-width: min(400px,calc(100vw - 36px)); padding: 12px 17px; border: 1px solid #d6e9dd; border-radius: 9px; background: #f3faf5; color: #367151; box-shadow: 0 8px 30px #1835441c; font-size: 11px; font-weight: 600; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-error { border-color: #f1d9d2; background: #fff5f2; color: #a65746; }

.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px 55px; background: radial-gradient(circle at 50% 15%,#f0f6fa 0,transparent 35%),#f5f7fa; }
.login-card { width: min(100%,432px); padding: 37px 39px 30px; border: 1px solid #e9edf1; border-radius: 16px; background: #fff; box-shadow: 0 18px 70px rgba(37,65,89,.09); }
.login-brand { margin-bottom: 27px; }
.login-art { height: 150px; position: relative; overflow: hidden; display: grid; place-items: center; margin-bottom: 29px; border: 1px solid #e9f0f3; border-radius: 12px; background: linear-gradient(135deg,#f2f8fa,#f6faf7); }
.login-art-glow { width: 125px; height: 125px; position: absolute; border-radius: 50%; background: radial-gradient(circle,#d9ebe5 0,#eaf4ef 65%,transparent 67%); }
.login-art-icon { position: relative; z-index: 2; width: 67px; height: 67px; display: grid; place-items: center; border-radius: 20px; color: #44826e; background: #fff; box-shadow: 0 8px 22px #5378671c; transform: rotate(-8deg); }
.art-orbit { position: absolute; border: 1px solid #dfece8; border-radius: 50%; }
.orbit-one { width: 190px; height: 190px; }.orbit-two { width: 250px; height: 250px; }.orbit-three { width: 310px; height: 310px; }
.art-tag { position: absolute; z-index: 3; display: flex; align-items: center; gap: 5px; padding: 8px 10px; border: 1px solid #edf0ef; border-radius: 7px; background: #fff; color: #637b70; box-shadow: 0 5px 15px #234a3b0d; font-size: 9px; font-weight: 600; }
.tag-one { top: 27px; left: calc(50% + 43px); color: #568c75; }.tag-two { bottom: 26px; right: calc(50% + 42px); color: #4a7892; }
.login-card .eyebrow { margin-bottom: 9px; }
.login-card h1 { font-size: 29px; line-height: 1.25; }
.login-card h1 span { color: #398a73; }
.login-subtitle { margin-bottom: 22px; color: #8493a0; font-size: 11px; line-height: 1.7; }
.login-card form { display: grid; gap: 9px; }
.input-with-icon { position: relative; }
.input-with-icon svg { position: absolute; top: 11px; left: 11px; color: #98a7b1; }
.input-with-icon input { padding-left: 38px; min-height: 43px; }
.login-card .field-label { margin: 0; }
.login-card .field-hint { margin: -3px 0 6px; }
.inline-link { padding: 0; border: 0; background: transparent; color: #307aa5; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.login-submit { width: 100%; min-height: 44px; margin-top: 3px; }
.login-legal { display: flex; align-items: flex-start; gap: 7px; margin-top: 19px; padding-top: 15px; border-top: 1px solid #eff2f4; color: #9ba6af; font-size: 9px; line-height: 1.5; }
.login-legal svg { flex: 0 0 auto; color: #b18a52; }
.login-footer { position: absolute; bottom: 20px; color: #a5afb8; font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
.login-footer span { padding: 0 6px; color: #c2cad1; }

.flash { padding: 11px 14px; margin-bottom: 16px; border: 1px solid #d6e9dd; border-radius: 8px; background: #f3faf5; color: #367151; font-size: 11px; line-height: 1.5; }
.flash-error { border-color: #f1d9d2; background: #fff5f2; color: #a65746; }
.flash-success { border-color: #d6e9dd; background: #f3faf5; color: #367151; }
.input-with-icon>span { position: absolute; top: 11px; left: 11px; color: #98a7b1; }
.input-with-icon input { padding-left: 38px; }
.profile-button { width: 100%; }
.profile-button .icon-button { flex: 0 0 auto; }
.profile-button button { margin-left: auto; }
.nav-link { text-decoration: none; }
.nav-link span:first-of-type { flex: 1; }
.section-heading p,.panel-header p { margin: 4px 0 0; color: #91a0ac; font-size: 10px; }
.section-block { margin-top: 30px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-heading h2,.panel-header h2 { margin: 0; color: #33495b; font-size: 14px; }
.text-button { border: 0; background: transparent; color: #39769d; font-size: 10px; text-decoration: none; }
.quick-action { text-decoration: none; }
.qr-checkout-form,.employee-form-panel,.equipment-form-panel { padding: 18px; margin-bottom: 18px; }
.checkout-inline { margin: 0; }
.request-actions form,.table-scroll form { margin: 0; }
.employee-form-panel .modal-form,.equipment-form-panel .modal-form { max-width: 720px; padding: 18px; }
.security-note { display: block; }
.security-note strong { display: inline; }
.qr-label { width: min(100%, 400px); padding: 26px; margin: 0 0 22px; border: 1px solid #dce5ed; border-radius: 14px; background: #fff; text-align: center; }
.qr-label .brand { display: block; padding: 0; color: #42617d; font-weight: 700; letter-spacing: 2px; }
.qr-label .brand span { color: #2c8b72; }
.qr-label .type { margin-top: 18px; color: #658098; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.qr-label .name { margin: 7px 0; color: #30465a; font-size: 20px; }
.qr-label .id { color: #526d83; font-family: monospace; }
.qr-label img { display: block; width: 210px; height: 210px; margin: 15px auto 0; }
.qr-label small { display: block; margin-top: 12px; color: #71879a; }
.qr-label+ p { margin-top: 16px; }
.login-legal { display: block; }
.login-card .flash { margin: 0 0 12px; }
.admin-inventory-panel { margin-top: 6px; }
.inventory-table { min-width: 820px; }
.checkout-assignments-table { min-width: 620px; }
.inventory-table td { vertical-align: middle; }
.current-checkouts-panel { margin-bottom: 18px; }
.assignee-cell { display: flex; align-items: center; gap: 9px; }
.assignee-cell strong,.assignee-cell small { display: block; }
.assignee-cell strong { color: #354a5c; font-size: 10px; }
.assignee-cell small { margin-top: 3px; color: #99a5af; font-size: 9px; }
.muted-value,.inventory-note { color: #99a5af; font-size: 10px; }
.inventory-note { margin-top: 12px; line-height: 1.6; }
.retired-row { opacity: .64; }
.inventory-actions { display: flex; align-items: center; gap: 6px; min-width: 300px; }
.button-danger-outline { border-color: #f0d7d2; color: #a65746; background: #fff; }
.button-danger-outline:hover { border-color: #e8b8ad; background: #fff7f5; }
.qr-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 14px; }
.qr-gallery-card { min-width: 0; display: flex; align-items: center; gap: 13px; padding: 16px; }
.qr-gallery-image { width: 92px; height: 92px; flex: 0 0 auto; image-rendering: pixelated; }
.qr-gallery-copy { min-width: 0; flex: 1; }
.qr-gallery-copy .eyebrow { margin-bottom: 5px; }
.qr-gallery-copy h2 { overflow-wrap: anywhere; margin: 0 0 4px; color: #354a5c; font-size: 13px; }
.qr-gallery-id { overflow-wrap: anywhere; margin: 0 0 8px; color: #8393a1; font-family: monospace; font-size: 10px; }
.qr-gallery-card>.button { flex: 0 0 auto; padding: 0 10px; }
.qr-label { width: min(100%,400px); height: 200px; display: flex; align-items: center; gap: 5%; padding: 12px; margin: 0 0 22px; border: 1px solid #dce5ed; border-radius: 8px; background: #fff; text-align: left; }
.qr-label-copy { min-width: 0; flex: 1; }
.qr-label .qr-label-brand { margin-bottom: 7px; color: #42617d; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.qr-label .type { margin: 0 0 4px; color: #658098; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.qr-label .name { overflow-wrap: anywhere; margin: 0 0 5px; color: #30465a; font-size: 13px; font-weight: 700; }
.qr-label .id { overflow-wrap: anywhere; color: #526d83; font-family: monospace; font-size: 10px; }
.qr-label>img { width: 168px; height: 168px; flex: 0 0 auto; image-rendering: pixelated; }
.sticker-print-page .qr-label { box-shadow: 0 5px 20px rgba(29,53,77,.08); }
.sticker-print-page .print-controls { display: flex; align-items: center; gap: 12px; }
.qr-gallery-card .status-pill { flex-wrap: nowrap; }
.empty-state .button { margin-top: 14px; }
.employee-form-panel .modal-form,.equipment-form-panel .modal-form { padding: 18px; }
.qr-checkout-form { max-width: 760px; }
.search-box { min-height: 44px; }
.nav-link { min-height: 46px; }
.button { min-height: 42px; }
.page-heading { min-width: 0; }
.page-heading>div { min-width: 0; }
.checkout-page-actions { display: flex; align-items: center; gap: 8px; }
.heading-subtitle { line-height: 1.6; }
.equipment-card { min-width: 0; }
input,select,textarea { max-width: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media print {
  body { background: #fff; }
  .sidebar,.topbar,.page-heading,.page-content>p,.flash { display: none !important; }
  .main-panel { margin: 0; }
  .page-content { padding: 0; }
  .qr-label { border: 0; margin: 20px auto; }
  body.sticker-print-page { width: 2in; min-width: 0; height: 1in; min-height: 0; margin: 0; }
  .sticker-print-page .app-shell,.sticker-print-page .main-panel,.sticker-print-page .page-content { width: 2in; min-width: 0; min-height: 0; max-width: none; height: 1in; margin: 0; padding: 0; }
  .sticker-print-page .page-content { position: relative; }
  .sticker-print-page .qr-label { position: absolute; top: 0; left: 0; width: 2in; height: 1in; display: flex; gap: 1.5mm; padding: 1.5mm; margin: 0; border: 0; border-radius: 0; box-shadow: none; break-inside: avoid; }
  .sticker-print-page .qr-label-copy { width: 25mm; flex: 0 0 25mm; }
  .sticker-print-page .qr-label .qr-label-brand { margin-bottom: 1.2mm; font-size: 6.5pt; letter-spacing: .3mm; }
  .sticker-print-page .qr-label .type { margin-bottom: .6mm; font-size: 5.5pt; letter-spacing: .2mm; }
  .sticker-print-page .qr-label .name { margin-bottom: .7mm; font-size: 7pt; line-height: 1.05; }
  .sticker-print-page .qr-label .id { font-size: 6pt; }
  .sticker-print-page .qr-label>img { width: 20mm; height: 20mm; }
}
.sticker-print-page { page: sticker; }
@page sticker { size: 2in 1in; margin: 0; }

@media (max-width: 1120px) {
  .page-content { padding-right: 30px; padding-left: 30px; }
  .topbar { padding: 0 30px; }
  .equipment-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .sidebar { width: 226px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: 10px 0 35px #1b354322; }
  .sidebar-close { display: inline-grid; margin-left: auto; }
  .mobile-menu { display: inline-grid; }
  .mobile-scrim.visible { display: block; position: fixed; inset: 0; z-index: 25; background: #1b2d3e66; }
  .main-panel { margin-left: 0; }
  .topbar { height: 62px; padding: 0 24px; }
  .page-content { padding: 29px 24px 45px; }
  .topbar { padding-right: 20px; padding-left: 20px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-actions { grid-template-columns: 1fr; }
  .main-panel,.page-content { min-width: 0; }
  .admin-summary { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .topbar { padding: 0 16px; }
  .topbar-left,.topbar-right { gap: 9px; }
  .page-content { width: 100%; padding: 22px 14px 34px; }
  .connection-status { font-size: 0; gap: 0; }
  .connection-status span { width: 8px; height: 8px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
  .page-heading>.button,.page-heading>div+.button { width: 100%; }
  .checkout-page-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .checkout-page-actions .button { width: 100%; }
  h1 { font-size: 26px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .stat-card { min-height: 122px; padding: 13px; }
  .stat-value { font-size: 24px; }
  .quick-actions { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
  .quick-action { min-height: 68px; padding: 11px; }
  .section-block { margin-top: 28px; }
  .section-heading { align-items: flex-start; }
  .text-button { font-size: 9px; }
  .equipment-grid,.equipment-grid-main { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .equipment-card { padding: 11px; }
  .equipment-card-top { align-items: flex-start; }
  .equipment-icon { width: 33px; height: 33px; }
  .status-pill { padding: 5px 7px; font-size: 9px; }
  .equipment-card h3 { font-size: 13px; }
  .equipment-card-info { min-height: 76px; }
  .toolbar { align-items: stretch; }
  .search-box { width: 100%; }
  .filter-pills { margin: 0 -1px; }
  .admin-summary { grid-template-columns: 1fr; gap: 8px; }
  .admin-summary-card { padding: 10px 12px; }
  .maintenance-card { gap: 9px; padding: 12px; flex-wrap: wrap; }
  .maintenance-copy { width: calc(100% - 48px); }
  .maintenance-card>.button { margin-left: 44px; }
  .maintenance-title-row h3 { font-size: 10px; }
  .request-toolbar { align-items: flex-start; flex-direction: column; }
  .request-actions { width: 100%; margin-left: 44px; justify-content: flex-start; }
  .request-actions .button { flex: 1; }
  .request-actions form { flex: 1; }
  .request-actions form .button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; gap: 8px; }
  .modal-backdrop { align-items: flex-end; padding: 10px; }
  .modal-card { max-height: calc(100vh - 20px); padding: 18px; border-radius: 14px 14px 10px 10px; }
  .scan-input-row { flex-wrap: wrap; }
  .scan-input-row input { flex-basis: 100%; }
  .camera-button { width: 100%; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-qr { min-height: 140px; }
  .detail-actions { grid-column: 1; }
  .login-card { padding: 27px 23px 23px; }
  .login-brand .brand-logo { width: 76px; height: 39px; }
  .login-art { height: 130px; margin-bottom: 24px; }
  .login-card h1 { font-size: 27px; }
  .login-footer { bottom: 13px; font-size: 7px; }
  .login-screen { min-height: 100svh; padding: 16px 12px 48px; }
  .login-card { width: min(100%, 460px); padding: 22px 19px; }
  .login-art { height: 115px; }
  .login-subtitle { font-size: 13px; }
  .login-legal { font-size: 11px; }
  .field-label { font-size: 12px; }
  input,select,textarea,.modal-form input,.modal-form select,.modal-form textarea,.input-with-icon input,.search-box input {
    min-height: 46px;
    font-size: 17px !important;
  }
  textarea { min-height: 110px; }
  .button,.button-small { min-height: 44px; font-size: 13px; }
  .button-small { padding: 0 12px; }
  .toolbar { gap: 10px; }
  .filter-pills { width: 100%; }
  .filter-pill { min-height: 40px; font-size: 11px; }
  .admin-summary { grid-template-columns: minmax(0,1fr); }
  .admin-summary-card { min-height: 66px; }
  .panel-header { align-items: flex-start; padding: 14px; }
  .table-scroll { max-width: calc(100vw - 28px); }
  .inventory-table { min-width: 780px; }
  .request-actions { margin-left: 0; }
  .maintenance-copy { width: calc(100% - 48px); }
  .qr-checkout-form,.employee-form-panel,.equipment-form-panel { padding: 13px; }
  .employee-form-panel .modal-form,.equipment-form-panel .modal-form { padding: 12px 0; }
  .scan-input-row { align-items: stretch; }
  .scan-input-row .button { width: 100%; }
  .section-heading { flex-wrap: wrap; }
  .quick-action { min-height: 72px; }
  .profile-copy strong { font-size: 12px; }
  .qr-gallery { grid-template-columns: minmax(0,1fr); }
  .qr-gallery-card { gap: 10px; padding: 12px; }
  .qr-gallery-image { width: 76px; height: 76px; }
  .qr-gallery-card>.button { white-space: normal; }
  .inventory-actions { flex-wrap: wrap; min-width: 260px; }
  .sticker-print-page .print-controls { align-items: flex-start; flex-direction: column; }
  .qr-label { width: 100%; max-width: 400px; }
}
