/*
 * Production integration for the owner-supplied staff interface.
 * The preceding attached-interface.css is an exact extraction of the supplied HTML stylesheet.
 * These rules bind its visual language to the authenticated, tenant-scoped portal DOM.
 */

:root {
  --ink: #191919;
  --muted: #626262;
  --line: #d9d5cf;
  --line-strong: #bbb5ac;
  --paper: #fff;
  --canvas: #f4f3f0;
  --rail: #1c2024;
  --rail-2: #272c31;
  --brand: #c8102e;
  --brand-dark: #8f0b22;
  --accent: #ef7d00;
  --accent-dark: #8f0b22;
  --amber: #8a4b08;
  --red: #a40e26;
  --green: #216e39;
  --blue: #145b78;
  --radius: 16px;
  --rail-w: 276px;
  --j7-auth-canvas: #f4f3f0;
  --j7-auth-panel: #1c2024;
  --j7-auth-panel-2: #272c31;
  --j7-auth-brand: #c8102e;
  --j7-auth-accent: #ef7d00;
  --j7-auth-ink: #191919;
  --j7-auth-muted: #626262;
  --j7-auth-line: #d9d5cf;
  --j7-auth-paper: #fff;
  --j7-colour-ink: var(--ink);
  --j7-colour-ink-soft: #3b3b3b;
  --j7-colour-brand: var(--brand);
  --j7-colour-accent: var(--accent);
  --j7-colour-canvas: var(--canvas);
  --j7-colour-surface: var(--paper);
  --j7-colour-surface-muted: #fafbfb;
  --j7-colour-line: var(--line);
  --j7-colour-muted: var(--muted);
  --j7-colour-success: var(--green);
  --j7-colour-warning: var(--amber);
  --j7-colour-error: var(--red);
  --j7-colour-focus: var(--brand);
  --j7-font-body: Inter, "Segoe UI", Arial, sans-serif;
  --j7-radius-sm: 8px;
  --j7-radius-md: 11px;
  --j7-radius-lg: 14px;
  --j7-shadow-card: 0 1px 0 rgba(18,29,40,.02);
}

body { overflow-x: hidden; background: var(--j7-auth-canvas); }

.j7-auth-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: min(720px, calc(100vh - 96px));
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(320px,.72fr);
  align-items: stretch;
  margin: 48px auto 28px;
  overflow: hidden;
  border: 1px solid var(--j7-auth-line);
  border-radius: 22px;
  background: var(--j7-auth-paper);
  box-shadow: 0 24px 70px rgba(25,25,25,.16);
}
.j7-auth-brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  padding: clamp(34px,6vw,72px);
  color: #fff;
  background: linear-gradient(145deg,var(--j7-auth-panel),var(--j7-auth-panel-2));
}
.j7-auth-brand__identity { display: flex; align-items: center; }
.j7-auth-logo { display: block; width: min(100%,252px); height: auto; object-fit: contain; }
.j7-auth-brand__copy { max-width: 560px; }
.j7-auth-brand__copy h1 { margin: 0 0 16px; color: #fff; font-size: clamp(34px,5vw,56px); line-height: 1.02; letter-spacing: -.04em; }
.j7-auth-brand__copy p:last-child { max-width: 520px; margin: 0; color: #c8cdd0; font-size: 14px; line-height: 1.65; }
.j7-auth-brand__footer { margin: 0; color: #969ea3; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.j7-auth-eyebrow { margin: 0 0 10px; color: var(--j7-auth-brand); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.j7-auth-brand .j7-auth-eyebrow { color: #ffb064; }
.j7-auth-card { align-self: center; display: grid; gap: 17px; margin: clamp(28px,5vw,58px); padding: 0; border: 0; background: #fff; box-shadow: none; }
.j7-auth-card h2 { margin: 0; color: var(--j7-auth-ink); font-size: 30px; letter-spacing: -.025em; }
.j7-auth-card > p:not(.j7-auth-eyebrow):not(.staff-auth-message) { margin: -7px 0 5px; color: var(--j7-auth-muted); font-size: 13px; line-height: 1.55; }
.j7-auth-card .j7-button { width: 100%; background: var(--j7-auth-brand); border-color: var(--j7-auth-brand); }
.j7-auth-card .j7-button:hover { background: #8f0b22; border-color: #8f0b22; }
.j7-auth-card .auth-recovery-button { margin-top: -8px; }
.j7-auth-card .j7-auth-security-copy { margin: -5px 0 0 !important; font-size: 11px !important; line-height: 1.5 !important; }
.staff-auth-message[data-tone="neutral"] { color: var(--j7-auth-muted); }
.staff-auth-message[data-tone="success"] { color: var(--j7-colour-success); }

[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
body.portal-authenticated .staff-header,
body.portal-authenticated .staff-footer { display: none; }

.workflow-choice:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.new-work-guidance {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  color: #62421f;
  background: #fff8f0;
  font-size: 11px;
  line-height: 1.55;
}

.queue-row {
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  color: inherit;
  background: #fff;
  text-align: left;
}
.staff-promise-row {
  width: 100%;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}
.staff-promise-row:hover,
.staff-promise-row:focus-visible { background: #fffaf5; outline: 2px solid rgba(232,117,18,.28); outline-offset: 2px; }
.alert-band.is-clear { border-color: #bcdcc8; background: #f3faf5; }
.alert-band.is-clear .alert-dot { background: var(--green); }

#staff-portal.staff-shell { width: 100%; margin: 0; padding: 0; gap: 0; grid-template-areas: none; }
.staff-shell .sidebar { background: #1c2024; }
.staff-shell .app-main { grid-column: 2; min-width: 0; }
.staff-shell #staff-main { min-width: 0; }
.staff-shell .staff-navigation { grid-area: auto; height: 100vh; height: 100dvh; min-height: 0; gap: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px; border-radius: 0; scrollbar-width: thin; }
.staff-shell .staff-navigation > * { flex-shrink: 0; }
.staff-shell .brand-lockup { display: grid; align-items: start; justify-items: start; gap: 12px; padding: 6px 8px 18px; }
.staff-shell .brand-lockup .brand-mark { display: inline-flex; width: fit-content; height: auto; border: 0; border-radius: 0; color: #fff; background: transparent; text-decoration: none; }
.staff-shell .brand-lockup .brand-logo { display: block; width: 164px; max-width: 100%; height: auto; max-height: none; object-fit: contain; object-position: left center; }
.staff-shell .brand-symbol { flex: 0 0 45px; width: 45px; height: 45px; border: 0; border-radius: 10px 3px 10px 3px; color: #fff; background: var(--brand); font-size: 19px; box-shadow: inset -8px -8px 20px rgba(0,0,0,.08); }
.staff-shell .brand-lockup .brand-copy { display: grid; min-width: 0; line-height: 1; }
.staff-shell .brand-lockup .brand-copy strong { color: #fff; font-size: 20px; letter-spacing: .14em; }
.staff-shell .brand-lockup .brand-copy > span { margin-top: 6px; color: #aeb4b8; font-size: 10px; letter-spacing: .035em; text-transform: none; }
.staff-shell .brand-lockup .surface-badge { justify-self: start; margin-top: 0; padding: 6px 9px; border: 1px solid rgba(239,125,0,.52); border-radius: 999px; color: #ffd2a7; font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.staff-shell .nav-section-title--inline { display: block; width: auto; margin: 18px 10px 8px; }
.staff-shell .user-mini .avatar { display: grid; margin-top: 0; }
.staff-drawer-close { display: none; }
body.staff-drawer-open { overflow: hidden; }
.staff-shell .staff-navigation__item { min-height: 43px; padding: 9px 11px; }
.staff-shell .staff-navigation__item[aria-current="page"] { color: #fff; background: #2a3035; box-shadow: inset 3px 0 var(--accent); }
.staff-shell .staff-navigation__item[aria-current="page"] .nav-icon { color: #ff9c45; }
.sidebar-assist {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 10px;
  width: calc(100% - 16px);
  margin: auto 8px 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: #aeb4b8;
  background: rgba(255,255,255,.035);
  text-align: left;
}
.sidebar-assist:disabled { cursor: not-allowed; opacity: .76; }
.sidebar-assist .assist-orb { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-size: 11px; font-weight: 900; }
.sidebar-assist > span:last-child { display: grid; min-width: 0; }
.sidebar-assist strong { color: #fff; font-size: 11px; }
.sidebar-assist small { margin-top: 3px; color: #929a9f; font-size: 9px; }
.staff-navigation__context { display: grid; gap: 3px; margin-top: 0; padding: 13px 8px; border-top: 1px solid #2c3338; color: #fff; }
.staff-navigation__context small { color: #8f9aa3; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.staff-navigation__context strong { overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-footer { margin-top: 0; }
.sidebar-sign-out { width: 100%; margin-top: 12px; padding: 8px 10px; border: 1px solid #384149; border-radius: 8px; color: #cbd2d7; background: transparent; font-size: 11px; text-align: left; }
.sidebar-sign-out:hover,
.sidebar-sign-out:focus-visible { border-color: #697680; color: #fff; outline: 0; background: #252c31; }
.top-actions .primary-button { display: inline-flex; align-items: center; gap: 7px; }
.primary-button { border-color: var(--brand); background: var(--brand); box-shadow: 0 6px 16px rgba(200,16,46,.16); }
.primary-button:hover { border-color: var(--brand-dark); background: var(--brand-dark); }
.icon-button:disabled { cursor: default; opacity: .48; }
.global-search.staff-search { display: block; }
.global-search .staff-search-results { top: calc(100% + 8px); }

.staff-view.page { max-width: 1660px; min-width: 0; margin: 0 auto; padding: clamp(22px,3.5vw,44px); }
.staff-view:focus-visible { outline: 0; }
#attention-focus { max-width: calc(1660px - 88px); margin: 24px auto 0; }

.j7-card,
.staff-login-form,
.staff-state--loading,
.staff-state--ready,
.staff-state--empty,
.staff-state--error,
.staff-state--success,
.staff-state--denied { border-color: var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 0 rgba(18,29,40,.02); }
.j7-card { padding: 20px; }
.j7-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid var(--brand); border-radius: 9px; color: #fff; background: var(--brand); font-weight: 750; }
.j7-button:hover:not([disabled]):not([aria-disabled="true"]) { border-color: var(--brand-dark); background: var(--brand-dark); }
.j7-button:active:not([disabled]):not([aria-disabled="true"]) { background: var(--brand-dark); }
.j7-button--secondary { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.j7-button--secondary:hover:not([disabled]):not([aria-disabled="true"]) { border-color: #8f9ba4; background: #fff; }
.j7-input,
.j7-select,
.j7-field textarea { min-height: 40px; border-color: var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; }
.j7-input:focus-visible,
.j7-select:focus-visible,
.j7-field textarea:focus-visible { border-color: #e0924b; outline: 0; box-shadow: 0 0 0 3px rgba(232,117,18,.11); }
.j7-field { gap: 6px; color: #53606a; font-size: 11px; font-weight: 750; }
.j7-auth-card.staff-login-form { margin: clamp(28px,5vw,58px); padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; }

.staff-view > .staff-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.staff-view > .staff-section-heading h2 { margin: 0 0 7px; color: var(--ink); font-size: clamp(27px,3vw,38px); line-height: 1.1; letter-spacing: -.035em; }
.staff-view > .staff-section-heading .staff-kicker { margin: 0 0 8px; color: var(--accent-dark); font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.staff-view > p { max-width: 760px; color: var(--muted); line-height: 1.6; }
.staff-section-heading { gap: 14px; }
.staff-section-heading h3,
.staff-section-heading h4,
.staff-section-heading h5 { margin: 0; color: var(--ink); }
.staff-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.staff-kicker { color: var(--accent-dark); font-size: 10px; font-weight: 850; letter-spacing: .12em; }

.staff-summary-strip { grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0 0 18px; border-color: var(--line); border-radius: var(--radius); box-shadow: none; }
.staff-summary-item { min-height: 96px; padding: 20px; border-color: var(--line); }
.staff-summary-item::before { display: none; }
.staff-summary-item span { order: 2; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.staff-summary-item strong { order: 1; margin-bottom: 4px; color: var(--ink); font-size: 26px; }
.staff-estate { border-color: var(--line); border-radius: var(--radius); box-shadow: none; }
.staff-estate__head { padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.staff-estate__coverage-bar { background: var(--line); }
.staff-estate__coverage-bar span { background: var(--accent); }
.staff-estate__workspace { border-color: var(--line); }
.staff-estate__directory { background: var(--line); }
.staff-estate-premises { min-height: 0; padding: 14px 15px; }
.staff-estate-premises:hover,
.staff-estate-premises:focus-visible { background: #fffaf5; outline-color: var(--accent); }
.staff-estate-premises[aria-current="true"] { background: #fff5eb; box-shadow: inset 3px 0 var(--accent); }
.staff-estate-premises[aria-current="true"] .staff-estate-premises__index { border-color: var(--accent); background: var(--accent); }
.staff-estate__focus { background: #20262b; }
.staff-attention-list { gap: 10px; }
.staff-attention-item { padding: 16px 20px; border-color: var(--line); border-left-color: var(--accent); border-radius: 11px; background: #fff; }
.staff-attention-summary,
.staff-attention-meta { color: var(--muted); }

.staff-search-results { border-color: var(--line); border-radius: 11px; box-shadow: var(--shadow); }
.staff-search-result { border-color: var(--line); color: var(--ink); }
.staff-search-result:hover,
.staff-search-result:focus-visible { background: #fffaf5; }
.staff-search-result[role="option"][aria-selected="true"] { background: #fffaf5; outline: 2px solid var(--brand); outline-offset: -2px; }

.staff-client-workspace { gap: 18px; }
.staff-client-register-tools { grid-template-columns: 1fr; }
.staff-client-register-tools .field:first-child { grid-column: auto; }
.staff-client-list__item { width: 100%; border-top: 0; border-right: 0; border-left: 0; color: inherit; background: #fff; text-align: left; }
.staff-client-list__item,
.staff-client-premises__item,
.staff-premises-overview-card,
.staff-account-card,
.staff-action-card,
.staff-evidence-card { border-color: var(--line); border-radius: 11px; box-shadow: none; }
.staff-client-list__item:hover,
.staff-client-list__item:focus-visible { border-left-color: var(--accent); outline-color: rgba(232,117,18,.35); }
.staff-client-list__item[aria-current="true"] { border-left-color: var(--accent); background: #fff5eb; }
.staff-client-detail { margin-top: 18px; }
.staff-client-position { border-color: var(--line); background: #fafbfb; }
.staff-client-position div { border-color: var(--line); }
.staff-client-portfolio__item { border-color: var(--line); background: #fafbfb; }
.staff-client-relationship { border-color: var(--line); }
.staff-client-relationship li { border-color: var(--accent); background: #fafbfb; }

.staff-context.staff-premises-index { overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.staff-premises-index > .staff-section-heading { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.staff-premises-index > .j7-field { padding: 16px 18px 0; }
.staff-premises-index > .j7-input { width: calc(100% - 36px); margin: 0 18px 16px; }
.staff-premises-directory { display: block; }
.staff-premises-table { width: 100%; min-width: 1380px; border-collapse: collapse; }
.staff-premises-table th { padding: 11px 15px; border-bottom: 1px solid var(--line-strong); color: #6b7780; background: #f8f9fa; font-size: 10px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.staff-premises-table td { padding: 14px 15px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 12px; vertical-align: middle; }
.staff-premises-table tbody tr { cursor: pointer; }
.staff-premises-table tbody tr:hover { background: #fffaf5; }
.staff-premises-table tbody tr[aria-current="true"] { background: #fff5eb; box-shadow: inset 3px 0 var(--accent); }
.staff-premises-table tbody tr:last-child td { border-bottom: 0; }
.staff-premises-table button { width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.staff-premises-table .premises-name { display: block; font-size: 13px; font-weight: 800; }
.staff-premises-table .premises-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.staff-premises-table-wrap { overflow-x: auto; }
.staff-premises-index .register-tools { border-bottom: 1px solid var(--line); }
.staff-premises-index .saved-views { border-bottom: 1px solid var(--line); }
.staff-premises-index .pager { border-top: 1px solid var(--line); }

#service-position { overflow: visible; margin-top: 22px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.staff-premises-workspace__header { position: relative; overflow: hidden; padding: 24px clamp(20px,3vw,34px); border: 1px solid #353a3e; border-radius: 18px; color: #fff; background: #1e2226; box-shadow: var(--shadow); }
.staff-premises-workspace__header::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 250px; height: 250px; border: 42px solid rgba(200,16,46,.13); border-radius: 50%; }
.staff-premises-workspace__identity { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.staff-premises-workspace__identity h3 { margin: 0 0 7px; color: #fff; font-size: clamp(25px,3vw,36px); letter-spacing: -.035em; }
.staff-premises-workspace__identity p { margin: 0; color: #bfc5c9; font-size: 11px; }
.staff-premises-workspace__identity .eyebrow { color: #ffb064; }
.staff-premises-workspace__identity .j7-data-list { display: grid; grid-template-columns: repeat(2,minmax(110px,1fr)); min-width: min(480px,45%); margin: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.08); box-shadow: none; }
.staff-premises-workspace__identity .j7-data-list div { padding: 12px 14px; border: 0; border-right: 1px solid rgba(255,255,255,.1); background: rgba(10,12,14,.38); }
.staff-premises-workspace__identity .j7-data-list div:last-child { border-right: 0; }
.staff-premises-workspace__identity dt { margin-bottom: 5px; color: #9da5aa; font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.staff-premises-workspace__identity dd { margin: 0; color: #fff; font-size: 11px; font-weight: 700; }
.staff-premises-workspace__header .workspace-back { position: relative; z-index: 2; margin: 0 0 17px; padding: 0; border: 0; color: #ffb064; background: transparent; font-size: 10px; font-weight: 750; }
.staff-premises-navigation { display: flex; gap: 2px; margin-top: 22px; overflow-x: auto; padding: 0; border: 0; }
.staff-premises-navigation .j7-button { flex: 0 0 auto; min-height: 45px; padding: 0 13px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--muted); background: transparent; font-size: 11px; font-weight: 750; white-space: nowrap; }
.staff-premises-navigation .j7-button:hover { border-color: transparent; color: var(--ink); background: transparent; }
.staff-premises-navigation .j7-button[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }
#service-position > .staff-premises-navigation { position: sticky; z-index: 35; top: calc(var(--topbar-height,64px) + 12px); gap: 2px; margin: 14px 0; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); }
#service-position > .staff-premises-navigation .j7-button { min-height: 38px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; }
#service-position > .staff-premises-navigation .j7-button[aria-current="page"] { border-color: var(--rail); color: #fff; background: var(--rail); }
.staff-premises-workspace__panel { margin: 0; padding: clamp(20px,3vw,34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--canvas); }
.staff-premises-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.staff-premises-overview-card { padding: 18px 20px; border-top: 1px solid var(--line); background: #fff; }
.staff-premises-overview-card .staff-kicker { color: var(--accent-dark); }
.staff-premises-profile { display: grid; grid-template-columns: minmax(220px,.65fr) minmax(0,1.35fr); gap: 26px; margin-bottom: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.staff-premises-profile h5 { margin: 0 0 6px; font-size: 18px; }
.staff-premises-profile p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.staff-premises-profile .j7-data-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; }
.staff-professional-profile { display: grid; gap: 18px; margin-bottom: 20px; }
.staff-professional-profile__heading { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.staff-professional-profile__heading h5,
.staff-professional-profile__heading p { margin: 0; }
.staff-professional-profile__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.staff-professional-profile__group,
.staff-professional-profile__scope { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.staff-professional-profile__group h6,
.staff-professional-profile__scope h6 { margin: 0 0 10px; }
.staff-professional-profile__scope-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.staff-professional-profile__list { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.staff-professional-profile__list ul { margin: 0; padding-left: 18px; }
.staff-professional-profile__list li { margin: 5px 0; }
.staff-professional-profile__limitation { margin-top: 12px; padding: 0 14px; border-left: 3px solid var(--accent); background: #fff8ee; }
.staff-structured-register { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.staff-structured-table { width: 100%; min-width: 940px; border-collapse: collapse; }
.staff-structured-table th { padding: 11px 14px; border-bottom: 1px solid var(--line-strong); color: var(--muted); background: #f8f7f5; font-size: 9px; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.staff-structured-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 11px; vertical-align: middle; }
.staff-structured-table tbody tr:last-child td { border-bottom: 0; }
.staff-structured-table .j7-button { white-space: nowrap; }
.staff-record-reminders { margin-top: 24px; }
.compact-card:disabled,
button[data-new-work]:disabled,
button[data-administration-workspace]:disabled { cursor: not-allowed; opacity: .58; filter: grayscale(.2); }

.staff-premises-bar { overflow: hidden; margin: 18px 0; padding: 0; border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--radius); }
.staff-premises-bar__identity { padding: 18px 20px 0; }
.staff-premises-bar .staff-premises-navigation { padding: 0 20px; }
.staff-form-grid { gap: 15px; }
.staff-estate-workflow { overflow: hidden; margin-bottom: 18px; border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.staff-estate-workflow > .panel-head { border-bottom: 1px solid var(--line); background: #fafbfb; }
.staff-estate-workflow .panel-body { padding: 20px; }
.staff-estate-workflow small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
#portfolio-import-preview { max-height: 440px; overflow: auto; border-top: 1px solid var(--line); }
#portfolio-import-preview .table-wrap { max-height: 330px; overflow: auto; }
#portfolio-import-preview .data-table { min-width: 900px; }
.staff-registration,
.staff-action-create,
.staff-information-create,
.staff-account-create,
.staff-preview-workspace .j7-card { margin-top: 18px; }
.staff-document-reader iframe { background: #737b80; }
.kanban-items { display: grid; gap: 10px; }
.kanban-column { min-height: 220px; }
.work-card { display: grid; gap: 6px; width: 100%; color: inherit; background: #fff; text-align: left; }
.work-card > span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.work-card > .secondary-button { justify-self: start; margin-top: 5px; }
.kanban-empty { display: grid; gap: 5px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 9px; color: var(--muted); background: #fafbfb; }
.kanban-empty strong { color: var(--ink); font-size: 11px; }
.kanban-empty span { font-size: 10px; }

.staff-document-table,
.staff-action-table,
.staff-evidence-table,
.staff-account-table { min-width: 980px; }
.staff-document-row .staff-document-actions,
.staff-table-controls,
td.staff-account-card__actions { min-width: 150px; vertical-align: top; }
.staff-document-row .staff-document-actions { margin-top: 0; }
.staff-table-controls .staff-release-action-form,
td.staff-account-card__actions .staff-account-operation { min-width: 300px; margin-top: 10px; }
.staff-action-card__details { max-width: 470px; }
.staff-action-card__details .j7-data-list { margin-top: 8px; }
.staff-action-card__summary { display: block; }
td.staff-account-card__actions { display: table-cell; padding: 14px 15px; }
td.staff-account-card__actions > button { display: flex; width: 100%; margin-bottom: 6px; }
td.staff-account-card__actions .staff-account-operation { display: grid; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff8f1; }
.staff-account-history { margin-top: 8px; }
.staff-account-history ol { max-height: 180px; overflow-y: auto; padding-left: 18px; }
.staff-account-history-empty { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.compact-cards { margin-bottom: 22px; }

.staff-footer { border-color: var(--line); background: #fff; color: var(--muted); }

@media (max-width: 980px) {
  .staff-shell .sidebar { transform: translateX(-105%); transition: transform .22s ease; }
  .staff-shell .sidebar.is-open { transform: translateX(0); }
  .staff-shell { grid-template-columns: 1fr; }
  .staff-shell .app-main { grid-column: 1; }
  .staff-shell .topbar { grid-template-columns: auto minmax(0,1fr) auto; }
  .staff-shell .mobile-menu { display: grid; }
  .staff-drawer-close { position: absolute; top: 18px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #697680; border-radius: 8px; color: #fff; background: #272c31; font-size: 24px; line-height: 1; }
  .mobile-drawer-backdrop { position: fixed; z-index: 40; inset: 0; display: block; border: 0; background: rgba(8,13,17,.45); }
  .staff-premises-workspace__identity { display: grid; }
  .staff-premises-workspace__identity .j7-data-list { width: 100%; min-width: 0; }
  .staff-premises-profile { grid-template-columns: 1fr; }
  .staff-professional-profile__grid,
  .staff-professional-profile__scope-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .staff-shell .topbar { gap: 8px; padding: 10px 12px; }
  .staff-shell .key-hint,
  .staff-shell .top-actions .icon-button { display: none; }
  .staff-shell .global-search input { padding-right: 12px; }
  .staff-shell .top-actions .primary-button { min-width: 40px; padding: 0 10px; font-size: 0; }
  .staff-shell .top-actions .primary-button svg { width: 18px; height: 18px; }
  .staff-view.page { padding: 20px 14px 28px; }
  .page-head,
  .staff-view > .staff-section-heading { display: grid; }
  .staff-summary-strip,
  .staff-premises-overview-grid,
  .staff-context-grid,
  .staff-form-grid { grid-template-columns: 1fr; }
  .staff-premises-workspace__identity .j7-data-list { grid-template-columns: 1fr; }
  .staff-premises-workspace__identity .j7-data-list div { border-right: 0; border-bottom: 1px solid var(--line); }
  .staff-premises-workspace__identity .j7-data-list div:last-child { border-bottom: 0; }
  .staff-premises-profile .j7-data-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .j7-auth-shell { width: min(100% - 20px, 620px); min-height: 0; grid-template-columns: 1fr; margin: 10px auto 24px; border-radius: 16px; }
  .j7-auth-brand { gap: 32px; padding: 28px 24px; }
  .j7-auth-brand__copy h1 { font-size: clamp(30px,10vw,42px); }
  .j7-auth-card.staff-login-form { width: auto; margin: 30px 24px 36px; }
}
