:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #0B1F44;
  background: #F3F6FB;
  font-synthesis: none;
  --navy: #0F2D5B;
  --blue: #1E6FFF;
  --teal: #14B8A6;
  --success: #22C55E;
  --background: #F3F6FB;
  --surface: #FFFFFF;
  --line: #DCE5F1;
  --muted: #667799;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: #0B1F44;
  padding: 11px 16px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: #edf3ff;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
button.primary:hover {
  background: #1659cf;
}
button.danger {
  color: #a43232;
  border-color: #e7c5c5;
}
button.link {
  border: 0;
  padding: 8px;
  background: transparent;
  color: var(--blue);
}
:focus-visible {
  outline: 3px solid #719ff0;
  outline-offset: 3px;
}
a {
  color: var(--blue);
}
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 36px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0F2D5B;
  font-size: 21px;
  letter-spacing: -0.6px;
}
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--blue);
  color: white;
  border-radius: 12px;
  font-weight: 800;
  font-size: 29px;
}
.environment {
  border: 1px solid #e3d9b3;
  color: #71602c;
  background: #fffbed;
  border-radius: 30px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}
#account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.shell {
  max-width: 1500px;
  margin: auto;
  display: flex;
  min-height: calc(100vh - 145px);
}
aside {
  width: 238px;
  flex-shrink: 0;
  padding: 36px 24px;
  border-right: 1px solid var(--line);
  background: #0F2D5B;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin: 0 0 22px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
nav button {
  text-align: left;
  border: 0;
  background: transparent;
  font-size: 14px;
  padding: 14px 16px;
}
nav button[aria-current="page"] {
  background: #214979;
  color: #FFFFFF;
}
.sidebar-note {
  font-size: 12px;
  line-height: 1.8;
  color: #667799;
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 20px;
}
main {
  flex: 1;
  min-width: 0;
  padding: 40px;
  max-width: 1260px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 0 0 12px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  margin: 0 0 16px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 18px;
  margin: 0 0 10px;
  line-height: 1.4;
}
p {
  line-height: 1.65;
}
.subtitle {
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 28px;
  font-size: 14px;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0 26px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
  gap: 20px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 3px 10px #0F2D5B08;
  overflow-wrap: anywhere;
}
.card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.card p {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0;
}
.badge {
  display: inline-block;
  color: #1754bd;
  background: #edf3ff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  margin-bottom: 16px;
}
.badge.neutral {
  color: #667799;
  background: #f0f3f9;
}
.money {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.7px;
  color: #0B1F44;
  margin: 18px 0 8px;
}
.meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 20px;
}
.empty {
  background: white;
  border: 1px dashed #DCE5F1;
  border-radius: 16px;
  padding: 38px;
  color: var(--muted);
  text-align: center;
}
.form {
  display: grid;
  gap: 18px;
  max-width: 700px;
}
.form.card {
  margin-top: 22px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
input,
select,
textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid #DCE5F1;
  border-radius: 8px;
  background: white;
  color: #0B1F44;
  padding: 11px 12px;
  font-size: 15px;
}
textarea {
  min-height: 94px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
label.check input[type="checkbox"] {
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
}
small,
.hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}
.form button[type="submit"] {
  justify-self: start;
}
.login {
  max-width: 480px;
  margin: 7vh auto;
  padding: 40px;
}
.login h1 {
  font-size: 34px;
}
.login .mark {
  margin-bottom: 28px;
  width: 46px;
  height: 46px;
}
.notice {
  border: 1px solid #c6d9fb;
  background: #edf4ff;
  border-radius: 10px;
  padding: 13px 18px;
  margin-bottom: 22px;
  font-size: 14px;
  line-height: 1.6;
}
.notice.error {
  border-color: #e6c2b8;
  background: #fff0ec;
  color: #823e2c;
}
.notice:empty {
  display: none;
}
#recovery {
  padding: 20px;
  border: 1px solid #e0c282;
  background: #fff9e9;
  border-radius: 12px;
  margin-bottom: 22px;
}
#recovery button {
  margin-right: 10px;
  margin-top: 10px;
}
.details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 14px;
}
.message {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message strong {
  font-size: 13px;
}
.message p {
  color: #0B1F44;
  margin: 6px 0;
}
.message time {
  font-size: 11px;
  color: var(--muted);
}
.loading {
  padding: 50px;
  color: var(--muted);
}
footer {
  max-width: 1500px;
  margin: auto;
  padding: 22px 36px;
  font-size: 11px;
  color: #667799;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .topbar {
    padding: 0 20px;
    gap: 12px;
  }
  .environment {
    font-size: 10px;
    padding: 5px 8px;
  }
  aside {
    width: 190px;
    padding: 28px 14px;
  }
  main {
    padding: 28px;
  }
  .details {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: auto;
    min-height: 74px;
    flex-wrap: wrap;
    padding: 16px;
  }
  .brand {
    font-size: 18px;
  }
  #account {
    width: 100%;
    justify-content: space-between;
  }
  .shell {
    display: block;
  }
  aside {
    width: 100%;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  aside .eyebrow,
  .sidebar-note {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
  }
  nav button {
    white-space: nowrap;
    padding: 10px 12px;
  }
  main {
    padding: 24px 16px;
  }
  h1 {
    font-size: 27px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .login {
    margin: 4vh auto;
    padding: 26px;
  }
  .card {
    padding: 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 20px 16px;
    flex-direction: column;
    gap: 6px;
  }
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 14px;
}
legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 6px;
}
.document,
.filters {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.document summary,
.filters summary {
  cursor: pointer;
  font-weight: 600;
}
.document p {
  font-size: 14px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.price-editor,
.price-rows {
  display: grid;
  gap: 18px;
}
.price-editor output {
  display: block;
  font-size: 22px;
}
.section-title,
.calendar-title {
  margin-top: 32px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.calendar-day {
  min-height: 95px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: white;
  min-width: 0;
}
.calendar-day h3 {
  font-size: 12px;
  font-weight: 600;
}
.calendar-day.has-events {
  background: #edf4ff;
}
.calendar-event {
  display: block;
  width: 100%;
  padding: 8px 4px;
  text-align: left;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  margin: 6px 0;
}
.card .form {
  box-shadow: none;
  margin: 14px 0;
  padding: 14px;
}
.card > .danger {
  margin-top: 12px;
}
#account span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  .calendar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  .calendar-day:not(.has-events) {
    display: none;
  }
  .calendar-day h3 {
    font-size: 16px;
  }
  .calendar-event {
    font-size: 14px;
  }
}

.admin-tabs {flex-wrap:wrap}
.audit-diff {white-space:pre-wrap;overflow-wrap:anywhere;font-size:0.85rem;background:#f3f6fa;padding:1rem;border-radius:8px}
.preserve-lines {white-space:pre-wrap;overflow-wrap:anywhere}
.card p {overflow-wrap:anywhere}
.content-tabs{display:flex;gap:12px;border-bottom:1px solid var(--line);margin:8px 0 22px}.content-tabs button{border:0;border-radius:0;background:transparent;color:var(--muted);padding:12px 4px}.content-tabs button.active{border-bottom:3px solid var(--blue);color:var(--blue)}
.content-help-results{grid-template-columns:repeat(2,minmax(0,1fr))}
.content-search select{padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:white;min-width:160px}
.content-image-dialog{max-width:min(96vw,1400px);max-height:95vh;border:0;border-radius:12px;padding:20px;box-shadow:0 20px 80px #0b1f4466}.content-image-dialog::backdrop{background:#071a32a8}.content-image-dialog img{max-width:100%;max-height:78vh;object-fit:contain}.content-image-dialog button{display:block;margin:0 0 12px auto}
.content-highlight{background:#eff6ff;border-color:#c8ddff;margin-bottom:22px}.content-highlight h2{font-size:26px;margin:0 0 8px}.content-search{display:flex;gap:10px;margin:20px 0}.content-search input{flex:1;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:9px}.content-results{display:grid;gap:14px}.content-entry{display:grid;grid-template-columns:104px minmax(0,1fr) auto;align-items:start;gap:20px}.content-entry h2,.content-help-card h2{margin:0 0 8px}.content-entry-meta{font-size:13px;color:var(--muted);display:grid;gap:8px}.content-help-card{display:flex;justify-content:space-between;align-items:center;gap:20px}.content-categories{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0}.content-categories button{font-size:13px}.content-article{max-width:850px;line-height:1.6}.content-article h2{margin:22px 0 10px}.content-article li{margin:10px 0}.content-article .badge{margin-bottom:10px}.content-image{margin:20px 0}.content-image img{display:block;width:100%;border:1px solid var(--line);border-radius:8px}.content-image figcaption{font-size:12px;color:var(--muted);margin:8px 0}.content-related{margin:22px 0}.content-related button{margin:8px 8px 0 0}.content-offline{padding:14px;border-left:3px solid var(--blue);background:#edf4ff}
@media(max-width:750px){.content-help-results{grid-template-columns:1fr}.content-entry{grid-template-columns:1fr;gap:8px}.content-help-card{align-items:start;flex-direction:column}.content-search{flex-wrap:wrap}.content-search button{min-height:44px}.content-entry-meta{display:flex;align-items:center}.content-tabs button{font-size:13px}}

.protected-photo{display:block;max-width:100%;width:320px;max-height:320px;object-fit:contain;border-radius:10px;margin:12px 0}

.staff-map{width:100%;max-width:760px;height:auto;display:block;border:1px solid #b9c8d0;border-radius:12px;margin:12px 0}.table-wrap{overflow:auto} .table-wrap table{width:100%;border-collapse:collapse}.table-wrap th,.table-wrap td{padding:10px;text-align:left;border-bottom:1px solid #dde5eb}

/* HOS shell and W01–W05 design system. Shared by every existing feature. */
.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}
.topbar{height:70px;padding:0 24px 0 0;gap:18px;position:sticky;top:0;z-index:10;box-shadow:0 2px 12px #0f2d5b06}
.brand{width:260px;flex:0 0 260px;align-self:stretch;padding:17px 22px;color:white;background:var(--navy);font-size:21px;letter-spacing:-.4px}
.brand-symbol{width:39px;height:39px;flex-shrink:0}.brand small{display:block;color:#80bded;font-size:11px;font-weight:400;letter-spacing:.1px;margin-top:3px}
.icon-button{font-size:22px;padding:8px;border:0;color:var(--navy);background:transparent;flex-shrink:0}
.workspace-search{display:flex;position:relative;flex:1;max-width:690px;min-width:130px;margin:0}
.workspace-search input{height:42px;background:#f6f9ff;padding-right:42px;font-size:14px}.workspace-search button{position:absolute;right:2px;top:2px;width:38px;height:38px;border:0;background:transparent;color:var(--muted);padding:0;font-size:25px}
#property-switch{width:160px;font-size:12px;padding:10px 8px;background:transparent;overflow:hidden;text-overflow:ellipsis}
#account{gap:9px;flex-shrink:0}#account .account-name{max-width:130px;font-size:12px;font-weight:600}.account-avatar,.person-avatar{display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;border-radius:50%;color:var(--navy);background:#dce9ff;font-weight:700}
#account .link{font-size:12px}.environment{font-size:10px;white-space:nowrap}
.shell{max-width:none;min-height:calc(100vh - 76px)}
nav{gap:4px}nav button{display:flex;align-items:center;gap:12px;color:#cbd9ee;padding:11px 14px;border-radius:8px;font-size:13px;line-height:1.4}nav button:hover{background:#173960;color:white}nav button[aria-current='page']{background:#214979;color:white;box-shadow:inset 3px 0 var(--teal)}
.ui-icon{width:20px;height:20px;flex:0 0 20px}.sidebar-note{border-color:#2d476a;color:#8cadd0;margin-top:22px;padding:18px 12px 0;line-height:1.6}
main{padding:28px;max-width:none;background:radial-gradient(ellipse at 20% 0,#f8fbff,transparent 60%),var(--background)}
h1{font-size:30px;font-weight:700;letter-spacing:-.6px;margin-bottom:8px}h2{font-size:18px;font-weight:650}.subtitle{font-size:14px;max-width:900px;margin-bottom:24px}.card{border-color:#e4ebf6;border-radius:12px;box-shadow:0 3px 16px #0f2d5b05;padding:22px}.badge{margin-bottom:0;line-height:1.4}.card>.badge{margin-bottom:14px}
.toolbar{margin:20px 0}.notice{padding:10px 16px;font-size:12px;margin-bottom:18px}.login{max-width:500px}footer{max-width:none;margin-left:260px;background:var(--background);padding:18px 28px;border:0}.menu-collapsed footer{margin-left:0}
.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.panel-heading h2{margin:0}.table-link{padding:4px 0;border:0;background:transparent;color:var(--blue);font-size:12px;text-align:left;line-height:1.5}.table-link:hover{background:transparent;text-decoration:underline}.table-wrap table{font-size:12px}.table-wrap th{background:#f6f9fe;color:var(--muted);font-weight:500}.table-wrap th,.table-wrap td{padding:12px 10px;vertical-align:middle;border-color:#edf1f8}.table-wrap td:first-child{font-weight:550}.table-wrap td .badge{white-space:nowrap;font-size:10px}
.dashboard-greeting{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:-10px 0 20px}.dashboard-greeting p{font-size:16px;font-weight:600;margin:0}.dashboard-greeting time{font-size:12px;color:var(--muted)}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat-card{display:flex;gap:13px;padding:20px 16px}.stat-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:50%;background:#e7f0ff;color:var(--blue);flex:0 0 43px}.stat-card h2{font-size:12px;margin:0 0 9px;line-height:1.4}.stat-value{font-size:28px;line-height:1.2;letter-spacing:-.7px}.stat-card p{font-size:10px;margin:9px 0 0}.stat-card:nth-child(3) .stat-icon,.stat-card:nth-child(4) .stat-icon{color:#15803d;background:#eaf9f0}
.dashboard-body{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px}.dashboard-centre,.dashboard-side{display:grid;gap:20px;align-content:start;min-width:0}.dashboard-chart-row{display:grid;grid-template-columns:minmax(0,1fr) 225px;gap:20px}.dashboard-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.dashboard-panel{min-width:0;padding:20px}.quick-actions{display:grid;gap:10px}.quick-actions button{text-align:left;font-size:12px;padding:12px 14px}.compact.empty{font-size:13px;padding:30px 16px;line-height:1.7}
.work-chart{height:206px;display:flex;align-items:stretch;gap:7px;padding-top:5px;background:repeating-linear-gradient(to top,#f0f4fa 0,#f0f4fa 1px,transparent 1px,transparent 40px);border-bottom:1px solid var(--line)}.chart-day{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;flex:1;min-width:0;gap:5px}.chart-count{font-size:10px;color:var(--muted)}.chart-bar{background:linear-gradient(#70adff,#1E6FFF);width:70%;max-width:22px;border-radius:3px 3px 0 0;min-height:0}.chart-label{font-size:9px;color:var(--muted);white-space:nowrap;background:white;width:100%;text-align:center;padding:6px 0}
.person{display:flex;gap:8px;align-items:center}.person-avatar{width:28px;height:28px;flex-basis:28px;font-size:11px}.property-summary{border-bottom:1px solid #edf1f8;padding:14px 0}.property-summary:first-child{padding-top:0}.property-summary:last-child{border-bottom:0;padding-bottom:0}.property-summary h3{font-size:14px;margin-top:10px}.property-summary p{font-size:12px}.property-icon{display:grid;place-items:center;background:#e8f0ff;border-radius:10px;color:var(--blue);width:42px;height:42px}.workflow-steps{padding-left:22px;font-size:12px;color:var(--muted);line-height:1.7;margin-bottom:0}.workflow-steps li{padding:5px 0}.workflow-steps li::marker{color:var(--blue);font-weight:700}
.status-completed,.status-arrived,.status-ACCEPTED{color:#15803d;background:#eaf9f0}.status-cancelled,.status-REJECTED_BY_CUSTOMER{color:#b42318;background:#fff0ed}.status-open,.status-PENDING{color:#995500;background:#fff5df}.status-draft,.status-expired,.status-closed_unresolved{color:var(--muted);background:#f0f3f9}
.order-form{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;padding:0;background:transparent;border:0;box-shadow:none}.order-form .form-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-content:start}.form-step{display:grid;gap:15px;align-content:start}.form-step h2{display:flex;gap:10px;align-items:center;font-size:16px;margin:0}.step-number{width:28px;height:28px;flex:0 0 28px;background:#e5efff;color:var(--blue);border-radius:50%;display:grid;place-items:center;font-size:14px}.order-form .form-summary{align-self:start;position:sticky;top:96px;display:grid;gap:18px}.form-summary button{width:100%}.form-summary h2{margin:0}.form-summary .money{color:var(--navy)}.candidate-grid{display:flex;flex-direction:column;gap:12px}.candidate-card{display:grid;grid-template-columns:42px 1fr auto;gap:16px;align-items:center}.candidate-card h3{margin:0}.candidate-card p{margin:5px 0}.candidate-card .actions{margin:0}.order-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.order-layout .terms-card{min-width:0}.order-side{display:grid;gap:18px}.admin-tabs{background:white;border:1px solid var(--line);border-radius:12px;padding:10px}.admin-tabs button{font-size:12px;padding:10px 12px}
@media(max-width:1500px){.dashboard-tables{grid-template-columns:1fr}.dashboard-chart-row{grid-template-columns:minmax(0,1fr) 200px}.dashboard-body{grid-template-columns:minmax(0,1fr) 245px}}
@media(max-width:1280px){.dashboard-chart-row{grid-template-columns:1fr}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stats{gap:12px}.stat-card{gap:9px;padding:16px 12px}.stat-icon{width:32px;height:32px;flex-basis:32px}.stat-value{font-size:25px}.topbar{gap:12px;padding-right:16px}#property-switch{width:120px}.brand{padding-left:16px;font-size:18px}.order-form{grid-template-columns:minmax(0,1fr) 240px}.order-form .form-sections{grid-template-columns:1fr}}
@media(max-width:1200px){.brand{width:220px;flex-basis:220px}footer{margin-left:220px}}
@media(max-width:1050px){.dashboard-body{grid-template-columns:1fr}.dashboard-side{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-side>section:last-child{grid-column:1/-1}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.environment{display:none}.order-layout{grid-template-columns:1fr}.topbar #account .account-name{max-width:90px}}
@media(max-width:750px){.topbar{height:auto;min-height:70px;padding:0 12px;gap:8px;flex-wrap:wrap}.brand{width:auto;flex:1;background:transparent;color:var(--navy);padding:12px 0}.brand small{color:var(--muted)}.brand-symbol{width:32px;height:32px}.workspace-search{order:4;flex-basis:100%;max-width:none;margin-bottom:12px}#property-switch{order:5;width:100%;margin-bottom:12px}#account{margin-left:0;width:auto}.account-avatar{display:none}.topbar #account .account-name{max-width:90px}.sidebar-note{display:none}.shell{display:block}nav{flex-direction:row;overflow:auto}nav button{white-space:nowrap;padding:10px 12px}.ui-icon{width:17px;height:17px;flex-basis:17px}main{padding:22px 16px}footer{margin-left:0;padding:16px}.dashboard-stats{gap:10px}.stat-card{padding:15px 12px;gap:8px}.stat-card h2{font-size:11px}.stat-card p{font-size:10px}.dashboard-greeting{display:block}.dashboard-greeting p{font-size:14px}.dashboard-greeting time{display:block;margin-top:6px}.dashboard-panel{padding:16px}.dashboard-side{grid-template-columns:1fr}.dashboard-body{gap:16px}.dashboard-centre,.dashboard-side{gap:16px}.panel-heading h2{font-size:16px}.order-form{grid-template-columns:1fr}.order-form .form-summary{position:static}.form-sections{min-width:0}.candidate-card{grid-template-columns:35px 1fr}.candidate-card .actions{grid-column:1/-1}.chart-label{font-size:8px}.chart-day{gap:4px}.work-chart{gap:3px}}
.bar-0{height:0px}
.bar-1{height:15px}
.bar-2{height:30px}
.bar-3{height:45px}
.bar-4{height:60px}
.bar-5{height:75px}
.bar-6{height:90px}
.bar-7{height:105px}
.bar-8{height:120px}
.bar-9{height:135px}
.bar-10{height:150px}
.order-form .form-summary{width:auto;background:white;border:1px solid #e4ebf6;padding:22px}.candidates>.grid{display:flex;flex-direction:column;gap:12px}.order-side .toolbar{margin:0;display:grid;gap:10px}.order-side .toolbar button{width:100%;text-align:left}.order-side .card p{font-size:13px}.order-layout .money{font-size:30px}.order-layout .summary-line{padding:15px 0}.order-layout .terms-card{padding:26px}
.dashboard-panel .panel-heading h2{font-size:16px}.dashboard-panel .panel-heading>.table-link{flex-shrink:0}.dashboard-panel .panel-heading>.hint{text-align:right}
@media(min-width:1400px){.dashboard-body{grid-template-columns:minmax(0,1fr) 270px}.dashboard-tables{grid-template-columns:repeat(2,minmax(0,1fr))}}
.admin-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:24px}.admin-overview .stat-card{min-height:112px}.admin-summary-list .summary-line:first-child{padding-top:0}.admin-summary-list .summary-line:last-child{border-bottom:0}.admin-summary-list .badge{font-size:11px;white-space:nowrap}
@media(max-width:900px){.admin-summary-grid{grid-template-columns:1fr}}

/* The shared SVG provides the logo background and corner shape. */
img.mark{display:block;background:transparent;border-radius:0;flex-shrink:0}

/* Help cards use title links and reserve three lines for each preview. */
[data-screen='help-list']{max-width:1140px;margin:0 auto}
.content-help-card{display:block;min-width:0;padding:24px}
.content-help-card .badge{margin:0 0 12px}
.content-help-card h2{font-size:18px;line-height:1.4;overflow-wrap:anywhere}
.help-card-link{color:var(--navy);text-decoration:none}
.help-card-link:hover{text-decoration:underline;text-underline-offset:3px;color:var(--blue)}
.help-card-link:focus-visible{outline:2px solid var(--blue);outline-offset:4px;border-radius:3px}
.content-help-card .help-card-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;max-width:52ch;height:72px;margin:12px 0 0;color:#516582;font-size:15px;line-height:24px;overflow-wrap:anywhere}
@media(max-width:750px){.content-help-card{padding:20px}.content-help-card h2{font-size:17px}}

/* Help articles keep a readable measure within the shared cabinet shell. */
[data-screen='help-article']{max-width:1140px;margin:0 auto}
.help-hero{margin-bottom:24px}
.help-hero .help-back{margin:0 0 18px;padding:0;min-height:36px;font-size:14px}
.help-meta{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:14px;color:var(--muted);font-size:13px}
.help-meta .badge{margin:0;font-size:12px}
.help-hero h1{max-width:30ch;margin:0 0 12px;font-size:clamp(24px,2.1vw,32px);line-height:1.25;letter-spacing:-.5px;overflow-wrap:anywhere}
.help-summary{max-width:70ch;margin:0;color:#516582;font-size:15px;line-height:1.6}
.help-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:24px;align-items:start}
.help-aside{grid-column:2;grid-row:1;position:sticky;top:24px;min-width:0;width:auto;padding:0;border:0;border-radius:0;background:transparent;color:inherit}
.help-toc{display:block;padding:20px 16px;border:1px solid var(--line);border-radius:12px;background:#fff}
.help-toc h2{margin:0 8px 12px;font-size:14px;line-height:1.4}
.help-toc a{display:flex;align-items:baseline;gap:10px;min-height:44px;padding:10px 8px;border-radius:7px;color:#465c7b;text-decoration:none;font-size:13px;line-height:1.5}
.help-toc a span{color:#7386a1;font-size:11px;font-variant-numeric:tabular-nums}
.help-toc a:hover{background:#edf4ff;color:#135bcc}
.help-article{grid-column:1;grid-row:1;max-width:none;min-width:0;padding:30px 32px;font-size:16px;line-height:1.7;box-shadow:0 4px 20px #0f2d5b04}
.help-article .help-section h2{margin:0 0 14px;font-size:19px;line-height:1.4;letter-spacing:-.2px;scroll-margin-top:24px}
.help-article p{max-width:68ch;margin:0;color:#304461;font-size:16px;line-height:1.75}
.help-section+.help-section{margin-top:28px;padding-top:28px;border-top:1px solid #e9eef5}
.help-section-before{padding:20px;border:1px solid #e1eafa;border-radius:10px;background:#f5f8ff}
.help-article .help-section-before h2{margin-bottom:8px;font-size:16px}
.help-steps{list-style:none;counter-reset:help-step;margin:0;padding:0}
.help-steps li{counter-increment:help-step;display:grid;grid-template-columns:32px minmax(0,1fr);gap:14px;margin:0;padding:0;color:#243957;font-size:16px;line-height:1.75}
.help-steps li>span{max-width:68ch}
.help-steps li+li{margin-top:20px}
.help-steps li::before{content:counter(help-step);display:grid;place-items:center;width:32px;height:32px;border:1px solid #d7e5ff;border-radius:50%;background:#edf4ff;color:#185fc8;font-size:13px;font-weight:700}
.help-section-result p{padding:14px 18px;border-left:3px solid var(--teal);border-radius:0 8px 8px 0;background:#f0faf7}
.help-feedback{margin-top:30px;padding-top:24px;border-top:1px solid var(--line)}
.help-article .help-feedback h2{margin:0;font-size:15px;line-height:1.5}
.help-feedback .toolbar{gap:8px;margin:12px 0 0}
.help-feedback button{min-height:44px;font-size:13px;padding:10px 14px}
[data-screen='help-article'] .content-related{max-width:860px;margin-top:28px}
@media(max-width:1279px){
  .help-layout{grid-template-columns:minmax(0,1fr)}
  .help-aside{grid-column:1;grid-row:1;position:static}
  .help-article{grid-row:2}
  .help-toc{padding:16px 20px}
  .help-toc h2{margin:0 0 8px}
  .help-toc a{display:inline-flex;max-width:100%;margin-right:8px;padding:8px;font-size:13px}
}
@media(max-width:760px){
  .help-hero{margin-bottom:20px}
  .help-hero .help-back{margin-bottom:14px}
  .help-hero h1{font-size:24px;line-height:1.3}
  .help-summary{font-size:14px}
  .help-layout{gap:16px}
  .help-toc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;padding:16px}
  .help-toc h2{grid-column:1/-1}
  .help-toc a{display:flex;margin:0;padding:8px 0;min-height:44px}
  .help-article{padding:20px 18px;border-radius:12px}
  .help-section-before{padding:16px}
  .help-section+.help-section{margin-top:24px;padding-top:24px}
  .help-article .help-section h2{font-size:18px}
  .help-article .help-section-before h2{font-size:16px}
  .help-steps li{grid-template-columns:28px minmax(0,1fr);gap:10px}
  .help-steps li::before{width:28px;height:28px}
}
@media print{
  .help-aside,.help-back,.help-feedback{display:none!important}
  [data-screen='help-article']{max-width:none}
  .help-layout{display:block}
  .help-article{border:0;padding:0;box-shadow:none}
  .help-steps li,.help-section-result{break-inside:avoid}
}

/* Sign-in surface only; authenticated workspace and recovery remain unchanged. */
body:not(.signed-in):has(.login){background:#f3f6fb;background-image:radial-gradient(ellipse at 10% 10%,#e2ecff 0,transparent 55%)}
body:not(.signed-in):has(.login) .topbar{background:transparent;box-shadow:none;border-bottom:1px solid #dce5f1}
body:not(.signed-in):has(.login) #main{padding:36px 24px 24px;max-width:1100px;margin:0 auto}
body:not(.signed-in):has(.login) .workspace>footer{margin:0;text-align:center;background:transparent;color:#53647c;font-size:12px;padding:16px 24px 28px}
.login.card{display:grid;grid-template-columns:1fr 1fr;max-width:980px;margin:20px auto;padding:0;overflow:hidden;border:1px solid #d6e0ee;border-radius:22px;background:#fff;box-shadow:0 16px 60px #1833570d}
.login-intro{padding:44px 40px;background:#edf3fd;color:#142d53;display:flex;flex-direction:column;align-items:flex-start}
.login .mark{width:48px;height:48px;margin-bottom:28px}
.login .eyebrow{font-size:11px;font-weight:650;letter-spacing:.12em;color:#315b96;margin:0 0 12px}
.login h1{font-size:34px;font-weight:650;line-height:1.18;letter-spacing:-.9px;margin:0 0 20px;max-width:360px}
.login .subtitle{font-size:15px;line-height:1.65;color:#465e7d;margin:0 0 24px}
.login-benefits{display:grid;gap:12px;color:#31516f;font-size:14px;margin:0 0 28px}
.login-benefits span:before{content:'✓';display:inline-grid;place-items:center;background:#dce8fa;color:#225393;width:22px;height:22px;border-radius:50%;margin-right:10px}
.login-about{margin-top:auto;font-size:14px;font-weight:600;color:#2256a1;text-decoration:none}
.login-about:hover{text-decoration:underline}
.login-access{padding:44px 40px;align-self:center}
.login-access .form{padding:0;border:0;box-shadow:none;background:transparent;margin:0;gap:18px}
.login-access h2{font-size:22px;line-height:1.3;margin:0 0 8px;letter-spacing:-.3px;color:#142d53}
.login-access label{font-size:13px;font-weight:550;color:#364c68}
.login-access input{min-height:48px;background:#f9fbfe;border:1px solid #a8b7cb;border-radius:10px;padding:12px 14px;color:#172c4c;font-size:16px}
.login-access input:focus-visible{outline:3px solid #8bb7f5;outline-offset:2px;border-color:#225ac0}
.login-access button[type=submit]{width:100%;justify-self:stretch;min-height:48px;background:#1d4ed8;border-color:#1d4ed8;border-radius:10px;color:#fff;font-size:15px}
.login-access button[type=submit]:hover{background:#183fae}
.login-recovery{display:grid;gap:6px;margin-top:20px}
.login-recovery button.link{text-align:left;justify-self:start;font-size:13px;font-weight:500;color:#335e9b;padding:5px 0;min-height:32px}
.login-demo{grid-column:1/-1;padding:26px 40px 32px!important;background:#fff!important;border:0!important;border-top:1px solid #dce5f1!important;border-radius:0!important;margin:0!important;display:grid;grid-template-columns:1fr 1fr;gap:10px 28px}
.login-demo h2,.login-demo-note{grid-column:1/-1;margin:0}
.login-demo h2{font-size:18px;color:#172c4c}
.login-demo-note{font-size:13px;color:#53647c;margin-bottom:8px}
.login-demo label.check{display:flex;align-items:center;gap:8px;font-size:13px;color:#3f5571;min-height:32px;line-height:1.5}
.login-demo input[type=checkbox]{width:18px;height:18px;flex-shrink:0;margin:0;accent-color:#1d4ed8}
.login-demo button[type=submit]{grid-column:1/-1;justify-self:start;background:#eef3fc;color:#2256a1;border:1px solid #bdcfe8;border-radius:10px;min-height:44px;margin-top:8px;box-shadow:none}
.login>details{grid-column:1/-1;border-top:1px solid #dce5f1;margin:0;padding:16px 40px;color:#53647c;font-size:13px}
.login>details summary{cursor:pointer;color:#335e9b}
.login :focus-visible{outline:3px solid #2455bf;outline-offset:3px}
@media(max-width:720px){body:not(.signed-in):has(.login) #main{padding:20px 16px}.login.card{grid-template-columns:1fr;border-radius:16px;margin:0 auto}.login-intro{padding:28px 24px}.login h1{font-size:28px}.login .mark{margin-bottom:16px}.login .subtitle{margin-bottom:12px}.login-benefits{display:none}.login-about{margin-top:8px}.login-access{padding:28px 24px}.login-demo{padding:24px!important;grid-template-columns:1fr}.login>details{padding:16px 24px}.login-recovery button.link{min-height:44px}}
