:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  background: #f6f7f9;
  color: #1f2933;
}

body {
  margin: 0;
}

.site-compliance-footer {
  min-height: 46px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-top: 1px solid #dfe4e8;
  background: #f7f8f9;
  color: #63717c;
  font-size: 12px;
  text-align: center;
}

.site-compliance-footer a {
  color: #52636f;
  text-decoration: none;
}

.site-compliance-footer a:hover {
  color: #176b87;
  text-decoration: underline;
}

.page-brand-strip {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-bottom: 1px solid #d7e3db;
  background: #f4f8f5;
}

.page-brand-strip img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
}

.page-brand-strip div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.page-brand-strip strong {
  color: #173b2d;
  font-size: 14px;
  line-height: 1.45;
}

.page-brand-strip span {
  color: #18724f;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .page-brand-strip {
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  .page-brand-strip img {
    width: 34px;
    height: 34px;
  }

  .page-brand-strip strong {
    font-size: 12px;
  }

  .page-brand-strip span {
    font-size: 11px;
  }
}

.equipment-page-header { padding: 14px 18px; }
.equipment-page-header > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.equipment-page-header h1 { margin: 0; font-size: 25px; }
.equipment-count { color: #657482; font-size: 13px; }
.equipment-search-shell { padding: 14px 16px; margin-bottom: 10px; }
.equipment-search-shell .action-row { margin-top: 10px; font-size: 13px; }

.equipment-alert-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  padding: 10px 16px;
  border: 1px solid #d9e0e5;
  border-radius: 6px;
  background: #fff;
}
.equipment-alert-title { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.equipment-alert-title strong { color: #263746; font-size: 14px; }
.equipment-alert-title a { font-size: 12px; }
.equipment-alert-items { display: flex; gap: 8px; }
.equipment-alert { display: flex; align-items: center; gap: 9px; min-height: 32px; padding: 0 12px; border-radius: 5px; text-decoration: none; }
.equipment-alert span { font-size: 12px; }
.equipment-alert strong { font-size: 17px; }
.equipment-alert.expired { background: #fff0ee; color: #9b2c24; }
.equipment-alert.due-soon { background: #fff7e6; color: #8a5a00; }

.equipment-management { margin-bottom: 10px; border: 1px solid #d9e0e5; border-radius: 6px; background: #fff; }
.equipment-management > summary { padding: 12px 16px; cursor: pointer; list-style: none; color: #25455b; font-weight: 700; }
.equipment-management > summary::-webkit-details-marker { display: none; }
.equipment-management > summary::after { content: "+"; float: right; color: #657482; font-size: 18px; }
.equipment-management[open] > summary::after { content: "−"; }
.equipment-management > summary span { margin-left: 8px; color: #7a8792; font-size: 12px; font-weight: 400; }
.equipment-management-body { padding: 4px 16px 18px; border-top: 1px solid #edf0f2; }
.equipment-management-body h2 { margin: 14px 0 0; font-size: 15px; }
.equipment-management-body .context { margin: 4px 0 8px; }
.equipment-management-body .stacked-form { margin-bottom: 18px; }
.equipment-management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.equipment-batch-panel,
.equipment-certificate-panel { min-width: 0; }
.equipment-batch-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.equipment-batch-fields label { display: grid; gap: 5px; color: #52626e; font-size: 12px; }
.equipment-batch-summary { margin: 8px 0 12px; color: #52626e; font-size: 13px; }
.equipment-batch-summary strong { color: #23704a; }
.equipment-batch-action { display: grid; align-content: start; gap: 9px; padding-top: 12px; border-top: 1px solid #e4e9ec; }
.equipment-batch-action button { justify-self: start; }
.equipment-overwrite-option { display: flex !important; align-items: center; gap: 7px !important; min-height: 28px; }
.equipment-overwrite-option input { width: 16px; height: 16px; margin: 0; accent-color: #23704a; }
.equipment-select-header { width: 30px; }
.equipment-select-box { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; color: #657482; font-size: 11px; }
.equipment-select-box span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.equipment-select-box input { width: 16px; height: 16px; margin: 0; accent-color: #23704a; }
.equipment-ledger-selectable .equipment-list-header,
.equipment-ledger-selectable .equipment-row-main {
  grid-template-columns: 34px minmax(230px, 2fr) minmax(76px, .62fr) minmax(180px, 1.1fr) 90px 100px 54px;
}
.equipment-certificate-confirm-form { display: inline-flex; margin-left: 8px; vertical-align: middle; }
.equipment-certificate-confirm-form button { min-height: 28px; padding: 0 8px; font-size: 12px; }
.equipment-certificate-upload { max-width: 720px; }
.equipment-upload-progress { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 10px; align-items: center; }
.equipment-upload-progress[hidden] { display: none; }
.equipment-upload-progress progress { width: 100%; height: 12px; accent-color: #25804a; }
.equipment-upload-progress span { min-width: 150px; color: #52626e; font-size: 12px; text-align: right; }
.equipment-upload-dialog { width: min(420px, calc(100vw - 32px)); padding: 22px; border: 0; border-radius: 6px; box-shadow: 0 18px 50px rgba(30, 45, 55, .24); }
.equipment-upload-dialog::backdrop { background: rgba(26, 37, 45, .4); }
.equipment-upload-dialog h2 { margin: 0 0 10px; font-size: 19px; }
.equipment-upload-dialog p { margin: 0 0 18px; color: #465966; line-height: 1.65; overflow-wrap: anywhere; }
.equipment-upload-dialog button { float: right; }

.equipment-letter-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 9px 12px;
  border: 1px solid #d5dde3;
  border-radius: 6px;
  background: #fff;
}
.equipment-letter-nav > strong { margin-right: 4px; color: #52626e; font-size: 13px; }
.equipment-letter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #c9d3da;
  border-radius: 5px;
  background: #fff;
  color: #315268;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.equipment-letter-link[data-equipment-initial=""] { width: 52px; }
.equipment-letter-link:hover { border-color: #6e9880; background: #f1f7f3; color: #1f6542; }
.equipment-letter-link.active { border-color: #23704a; background: #23704a; color: #fff; }
.equipment-prefix-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 9px 12px 9px 18px;
  border: 1px solid #dce4e8;
  border-radius: 6px;
  background: #f7f9fa;
}
.equipment-prefix-nav > strong { margin-right: 4px; color: #52626e; font-size: 13px; }
.equipment-prefix-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #cbd6dc;
  border-radius: 5px;
  background: #fff;
  color: #315268;
  font-size: 13px;
  font-weight: 700;
}
.equipment-prefix-link small {
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 9px;
  background: #e8eef1;
  color: #5c6d78;
  font-size: 11px;
  text-align: center;
}
.equipment-prefix-link:hover { border-color: #6e9880; background: #f1f7f3; color: #1f6542; }
.equipment-prefix-link.active { border-color: #23704a; background: #23704a; color: #fff; }
.equipment-prefix-link.active small { background: rgba(255, 255, 255, .2); color: #fff; }
.equipment-ledger { overflow: hidden; border: 1px solid #d5dde3; border-radius: 6px; background: #fff; }
.equipment-selection-toolbar { display: flex; align-items: center; gap: 16px; min-height: 38px; padding: 0 16px; border-bottom: 1px solid #d5dde3; background: #f8faf9; color: #52626e; font-size: 12px; }
.equipment-selection-toolbar label { display: inline-flex; align-items: center; gap: 7px; color: #263746; font-weight: 600; cursor: pointer; }
.equipment-selection-toolbar input { width: 16px; height: 16px; margin: 0; accent-color: #23704a; }
.equipment-selection-toolbar strong { color: #23704a; }
.equipment-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin: 14px 0 4px; }
.equipment-pagination a,
.equipment-pagination span,
.equipment-pagination strong { min-width: 64px; text-align: center; }
.equipment-pagination .disabled { color: #9aa5ad; }
.equipment-list-header,
.equipment-row-main {
  display: grid;
  grid-template-columns: minmax(230px, 2fr) minmax(76px, .62fr) minmax(180px, 1.1fr) 90px 100px 54px;
  gap: 12px;
  align-items: center;
}
.equipment-list-header { min-height: 38px; padding: 0 16px; background: #eef2f4; color: #596a77; font-size: 12px; font-weight: 600; }
.equipment-row { border-top: 1px solid #e4e8eb; background: #fff; }
.equipment-row:first-of-type { border-top: 0; }
.equipment-row-main { min-height: 58px; padding: 7px 16px; }
.equipment-row-main:hover { background: #f5f8f6; }
.equipment-row.is-expanded .equipment-row-main { background: #f0f6f2; box-shadow: inset 3px 0 #3f8b57; }
.equipment-identity { display: flex; align-items: baseline; justify-content: flex-start; gap: 12px; min-width: 0; padding: 8px 0; background: transparent; color: #263746; font-size: 14px; text-align: left; cursor: pointer; }
.equipment-identity:hover { color: #176b87; }
.equipment-identity strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equipment-code { flex: 0 0 auto; color: #25804a; font-weight: 700; }
.equipment-responsible { min-width: 0; }
.equipment-responsible small { display: none; }
.equipment-responsible-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; min-width: 0; }
.equipment-responsible-form input { width: 100%; min-width: 0; height: 32px; box-sizing: border-box; padding: 5px 8px; font-size: 13px; }
.equipment-responsible-form button { min-height: 32px; padding: 0 9px; font-size: 12px; white-space: nowrap; }
.equipment-row .badge { justify-self: start; white-space: nowrap; }
.equipment-row time { color: #465966; font-size: 13px; white-space: nowrap; }
.equipment-edit-button { min-height: 30px; padding: 0 9px; background: #fff; border: 1px solid #aebbc5; color: #315268; font-size: 12px; }
.equipment-edit-button:hover { background: #edf5f7; }
.equipment-details-panel { border-top: 1px solid #dce6df; background: #fafcfb; }
.equipment-details { margin: 0; padding: 16px 22px 20px; border-top: 1px solid #dce6df; background: #fafcfb; }
.equipment-details-panel .equipment-details { border-top: 0; }
.equipment-edit-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 22px 20px; padding: 16px; border: 1px solid #ced9d1; border-radius: 6px; background: #fff; }
.equipment-edit-panel[hidden] { display: none; }
.equipment-edit-panel label { display: grid; gap: 5px; color: #52626e; font-size: 12px; }
.equipment-edit-panel .wide-field { grid-column: 1 / -1; }
.equipment-edit-panel textarea { min-height: 64px; }
.equipment-edit-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.badge.equipment-sealed { background: #e7edf2; color: #405565; }
.badge.equipment-scrapped { background: #ececec; color: #555; text-decoration: line-through; }

@media (max-width: 980px) {
  .equipment-list-header,
  .equipment-row-main { grid-template-columns: minmax(190px, 1.5fr) 72px minmax(155px, 1fr) 82px 92px 50px; gap: 8px; }
}

@media (max-width: 760px) {
  .equipment-alert-strip { align-items: flex-start; flex-direction: column; }
  .equipment-alert-items { width: 100%; }
  .equipment-alert { flex: 1; justify-content: space-between; }
  .equipment-management-grid { grid-template-columns: 1fr; gap: 8px; }
  .equipment-batch-fields { grid-template-columns: 1fr; }
  .equipment-list-header { display: none; }
  .equipment-row-main { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding: 12px 14px; }
  .equipment-ledger-selectable .equipment-row-main { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .equipment-identity { font-size: 14px; }
  .equipment-row-main > .equipment-department { grid-column: 1; color: #647481; font-size: 12px; }
  .equipment-ledger-selectable .equipment-row-main > .equipment-department { grid-column: 2; }
  .equipment-row-main > .equipment-responsible { grid-column: 1 / -1; }
  .equipment-row-main > .equipment-status { grid-column: 3; grid-row: 1; }
  .equipment-row-main > .equipment-due { grid-column: 3; grid-row: 2; }
  .equipment-edit-button { grid-column: 2; grid-row: 3; }
  .equipment-responsible small { display: block; margin-bottom: 5px; color: #647481; font-size: 11px; }
  .equipment-details { grid-template-columns: 110px minmax(0, 1fr) !important; padding: 12px 14px 16px; }
  .equipment-edit-panel { grid-template-columns: 1fr; margin: 0 12px 16px; }
  .equipment-edit-panel .wide-field,
  .equipment-edit-actions { grid-column: 1; }
}

.login-main {
  max-width: none;
  min-height: calc(100vh - 46px);
  padding: 0;
  background: #eef2f5;
}

.login-page {
  min-height: calc(100vh - 46px);
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(420px, .85fr);
}

.login-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 42px;
  padding: clamp(48px, 8vw, 120px);
  background: #21486f;
  color: #fff;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 460px;
  height: 460px;
  border: 56px solid rgba(101, 174, 72, .18);
  transform: rotate(45deg);
}

.login-brand-logo {
  position: relative;
  z-index: 1;
  width: min(320px, 60%);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .18));
}

.login-brand-panel > div { position: relative; z-index: 1; max-width: 700px; }
.login-brand-panel h1 { margin: 18px 0 28px; font-size: clamp(38px, 5vw, 64px); line-height: 1.12; letter-spacing: 0; }
.login-brand-panel p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 17px; line-height: 1.8; }
.login-brand-panel .login-company-name {
  color: #fff;
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.55;
}
.login-company-name::before {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin-bottom: 18px;
  background: #68b34b;
}
.login-service-values {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
}
.login-service-values span {
  position: relative;
  padding: 0 22px;
  color: #fff;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
}
.login-service-values span:first-child { padding-left: 0; }
.login-service-values span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #75c456;
}
.login-service-values strong { color: #8ed06f; font-weight: 700; }
.login-brand-panel .login-service-label { color: rgba(255, 255, 255, .58); font-size: 13px; }
.login-brand-panel .password-brand-note { color: #8ed06f; font-size: 18px; font-weight: 600; }

.login-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 8vw, 110px);
  background: #fff;
}

.login-form-heading { margin-bottom: 34px; }
.login-form-heading span { color: #5ca642; font-size: 13px; font-weight: 700; }
.login-form-heading h2 { margin: 10px 0 8px; color: #173653; font-size: 34px; letter-spacing: 0; }
.login-form-heading p { margin: 0; color: #71808e; }
.login-form { display: grid; gap: 20px; }
.login-form label { display: grid; gap: 8px; color: #33475a; font-size: 14px; font-weight: 600; }
.login-form input { min-height: 48px; box-sizing: border-box; border-color: #cbd4dc; background: #f9fbfc; }
.login-form input:focus { outline: 3px solid rgba(92, 166, 66, .16); border-color: #5ca642; background: #fff; }
.login-form button { min-height: 50px; margin-top: 4px; background: #28557f; font-weight: 700; cursor: pointer; }
.login-form button:hover { background: #1f4569; }
.login-form .login-remember { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: #596b7b; }
.login-remember input { min-height: auto; width: 16px; height: 16px; accent-color: #5ca642; }
.login-password-link { align-self: flex-start; margin-top: 20px; color: #28557f; font-size: 14px; }
.login-message { margin-bottom: 20px; padding: 12px 14px; border-left: 4px solid #b42318; background: #fff0ee; color: #8f1f17; }
.login-message.success { border-color: #5ca642; background: #eff8eb; color: #356c25; }

.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 8px 14px 16px; border-bottom: 1px solid #e4e9ef; }
.sidebar-brand img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.sidebar-brand .sidebar-motto { min-width: 0; display: grid; gap: 4px; }
.sidebar-brand .sidebar-motto strong { color: #21486f; font-size: 13px; white-space: nowrap; }
.sidebar-brand .sidebar-motto strong:first-child { color: #4e9438; }
.sidebar-user { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 12px; padding: 10px 12px; border-left: 3px solid #62aa47; background: #f3f7f1; }
.sidebar-user > div { min-width: 0; display: grid; gap: 3px; }
.sidebar-user span { color: #74816f; font-size: 11px; }
.sidebar-user strong { color: #284431; font-size: 14px; overflow-wrap: anywhere; }
.sidebar-user form { margin: 0; flex: 0 0 auto; }
.sidebar-user button { min-height: 0; padding: 3px 0; background: transparent; color: #176b87; font-size: 12px; cursor: pointer; }
.sidebar-user button:hover { color: #0f4f66; text-decoration: underline; }

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

main.wide-page {
  max-width: 1440px;
}

.app-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.module-sidebar {
  position: sticky;
  top: 24px;
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 10px 0;
}

@media (max-width: 820px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: 220px; padding: 38px 28px; gap: 22px; }
  .login-brand-logo { width: 150px; }
  .login-brand-panel h1 { font-size: 34px; }
  .login-form-panel { padding: 42px 28px 56px; }
}

.module-nav {
  display: grid;
}

.module-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-left: 3px solid transparent;
  color: #394b59;
  font-weight: 600;
}

.module-nav a:hover {
  background: #f3f7f9;
  text-decoration: none;
}

.module-nav a.active {
  border-left-color: #176b87;
  background: #edf6f8;
  color: #0f5f78;
}

.app-workspace {
  min-width: 0;
}

.workspace-topbar {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.workspace-topbar .user-identity {
  margin-left: 0;
}

.review-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #394b59;
  font-size: 18px;
}

.review-bell:hover {
  text-decoration: none;
  color: #176b87;
}

.review-bell strong {
  position: absolute;
  top: -3px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  border: 2px solid #f6f7f9;
  border-radius: 8px;
  background: #b42318;
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.search-shell,
.detail-header,
.panel,
.result-card,
.risk {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.standard-catalog-search-form {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(280px, 1.6fr) auto;
  gap: 10px;
}

.standard-catalog-search-form select {
  min-height: 42px;
  font-size: 15px;
}

.standard-attribute-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.standard-attribute-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid #c9d8df;
  border-radius: 4px;
  background: #f2f7f8;
  color: #245b6d;
  font-size: 12px;
}

.business-standard-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  color: #173653;
  font-size: 18px;
  font-weight: 700;
}

.business-standard-section > summary::-webkit-details-marker { display: none; }
.business-standard-section > summary small { color: #617080; font-size: 13px; font-weight: 400; }
.business-standard-section[open] > summary { margin-bottom: 14px; }

@media (max-width: 820px) {
  .standard-catalog-search-form { grid-template-columns: 1fr; }
  .standard-catalog-search-form button { min-height: 42px; }
}

.search-input {
  min-height: 42px;
  font-size: 16px;
  padding: 0 12px;
  border: 1px solid #b8c0cc;
  border-radius: 6px;
}

.ai-search-shell { border-color: #cbd8d0; box-shadow: 0 4px 14px rgba(35, 72, 52, .06); }
.ai-search-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #205b3a; font-size: 14px; font-weight: 700; }
.ai-search-label span { padding: 2px 7px; border-radius: 4px; background: #edf5ef; color: #60756a; font-size: 11px; font-weight: 400; }
.ai-search-insight { margin: -2px 0 14px; padding: 11px 14px; border-left: 3px solid #4b9565; background: #f2f7f3; color: #385745; font-size: 13px; line-height: 1.6; }
.ai-domain-results { margin-bottom: 16px; }
.ai-equipment-result { display: grid; grid-template-columns: 90px minmax(180px, 1.5fr) 90px 90px 110px minmax(120px, .8fr); gap: 12px; align-items: center; min-height: 48px; padding: 6px 14px; border-bottom: 1px solid #e1e6e9; background: #fff; color: #334754; text-decoration: none; }
.ai-equipment-result:first-of-type { border-top: 1px solid #d8e0e4; border-radius: 6px 6px 0 0; }
.ai-equipment-result:last-child { border-radius: 0 0 6px 6px; }
.ai-equipment-result:hover { background: #f3f8f5; text-decoration: none; }
.ai-equipment-result small { color: #687985; }
.ai-equipment-result time { white-space: nowrap; }

@media (max-width: 760px) {
  .ai-equipment-result { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 12px; }
  .ai-equipment-result > span:nth-of-type(2), .ai-equipment-result small { grid-column: 2 / -1; }
  .ai-equipment-result time { grid-column: 3; grid-row: 1; }
}

button {
  border: 0;
  border-radius: 6px;
  background: #176b87;
  color: white;
  padding: 0 18px;
  font-size: 15px;
}

.search-reset {
  background: #fff;
  color: #394b59;
  border: 1px solid #b8c0cc;
}

.filters {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

select {
  min-height: 36px;
  border: 1px solid #c6ced8;
  border-radius: 6px;
  padding: 0 8px;
  background: white;
}

textarea,
input {
  border: 1px solid #c6ced8;
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
}

textarea {
  min-height: 82px;
  resize: vertical;
}

.stats,
.context {
  color: #617080;
  font-size: 13px;
}

.search-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.search-export-action {
  font-size: 13px;
}

.result-card h2,
.detail-header h1 {
  margin: 8px 0;
}

.section-heading,
.project-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-heading h1,
.section-heading h2,
.project-result-heading h2 {
  margin: 0;
}

.section-heading h1 {
  font-size: 20px;
}

.section-heading span,
.project-result-heading span {
  color: #617080;
  font-size: 13px;
}

.project-result {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.search-target {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.search-target > summary {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto minmax(180px, auto);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  cursor: pointer;
  list-style: none;
}

.search-target > summary::-webkit-details-marker {
  display: none;
}

.search-target > summary::before {
  content: "▸";
  color: #617080;
  font-size: 16px;
}

.search-target[open] > summary::before {
  transform: rotate(90deg);
}

.search-target-name {
  font-weight: 700;
}

.search-target-departments {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.department-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}

.department-tone-0 {
  color: #1f6d2a;
  background: #e8f5e9;
  border-color: #9fd3a4;
}

.department-tone-1 {
  color: #176b87;
  background: #e7f4f8;
  border-color: #9ccbd8;
}

.department-tone-2 {
  color: #7a4c00;
  background: #fff4d6;
  border-color: #e5c56f;
}

.department-tone-3 {
  color: #8a3040;
  background: #fdecef;
  border-color: #e6a7b2;
}

.department-tone-4 {
  color: #3f4d5a;
  background: #edf2f7;
  border-color: #c6d0da;
}

.search-target-context {
  color: #617080;
  font-size: 13px;
  text-align: right;
}

.search-target-parameters {
  border-top: 1px solid #e4e9f0;
  padding: 10px 16px 14px 42px;
}

.subitem-result {
  border-top: 1px solid #e4e9f0;
  margin-top: 14px;
  padding-top: 12px;
}

.subitem-result h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.bundle-details {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 8px 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e4e9f0;
}

.bundle-details dt {
  color: #617080;
}

.bundle-details dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-field-value {
  min-width: 0;
}

.project-field-edit {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  vertical-align: middle;
}

.project-field-edit-toggle {
  padding: 3px 9px;
  font-size: 12px;
}

.project-field-edit-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.project-field-edit-form[hidden] {
  display: none;
}

.project-field-edit-form input[name="new_value"] {
  width: min(320px, 48vw);
  min-width: 180px;
}

.project-field-edit-form button {
  white-space: nowrap;
}

.department-section + .department-section {
  border-top: 1px solid #cfd7e0;
  margin-top: 16px;
  padding-top: 16px;
}

.department-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  margin-bottom: 6px;
}

.department-section-heading > span:last-child {
  color: #617080;
  font-size: 13px;
}

.department-details {
  margin-top: 4px;
}

.product-standard-groups {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.product-standard-group {
  overflow: hidden;
  border: 1px solid #d5dee4;
  border-radius: 6px;
  background: #fff;
}

.product-standard-group > summary {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  min-height: 52px;
  padding: 8px 14px;
  background: #f5f8f6;
  cursor: pointer;
  list-style: none;
}

.product-standard-group > summary::-webkit-details-marker {
  display: none;
}

.product-standard-group > summary::before {
  content: ">";
  color: #577064;
  font-size: 15px;
  font-weight: 700;
}

.product-standard-group[open] > summary::before {
  transform: rotate(90deg);
}

.product-standard-label {
  color: #587064;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.product-standard-basis {
  min-width: 0;
  color: #223844;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.product-standard-count {
  color: #617080;
  font-size: 12px;
  white-space: nowrap;
}

.product-standard-body {
  padding: 8px 14px 12px 40px;
  border-top: 1px solid #e2e8eb;
}

.product-standard-details {
  margin-top: 2px;
}

.sample-routing-note {
  margin: 8px 0 14px;
  padding: 9px 12px;
  border-left: 3px solid #176b87;
  background: #eef7f9;
  color: #394b59;
}

.sample-routing-note strong {
  color: #176b87;
  margin-right: 8px;
}

.bundle-system-ref + .bundle-system-ref {
  border-top: 1px dashed #d9dee7;
  margin-top: 8px;
  padding-top: 8px;
}

.bundle-system-ref > div + div {
  margin-top: 4px;
}

.bundle-system-ref > div > span:first-child {
  color: #617080;
}

.system-ref-disclosure {
  border-bottom: 1px solid #e4e9f0;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.system-ref-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: #394b59;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.system-ref-disclosure > summary::-webkit-details-marker {
  display: none;
}

.system-ref-disclosure > summary::before {
  content: "▸";
  color: #617080;
}

.system-ref-disclosure[open] > summary::before {
  transform: rotate(90deg);
}

.system-ref-disclosure-body {
  padding: 2px 0 8px 20px;
}

.parameter-list {
  display: grid;
  margin-top: 8px;
  border-top: 1px solid #dbe2ea;
  border-bottom: 1px solid #dbe2ea;
}

.parameter-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 8px 0;
  border-top: 1px solid #eef1f5;
}

.parameter-row:first-child {
  border-top: 0;
}

.parameter-row-disclosure {
  display: block;
}

.parameter-row-disclosure > summary {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.parameter-row-disclosure > summary::-webkit-details-marker {
  display: none;
}

.parameter-row-disclosure > summary::before {
  content: "›";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  background: #e7f1ed;
  color: #1d6f55;
  font-weight: 700;
  transition: transform .16s ease;
}

.parameter-row-disclosure[open] > summary::before {
  transform: rotate(90deg);
}

.parameter-detail-body {
  margin-top: 10px;
  padding: 10px 0 4px 26px;
  border-top: 1px dashed #d8e2dc;
}

.parameter-detail-fields {
  margin-top: 0;
}

.parameter-main {
  min-width: 0;
}

.parameter-heading {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.parameter-name {
  display: inline-block;
  color: #0f5f78;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.parameter-note-actions {
  display: flex;
  align-items: center;
  gap: 6px 10px;
  flex: 1 1 360px;
  flex-wrap: wrap;
}

.parameter-text-action {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #176b87;
  font-size: 13px;
  cursor: pointer;
}

.parameter-secondary-action {
  min-height: 26px;
  padding: 3px 7px;
  border: 1px solid #d7dedb;
  border-radius: 4px;
  background: #f8faf9;
  color: #718078;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.parameter-secondary-action:hover {
  border-color: #bfcac3;
  background: #f2f5f3;
  color: #506158;
}

.parameter-note-form,
.parameter-note-list {
  flex: 1 0 100%;
  width: 100%;
}

.parameter-note-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  align-items: start;
  margin-top: 4px;
}

.parameter-note-form[hidden],
.parameter-note-list[hidden] {
  display: none;
}

.parameter-note-form textarea {
  min-height: 72px;
  resize: vertical;
}

.parameter-note-list {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.parameter-note-card {
  padding: 8px 10px;
  border-left: 3px solid #8db9c6;
  background: #f7fafb;
}

.parameter-note-card .meta {
  margin-bottom: 3px;
}

.parameter-note-label {
  color: #c62828;
  font-weight: 700;
}

.parameter-note-content {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

.parameter-note-owner-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
}

.parameter-note-edit-form {
  display: flex;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
}

.parameter-note-edit-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  overflow-wrap: anywhere;
  word-break: break-word;
  resize: vertical;
}

.required-marker {
  margin-right: 2px;
  color: #b42318;
  font-weight: 800;
}

.mandatory-marker {
  margin-left: 3px;
  color: #111827;
  font-size: 11px;
}

.parameter-overrides {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  margin-top: 6px;
  color: #394b59;
  font-size: 13px;
}

.parameter-overrides > span:first-child {
  color: #8a3040;
  font-weight: 700;
}

.parameter-override {
  overflow-wrap: anywhere;
}

.parameter-row-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.parameter-row-editing {
  align-items: start;
}

.parameter-inline-editor {
  display: flex;
  justify-content: flex-end;
}

.parameter-inline-edit-form {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(210px, 1fr);
  gap: 8px 12px;
  width: min(620px, 68vw);
  padding: 10px;
  border: 1px solid #cfd7e0;
  border-radius: 6px;
  background: #f8fafc;
}

.parameter-inline-edit-form[hidden] {
  display: none;
}

.parameter-inline-edit-form label:not(.check-label) {
  display: grid;
  gap: 4px;
  color: #617080;
  font-size: 12px;
}

.parameter-inline-edit-form .check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}

.parameter-inline-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  grid-column: 1 / -1;
}

.parameter-statuses {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.parameter-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #aeb9c5;
  border-radius: 6px;
  background: #fff;
  color: #176b87;
  font-size: 13px;
  white-space: nowrap;
}

.parameter-action:hover {
  background: #f3f7f9;
  text-decoration: none;
}

.compact-status {
  min-height: 22px;
}

.standard-search-section {
  margin-top: 18px;
}

.standard-hit-list {
  display: grid;
  margin-top: 10px;
}

.standard-hit {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(220px, 1fr) minmax(120px, auto);
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-top: 1px solid #eef1f5;
}

.standard-hit:first-child {
  border-top: 0;
}

a {
  color: #176b87;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
  word-break: break-all;
}

.badge,
.standard-linked,
.standard-missing {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
}

.status-acquired {
  background: #e8f5e9;
  border-color: #9fd3a4;
  color: #1f6d2a;
}

.status-cma {
  background: #ffebee;
  border-color: #f2a7af;
  color: #9a2632;
}

.status-over {
  background: #fff7bf;
  border-color: #e1c542;
  color: #6b5700;
}

.flag {
  background: #edf2f7;
  color: #394b59;
}

.warning {
  background: #fff7bf;
  border-color: #e1c542;
  color: #6b5700;
}

.standard-linked {
  background: #e8f5e9;
  color: #1f6d2a;
}

.standard-abolished-label {
  margin-left: 4px;
  color: #c62828;
  font-weight: 700;
}

.standard-upcoming-label {
  margin-left: 4px;
  color: #9a6700;
  font-weight: 700;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 16px;
  align-items: end;
}

.permission-grid label {
  display: grid;
  gap: 5px;
}

.standard-progress-card {
  padding: 0;
  overflow: hidden;
}

.standard-progress-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(360px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.standard-progress-summary::-webkit-details-marker { display: none; }
.standard-progress-summary:hover { background: #f7fafb; }
.standard-progress-title h2 { margin: 5px 0 0; font-size: 18px; }
.phase-progress-group {
  display: grid;
  grid-template-columns: auto minmax(80px, 130px);
  gap: 4px 8px;
  align-items: center;
  margin-top: 9px;
  max-width: 240px;
}
.phase-progress-label { color: #52616f; font-size: 12px; white-space: nowrap; }
.phase-progress-track { height: 6px; overflow: hidden; background: #e5eaf0; border-radius: 3px; }
.phase-progress-track > span { display: block; height: 100%; background: #16836b; border-radius: 3px; }
.standard-progress-scope { display: grid; gap: 7px; min-width: 0; }
.standard-progress-scope span { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; color: #425466; font-size: 13px; overflow-wrap: anywhere; }
.standard-progress-scope b { color: #71808e; font-weight: 500; }
.standard-progress-toggle { color: #176b87; font-size: 13px; white-space: nowrap; }
.standard-progress-card[open] .standard-progress-toggle { font-size: 0; }
.standard-progress-card[open] .standard-progress-toggle::after { content: "收起详情"; font-size: 13px; }
.standard-progress-detail { display: grid; gap: 12px; padding: 0 16px 16px; border-top: 1px solid #dbe2ea; }

@media (max-width: 900px) {
  .standard-progress-summary { grid-template-columns: 1fr; gap: 10px; }
  .standard-progress-toggle { justify-self: start; }
}

.standard-progress-phase {
  border-top: 1px solid #dbe2ea;
  padding-top: 10px;
}

.standard-progress-phase h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.standard-progress-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 2fr);
  gap: 10px;
  align-items: center;
  min-height: 42px;
  border-top: 1px solid #eef1f5;
}

.standard-progress-form {
  display: grid;
  grid-template-columns: 110px minmax(160px, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.standard-progress-phase-form { display: grid; }
.standard-progress-control {
  display: grid;
  grid-template-columns: 110px minmax(160px, 1fr);
  gap: 6px;
  align-items: center;
}
.standard-progress-phase-form .action-row { justify-content: flex-end; margin-top: 10px; }
.confirmation-preview,
.confirmation-edit { margin-top: 12px; border-top: 1px solid #dbe2ea; padding-top: 10px; }
.confirmation-preview > summary,
.confirmation-edit > summary { color: #176b87; cursor: pointer; font-weight: 600; }
.confirmation-preview .summary,
.confirmation-edit form { margin-top: 12px; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .standard-progress-row,
  .standard-progress-control { grid-template-columns: 1fr; }
}

.standard-missing {
  background: #edf2f7;
  color: #111827;
}

.summary,
.panel dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
}

dt {
  color: #617080;
}

dd {
  margin: 0;
}

.top-nav {
  margin-bottom: 12px;
}

.view-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.view-tabs a {
  border: 1px solid #c6ced8;
  border-radius: 6px;
  padding: 8px 12px;
  color: #1f2933;
  background: white;
}

.view-tabs .active {
  background: #176b87;
  color: white;
  border-color: #176b87;
}

.risk {
  background: #fff7bf;
  border-color: #e1c542;
  color: #6b5700;
}

.top-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.user-identity {
  margin-left: auto;
  color: #1f2933;
  font-weight: 600;
}

.nav-form {
  margin: 0;
}

.nav-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #176b87;
  font: inherit;
  cursor: pointer;
}

.stacked-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.stacked-form button {
  min-height: 38px;
  justify-self: start;
}

.timer-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(3, auto) auto;
  gap: 8px;
  align-items: center;
}

.timer-row button {
  min-height: 38px;
  white-space: nowrap;
}

.timer-display {
  color: #394b59;
  font-variant-numeric: tabular-nums;
  min-width: 58px;
}

.inline-form {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 8px;
  align-items: center;
}

.inline-form button {
  min-height: 36px;
}

.note,
.feedback-item {
  border-top: 1px solid #e4e9f0;
  padding: 12px 0;
}

.standard-reminder-panel {
  padding: 14px 16px;
}

.standard-reminder-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.standard-reminder-column + .standard-reminder-column {
  border-left: 1px solid #dfe5ec;
  padding-left: 18px;
}

.standard-reminder-column-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.standard-reminder-column-heading h3 {
  margin: 0;
  font-size: 15px;
}

.standard-reminder-column-heading span {
  color: #617080;
  font-size: 12px;
}

.standard-reminder-header,
.standard-reminder-row {
  display: grid;
  grid-template-columns: 82px minmax(120px, 0.9fr) minmax(150px, 1.1fr);
  gap: 8px;
}

.standard-reminder-header {
  padding: 5px 0;
  color: #617080;
  font-size: 11px;
  border-bottom: 1px solid #dfe5ec;
}

.standard-reminder-row {
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid #edf0f4;
  font-size: 12px;
  line-height: 1.35;
}

.standard-reminder-period,
.standard-reminder-standard,
.standard-reminder-scope {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.standard-reminder-period span,
.standard-reminder-standard span,
.standard-reminder-scope > span {
  color: #617080;
  font-size: 11px;
}

.standard-reminder-standard strong,
.standard-reminder-period strong {
  font-size: 12px;
}

.standard-reminder-scope a {
  display: inline;
}

.standard-lifecycle-list {
  overflow-x: auto;
  padding: 0;
}

.standard-lifecycle-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.standard-lifecycle-table th,
.standard-lifecycle-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e4e9f0;
  text-align: left;
  vertical-align: top;
}

.standard-lifecycle-table th {
  color: #526170;
  background: #f7f9fb;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .standard-reminder-columns {
    grid-template-columns: 1fr;
  }

  .standard-reminder-column + .standard-reminder-column {
    border-left: 0;
    border-top: 1px solid #dfe5ec;
    padding-top: 12px;
    padding-left: 0;
  }
}

@media (max-width: 620px) {
  .standard-reminder-header {
    display: none;
  }

  .standard-reminder-row {
    grid-template-columns: 76px 1fr;
  }

  .standard-reminder-scope {
    grid-column: 2;
  }
}

.meta {
  color: #617080;
  font-size: 13px;
}

.comments {
  margin: 8px 0;
  padding-left: 18px;
}

.comments span {
  color: #617080;
  margin-left: 8px;
  font-size: 12px;
}

.reader-shell {
  position: relative;
  min-height: 78vh;
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  overflow: hidden;
}

.reader-shell iframe {
  width: 100%;
  height: 78vh;
  border: 0;
}

.spreadsheet-preview {
  position: relative;
  z-index: 1;
  min-height: 78vh;
  background: rgba(255, 255, 255, 0.92);
}

.spreadsheet-sheets {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid #c6ced8;
  padding: 8px 10px 0;
  background: #f1f4f7;
}

.spreadsheet-sheets a {
  flex: 0 0 auto;
  border: 1px solid #c6ced8;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  padding: 7px 11px;
  background: #e7ebef;
  color: #394b59;
}

.spreadsheet-sheets a.active {
  background: #fff;
  color: #0f5f78;
  font-weight: 700;
}

.spreadsheet-meta {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #d9dee7;
  padding: 0 12px;
  color: #617080;
  font-size: 13px;
}

.spreadsheet-meta a {
  margin-left: auto;
}

.spreadsheet-meta a + a {
  margin-left: 0;
}

.spreadsheet-table-wrap {
  max-height: calc(78vh - 78px);
  overflow: auto;
}

.spreadsheet-table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.spreadsheet-table th,
.spreadsheet-table td {
  min-width: 90px;
  max-width: 320px;
  border-right: 1px solid #d9dee7;
  border-bottom: 1px solid #d9dee7;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.spreadsheet-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  min-width: 42px;
  background: #edf1f4;
  text-align: center;
}

.spreadsheet-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 42px;
  background: #edf1f4;
  color: #617080;
  text-align: right;
}

.watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotate(-28deg);
  pointer-events: none;
  color: rgba(31, 41, 51, 0.16);
  font-size: clamp(34px, 8vw, 92px);
  font-weight: 700;
  z-index: 2;
}

@media (max-width: 720px) {
  main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
  }

  .app-shell {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .module-sidebar {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 0;
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar-user {
    margin: 0;
    padding: 7px 12px;
    border-left: 0;
    border-bottom: 1px solid #e4e9ef;
  }

  .sidebar-user > div {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .app-workspace {
    width: 100%;
    min-width: 0;
  }

  .module-nav {
    display: flex;
    min-width: max-content;
  }

  .module-nav a {
    min-height: 42px;
    padding: 0 12px;
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .module-nav a.active {
    border-bottom-color: #176b87;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .parameter-row,
  .standard-hit {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 0;
  }

  .parameter-statuses,
  .parameter-row-side {
    justify-content: flex-start;
  }

  .parameter-row-side {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .parameter-inline-editor,
  .parameter-inline-edit-form {
    width: 100%;
  }

  .parameter-note-form {
    grid-template-columns: 1fr;
  }

  .parameter-inline-edit-form {
    grid-template-columns: 1fr;
  }

  .parameter-inline-edit-actions {
    grid-column: 1;
    justify-content: flex-start;
  }

  .search-target > summary {
    grid-template-columns: auto 1fr;
    padding: 8px 12px;
  }

  .search-target-departments,
  .search-target-context {
    grid-column: 2;
    justify-content: flex-start;
    text-align: left;
  }

  .search-target-parameters {
    padding: 8px 12px 12px;
  }

  .product-standard-group > summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .product-standard-group > summary::before {
    grid-row: 1 / 3;
  }

  .product-standard-label {
    grid-column: 2;
  }

  .product-standard-basis {
    grid-column: 2 / 4;
  }

  .product-standard-count {
    grid-column: 3;
    grid-row: 1;
  }

  .product-standard-body {
    padding: 8px 12px 12px;
  }

  .bundle-details {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  button {
    min-height: 42px;
  }

  .summary,
  .panel dl {
    grid-template-columns: 1fr;
  }

  .timer-row {
    grid-template-columns: 1fr 1fr;
  }

  .timer-row input,
  .timer-display {
    grid-column: 1 / -1;
  }
}

.task-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 10px 0;
}

.task-department-filter {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.task-department-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #394b59;
  font-weight: 700;
}

.task-department-filter select {
  min-width: 180px;
}

.task-department-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0 0 3px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.task-department-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #c7d0da;
  border-radius: 6px;
  background: #fff;
  color: #263442;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.task-department-tab:hover {
  border-color: #6fa5b7;
  background: #f2f8fa;
}

.task-department-tab.active {
  border-color: #176b87;
  background: #176b87;
  color: #fff;
}

.task-department-new-count {
  color: #c62828;
  font-size: 12px;
  font-weight: 800;
}

.task-department-tab.active .task-department-new-count {
  color: #fff;
}

.task-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.task-department-group {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.task-department-group > h2 {
  margin: 10px 0 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #176b87;
  color: #263442;
  font-size: 16px;
}

.task-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
  color: #617080;
}

.page-jump-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.page-jump-form select {
  width: auto;
  min-width: 96px;
  min-height: 34px;
  padding: 5px 28px 5px 9px;
  border: 1px solid #cbd5dc;
  border-radius: 4px;
  background: #fff;
  color: #344552;
}

.page-jump-form button {
  min-height: 34px;
  padding: 5px 11px;
  border-radius: 4px;
  font-size: 13px;
}

.project-filter-panel {
  margin-bottom: 12px;
  padding: 9px 10px 10px;
  border: 1px solid #d5dde5;
  border-radius: 6px;
  background: #fff;
}

.project-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #263442;
}

.project-filter-heading strong {
  font-size: 14px;
}

.project-filter-heading span {
  color: #6b7785;
  font-size: 12px;
}

.project-code-tabs {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  max-height: 112px;
  margin: 0;
  padding: 0 4px 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.task-view-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  margin-bottom: 10px;
  border: 1px solid #b8c0cc;
  border-radius: 6px;
  overflow: hidden;
}

.task-query-mode {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  margin-bottom: 10px;
  border: 1px solid #b8c0cc;
  border-radius: 6px;
  overflow: hidden;
}

.affair-form,
.affair-option-form {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(220px, 1.3fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.affair-option-form {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.affairs-panel ul {
  display: grid;
  gap: 7px;
  padding: 0;
  list-style: none;
}

.affairs-panel li {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 8px;
  padding-top: 7px;
  border-top: 1px solid #eef1f5;
}

.affairs-panel li small {
  color: #617080;
}

.task-view-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 8px;
  border-right: 1px solid #b8c0cc;
  background: #fff;
  color: #263442;
  text-align: center;
}

.task-view-tab:last-child {
  border-right: 0;
}

.task-view-tab.active {
  background: #e7f4f8;
  color: #145b72;
  font-weight: 700;
}

.task-query-panel {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid #d5ddd8;
  border-radius: 6px;
  background: #fff;
}

.task-query-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 54px;
  padding: 9px 12px;
}

.task-query-row + .task-query-row {
  border-top: 1px solid #e5eae7;
  background: #f8faf9;
}

.task-query-label {
  flex: 0 0 72px;
  color: #263d31;
  font-size: 14px;
  white-space: nowrap;
}

.task-query-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.task-query-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cbd5cf;
  border-radius: 5px;
  background: #fff;
  color: #34483d;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.task-query-button:hover {
  border-color: #6e9880;
  background: #f1f7f3;
  color: #1f6542;
}

.task-query-button.active {
  border-color: #23704a;
  background: #23704a;
  color: #fff;
  box-shadow: 0 1px 2px rgb(20 68 43 / 18%);
}

.task-custom-date-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
}

.task-date-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding-left: 10px;
  border: 1px solid #cbd5cf;
  border-radius: 5px;
  background: #fff;
  color: #53645a;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.task-date-picker.active {
  border-color: #23704a;
  box-shadow: 0 0 0 2px rgb(35 112 74 / 10%);
}

.task-date-picker input[type="date"] {
  min-width: 132px;
  min-height: 32px;
  padding: 0 7px;
  border: 0;
  border-left: 1px solid #e0e6e2;
  border-radius: 0 4px 4px 0;
  background: transparent;
}

.task-custom-date-form button {
  min-height: 34px;
  padding: 0 12px;
}

.task-date-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.task-status-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #d8dee6;
  background: #f7f9fb;
}

.task-status-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #394b59;
  font-size: 13px;
  font-weight: 700;
}

.task-status-filter select {
  min-width: 190px;
}

.task-date-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #394b59;
  font-size: 13px;
  font-weight: 700;
}

.task-date-filter input[type="date"] {
  min-width: 156px;
}

.task-date-total {
  flex: 0 0 auto;
  margin-left: auto;
  color: #263442;
  font-size: 14px;
  white-space: nowrap;
}

.task-date-total span {
  color: #c62828;
  font-size: 18px;
}

.project-code-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 6px;
  max-width: 220px;
  min-height: 34px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid #c7d0da;
  border-radius: 6px;
  background: #fff;
  color: #263442;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.project-code-key {
  flex: 0 0 auto;
  color: #176b87;
  font-size: 12px;
  font-weight: 800;
}

.project-code-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-code-new-count {
  flex: 0 0 auto;
  color: #c62828;
  font-size: 12px;
  font-weight: 800;
}

.project-code-status-count {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.project-code-status-count.status-due-soon {
  background: #fff1cf;
  color: #8a5700;
}

.project-code-status-count.status-unfinished {
  background: #e7f0eb;
  color: #245d40;
}

.project-code-status-count.status-overdue {
  background: #fde3e0;
  color: #b42318;
}

.project-code-tab:hover {
  border-color: #6fa5b7;
  background: #f2f8fa;
}

.project-code-tab.active {
  border-color: #176b87;
  background: #176b87;
  color: #fff;
}

.project-code-tab.active .project-code-key {
  color: inherit;
}

.task-card {
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  padding: 10px 12px;
  min-width: 0;
}

.task-card.task-due-warning {
  border-color: #d9ad4a;
  border-left: 4px solid #c88b16;
  background: #fffaf0;
}

.task-card.task-due-today {
  border-color: #df8a55;
  border-left: 4px solid #cf5b1d;
  background: #fff4ed;
}

.task-card.task-due-overdue {
  border-color: #d16b74;
  border-left: 4px solid #b72f3b;
  background: #fff1f2;
}

.task-card.task-due-warning > .task-card-head > .badge.flag {
  background: #f7dfaa;
  color: #75510b;
}

.task-card.task-due-today > .task-card-head > .badge.flag {
  background: #f7c9ad;
  color: #84350e;
}

.task-card.task-due-overdue > .task-card-head > .badge.flag {
  background: #efbdc2;
  color: #7f1d28;
}

.task-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.task-card-title {
  min-width: 0;
  flex: 1;
}

.task-commission-summary {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(190px, 1.25fr) minmax(150px, 1fr) 112px 112px 100px;
  gap: 7px 12px;
  min-width: 0;
  flex: 1;
}

.task-commission-summary span {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.task-commission-summary small {
  color: #617080;
  font-size: 12px;
}

.task-commission-summary strong {
  overflow-wrap: anywhere;
  color: #1f2933;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.task-report-stage {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.task-report-stage.report-stage-pending,
.task-report-stage.report-stage-not-tested {
  background: #edf0f3;
  color: #52606d;
}

.task-report-stage.report-stage-tested {
  background: #dceef8;
  color: #12607a;
}

.task-report-stage.report-stage-reviewed {
  background: #ddf3e8;
  color: #176b45;
}

.task-report-stage.report-stage-signed {
  background: #ccebdc;
  color: #0d5636;
}

.task-commission-summary .task-sample-number {
  color: #087f5b;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.task-commission-summary .task-indicators-row {
  grid-column: 1 / -1;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px;
  border-left: 3px solid #176b87;
  background: #f4f8fa;
}

.task-commission-summary .task-indicators-row strong {
  font-size: 14px;
}

.task-batch-check {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
}

.batch-progress-form {
  position: sticky;
  top: 6px;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(160px, 220px) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #9ccbd8;
  border-radius: 6px;
  background: #eef7f9;
}

.template-setting-list {
  grid-column: 1 / -1;
}

.template-setting-list form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid #eef1f5;
}

.batch-preview {
  max-width: 680px;
  margin: 32px auto;
}

.batch-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.task-flow {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
}

.task-branch {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
}

.task-branch-label {
  min-width: 72px;
  max-width: 120px;
  color: #617080;
  font-size: 12px;
}

.task-node-form {
  display: inline-flex;
}

.task-node-readonly {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.task-node {
  min-width: 76px;
  min-height: 38px;
  padding: 5px 10px;
  border: 1px solid #c6ced8;
  background: #eef1f4;
  color: #263442;
}

.task-node small {
  display: block;
  margin-top: 2px;
  color: inherit;
}

.task-node-done {
  border-color: #78b9a3;
  background: #dff3eb;
  color: #135c47;
}

.task-node-done.actor-tone-0 { background: #dff3eb; border-color: #78b9a3; color: #135c47; }
.task-node-done.actor-tone-1 { background: #e2eff8; border-color: #86b4d3; color: #245b7a; }
.task-node-done.actor-tone-2 { background: #fff0cf; border-color: #dfbd72; color: #73520c; }
.task-node-done.actor-tone-3 { background: #f6e5ef; border-color: #d5a1bf; color: #763b5e; }
.task-node-done.actor-tone-4 { background: #e8e5f5; border-color: #aaa0d2; color: #504579; }
.task-node-done.actor-tone-5 { background: #e7f1df; border-color: #9dbf83; color: #3e6427; }
.task-node-done.actor-tone-6 { background: #f8e5df; border-color: #d3a08f; color: #744335; }
.task-node-done.actor-tone-7 { background: #e1f0f0; border-color: #89b9b8; color: #245f5e; }

.task-more {
  margin-top: 8px;
  border-top: 1px solid #eef1f5;
  padding-top: 8px;
}

.task-more summary,
.task-admin > summary {
  cursor: pointer;
  color: #394b59;
}

.task-history {
  margin-top: 12px;
}

.task-history ol {
  display: grid;
  gap: 7px;
  padding-left: 22px;
}

.task-history li {
  padding-left: 4px;
}

.task-history li span,
.task-history li small {
  display: block;
  color: #617080;
  font-size: 12px;
}

.task-history li strong {
  display: block;
  margin: 2px 0;
  font-size: 13px;
}

.task-note-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 10px 0;
}

.task-correction-form {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(220px, 1.3fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.danger-outline {
  min-height: 38px;
  border: 1px solid #d18c92;
  background: #fff;
  color: #8a3040;
}

.task-admin-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.task-admin h2 {
  margin: 6px 0;
  font-size: 16px;
}

.task-assignment-config {
  grid-row: span 2;
}

.task-assignment-config fieldset {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid #d9dee7;
  border-radius: 6px;
}

.task-assignment-config legend {
  padding: 0 5px;
  color: #4a5565;
  font-size: 13px;
  font-weight: 700;
}

.task-assignment-options {
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.task-assignment-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
}

.task-assignment-tools input[type="search"] {
  min-width: 0;
}

.task-assignment-tools .check-label {
  white-space: nowrap;
}

.task-assignment-options .check-label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  min-width: 0;
  padding: 7px 8px;
  border-bottom: 1px solid #eef1f5;
}

.task-assignment-options .check-label small {
  grid-column: 2;
  color: #697586;
}

.template-grid-tools {
  display: flex;
  gap: 8px;
}

.template-grid-tools button {
  min-height: 34px;
}

.template-grid-wrap {
  overflow-x: auto;
  border: 1px solid #c6ced8;
}

.template-grid {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: white;
}

.template-grid th,
.template-grid td {
  min-width: 108px;
  height: 38px;
  border: 1px solid #d9dee7;
  padding: 5px 8px;
  text-align: left;
}

.template-grid th {
  background: #f1f4f7;
  color: #394b59;
  font-size: 13px;
}

.template-grid td:focus {
  outline: 2px solid #4d94aa;
  outline-offset: -2px;
}

.shared-upload-panel > summary {
  cursor: pointer;
  font-weight: 700;
  color: #263442;
}

.shared-upload-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.shared-upload-forms form + form {
  border-left: 1px solid #d9dee7;
  padding-left: 18px;
}

.shared-dropzone {
  min-height: 116px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 2px dashed #8ea5b2;
  border-radius: 6px;
  background: #f7fafb;
  color: #394b59;
  cursor: pointer;
}

.shared-dropzone.is-dragging {
  border-color: #176b87;
  background: #edf6f8;
}

.shared-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.shared-dropzone span {
  color: #617080;
  font-size: 13px;
}

.shared-explorer {
  min-height: 430px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: #fff;
}

.shared-folder-pane {
  display: grid;
  align-content: start;
  border-right: 1px solid #d9dee7;
  background: #f7f8fa;
  padding: 10px 0;
}

.shared-folder-pane a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  color: #394b59;
}

.shared-folder-pane a:hover,
.shared-folder-pane a.active {
  background: #eaf2f5;
  color: #0f5f78;
  text-decoration: none;
}

.shared-folder-pane small {
  color: #7a8793;
}

.shared-folder-home {
  border-bottom: 1px solid #d9dee7;
  font-weight: 700;
}

.shared-content-pane {
  min-width: 0;
  padding: 16px;
}

.shared-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #617080;
  font-size: 13px;
}

.shared-content-heading {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e3e7ed;
}

.shared-content-heading h2 {
  margin: 0;
  font-size: 18px;
}

.shared-content-heading span {
  color: #617080;
  font-size: 13px;
}

.shared-folder-tools {
  margin: 10px 0 14px;
  border-bottom: 1px solid #e3e7ed;
  padding-bottom: 12px;
}

.shared-folder-tools > summary {
  cursor: pointer;
  color: #176b87;
  font-size: 13px;
  font-weight: 700;
}

.shared-folder-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.shared-folder-tool-grid form {
  align-content: start;
}

.shared-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.shared-folder-tile {
  min-height: 66px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 10px;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  padding: 10px;
  color: #263442;
}

.shared-folder-tile:hover {
  border-color: #70a5b7;
  background: #f4f9fa;
  text-decoration: none;
}

.shared-folder-tile small {
  color: #617080;
}

.shared-folder-icon {
  position: relative;
  grid-row: 1 / 3;
  width: 34px;
  height: 24px;
  border-radius: 3px;
  background: #d9a928;
}

.shared-folder-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 2px;
  width: 15px;
  height: 7px;
  border-radius: 3px 3px 0 0;
  background: #c79617;
}

.shared-file-list {
  display: grid;
}

.shared-file-row {
  display: grid;
  grid-template-columns: 32px minmax(220px, 1.4fr) minmax(210px, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #e3e7ed;
  padding: 11px 4px;
}

.shared-file-icon {
  width: 24px;
  height: 30px;
  border: 1px solid #8ea5b2;
  border-radius: 2px;
  background: #fff;
}

.shared-file-main,
.shared-file-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.shared-file-main strong,
.shared-file-main span,
.shared-file-meta span {
  overflow-wrap: anywhere;
}

.shared-file-main span,
.shared-file-meta {
  color: #617080;
  font-size: 12px;
}

.shared-file-actions {
  white-space: nowrap;
}

.shared-file-manage {
  grid-column: 2 / -1;
}

.shared-file-manage > summary {
  cursor: pointer;
  color: #617080;
  font-size: 13px;
}

.external-parameter-list h3 {
  margin: 16px 0 8px;
  font-size: 15px;
}

.external-parameter-items {
  margin: 0;
  padding-left: 28px;
}

.external-parameter-name {
  padding: 5px 0;
  line-height: 1.6;
}

.external-parameter-name .required-marker {
  margin-right: 3px;
}

.external-parameter-name .mandatory-marker {
  margin-left: 4px;
}

.guidance-layout {
  display: grid;
  gap: 22px;
}

.guidance-section {
  border-top: 2px solid #263746;
  padding-top: 14px;
}

.guidance-entry {
  padding: 16px 0;
  border-bottom: 1px solid #d9dee7;
}

.guidance-entry-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.guidance-entry-heading h2 {
  margin: 0;
  font-size: 18px;
}

.guidance-content {
  margin-top: 10px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.guidance-editor {
  margin-top: 12px;
}

.guidance-create-panel {
  margin-bottom: 24px;
}

@media (max-width: 720px) {
  .task-query-row {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .task-query-label {
    flex-basis: auto;
  }

  .task-query-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-query-button {
    width: 100%;
    white-space: normal;
  }

  .task-custom-date-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-left: 0;
  }

  .task-date-picker {
    min-width: 0;
  }

  .task-date-picker input[type="date"] {
    width: 100%;
    min-width: 0;
  }

  .task-date-filter,
  .task-status-filter {
    flex-wrap: wrap;
  }

  .task-query-mode {
    display: grid;
    width: 100%;
  }

  .task-status-filter label,
  .task-status-filter select {
    width: 100%;
  }

  .task-date-total {
    width: 100%;
    margin-left: 0;
  }

  .task-search,
  .task-department-filter,
  .task-note-form,
  .task-correction-form,
  .task-admin-grid {
    grid-template-columns: 1fr;
  }

  .task-assignment-tools {
    grid-template-columns: 1fr;
  }

  .task-card {
    padding: 12px;
  }

  .task-node {
    min-width: 88px;
  }

  .affair-form,
  .affair-option-form,
  .affairs-panel li {
    grid-template-columns: 1fr;
  }

  .batch-progress-form {
    grid-template-columns: 1fr;
  }

  .task-card-head {
    flex-wrap: wrap;
  }

  .task-commission-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-basis: calc(100% - 48px);
  }

  .task-commission-summary .task-sample-cell,
  .task-commission-summary .task-indicators-row {
    grid-column: 1 / -1;
  }

  .project-code-tabs {
    max-height: 150px;
  }

  .project-code-tab {
    max-width: min(220px, calc(100vw - 72px));
  }

  .task-commission-summary .task-indicators-row {
    grid-template-columns: 1fr;
  }

  .shared-upload-forms,
  .shared-explorer,
  .shared-folder-tool-grid {
    grid-template-columns: 1fr;
  }

  .shared-upload-forms form + form {
    border-top: 1px solid #d9dee7;
    border-left: 0;
    padding-top: 18px;
    padding-left: 0;
  }

  .shared-folder-pane {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid #d9dee7;
  }

  .shared-folder-home {
    grid-column: 1 / -1;
  }

  .shared-file-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .shared-file-meta {
    grid-column: 2 / -1;
  }

  .shared-file-manage {
    grid-column: 2 / -1;
  }
}
.commitment-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.commitment-review-item {
  margin: 0;
}

.commitment-review-item form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 190px) auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.commitment-review-item form label {
  display: grid;
  gap: 5px;
}

@media (max-width: 900px) {
  .commitment-review-list {
    grid-template-columns: 1fr;
  }

  .commitment-review-item form {
    grid-template-columns: 1fr;
  }
}

.analysis-filter-form {
  display: grid;
  gap: 12px;
}

.analysis-filter-band > label,
.analysis-advanced-grid > label,
.analysis-saved-filters label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #526170;
  font-size: 12px;
  font-weight: 700;
}

.analysis-smart-shortcut {
  margin: 10px 0 12px;
}

.analysis-smart-shortcut form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.analysis-smart-shortcut input {
  min-width: 0;
  height: 42px;
  box-sizing: border-box;
}

.analysis-filter-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e3e8ed;
}

.analysis-filter-heading h2 {
  margin: 0;
  font-size: 15px;
}

.analysis-filter-heading span {
  color: #73808c;
  font-size: 12px;
}

.analysis-filter-band,
.analysis-advanced-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  align-items: end;
  gap: 10px 12px;
}

.analysis-filter-common {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.analysis-advanced-filters {
  border-top: 1px solid #e3e8ed;
  padding-top: 10px;
}

.analysis-advanced-filters > summary {
  width: fit-content;
  color: #365d71;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.analysis-advanced-grid {
  margin-top: 10px;
}

.analysis-filter-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.analysis-filter-form input,
.analysis-filter-form select,
.analysis-saved-filters input {
  width: 100%;
  min-width: 0;
  height: 38px;
  box-sizing: border-box;
}

.analysis-multiselect {
  position: relative;
  min-width: 0;
}

.analysis-multiselect > summary {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #bfc8d2;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
  list-style: none;
}

.analysis-multiselect > summary::-webkit-details-marker {
  display: none;
}

.analysis-multiselect > summary span {
  color: #3e4b57;
  font-size: 13px;
  font-weight: 700;
}

.analysis-multiselect > summary strong {
  overflow: hidden;
  color: #617080;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-multiselect-menu {
  position: absolute;
  z-index: 20;
  width: max(100%, 260px);
  margin-top: 4px;
  padding: 8px;
  border: 1px solid #bfc8d2;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 45, 58, 0.14);
}

.analysis-multiselect-menu > input {
  height: 34px;
  margin-bottom: 6px;
}

.analysis-multiselect-options {
  max-height: 240px;
  overflow-y: auto;
}

.analysis-multiselect-options > label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 7px 5px;
  color: #263746;
  font-size: 13px;
  font-weight: 400;
}

.analysis-multiselect-options input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.analysis-multiselect[data-disabled="true"] > summary {
  background: #edf1f4;
  color: #7a8793;
  cursor: not-allowed;
}

.analysis-selected-filters {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.analysis-selected-filters > strong {
  flex: 0 0 auto;
  padding-top: 5px;
  color: #526170;
  font-size: 12px;
}

.analysis-filter-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.analysis-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 28px;
  padding: 4px 7px 4px 9px;
  border: 1px solid #a9c4ce;
  border-radius: 6px;
  background: #f2f8fa;
  color: #28566a;
  font-size: 12px;
}

.analysis-filter-tag span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-filter-tag b {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.analysis-filter-tag:hover {
  border-color: #176b87;
  background: #e7f4f8;
}

.analysis-filter-tag-empty {
  padding-top: 5px;
  color: #7a8793;
  font-size: 12px;
}

.analysis-date-ranges {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.analysis-date-ranges button {
  min-height: 34px;
  padding: 6px 14px;
}

.analysis-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  overflow: hidden;
  background: #d9dee7;
}

.analysis-summary > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 78px;
  padding: 12px;
  background: #fff;
}

.analysis-summary span {
  color: #617080;
  font-size: 12px;
}

.analysis-summary strong {
  color: #1f2d3a;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.analysis-saved-filters {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0;
}

.analysis-saved-filters form,
.analysis-saved-filters nav {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1000px) {
  .analysis-filter-band,
  .analysis-filter-common,
  .analysis-advanced-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .analysis-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .analysis-filter-band,
  .analysis-filter-common,
  .analysis-advanced-grid,
  .analysis-smart-shortcut form,
  .analysis-summary {
    grid-template-columns: 1fr;
  }

  .analysis-filter-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .analysis-saved-filters {
    align-items: stretch;
    flex-direction: column;
  }
}

.analysis-chart {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
}

.analysis-detail-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}

.analysis-smart-form {
  display: grid;
  gap: 8px;
}

.analysis-smart-workbench {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.analysis-smart-main {
  min-width: 0;
}

.analysis-conversation-panel {
  position: sticky;
  top: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d7dee5;
  border-radius: 6px;
  background: #fff;
}

.analysis-conversation-panel .section-heading {
  align-items: center;
  margin-bottom: 9px;
}

.analysis-conversation-panel .section-heading h2,
.analysis-conversation-history .section-heading h2 {
  margin: 0;
  font-size: 15px;
}

.analysis-conversation-panel .action-row {
  gap: 8px;
  font-size: 12px;
}

.analysis-conversation-panel .action-row a + a {
  padding-left: 8px;
  border-left: 1px solid #cfd8de;
}

.analysis-conversation-list,
.analysis-saved-list {
  display: grid;
  gap: 5px;
}

.analysis-conversation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border-left: 3px solid transparent;
  color: #334a59;
  text-decoration: none;
}

.analysis-conversation-item:hover {
  background: #f1f6f8;
}

.analysis-conversation-item.active {
  border-left-color: #176b87;
  background: #eaf3f6;
  color: #174e63;
}

.analysis-conversation-item strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-conversation-item span {
  color: #72808c;
  font-size: 11px;
  white-space: nowrap;
}

.analysis-saved-list {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e7eb;
}

.analysis-saved-list h3 {
  margin: 0 0 3px;
  color: #526170;
  font-size: 12px;
}

.analysis-saved-item {
  padding: 6px 8px;
  color: #365d71;
  font-size: 13px;
  text-decoration: none;
}

.analysis-save-query {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e7eb;
}

.analysis-save-query label {
  display: grid;
  gap: 4px;
  color: #526170;
  font-size: 12px;
  font-weight: 700;
}

.analysis-save-query input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.analysis-conversation-delete {
  margin-top: 8px;
}

.analysis-conversation-delete button {
  width: 100%;
  border-color: #d5c4c4;
  background: #fff;
  color: #8a3434;
}

.analysis-conversation-history {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #d7dee5;
  border-radius: 6px;
  background: #fff;
}

.analysis-engineering-subject {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #cbdad4;
  border-left: 3px solid #287a68;
  border-radius: 6px;
  background: #f8fbfa;
}

.analysis-engineering-subject > div {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.analysis-engineering-subject > div span,
.analysis-engineering-subject summary {
  color: #617080;
  font-size: 12px;
}

.analysis-engineering-subject details {
  grid-column: 1 / -1;
}

.analysis-engineering-subject ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #334a59;
  font-size: 13px;
}

.analysis-conversation-turn {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #edf0f2;
}

.analysis-conversation-question,
.analysis-conversation-answer {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.analysis-conversation-question > span,
.analysis-conversation-answer > span {
  color: #617080;
  font-size: 12px;
  font-weight: 700;
}

.analysis-conversation-question strong,
.analysis-conversation-answer p,
.analysis-conversation-answer small {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.analysis-alias-manager {
  border-top: 1px solid #e3e8ed;
  padding-top: 10px;
}

.analysis-alias-manager > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #365d71;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.analysis-alias-manager > summary span {
  color: #73808c;
  font-size: 11px;
}

.analysis-alias-list {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.analysis-alias-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid #edf0f3;
}

.analysis-alias-item > span {
  display: grid;
  min-width: 0;
}

.analysis-alias-item strong,
.analysis-alias-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-alias-item small {
  color: #73808c;
  font-size: 11px;
}

.analysis-alias-delete {
  width: 28px;
  min-height: 28px;
  padding: 0;
  background: transparent;
  color: #a33a3a;
  font-size: 18px;
}

.analysis-alias-manager > form {
  display: grid;
  gap: 7px;
}

.analysis-alias-manager > form label {
  display: grid;
  gap: 4px;
  color: #526170;
  font-size: 11px;
  font-weight: 700;
}

.analysis-alias-manager > form input,
.analysis-alias-manager > form select {
  width: 100%;
  min-width: 0;
  height: 34px;
  box-sizing: border-box;
}

.analysis-public-alias-link {
  display: inline-block;
  margin-top: 8px;
  color: #365d71;
  font-size: 12px;
}

.analysis-conversation-answer p {
  color: #334a59;
  font-size: 13px;
}

.analysis-conversation-answer small {
  grid-column: 2;
  color: #77848e;
  font-size: 11px;
}

.analysis-audit-filter {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 9px;
}

.analysis-audit-filter label {
  display: grid;
  gap: 4px;
  color: #526170;
  font-size: 12px;
  font-weight: 700;
}

.work-calendar-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 10px 12px;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.work-calendar-table {
  min-width: 760px;
}

.work-calendar-table th,
.work-calendar-table td {
  white-space: nowrap;
}

.work-calendar-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #526170;
  font-size: 12px;
  font-weight: 700;
}

.work-calendar-form input,
.work-calendar-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.work-calendar-form textarea {
  resize: vertical;
}

.work-calendar-note {
  grid-column: 1 / -1;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}

.tabs a {
  border: 1px solid #c6d1d9;
  border-radius: 6px;
  padding: 7px 11px;
  background: #fff;
  color: #365d71;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.tabs a:hover {
  border-color: #176b87;
}

.tabs a.active {
  border-color: #176b87;
  background: #176b87;
  color: #fff;
}

.analysis-runtime-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
  color: #617080;
}

.analysis-runtime-status .badge {
  border: 1px solid #b9d8ca;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.analysis-runtime-status .badge.muted {
  border-color: #d4dbe1;
}

.analysis-runtime-status small {
  margin-left: 2px;
}

.analysis-clarification {
  display: grid;
  gap: 10px;
}

.analysis-clarification p {
  margin: 0;
}

.analysis-clarify-candidates {
  display: grid;
  gap: 7px;
}

.analysis-clarify-candidates > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.analysis-clarification form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.analysis-clarification form label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.analysis-clarification form input {
  width: 100%;
  height: 38px;
  box-sizing: border-box;
}

@media (max-width: 620px) {
  .analysis-clarification form {
    grid-template-columns: 1fr;
  }
}

.analysis-smart-form > label {
  color: #3e4b57;
  font-size: 13px;
  font-weight: 700;
}

.analysis-smart-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.analysis-smart-form input {
  width: 100%;
  min-width: 0;
  height: 42px;
  box-sizing: border-box;
}

.analysis-interpretation {
  margin: 12px 0;
  border: 1px solid #d9dee7;
  background: #fff;
}

.analysis-interpretation summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.analysis-interpretation summary span {
  min-width: 0;
  overflow: hidden;
  color: #617080;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-interpretation dl,
.analysis-interpretation .action-row {
  margin: 0;
  padding: 0 14px 14px;
}

.analysis-smart-result {
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: start;
}

.analysis-trend {
  width: 100%;
  min-height: 180px;
  margin: 12px 0 18px;
  border-bottom: 1px solid #d9dee7;
}

.analysis-result-view-switch {
  width: fit-content;
  margin: 10px 0 4px;
}

.analysis-result-view-switch button {
  min-width: 76px;
}

.analysis-result-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.analysis-result-actions a {
  border: 1px solid #b9c8d1;
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff;
  color: #365d71;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.analysis-statistics-table {
  min-width: 680px;
}

.analysis-statistics-table th,
.analysis-statistics-table td {
  white-space: nowrap;
}

.analysis-comparison-table {
  min-width: 520px;
}

.analysis-comparison-table th,
.analysis-comparison-table td {
  white-space: nowrap;
}

.analysis-cross-chart {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.analysis-cross-group {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid #e3e8ed;
}

.analysis-cross-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.analysis-cross-group h3 {
  margin: 0 0 8px;
  color: #263746;
  font-size: 14px;
}

.analysis-cross-group .analysis-chart {
  margin: 0;
}

.analysis-cross-table {
  min-width: 680px;
}

.analysis-cross-table th,
.analysis-cross-table td {
  white-space: nowrap;
}

.analysis-metric-table {
  min-width: 560px;
}

.analysis-metric-table th,
.analysis-metric-table td {
  white-space: nowrap;
}

.analysis-timeliness-table {
  min-width: 760px;
}

.analysis-timeliness-table th,
.analysis-timeliness-table td {
  white-space: nowrap;
}

.analysis-comparison-chart {
  display: grid;
  gap: 12px;
  padding: 18px 0 12px;
}

.analysis-comparison-bar {
  display: grid;
  grid-template-columns: 76px minmax(120px, 1fr) minmax(92px, auto);
  align-items: center;
  gap: 10px;
}

.analysis-comparison-bar > span {
  color: #526170;
  font-size: 13px;
  font-weight: 700;
}

.analysis-comparison-bar > i {
  display: block;
  min-width: 5px;
  height: 22px;
  border-radius: 3px;
}

.analysis-comparison-bar > i.condition-a {
  background: #287a68;
}

.analysis-comparison-bar > i.condition-b {
  background: #176b87;
}

.analysis-comparison-bar > strong {
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.analysis-trend svg {
  display: block;
  width: 100%;
  height: 180px;
}

.analysis-trend line {
  stroke: #c5ced8;
  stroke-width: 1;
}

.analysis-trend polyline {
  fill: none;
  stroke: #287a68;
  stroke-width: 3;
}

.analysis-trend circle {
  fill: #fff;
  stroke: #287a68;
  stroke-width: 3;
}

.analysis-cloud-preview {
  border-left: 3px solid #b7791f;
}

.analysis-cloud-preview pre {
  margin: 12px 0;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid #d9dee7;
  background: #f6f8fa;
  color: #263746;
  white-space: pre-wrap;
}

.analysis-cloud-preview details {
  margin-bottom: 12px;
}

@media (max-width: 620px) {
  .analysis-smart-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .analysis-conversation-panel {
    position: static;
    order: 2;
  }

  .analysis-smart-main {
    order: 1;
  }

  .analysis-conversation-list {
    grid-auto-columns: minmax(180px, 75%);
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .analysis-conversation-question,
  .analysis-conversation-answer {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .analysis-engineering-subject {
    grid-template-columns: minmax(0, 1fr);
  }

  .analysis-comparison-bar {
    grid-template-columns: 60px minmax(60px, 1fr) minmax(78px, auto);
    gap: 7px;
  }

  .analysis-comparison-bar > strong {
    font-size: 12px;
  }

  .analysis-conversation-answer small {
    grid-column: 1;
  }

  .analysis-audit-filter,
  .analysis-audit-filter label,
  .analysis-audit-filter input {
    width: 100%;
    box-sizing: border-box;
  }

  .work-calendar-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-calendar-note {
    grid-column: 1;
  }

  .analysis-smart-form > div,
  .analysis-smart-result {
    grid-template-columns: 1fr;
  }
}

.analysis-detail-controls label {
  display: grid;
  gap: 5px;
  min-width: 140px;
  color: #3e4b57;
  font-size: 13px;
  font-weight: 700;
}

.analysis-detail-controls select {
  min-width: 140px;
  height: 38px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 14px;
}

.pagination span {
  color: #617080;
  font-size: 13px;
}

@media (max-width: 620px) {
  .analysis-detail-controls,
  .analysis-detail-controls label,
  .analysis-detail-controls select {
    width: 100%;
  }

  .pagination {
    justify-content: space-between;
  }
}

.analysis-chart-row {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(120px, 1fr) 56px;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.analysis-chart-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-chart-row > i {
  display: block;
  min-width: 4px;
  height: 18px;
  border-radius: 3px;
  background: #287a68;
}

.analysis-chart-row > strong {
  text-align: right;
}

@media (max-width: 720px) {
  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tabs a {
    min-width: 0;
    padding: 8px 6px;
    text-align: center;
  }

  .analysis-chart-row {
    grid-template-columns: minmax(0, 1.35fr) minmax(64px, 1fr) minmax(48px, auto);
    gap: 8px;
  }

  .analysis-chart-row > span {
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .analysis-chart-row > strong {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* 2026 interface refresh: shared visual system for authenticated workspaces. */
:root {
  --ui-bg: #f2f5f3;
  --ui-surface: #ffffff;
  --ui-surface-subtle: #f7f9f8;
  --ui-surface-strong: #edf2ef;
  --ui-text: #1d2b24;
  --ui-text-soft: #66736c;
  --ui-border: #d8e0db;
  --ui-border-strong: #bdc9c1;
  --ui-primary: #176b4d;
  --ui-primary-strong: #0f523a;
  --ui-primary-soft: #e8f3ed;
  --ui-secondary: #285f78;
  --ui-secondary-soft: #eaf2f5;
  --ui-warning: #a86408;
  --ui-warning-soft: #fff6df;
  --ui-danger: #b42318;
  --ui-danger-soft: #fff0ee;
  --ui-shadow: 0 1px 2px rgba(28, 45, 35, .05), 0 8px 24px rgba(28, 45, 35, .045);
  --ui-radius: 7px;
}

html {
  min-width: 320px;
  background: var(--ui-bg);
}

body {
  min-height: 100vh;
  background: var(--ui-bg);
  color: var(--ui-text);
  font-size: 14px;
  line-height: 1.55;
}

a {
  color: var(--ui-secondary);
  text-underline-offset: 3px;
}

a:hover {
  color: #174b64;
}

main.wide-page {
  width: min(100%, 1680px);
  max-width: none;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 18px 20px 24px;
}

.wide-page .app-shell {
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 20px;
}

.wide-page .module-sidebar {
  top: 18px;
  display: flex;
  min-height: calc(100vh - 82px);
  max-height: calc(100vh - 36px);
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
}

.sidebar-brand {
  min-height: 114px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 11px;
  row-gap: 1px;
  padding: 15px 14px 12px;
  border-bottom: 1px solid var(--ui-border);
  background: #f7faf8;
  box-shadow: inset 0 3px var(--ui-primary);
}

.sidebar-brand img {
  width: 42px;
  height: 42px;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
}

.sidebar-brand-copy {
  display: contents;
}

.sidebar-brand-copy .sidebar-company-name {
  grid-column: 1 / -1;
  grid-row: 3;
  min-width: 0;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #dfe8e2;
  color: #173b2d;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.sidebar-brand-copy .sidebar-product-name {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  color: var(--ui-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.sidebar-brand-motto {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  color: #74827a;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.wide-page .sidebar-user {
  margin: 0 12px 8px;
  padding: 12px 2px 11px;
  border: 0;
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
}

.wide-page .sidebar-user span {
  color: #718078;
}

.wide-page .sidebar-user strong {
  color: var(--ui-text);
}

.sidebar-user-actions {
  flex: 0 0 auto;
}

.wide-page .sidebar-user-actions button {
  min-height: 28px;
  padding: 3px 8px;
  border: 1px solid #c8d5cd;
  border-radius: 4px;
  background: #fff;
  color: var(--ui-secondary);
  font-size: 12px;
}

.wide-page .sidebar-user-actions button:hover {
  border-color: #93aa9c;
  background: #f3f7f5;
  text-decoration: none;
}

.wide-page .module-nav {
  min-height: 0;
  gap: 2px;
  overflow-y: auto;
  padding: 2px 10px 14px;
  scrollbar-width: thin;
}

.wide-page .module-nav a {
  min-height: 40px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: #435148;
  font-size: 14px;
  font-weight: 600;
}

.wide-page .module-nav a:hover {
  background: var(--ui-surface-strong);
  color: var(--ui-primary-strong);
}

.wide-page .module-nav a.active,
.wide-page .module-nav a[aria-current="page"] {
  background: var(--ui-primary-soft);
  box-shadow: inset 3px 0 var(--ui-primary);
  color: var(--ui-primary-strong);
}

.wide-page .app-workspace {
  padding-top: 2px;
}

.wide-page .detail-header {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-sizing: border-box;
  margin: 0 0 10px;
  padding: 4px 2px 14px;
  border: 0;
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
}

.wide-page .detail-header h1,
.wide-page .equipment-page-header h1 {
  margin: 0 0 3px;
  color: #172b21;
  font-size: 24px;
  line-height: 1.3;
}

.wide-page h2 {
  color: #21342a;
  font-size: 17px;
  line-height: 1.4;
}

.wide-page h3 {
  color: #2a3c32;
  font-size: 15px;
}

.wide-page .context,
.wide-page .stats,
.wide-page .meta {
  color: var(--ui-text-soft);
}

.wide-page .panel,
.wide-page .search-shell,
.wide-page .result-card,
.wide-page .risk,
.wide-page .project-result {
  box-sizing: border-box;
  margin-bottom: 12px;
  padding: 17px 18px;
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
}

.wide-page .panel {
  overflow-x: auto;
}

.wide-page .search-shell {
  box-shadow: var(--ui-shadow);
}

.wide-page .compact-panel {
  padding: 12px 16px;
}

.wide-page .ai-search-shell {
  border-color: #c7d9ce;
  box-shadow: 0 1px 2px rgba(23, 107, 77, .06), 0 9px 26px rgba(23, 107, 77, .06);
}

.wide-page .ai-search-label {
  margin-bottom: 9px;
  color: var(--ui-primary-strong);
  font-size: 13px;
}

.wide-page .ai-search-label span {
  border: 1px solid #d6e5dc;
  border-radius: 4px;
  background: #f3f8f5;
  color: #617269;
}

.wide-page .search-form {
  gap: 9px;
}

.wide-page input,
.wide-page select,
.wide-page textarea {
  box-sizing: border-box;
  border-color: var(--ui-border-strong);
  border-radius: 5px;
  background: #fff;
  color: var(--ui-text);
}

.wide-page input:hover,
.wide-page select:hover,
.wide-page textarea:hover {
  border-color: #96a89c;
}

.wide-page input:focus,
.wide-page select:focus,
.wide-page textarea:focus {
  outline: 3px solid rgba(23, 107, 77, .12);
  border-color: var(--ui-primary);
}

.wide-page .search-input {
  min-height: 44px;
  padding: 0 13px;
  font-size: 15px;
}

.wide-page button {
  min-height: 38px;
  box-sizing: border-box;
  border-radius: 5px;
  background: var(--ui-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.wide-page button:hover {
  background: var(--ui-primary-strong);
}

.wide-page .parameter-secondary-action {
  min-height: 26px;
  padding: 3px 7px;
  border: 1px solid #d7dedb;
  background: #f8faf9;
  color: #718078;
  font-size: 12px;
  font-weight: 500;
}

.wide-page .parameter-secondary-action:hover {
  border-color: #bfcac3;
  background: #f2f5f3;
  color: #506158;
}

.wide-page button:focus-visible,
.wide-page a:focus-visible,
.wide-page summary:focus-visible {
  outline: 3px solid rgba(40, 95, 120, .18);
  outline-offset: 2px;
}

.wide-page .search-reset,
.wide-page .danger-outline,
.wide-page .equipment-edit-button {
  border: 1px solid var(--ui-border-strong);
  background: #fff;
  color: #3e5046;
}

.wide-page .search-reset:hover,
.wide-page .equipment-edit-button:hover {
  border-color: #8da096;
  background: var(--ui-surface-subtle);
  color: var(--ui-primary-strong);
}

.wide-page .danger-outline {
  border-color: #d5a09b;
  color: var(--ui-danger);
}

.wide-page .filters {
  gap: 8px;
}

.wide-page .filters input,
.wide-page .filters select {
  min-height: 38px;
  background: var(--ui-surface-subtle);
}

.wide-page .search-meta-row {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #edf0ee;
}

.wide-page .section-heading,
.wide-page .project-result-heading,
.wide-page .shared-content-heading {
  min-height: 36px;
}

.wide-page .section-heading h1 {
  color: #172b21;
  font-size: 21px;
}

.wide-page .top-nav,
.wide-page .tabs,
.wide-page .task-view-tabs,
.wide-page .task-query-mode {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  background: var(--ui-surface-strong);
}

.wide-page .top-nav {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  overflow-x: auto;
}

.wide-page .top-nav a,
.wide-page .tabs a,
.wide-page .task-view-tab {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 11px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4f5f56;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.wide-page .top-nav a:hover,
.wide-page .tabs a:hover,
.wide-page .task-view-tab:hover {
  background: #fff;
  color: var(--ui-primary-strong);
  text-decoration: none;
}

.wide-page .top-nav a[aria-current="page"],
.wide-page .tabs a.active,
.wide-page .task-view-tab.active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 48, 39, .1);
  color: var(--ui-primary-strong);
}

.wide-page table {
  border-collapse: separate;
  border-spacing: 0;
  color: #304038;
}

.wide-page table th {
  background: var(--ui-surface-strong);
  color: #536259;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.wide-page table th,
.wide-page table td {
  border-color: var(--ui-border);
  padding: 9px 11px;
  line-height: 1.5;
  vertical-align: top;
}

.wide-page table tbody tr:hover td {
  background: #f8faf9;
}

.wide-page .standard-lifecycle-table {
  width: 100%;
  min-width: 720px;
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  overflow: hidden;
}

.wide-page .badge,
.wide-page .standard-linked,
.wide-page .standard-missing,
.wide-page .department-badge {
  border-radius: 4px;
  font-weight: 600;
}

.wide-page .notice {
  margin-bottom: 12px;
  padding: 11px 14px;
  border: 1px solid #bad8c7;
  border-left: 4px solid var(--ui-primary);
  border-radius: 5px;
  background: #eef8f2;
  color: #245b3f;
}

.wide-page .notice.warn {
  border-color: #ead3a4;
  border-left-color: var(--ui-warning);
  background: var(--ui-warning-soft);
  color: #77500d;
}

.wide-page .empty {
  color: #7a867f;
}

.wide-page details > summary {
  border-radius: 4px;
}

.wide-page .search-target,
.wide-page .standard-progress-card,
.wide-page .equipment-management {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: none;
}

.wide-page .search-target > summary,
.wide-page .standard-progress-summary,
.wide-page .equipment-management > summary {
  background: var(--ui-surface);
}

.wide-page .search-target > summary:hover,
.wide-page .standard-progress-summary:hover,
.wide-page .equipment-management > summary:hover {
  background: var(--ui-surface-subtle);
}

.wide-page .search-target[open] > summary,
.wide-page .standard-progress-card[open] > summary,
.wide-page .equipment-management[open] > summary {
  background: #f5f9f6;
}

.wide-page .parameter-row,
.wide-page .standard-hit {
  border-color: #e4e9e6;
}

.wide-page .standard-progress-card {
  overflow: hidden;
  background: #fff;
}

.wide-page .standard-progress-summary {
  min-height: 76px;
  padding: 13px 16px;
}

.wide-page .standard-progress-detail {
  border-top-color: var(--ui-border);
  background: #fbfcfb;
}

.wide-page .standard-progress-phase {
  border-color: var(--ui-border);
  border-radius: 6px;
  background: #fff;
}

.wide-page .standard-progress-row {
  border-color: #e4e9e6;
}

.wide-page .equipment-page-header {
  margin: 0 0 10px;
  padding: 4px 2px 14px;
  border-bottom: 1px solid var(--ui-border);
}

.wide-page .equipment-search-shell {
  padding: 14px 16px;
}

.wide-page .equipment-alert-strip {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
}

.wide-page .equipment-ledger {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius);
}

.wide-page .equipment-list-header {
  min-height: 42px;
  background: var(--ui-surface-strong);
  color: #59685f;
}

.wide-page .equipment-row {
  border-color: #e4e9e6;
}

.wide-page .equipment-row-main {
  min-height: 62px;
}

.wide-page .equipment-row-main:hover {
  background: #f7faf8;
}

.wide-page .equipment-row.is-expanded .equipment-row-main {
  background: var(--ui-primary-soft);
  box-shadow: inset 3px 0 var(--ui-primary);
}

.wide-page .equipment-code {
  color: var(--ui-primary);
}

.wide-page .equipment-identity {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--ui-text);
  font-weight: 600;
}

.wide-page .equipment-identity:hover {
  background: transparent;
  color: var(--ui-primary-strong);
}

.wide-page .equipment-details,
.wide-page .equipment-details-panel {
  background: #f8faf9;
}

.wide-page .project-filter-panel,
.wide-page .task-department-filter,
.wide-page .task-date-filter,
.wide-page .task-status-filter {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius);
  background: #fff;
}

.wide-page .project-code-tabs {
  gap: 6px;
}

.wide-page .project-code-tab,
.wide-page .task-department-tab {
  border-color: var(--ui-border);
  border-radius: 5px;
  background: #fff;
  color: #435248;
}

.wide-page .project-code-tab:hover,
.wide-page .task-department-tab:hover {
  border-color: #a8b9ae;
  background: #f7faf8;
}

.wide-page .project-code-tab.active,
.wide-page .task-department-tab.active {
  border-color: #7eaa91;
  background: var(--ui-primary-soft);
  color: var(--ui-primary-strong);
}

.wide-page .project-code-key,
.wide-page .task-sample-number a {
  color: var(--ui-primary);
}

.wide-page .project-code-new-count,
.wide-page .task-department-new-count {
  border-radius: 4px;
  background: var(--ui-danger-soft);
  color: var(--ui-danger);
}

.wide-page .task-department-tab.active .task-department-new-count {
  min-width: 28px;
  box-sizing: border-box;
  padding: 2px 6px;
  border-radius: 4px;
  background: #b42318;
  color: #fff;
  line-height: 1.35;
  text-align: center;
}

.wide-page .task-list {
  gap: 9px;
}

.wide-page .task-card {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius);
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(30, 46, 37, .035);
}

.wide-page .task-commission-summary {
  gap: 8px 14px;
}

.wide-page .task-commission-summary small {
  color: #748078;
  font-size: 11px;
}

.wide-page .task-commission-summary strong {
  color: var(--ui-text);
}

.wide-page .task-commission-summary .task-sample-number {
  font-size: 21px;
}

.wide-page .task-commission-summary .task-indicators-row {
  border-left-color: var(--ui-secondary);
  border-radius: 4px;
  background: #f3f7f8;
}

.wide-page .task-node {
  min-height: 36px;
  border-color: #cbd4ce;
  border-radius: 4px;
  background: #f0f3f1;
  color: #35453c;
  font-size: 13px;
}

.wide-page .task-node:hover {
  background: #e5ebe7;
}

.wide-page .task-node-done {
  border-color: #79ad91;
  background: #e2f1e8;
  color: #14563d;
}

.wide-page .batch-progress-form {
  border-color: #9fc2ae;
  background: #eef7f1;
  box-shadow: 0 4px 12px rgba(23, 107, 77, .08);
}

.wide-page .shared-explorer {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
}

.wide-page .shared-folder-pane {
  border-color: var(--ui-border);
  background: var(--ui-surface-subtle);
}

.wide-page .shared-folder-pane a.active,
.wide-page .shared-folder-pane a:hover {
  background: var(--ui-primary-soft);
  color: var(--ui-primary-strong);
}

.wide-page .shared-folder-tile,
.wide-page .shared-file-row {
  border-color: var(--ui-border);
  border-radius: 6px;
}

.wide-page .shared-folder-tile:hover,
.wide-page .shared-file-row:hover {
  border-color: #aab9b0;
  background: #f8faf9;
}

.wide-page .analysis-summary {
  border-color: var(--ui-border);
  background: var(--ui-border);
}

.wide-page .analysis-summary > div {
  background: #fff;
}

.wide-page .analysis-summary strong {
  color: var(--ui-primary-strong);
}

.wide-page .analysis-conversation-panel,
.wide-page .analysis-multiselect-menu {
  border-color: var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
}

.wide-page .analysis-conversation-item.active {
  border-left-color: var(--ui-primary);
  background: var(--ui-primary-soft);
  color: var(--ui-primary-strong);
}

.wide-page .analysis-chart-row > i,
.wide-page .analysis-comparison-bar > i.condition-a {
  background: var(--ui-primary);
}

.wide-page .analysis-comparison-bar > i.condition-b {
  background: var(--ui-secondary);
}

.wide-page dialog {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: 0 20px 60px rgba(25, 39, 31, .22);
}

.wide-page dialog::backdrop {
  background: rgba(22, 34, 27, .42);
}

.site-compliance-footer {
  border-top-color: var(--ui-border);
  background: #edf1ef;
  color: #728078;
}

@media (max-width: 1100px) {
  main.wide-page {
    padding: 14px;
  }

  .wide-page .app-shell {
    grid-template-columns: 214px minmax(0, 1fr);
    gap: 14px;
  }

  .wide-page .sidebar-company-name {
    font-size: 10px;
  }

  .wide-page .task-commission-summary {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 760px) {
  main.wide-page {
    padding: 0 0 14px;
  }

  .wide-page .app-shell {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .wide-page .module-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 0;
    max-height: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: 0;
    border-bottom: 1px solid var(--ui-border);
    border-radius: 0;
    box-shadow: 0 4px 14px rgba(27, 43, 34, .08);
  }

  .wide-page .sidebar-brand {
    display: grid;
    min-height: 68px;
    grid-template-columns: 36px auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 1px;
    order: 0;
    padding: 8px 12px;
  }

  .wide-page .sidebar-brand img {
    width: 36px;
    height: 36px;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .wide-page .sidebar-company-name {
    grid-column: 2 / -1;
    grid-row: 1;
    align-self: end;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 12px;
    line-height: 1.45;
  }

  .wide-page .sidebar-product-name {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: 12px;
  }

  .wide-page .sidebar-brand-motto {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    font-size: 9px;
    text-align: right;
  }

  .wide-page .sidebar-user {
    order: 1;
    margin: 0;
    padding: 7px 12px;
    border: 0;
    border-bottom: 1px solid var(--ui-border);
    border-radius: 0;
    background: #fff;
  }

  .wide-page .module-nav {
    order: 2;
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    gap: 2px;
    overflow-x: auto;
    padding: 4px 8px 6px;
  }

  .wide-page .module-nav a {
    min-height: 36px;
    flex: 0 0 auto;
    padding: 0 10px;
    font-size: 13px;
  }

  .wide-page .module-nav a.active,
  .wide-page .module-nav a[aria-current="page"] {
    box-shadow: inset 0 -3px var(--ui-primary);
  }

  .wide-page .app-workspace {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px;
  }

  .wide-page .detail-header,
  .wide-page .equipment-page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 12px;
  }

  .wide-page .detail-header h1,
  .wide-page .equipment-page-header h1 {
    font-size: 21px;
  }

  .wide-page .panel,
  .wide-page .search-shell,
  .wide-page .result-card,
  .wide-page .risk,
  .wide-page .project-result {
    padding: 14px;
  }

  .wide-page .top-nav {
    width: 100%;
  }

  .wide-page .search-meta-row,
  .wide-page .section-heading,
  .wide-page .project-result-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .wide-page .search-target > summary {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px 12px;
  }

  .wide-page .search-target-departments,
  .wide-page .search-target-context {
    grid-column: 2;
    justify-content: flex-start;
    text-align: left;
  }

  .wide-page .equipment-row-main {
    min-height: 0;
  }

  .wide-page .task-commission-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide-page .task-commission-summary .task-sample-number {
    font-size: 19px;
  }

  .wide-page .standard-progress-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .wide-page .standard-progress-scope,
  .wide-page .standard-progress-toggle {
    grid-column: 1;
  }
}

@media (max-width: 430px) {
  .wide-page .app-workspace {
    padding: 10px;
  }

  .wide-page .panel,
  .wide-page .search-shell,
  .wide-page .result-card,
  .wide-page .risk,
  .wide-page .project-result {
    padding: 12px;
  }

  .wide-page .task-commission-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .wide-page .task-commission-summary .task-sample-cell,
  .wide-page .task-commission-summary .task-indicators-row {
    grid-column: 1;
  }

  .wide-page .equipment-alert-items {
    flex-direction: column;
  }
}
