.company-home-view {
  --home-navy: #123b5d;
  --home-navy-deep: #0c2b45;
  --home-navy-soft: #e9f1f6;
  --home-orange: #df5b38;
  --home-orange-dark: #c94627;
  --home-gold: #c68d2f;
  --home-green: #1f8a55;
  --home-ink: #172b3e;
  --home-muted: #66798a;
  --home-line: #dbe4ea;
  --home-canvas: #f3f6f8;
  position: fixed;
  inset: 0;
  z-index: 2990;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--home-canvas);
  color: var(--home-ink);
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
  scroll-behavior: smooth;
}

.company-home-view *,
.company-home-view *::before,
.company-home-view *::after {
  box-sizing: border-box;
}

.company-home-skip {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 100;
  padding: 9px 14px;
  border-radius: 4px;
  background: #fff;
  color: var(--home-navy-deep);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.company-home-skip:focus {
  transform: translateY(0);
}

.company-home-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 232px minmax(240px, 1fr) auto auto;
  align-items: center;
  min-height: 72px;
  padding: 0 20px 0 0;
  background: var(--home-navy-deep);
  color: #fff;
  box-shadow: 0 2px 12px rgba(5, 29, 46, .2);
}

.company-home-brand {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 22px;
  border-right: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .035);
}

.company-home-brand > .company-home-brand-mark {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  background: #fff;
  color: var(--home-navy);
  box-shadow: inset 0 -3px 0 rgba(198, 141, 47, .18);
}

.company-home-brand-mark svg,
.company-home-topbar button svg,
.company-home-search svg,
.company-home-actions svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.company-home-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.company-home-brand-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-home-brand-copy small {
  color: #a9bfd0;
  font-size: 11px;
  white-space: nowrap;
}

.company-home-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-self: start;
  padding-left: 16px;
}

.company-home-nav-item {
  position: relative;
  display: grid;
  min-width: 76px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #c4d2dd;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

.company-home-nav-item:hover {
  background: rgba(255, 255, 255, .05);
  color: #fff;
}

.company-home-nav-item.active {
  color: #fff;
}

.company-home-nav-item.active::after {
  right: 20px;
  bottom: 0;
  left: 20px;
  height: 3px;
  background: #f07850;
}

.workspace-switcher {
  display: flex;
  align-items: center;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  gap: 8px;
  min-width: 0;
  margin: 0 14px 0 0;
}

.workspace-switcher label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a9bfd0;
  font-size: 12px;
}

.workspace-switcher select {
  width: 168px;
  height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 5px;
  background-color: #fff;
  color: #17364e;
  font-size: 13px;
}

.workspace-switcher button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
  color: #eef5fa;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.workspace-switcher button svg {
  width: 17px;
  height: 17px;
}

.workspace-switcher button:hover {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .15);
}

.company-home-account {
  position: relative;
  display: flex;
  align-items: center;
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
}

.company-home-account-trigger,
.company-home-account > .company-home-account-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 58px;
  height: 72px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff;
  box-shadow: none !important;
  cursor: pointer;
}

.company-home-account > .company-home-account-trigger:hover,
.company-home-account > .company-home-account-trigger:focus,
.company-home-account > .company-home-account-trigger:active {
  background: rgba(255, 255, 255, .06) !important;
  outline: none;
}

.company-home-account-avatar {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e6724b;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .15);
}

.company-home-account-arrow {
  width: 8px;
  height: 8px;
  margin: 0 2px 4px 0;
  border-right: 2px solid #c8d6e0;
  border-bottom: 2px solid #c8d6e0;
}

.company-home-account-menu {
  position: absolute;
  top: 64px;
  right: 0;
  width: 310px;
  overflow: hidden;
  border: 1px solid #d7e0e6;
  border-radius: 6px;
  background: #fff;
  color: #3b4251;
  box-shadow: 0 18px 50px rgba(11, 39, 59, .22);
}

.company-home-account-avatar.large {
  flex-basis: 58px;
  width: 58px;
  height: 58px;
  border-color: #e1e4ea;
  box-shadow: none;
}

.company-home-account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.company-home-account-menu > header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid #e6e8ec;
}

.company-home-account-menu > header div {
  min-width: 0;
}

.company-home-account-menu > header b,
.company-home-account-menu > header small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-home-account-menu > header b {
  color: #353b49;
  font-size: 18px;
}

.company-home-account-menu > header small {
  margin-top: 6px;
  color: #7b8791;
  font-size: 12px;
}

.company-home-account-menu > button {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-bottom: 1px solid #e8e9ed;
  background: #fff;
  color: #444b59;
  text-align: left;
}

.company-home-account-menu > button:last-child {
  border-bottom: 0;
}

.company-home-account-info span,
.company-home-account-info small {
  display: block;
}

.company-home-account-info span {
  font-size: 15px;
}

.company-home-account-info small {
  margin-top: 5px;
  overflow: hidden;
  color: #7d8790;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-home-account-info:disabled {
  opacity: 1;
}

.company-home-account-logout {
  font-size: 15px;
  cursor: pointer;
}

.company-home-account-logout:hover {
  background: #fff4ef !important;
  color: var(--home-orange-dark);
}

.company-home-shell {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.company-home-main {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 1640px;
  margin: 0 auto;
  padding: 30px clamp(24px, 3vw, 48px) 56px;
  overflow-x: hidden;
  overflow-y: auto;
}

.company-home-panel-head > div > span {
  display: block;
  margin-bottom: 7px;
  color: var(--home-orange-dark);
  font-size: 11px;
  font-weight: 900;
}

.company-home-activate {
  border: 1px solid #d9a554;
  background: #fffaf0;
  color: #936419;
}

.company-home-activate:hover {
  border-color: #c68d2f;
  background: #fff4dc;
  color: #7b4f0c;
}

.company-home-create-btn {
  border: 1px solid var(--home-orange);
  background: var(--home-orange);
  color: #fff;
  box-shadow: 0 5px 14px rgba(201, 70, 39, .18);
}

.company-home-create-btn:hover {
  border-color: var(--home-orange-dark);
  background: var(--home-orange-dark);
  box-shadow: 0 7px 18px rgba(201, 70, 39, .24);
}

.company-home-create-btn:disabled {
  border-color: #cbd4da;
  background: #e8edef;
  color: #8695a1;
  box-shadow: none;
  cursor: not-allowed;
}

.company-home-panel {
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: #fff;
  box-shadow: 0 4px 14px rgba(25, 56, 78, .045);
}

.company-home-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--home-line);
  background: #fff;
}

.company-home-panel-head > div > span {
  margin-bottom: 5px;
}

.company-home-panel-head h2 {
  margin: 0;
  color: #21394c;
  font-size: 18px;
}

.company-home-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: min(570px, 58%);
}

.company-home-list-actions .company-home-search {
  flex: 1 1 auto;
  width: auto;
  min-width: 180px;
}

.company-home-list-actions .company-home-create-btn,
.company-home-list-actions .company-home-activate {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.company-home-list-actions .company-home-create-btn svg,
.company-home-list-actions .company-home-activate svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.company-home-search {
  position: relative;
  display: block;
  width: min(410px, 48%);
}

.company-home-search svg {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  width: 18px;
  height: 18px;
  color: #8293a1;
  transform: translateY(-50%);
  pointer-events: none;
}

.company-home-search i {
  display: none;
}

.company-home-search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border: 1px solid #ccd8df;
  border-radius: 5px;
  background: #fbfcfd;
  color: #263e51;
  font-size: 13px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.company-home-search input:focus {
  border-color: #4b7da0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(18, 59, 93, .11);
}

.company-home-table-wrap {
  overflow: auto;
}

.company-home-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
}

.company-home-table th {
  height: 46px;
  padding: 0 20px;
  border-right: 0;
  border-bottom: 1px solid #dfe7ec;
  background: #f5f8fa;
  color: #536b7d;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.company-home-table th:nth-child(1) { width: 31%; }
.company-home-table th:nth-child(2) { width: 24%; }
.company-home-table th:nth-child(3) { width: 15%; }

.company-home-table th:last-child {
  width: 30%;
  text-align: left;
}

.company-home-row td {
  height: 78px;
  padding: 12px 20px;
  border-right: 0;
  border-bottom: 1px solid #e5ebef;
  color: #526779;
  font-size: 13px;
  text-align: left;
  transition: background .16s ease;
}

.company-home-row:last-child td { border-bottom: 0; }
.company-home-row:hover td { background: #f9fbfc; }

.company-home-name {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.company-home-name > i {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #b8cedd;
  border-radius: 6px;
  background: #eef5f9;
  color: var(--home-navy);
  font-style: normal;
  font-size: 17px;
  font-weight: 900;
}

.company-home-name span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.company-home-name b {
  overflow: hidden;
  color: #1f384c;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-home-name small {
  color: #8a9aa6;
  font-size: 11px;
}

.company-home-name:hover b { color: var(--home-orange-dark); }

.company-home-row code {
  color: #405d73;
  font-family: Bahnschrift, "Microsoft YaHei UI", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

.company-home-status-cell {
  display: flex;
  align-items: center;
}

.company-home-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #cce8d8;
  border-radius: 4px;
  background: #f2faf5;
  color: #1d7c4d;
  font-size: 12px;
  font-weight: 700;
}

.company-home-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: none;
}

.company-home-status-expiring {
  border-color: #ecd8ab;
  background: #fff9eb;
  color: #a66b08;
}

.company-home-status-expired {
  border-color: #efc5bf;
  background: #fff4f2;
  color: #bd4337;
}

.company-home-status-unlicensed {
  border-color: #d7dee3;
  background: #f5f7f8;
  color: #6b7b88;
}

.company-home-status-disabled {
  border-color: #e3c7d4;
  background: #fbf3f7;
  color: #94486b;
}

.company-home-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  white-space: normal;
}

.company-home-enter,
.company-home-date-report {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.company-home-date-report {
  border: 1px solid #b9ccda;
  background: #fff;
  color: var(--home-navy);
}

.company-home-date-report:hover {
  border-color: #6f99b5;
  background: #eef5f9;
  color: #0b3150;
}

.company-home-enter {
  border: 1px solid var(--home-orange);
  background: var(--home-orange);
  color: #fff;
}

.company-home-enter:hover {
  border-color: var(--home-orange-dark);
  background: var(--home-orange-dark);
}

.company-home-no-tools {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8a99a5;
  font-size: 12px;
}

.company-home-no-tools svg {
  width: 16px;
  height: 16px;
}

.company-home-empty {
  height: 230px !important;
  text-align: center !important;
}

.company-home-empty span {
  margin-top: 7px;
  color: #8c9ba6;
}

.company-home-empty b { color: #385165; }

.company-home-modal,
.company-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 38, 52, .56);
}

.company-home-dialog {
  width: min(520px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(16, 35, 49, .3);
}

.company-home-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 26px 19px;
  border-bottom: 1px solid #e1e7eb;
}

.company-home-dialog > header span,
.company-profile-titlebar span {
  color: var(--home-orange-dark);
  font-size: 11px;
  font-weight: 900;
}

.company-home-dialog h2 {
  margin: 6px 0 0;
  color: #273d4e;
  font-size: 23px;
}

.company-home-dialog > header button,
.company-profile-titlebar button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #edf2f5;
  color: #647786;
  font-size: 24px;
  cursor: pointer;
}

.company-home-dialog form {
  display: grid;
  gap: 18px;
  padding: 25px 26px 27px;
}

.company-home-dialog label {
  display: grid;
  gap: 8px;
  color: #465d6e;
  font-size: 13px;
  font-weight: 800;
}

.company-home-dialog input,
.company-home-dialog select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cdd8df;
  border-radius: 4px;
  background: #fff;
  color: #293f50;
  font-size: 14px;
  outline: none;
}

.company-home-dialog input:focus,
.company-home-dialog select:focus {
  border-color: #4b7da0;
  box-shadow: 0 0 0 3px rgba(18, 59, 93, .11);
}

.company-home-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.company-home-dialog footer button {
  min-width: 88px;
  min-height: 40px;
  border-radius: 4px;
}

.company-home-submit {
  border: 1px solid var(--home-orange);
  background: var(--home-orange);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.company-home-submit:hover {
  border-color: var(--home-orange-dark);
  background: var(--home-orange-dark);
}

.company-home-submit:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.organization-manage-dialog {
  width: min(820px, calc(100vw - 32px));
}

.organization-manage-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.organization-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  gap: 10px;
  padding: 0 !important;
}

.organization-inline-form button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
}

.organization-member-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

.organization-member-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid #dce5ea;
  border-radius: 5px;
}

.organization-member-list span,
.organization-member-list small {
  display: block;
}

.organization-member-list small {
  margin-top: 3px;
  color: #6f8493;
}

.organization-member-list em {
  color: var(--home-navy);
  font-style: normal;
}

.company-create-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e8aaaa;
  border-radius: 4px;
  background: #fff2f2;
  color: #b52f2f;
  font-size: 13px;
  line-height: 1.5;
}

.workspace-license-query {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d9896f;
  border-radius: 4px;
  background: #fff7f3;
  color: var(--home-orange-dark);
  font-weight: 800;
  cursor: pointer;
}

.workspace-license-query:hover {
  background: var(--home-orange);
  color: #fff;
}

.workspace-license-query:disabled {
  cursor: wait;
  opacity: .6;
}

.workspace-license-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #edc8b9;
  border-radius: 6px;
  background: #fff8f5;
}

.workspace-license-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workspace-license-preview-item,
.workspace-license-preview-detail {
  display: grid;
  gap: 4px;
}

.workspace-license-preview-item {
  padding: 10px;
  border: 1px solid #eadfd9;
  border-radius: 5px;
  background: #fff;
}

.workspace-license-preview-item span,
.workspace-license-preview-detail span {
  color: #687b89;
  font-size: 12px;
}

.workspace-license-preview-item strong {
  color: #273746;
  font-size: 17px;
}

.workspace-license-preview-item.is-emphasis strong {
  color: var(--home-orange-dark);
}

.workspace-license-preview-detail {
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
}

.workspace-license-preview-detail strong {
  color: #34495e;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.company-profile-modal {
  z-index: 3200;
}

.company-profile-dialog {
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 32px 100px rgba(18, 34, 45, .36);
}

.company-profile-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 26px;
  border-bottom: 1px solid #e1e7eb;
}

.company-profile-titlebar h2 {
  margin: 5px 0 0;
  color: #273d4e;
  font-size: 24px;
}

.company-profile-dialog form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.company-profile-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 30px;
  background: #f8fafb;
}

.company-profile-hero > span {
  display: grid;
  flex: 0 0 54px;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #ddad9c;
  border-radius: 6px;
  background: #fff2ec;
  color: var(--home-orange-dark);
  font-size: 24px;
  font-weight: 900;
}

.company-profile-hero h3 {
  margin: 0;
  color: #273d4e;
  font-size: 24px;
}

.company-profile-hero p {
  margin: 8px 0 0;
}

.company-profile-hero i {
  padding: 4px 10px;
  border: 1px solid #d9896f;
  border-radius: 4px;
  color: var(--home-orange-dark);
  font-style: normal;
  font-size: 12px;
}

.company-profile-scroll {
  display: grid;
  gap: 24px;
  min-height: 0;
  padding: 26px 30px;
  overflow: auto;
}

.company-profile-section > h3 {
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--home-orange);
  color: #2d4252;
  font-size: 18px;
}

.company-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #dce4e9;
  border-left: 1px solid #dce4e9;
}

.company-profile-grid.thirds {
  grid-template-columns: repeat(3, 1fr);
}

.company-profile-grid label {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  border-right: 1px solid #dce4e9;
  border-bottom: 1px solid #dce4e9;
}

.company-profile-grid label.wide {
  grid-column: 1 / -1;
}

.company-profile-grid label > span {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: #f1f4f6;
  color: #465d6e;
  font-size: 13px;
}

.company-profile-grid input,
.company-profile-grid select {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 0;
  background: #fff;
  color: #293f50;
  font-size: 14px;
  outline: none;
}

.company-profile-grid input:focus,
.company-profile-grid select:focus {
  box-shadow: inset 0 0 0 2px rgba(75, 125, 160, .4);
}

.company-profile-dialog form > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 30px;
  border-top: 1px solid #e1e7eb;
  background: #fafbfc;
}

.company-profile-dialog form > footer button {
  min-width: 96px;
  min-height: 42px;
  border-radius: 4px;
}

.company-profile-save {
  border: 1px solid var(--home-orange);
  background: var(--home-orange);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.company-profile-save:hover {
  border-color: var(--home-orange-dark);
  background: var(--home-orange-dark);
}

.toast {
  z-index: 3300;
}

.company-home-view a:focus-visible,
.company-home-view button:focus-visible,
.company-home-view select:focus-visible,
.company-home-view input:focus-visible {
  outline: 3px solid rgba(73, 132, 173, .36);
  outline-offset: 2px;
}

.company-home-panel:focus {
  outline: 3px solid rgba(73, 132, 173, .3);
  outline-offset: 4px;
}

.company-home-view a,
.company-home-view button,
.company-home-view select,
.company-home-view input {
  touch-action: manipulation;
}

.company-home-view button:active,
.company-home-view a:active {
  filter: brightness(.96);
}

@media (max-width: 1180px) {
  .company-home-topbar {
    grid-template-columns: 204px minmax(190px, 1fr) auto auto;
  }

  .company-home-brand { padding: 0 16px; }
  .company-home-nav-item { min-width: 64px; }

  .workspace-switcher label > span,
  .workspace-switcher button span {
    display: none;
  }

  .workspace-switcher select { width: 150px; }

  .workspace-switcher button {
    width: 38px;
    padding: 0;
  }
}

@media (max-width: 900px) {
  .company-home-topbar {
    grid-template-columns: 1fr auto;
    min-height: 64px;
    padding-right: 12px;
  }

  .company-home-brand {
    min-height: 64px;
    border-right: 0;
  }

  .company-home-nav { display: none; }

  .company-home-account,
  .company-home-account-trigger,
  .company-home-account > .company-home-account-trigger {
    grid-column: 2;
    height: 64px;
  }

  .workspace-switcher {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: auto;
    margin: 0 -12px 0 0;
    padding: 9px 12px 9px 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: #103553;
  }

  .workspace-switcher label { flex: 1; }

  .workspace-switcher select {
    width: 100%;
    height: 44px;
  }

  .workspace-switcher button {
    width: 44px;
    min-height: 44px;
  }

  .company-home-shell {
    display: block;
    min-height: 0;
  }

  .company-home-main { padding: 24px 20px 44px; }

  .company-home-account-menu {
    right: -8px;
    width: min(310px, calc(100vw - 24px));
  }
}

@media (max-width: 700px) {
  .company-home-brand-copy small { display: none; }
  .company-home-main { padding: 20px 12px 36px; }

  .company-home-panel-head {
    display: grid;
    gap: 14px;
    padding: 16px;
  }

  .company-home-list-actions {
    width: 100%;
    gap: 8px;
  }

  .company-home-list-actions .company-home-search {
    width: auto;
    min-width: 0;
  }

  .company-home-list-actions .company-home-create-btn,
  .company-home-list-actions .company-home-activate {
    min-height: 44px;
    padding: 0 12px;
  }

  .company-home-list-actions .company-home-activate {
    width: 44px;
    padding: 0;
  }

  .company-home-list-actions .company-home-activate span {
    display: none;
  }

  .company-home-table-wrap {
    padding: 12px;
    overflow: visible;
    background: #f4f7f9;
  }

  .company-home-table { min-width: 0; }

  .company-home-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .company-home-table tbody {
    display: grid;
    gap: 10px;
  }

  .company-home-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px 12px;
    padding: 15px;
    border: 1px solid #dce5ea;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(27, 58, 79, .04);
  }

  .company-home-row td {
    display: block;
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent !important;
  }

  .company-home-row td:first-child,
  .company-home-row td:last-child {
    grid-column: 1 / -1;
  }

  .company-home-row td:nth-child(2)::before,
  .company-home-row td:nth-child(3)::before,
  .company-home-row td:nth-child(4)::before {
    display: block;
    margin-bottom: 7px;
    color: #8494a0;
    font-size: 10px;
    font-weight: 800;
  }

  .company-home-row td:nth-child(2)::before { content: "纳税人识别号"; }
  .company-home-row td:nth-child(3)::before { content: "授权状态"; }
  .company-home-row td:nth-child(4)::before { content: "可用工具"; }

  .company-home-name > i {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .company-home-actions { flex-wrap: wrap; }

  .company-home-enter,
  .company-home-date-report {
    min-height: 44px;
  }

  .company-home-empty {
    display: table-cell !important;
    height: 200px !important;
    padding: 40px 12px !important;
    border: 0 !important;
  }

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

@media (max-width: 760px) {
  .company-home-modal,
  .company-profile-modal {
    padding: 8px;
  }

  .company-home-dialog,
  .company-profile-dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
  }

  .company-home-dialog > header,
  .company-home-dialog form,
  .organization-manage-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .company-home-dialog > header button,
  .company-profile-titlebar button,
  .company-home-dialog footer button,
  .company-profile-dialog form > footer button {
    min-height: 44px;
  }

  .company-profile-titlebar,
  .company-profile-hero,
  .company-profile-scroll,
  .company-profile-dialog form > footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .company-profile-grid,
  .company-profile-grid.thirds {
    grid-template-columns: 1fr;
  }

  .company-profile-grid label {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .company-profile-hero h3 {
    font-size: 19px;
  }
}

@media (max-width: 560px) {
  .workspace-license-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .company-home-brand { padding: 0 12px; }

  .company-home-brand > .company-home-brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .company-home-brand-copy strong {
    max-width: 136px;
    font-size: 15px;
  }

  .workspace-switcher {
    gap: 6px;
    padding-left: 12px;
  }

  .workspace-switcher button { flex: 0 0 38px; }

}

@media (prefers-reduced-motion: reduce) {
  .company-home-view { scroll-behavior: auto; }

  .company-home-view *,
  .company-home-view *::before,
  .company-home-view *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
