/* Shared task-oriented workspace. Inspired by NIYA's clear navigation and calm
   content surfaces;
every state keeps a text label and visible keyboard focus. */
:root {
  --accent:#0a7086;
  --line:#dce5eb;
  --muted:#536577;
  --error:#ab2f39;
  --focus:#b27716;
  --navy:#083d50;
  --canvas:#f0f5f8;
  --ink:#172f43;
  color:var(--ink);
  background:var(--canvas);
  font-size:15px
}
body {
  line-height:1.5
}
a {
  color:#086474
}
a:hover {
  color:#034b58
}
button,.button {
  border-radius:8px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:14px;
  padding:11px 17px
}
button:hover,.button:hover {
  background:#07515c;
  color:white
}
.secondary {
  background:white;
  color:var(--accent);
  border-color:#c7d6df
}
.secondary:hover {
  background:#eaf3f5;
  color:#064e59
}
.text-button:hover {
  background:transparent;
  color:inherit
}
button:disabled {
  opacity:.6;
  cursor:not-allowed
}
.shell {
  grid-template-columns:238px minmax(0,1fr);
  align-items:stretch
}
.sidebar {
  position:sticky;
  top:0;
  height:100vh;
  overflow-y:auto;
  background:var(--navy);
  color:#e4edf3;
  border:0;
  padding:24px 14px 18px;
  gap:20px
}
.wordmark {
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 9px;
  color:#fff;
  font-size:18px;
  letter-spacing:-.02em;
  white-space:nowrap
}
.wordmark:hover {
  color:white
}
.wordmark small {
  font-size:11px;
  letter-spacing:.025em;
  color:#b8cbd8;
  font-weight:450;
  margin-top:5px
}
.brand-symbol {
  width:35px;
  height:40px;
  color:#75d4cb;
  display:grid;
  place-items:center
}
.brand-symbol .ui-icon {
  width:34px;
  height:34px
}
.ui-icon {
  width:20px;
  height:20px;
  flex:none;
  vertical-align:middle
}
.sidebar details {
  margin:0
}
.sidebar .mobile-menu>summary {
  display:none
}
.sidebar nav {
  display:grid;
  gap:15px
}
.nav-group {
  display:grid;
  gap:4px
}
.sidebar .nav-label {
  font-size:10px;
  font-weight:650;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:#afc5d4;
  padding:0 13px;
  margin:0 0 5px;
  line-height:1.5
}
.sidebar nav a {
  color:#d9e6ef;
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 13px;
  border-radius:7px;
  font-size:13px;
  font-weight:500;
  line-height:1.45;
  min-height:44px
}
.sidebar nav a:hover {
  background:#203e55;
  color:white
}
.sidebar nav a[aria-current=page] {
  background:#24546a;
  color:#fff
}
.sidebar nav a[aria-current=page] .ui-icon {
  color:#88e1d4
}
.company-context {
  display:grid;
  gap:4px;
  margin:0 8px 2px;
  padding:14px 10px 17px;
  border-bottom:1px solid #355064
}
.company-context>span {
  font-size:11px;
  color:#b7cedb
}
.company-context>strong {
  font-size:14px;
  overflow-wrap:anywhere
}
.sidebar .company-context a {
  padding:2px 0;
  min-height:24px;
  color:#a8dfdf;
  font-size:11px;
  text-decoration:underline
}
.account {
  border-top:1px solid #355064;
  padding:18px 8px 0;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:10px;
  font-size:12px
}
.account-avatar {
  width:34px;
  height:34px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:#2b4c62;
  color:white;
  font-size:15px
}
.account>div {
  display:grid;
  gap:2px
}
.account span {
  color:#bfced9;
  font-size:11px
}
.account .account-avatar {
  font-size:15px;
  color:white
}
.account form {
  grid-column:2
}
.account .text-button {
  color:#d9e6ef;
  font-size:12px;
  min-height:30px;
  padding:0
}
.workspace-body {
  display:flex;
  flex-direction:column;
  min-width:0
}
.topbar {
  min-height:72px;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:16px 38px
}
.breadcrumb {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:13px;
  color:var(--muted);
  font-size:13px;
  overflow-wrap:anywhere
}
.breadcrumb strong {
  font-weight:550;
  color:var(--ink)
}
.help-link {
  font-size:12px;
  display:flex;
  align-items:center;
  gap:7px;
  text-decoration:none;
  white-space:nowrap
}
.help-link .ui-icon {
  width:17px;
  height:17px
}
main {
  padding:28px 32px 48px;
  max-width:1600px;
  min-width:0;
  flex:1
}
h1 {
  font-size:28px;
  font-weight:650;
  letter-spacing:-.025em;
  margin-bottom:9px
}
h2 {
  font-size:17px;
  font-weight:650;
  line-height:1.4
}
h3 {
  font-size:15px;
  font-weight:650
}
p {
  line-height:1.65
}
header p,.intro {
  color:var(--muted);
  font-size:14px
}
.page-header {
  margin-bottom:27px;
  align-items:center
}
.page-header .intro {
  margin:0;
  max-width:75ch
}
.home-layout {
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);
  gap:25px;
  align-items:start
}
.dashboard-panel,.settings-card,.getting-started {
  background:white;
  border:1px solid var(--line);
  border-radius:12px;
  padding:25px;
  margin:0 0 24px;
  min-width:0
}
.dashboard-panel h2,.settings-card h2,.getting-started h2 {
  margin-bottom:14px
}
.dashboard-panel section {
  padding-bottom:24px
}
.getting-started {
  background:#eaf2f5;
  border:0;
  padding:26px
}
.getting-started>a {
  font-weight:600;
  font-size:13px
}
.getting-started .helper {
  font-size:12px
}
.action-list {
  display:grid
}
.action-row {
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  padding:18px 0;
  border-top:1px solid #e6ecf0;
  min-width:0
}
.action-row>span:not(.action-icon):not(.action-arrow) {
  flex:1;
  min-width:0
}
.action-row strong {
  color:var(--ink);
  font-size:14px;
  font-weight:600
}
.action-row small {
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
  font-weight:400;
  line-height:1.6
}
.action-row:hover strong {
  color:var(--accent);
  text-decoration:underline
}
.action-row:hover .action-icon {
  background:#d9edf0
}
.action-icon {
  width:38px;
  height:38px;
  border-radius:9px;
  background:#edf5f6;
  color:var(--accent);
  display:grid;
  place-items:center;
  flex:none
}
.action-arrow {
  margin-left:auto;
  color:#6e8391
}
.workflow-steps {
  list-style:none;
  counter-reset:steps;
  display:grid;
  gap:22px;
  padding:4px 0;
  margin:19px 0 25px
}
.workflow-steps li {
  counter-increment:steps;
  position:relative;
  padding-left:35px;
  font-size:13px
}
.workflow-steps li:before {
  content:counter(steps);
  position:absolute;
  left:0;
  top:0;
  width:24px;
  height:24px;
  border-radius:50%;
  border:1px solid #bacfd9;
  color:#205265;
  font-weight:600;
  display:grid;
  place-items:center;
  font-size:11px
}
.workflow-steps li p {
  font-size:12px;
  color:#536577;
  margin:6px 0 0
}
.settings-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
  align-items:start
}
.settings-card {
  margin:0
}
.settings-grid>.settings-card:last-child:nth-child(odd) {
  grid-column:1/-1
}
.settings-card .action-row {
  padding:19px 0
}
.settings-grid .dashboard-panel {
  margin:0
}
.directory-group {
  min-width:0
}
.directory-group h2 {
  margin-top:15px
}
.workspace-list {
  margin:0
}
.workspace-list li {
  padding:19px 0;
  flex-wrap:wrap
}
.workspace-list li:last-child {
  border-bottom:0
}
.workspace-list li .button {
  font-size:12px
}
.record-list>li {
  padding:20px 0
}
.record-list h2,.record-list h3 {
  margin:0
}
.record-list>li>span {
  font-size:13px;
  color:var(--muted)
}
.record-list>li>span.notice {
  color:#245369
}
.record-list a {
  font-weight:550
}
.empty {
  background:#f5f9fa;
  border:1px dashed #bdced8;
  border-radius:9px;
  padding:24px
}
.empty p {
  font-size:13px
}
.empty-inline {
  border-radius:7px;
  background:#eef4f6
}
.notice {
  background:#edf5f8;
  border-color:#c8dfe9;
  color:#274e64;
  border-radius:8px;
  font-size:13px;
  padding:15px 18px
}
.entry-banner {
  background:#fff6e5;
  border-bottom:1px solid #ecdbb6;
  padding:13px 38px;
  color:#664819;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  font-size:12px
}
.entry-banner small {
  color:#765b29;
  font-size:11px;
  margin-top:3px
}
.entry-banner button {
  font-size:12px;
  min-height:36px
}
.section-nav {
  gap:5px;
  border-bottom:1px solid var(--line);
  padding:0 0 13px;
  margin:20px 0
}
.section-nav>a {
  padding:9px 13px;
  text-decoration:none;
  font-size:13px;
  border-radius:6px;
  min-height:40px
}
.section-nav>a:hover {
  background:#e6eff3
}
.section-nav>a[aria-current=page] {
  background:#e2eff2;
  color:#075363;
  font-weight:650
}
.back-link {
  font-size:12px;
  margin-bottom:14px
}
.helper,.helptext,.scope-note {
  font-size:12px;
  color:var(--muted)
}
section {
  margin-top:28px
}
.dashboard-panel section {
  background:none;
  border-radius:0
}
.access-details {
  margin-top:28px
}
.access-details[open] {
  background:white;
  border:1px solid var(--line);
  padding:0 24px 20px;
  border-radius:9px
}
.dashboard-panel>summary {
  font-size:15px;
  color:var(--ink);
  padding:0
}
.dashboard-panel[open]>summary {
  padding-bottom:15px;
  border-bottom:1px solid var(--line);
  margin-bottom:16px
}
.stack {
  gap:17px
}
.stack>div {
  gap:7px
}
.stack input,.stack select {
  max-width:100%
}
.stack fieldset {
  min-width:0;
  border:1px solid var(--line);
  border-radius:7px;
  padding:17px
}
.stack label {
  font-size:13px;
  line-height:1.5
}
input:not([type=checkbox]):not([type=hidden]),select,textarea {
  border-color:#afbfcb;
  border-radius:7px;
  min-height:44px;
  padding:10px 12px;
  color:var(--ink);
  font-size:14px
}
input::placeholder {
  color:#5e7181
}
input[type=checkbox] {
  width:19px;
  height:19px
}
input:focus,select:focus,textarea:focus {
  border-color:var(--accent)
}
.errorlist {
  border-radius:7px;
  font-size:13px
}
.form-columns {
  gap:28px
}
table {
  font-size:13px
}
th {
  background:#edf3f7;
  color:#40586b;
  font-size:11px;
  padding:13px 17px
}
td {
  padding:16px 17px
}
tbody tr:hover {
  background:#f7fafc
}
td a {
  display:inline-block;
  margin:3px 7px 3px 0
}
.table-scroll {
  border-radius:9px
}
.workflow-guide {
  list-style:decimal;
  padding-left:26px;
  max-width:850px
}
.workflow-guide li {
  padding:18px 0 22px 14px;
  border-bottom:1px solid var(--line)
}
.workflow-guide li::marker {
  font-size:14px;
  color:var(--accent);
  font-weight:650
}
.workflow-guide li h2 {
  margin:0 0 8px
}
.workflow-guide li p {
  font-size:14px;
  margin:0;
  color:var(--muted)
}
.workflow-guide+.dashboard-panel {
  margin-top:28px
}
.workspace-footer {
  padding:20px 38px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:var(--muted);
  font-size:11px
}
.auth-panel {
  margin:45px auto;
  padding:30px;
  background:white;
  border:1px solid var(--line);
  border-radius:12px
}
.auth-panel h1 {
  font-size:24px
}
.skip:focus {
  z-index:10;
  color:var(--ink)
}
:focus-visible {
  outline:3px solid #b87916;
  outline-offset:3px
}
::selection {
  background:#bee8e6;
  color:#123f48
}
code,table {
  font-variant-numeric:tabular-nums
}
.processing-record {
  padding-bottom:25px;
  margin-bottom:25px;
  border-bottom:1px solid var(--line)
}
@media(min-width:761px) {
  .mobile-menu:not([open])>nav {
    display:grid
  }
  .sidebar .mobile-menu>summary {
    display:none
  }
}
@media(max-width:1150px) {
  .shell {
    grid-template-columns:225px minmax(0,1fr)
  }
  .sidebar {
    padding-inline:12px
  }
  .wordmark {
    font-size:16px;
    gap:8px
  }
  .home-layout {
    grid-template-columns:minmax(0,1fr)
  }
  .getting-started {
    margin-bottom:0
  }
  .workflow-steps {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px
  }
  .topbar,.entry-banner {
    padding-inline:27px
  }
  main {
    padding:28px 27px 48px
  }
  .settings-grid {
    gap:20px
  }
  .dashboard-panel,.settings-card {
    padding:22px
  }
  .workspace-footer {
    padding-inline:27px
  }
}
@media(max-width:760px) {
  .shell {
    display:block
  }
  .sidebar {
    position:static;
    height:auto;
    overflow:visible;
    padding:17px 20px;
    gap:17px
  }
  .wordmark {
    font-size:18px
  }
  .brand-symbol {
    width:30px;
    height:30px
  }
  .wordmark small {
    font-size:10px
  }
  .sidebar .mobile-menu>summary {
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#203f55;
    border-radius:7px;
    color:white;
    padding:11px 13px;
    font-size:13px;
    list-style:none;
    margin:0
  }
  .sidebar .mobile-menu>summary::-webkit-details-marker {
    display:none
  }
  .sidebar .mobile-menu[open]>summary {
    margin-bottom:20px
  }
  .sidebar nav {
    display:grid;
    gap:20px
  }
  .sidebar .company-context a {
    display:block
  }
  .account {
    display:none
  }
  .sidebar:has(.mobile-menu[open]) .account {
    display:grid;
    margin-top:0
  }
  .topbar {
    min-height:56px;
    padding:14px 20px;
    gap:10px
  }
  .breadcrumb {
    font-size:11px;
    gap:8px
  }
  .help-link {
    font-size:11px
  }
  .help-link .ui-icon {
    display:none
  }
  main {
    padding:26px 20px 44px
  }
  h1 {
    font-size:24px;
    line-height:1.3
  }
  .page-header {
    display:flex;
    flex-wrap:wrap;
    gap:15px
  }
  .page-header .button {
    margin:0;
    white-space:normal;
    font-size:12px
  }
  .intro {
    font-size:13px
  }
  .home-layout,.settings-grid {
    grid-template-columns:minmax(0,1fr);
    gap:18px
  }
  .dashboard-panel,.settings-card,.getting-started {
    padding:20px;
    border-radius:10px;
    margin-bottom:18px
  }
  .settings-grid .dashboard-panel {
    margin:0
  }
  .settings-card:last-child {
    grid-column:auto
  }
  .workflow-steps {
    grid-template-columns:1fr;
    gap:19px
  }
  .action-row {
    padding:17px 0;
    gap:11px
  }
  .action-row strong {
    font-size:13px
  }
  .action-row small {
    font-size:12px
  }
  .entry-banner {
    padding:12px 20px;
    flex-wrap:wrap;
    gap:10px
  }
  .entry-banner button {
    min-height:36px
  }
  .section-nav {
    gap:3px
  }
  .section-nav>a {
    font-size:12px;
    padding:9px
  }
  .form-columns {
    grid-template-columns:1fr;
    gap:0
  }
  .workspace-footer {
    padding:18px 20px;
    flex-direction:column;
    gap:5px
  }
  .workspace-list li {
    padding:15px 0
  }
  .workspace-list li .button {
    width:100%
  }
  .workflow-guide {
    padding-left:20px
  }
  .workflow-guide li {
    padding-left:6px
  }
  .auth-panel {
    margin:0 auto;
    padding:23px
  }
  .table-scroll {
    max-width:100%;
    overflow:auto
  }
  .permission-list {
    columns:1
  }
  .settings-grid>.settings-card:last-child:nth-child(odd) {
    grid-column:auto
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    transition:none!important;
    scroll-behavior:auto!important
  }
}

/* Related search controls stay together above the results. */
.filter-bar {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:end;
  gap:18px;
  padding:22px;
  background:white;
  border:1px solid var(--line);
  border-radius:10px;
  margin:22px 0;
}
.filter-bar>div { display:grid;gap:7px;min-width:0; }
.filter-bar label { font-size:12px; }
.filter-bar>.errorlist { grid-column:1/-1; }
.filter-bar .helper { margin:0; }
.filter-bar button { justify-self:start; }
@media(max-width:1050px) { .filter-bar {grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:760px) { .filter-bar {grid-template-columns:minmax(0,1fr);padding:18px;gap:15px;} }

/* Compact application chrome: daily work stays visible, administration stays
   separate. These controls use native links and disclosures with no JS need. */
.sidebar .company-context {margin:0 5px;padding:10px 8px 15px;}
.sidebar .company-context a {display:flex;gap:6px;align-items:center;}
.sidebar .company-context a .ui-icon {width:13px;height:13px;}
.sidebar nav {gap:14px;}
.sidebar .nav-group {gap:2px;}
.sidebar .nav-group>a {padding:10px 12px;}
.sidebar nav .nav-child {padding-left:26px;font-size:12px;}
.sidebar .nav-child .ui-icon {width:16px;height:16px;}
.sidebar nav a[aria-current=page] {background:#175b70;}
.platform-menu {border-top:1px solid #3c6170;padding-top:9px;}
.sidebar .platform-menu>summary {color:#c5dbe5;font-size:11px;padding:10px 12px;min-height:40px;}
.sidebar .platform-menu[open]>summary {margin-bottom:2px;}
.sidebar .platform-menu>a {font-size:12px;}
.company-badge {display:inline-flex;align-items:center;gap:7px;border:1px solid #d4e2e9;border-radius:6px;background:#f4f8fa;color:#37576a;font-size:11px;padding:5px 9px;max-width:36ch;overflow-wrap:anywhere;}
.company-badge .ui-icon {width:14px;height:14px;}
.breadcrumb strong {font-size:15px;font-weight:650;}
.topbar {padding:14px 32px;min-height:68px;}
.topbar-tools {display:flex;flex-wrap:wrap;align-items:center;gap:22px;}
.help-link {min-height:36px;}
.entry-banner {padding:10px 32px;font-size:11px;}
.entry-banner small {font-size:10px;}
.entry-banner button {min-height:34px;padding:7px 12px;}
.page-header {margin-bottom:24px;}
.page-header h1 {font-size:27px;}
.ai-setup {display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.5fr);gap:24px;align-items:start;}
.ai-setup>section {margin:0;}
.setup-step-heading {display:flex;gap:12px;align-items:center;margin-bottom:12px;}
.setup-step-heading>span {display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#e6f1f4;color:#07546a;font-size:13px;font-weight:650;flex:none;}
.setup-step-heading h2 {margin:0;}
.form-row-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.form-row-pair>div {display:grid;gap:7px;min-width:0;}
.field-help {font-size:12px;color:var(--muted);margin:0;}
.form-detail {border:1px solid var(--line);border-radius:8px;padding:0 15px;margin:0;}
.form-detail>summary {padding:12px 0;font-size:12px;}
.form-detail[open] {padding-bottom:17px;}
.form-detail[open]>summary {margin-bottom:10px;}
.form-detail .stack {gap:15px;}
.form-detail label:has(input[type=checkbox]) {display:flex;gap:9px;align-items:start;}
.form-detail input[type=checkbox] {flex:none;margin-top:2px;}
.ai-saved {border-top:1px solid var(--line);margin-top:24px;padding-top:20px;}
.ai-saved h3 {margin:0;}
.ai-saved .record-list {margin-bottom:0;}
.ai-saved .record-list>li {padding:12px 0;gap:3px;}
.ai-saved .record-list>li:last-child {border-bottom:0;}
.ai-status {display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 18px;font-size:12px;}
.ai-status strong {padding:4px 8px;border-radius:5px;background:#edf3f6;}
@media(max-width:1050px) {.ai-setup {grid-template-columns:minmax(0,1fr);}}
@media(max-width:760px) {
  .topbar {padding:12px 20px;align-items:flex-start;}
  .topbar-tools {gap:8px;justify-content:flex-end;}
  .company-badge {font-size:10px;padding:3px 6px;}
  .breadcrumb {gap:5px;}
  .breadcrumb strong {font-size:12px;}
  .topbar-tools .help-link {font-size:10px;min-height:24px;}
  .entry-banner {padding:10px 20px;}
  .entry-banner button {min-height:38px;}
  .page-header h1 {font-size:24px;}
  .ai-setup {gap:18px;}
  .form-row-pair {grid-template-columns:minmax(0,1fr);}
}
.document-workflow {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;border-block:1px solid var(--line);padding:18px 0;margin-bottom:24px;}
.document-workflow>span {display:grid;gap:4px;color:var(--muted);font-size:12px;}
.document-workflow strong {font-size:13px;color:var(--ink);}
.document-section>article {background:white;border:1px solid var(--line);border-radius:9px;padding:20px;margin:14px 0;}
.document-section>article h3 {margin-top:0;}
.profile-form fieldset {background:white;padding:24px;scroll-margin-top:20px;}
.profile-form legend {font-weight:650;color:var(--ink);font-size:16px;padding:0 7px;}
.stack.profile-form fieldset>.profile-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;}
.profile-fields>div {display:grid;gap:7px;align-content:start;min-width:0;}
.profile-fields>div:has(textarea) {grid-column:1/-1;}
.profile-fields .helper {margin:0;}
.bid-kit-form fieldset {min-width:0;}
.bid-kit-form input[type=file] {width:100%;min-width:0;}
.bid-kit-form button[type=submit] {justify-self:start;}
.bid-kit-gst-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 22px;margin-bottom:14px;}
.bid-kit-gst-row[hidden] {display:none;}
.bid-kit-gst-row button {justify-self:start;}
.bid-kit-mark {margin:18px 0 0;}
.bid-kit-mark img {display:block;max-width:100%;max-height:130px;object-fit:contain;}
.bid-kit-mark figcaption {margin-top:6px;}
.bid-kit-history {margin-top:24px;}
.bid-kit-drop {min-width:0;padding:10px;border:1px dashed var(--line);border-radius:8px;}
.bid-kit-drop.dragging {border-color:var(--teal);background:#f0f8fa;}
.bid-kit-preview {margin:16px 0 0;}
.bid-kit-preview canvas:not([hidden]) {display:block;width:min(100%, 300px);height:auto;margin-top:8px;border:1px solid var(--line);}
.report-layout {display:grid;grid-template-columns:minmax(250px,.7fr) minmax(0,1.5fr);gap:25px;align-items:start;}
.report-layout>section {margin:0;}
.report-layout .report-choice {background:white;border:1px solid var(--line);border-radius:12px;padding:24px;}
.report-layout .report-choice>h2 {margin-bottom:18px;}
.report-layout .report-choice .stack>p {margin:0;display:grid;gap:6px;}
@media(max-width:1050px) {.report-layout {grid-template-columns:minmax(0,1fr);}}
@media(max-width:760px) {
 .document-workflow {grid-template-columns:minmax(0,1fr);gap:14px;}
 .stack.profile-form fieldset>.profile-fields {grid-template-columns:minmax(0,1fr);}
 .bid-kit-gst-row {grid-template-columns:minmax(0,1fr);}
 .profile-form fieldset {padding:18px;}
}

.ai-setup {margin-bottom:24px;}
.register-actions {align-items:center;}
.register-actions>a.button {background:var(--accent);color:white;padding:11px 17px;}
.register-actions>a.button:hover {background:#07515c;}

.report-layout>div>section:first-child {margin-top:0;}
.badge {
  display:inline-block;
  margin-left:.35rem;
  padding:.1rem .5rem;
  border-radius:999px;
  background:#e3f0f3;
  color:var(--navy);
  font-size:.8rem;
  font-weight:650;
  vertical-align:middle
}
.checkbox-list {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:.4rem
}

/* Employees page: row actions stay compact and wrap on small screens. */
.inline-form { display:inline-flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 8px 8px 0; }
.inline-form select { width:auto; min-width:11rem; }
.visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
/* Settings pages: "Settings › page" breadcrumb and a "Back to settings" link (Phase 5). */
.breadcrumb .crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.breadcrumb .crumbs a{color:var(--muted);text-decoration:none}
.breadcrumb .crumbs a:hover,.breadcrumb .crumbs a:focus-visible{color:var(--accent);text-decoration:underline}
.settings-back{display:inline-flex;align-items:center;min-height:32px}

.employee-link input {width:100%;max-width:40rem;}
.employee-link [role="status"]:empty {display:none;}
.employee-role-cards {margin-top:8px;}
.company-table table {width:100%;table-layout:fixed;}
.company-table td {overflow-wrap:anywhere;}
.company-table select {max-width:100%;min-width:0;}
.company-table form {display:flex;flex-wrap:wrap;gap:6px;}
@media (max-width: 720px) {
  .company-table table, .company-table tbody, .company-table td {display:block;}
  .company-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
  .company-table tr {display:block;border:1px solid var(--line);border-radius:8px;padding:8px 12px;margin-bottom:8px;}
  .company-table td {border:0;padding:4px 0;}
}

@media (max-width: 720px) {
  .company-table {overflow:visible;}
  .company-table td[data-column]::before {content:attr(data-column);margin-right:.5rem;color:var(--muted);}
}
