:root {
  --home-primary: var(--v10-primary, #165dff);
  --home-primary-hover: var(--v10-primary-hover, #0f4bcc);
  --home-primary-active: var(--v10-primary-active, #0c3a99);
  --home-primary-soft: var(--v10-primary-soft, #f2f7ff);
  --home-page: var(--v10-page, #eff2f7);
  --home-workspace: var(--v10-workspace, #f1f3fb);
  --home-surface: var(--v10-surface, #fff);
  --home-surface-soft: var(--v10-surface-soft, #f4f6ff);
  --home-surface-hover: var(--v10-surface-hover, #f1f3fb);
  --home-border: var(--v10-border, #e1e6f0);
  --home-title: var(--v10-title, #040f43);
  --home-text: var(--v10-text, #040f43);
  --home-text-desc: var(--v10-text-desc, rgba(0, 0, 0, 0.65));
  --home-muted: var(--v10-muted, #8187a1);
  --home-action-muted: var(--v10-action-muted, #888);
  --home-success: var(--v10-success, #52c41a);
  --home-warning: var(--v10-warning, #faad14);
  --home-danger: var(--v10-danger, #ff4d4f);
}

.home-console {
  width: 100%;
  color: var(--home-text);
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
}

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

.home-console button {
  letter-spacing: 0;
}

.home-icon-button {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--home-border);
  border-radius: 2px;
  color: var(--home-text);
  background: var(--home-surface);
  cursor: pointer;
  place-items: center;
}

.home-icon-button:hover,
.home-icon-button:focus-visible {
  border-color: var(--home-primary);
  color: var(--home-primary);
  outline: 0;
}

.home-icon-button:disabled {
  color: var(--home-muted);
  background: var(--home-workspace);
  cursor: wait;
}

.home-banner-region {
  min-width: 0;
  margin-bottom: 12px;
  border: 1px solid var(--home-border);
  border-radius: 2px;
  background: var(--home-surface);
  overflow: hidden;
}

.home-banner-region .el-carousel__container {
  min-height: 104px;
}

.home-banner-region .el-carousel__indicators--outside {
  height: 8px;
  line-height: 8px;
}

.home-banner-region .el-carousel__button {
  width: 18px;
  height: 2px;
  background: var(--home-primary);
}

.home-banner-item {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--home-workspace);
  cursor: pointer;
}

.home-banner-item:disabled {
  cursor: default;
}

.home-banner-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-certification-region {
  margin: 0;
}

.home-security-alert {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 165, 52, 0.3);
  border-radius: 0;
  color: #ad4e00;
  background: rgba(255, 165, 52, 0.1);
  gap: 12px;
}

.home-security-alert > i {
  color: var(--home-warning);
  font-size: 16px;
}

.home-security-alert > div {
  display: flex;
  min-width: 0;
  gap: 8px;
}

.home-security-alert strong {
  flex: 0 0 auto;
  color: #873800;
  font-size: 13px;
  font-weight: 500;
  line-height: 22px;
}

.home-security-alert span {
  min-width: 0;
  color: #ad6800;
  font-size: 12px;
  line-height: 22px;
}

.home-security-alert.is-safe {
  border-color: #b7eb8f;
  color: #237804;
  background: #f6ffed;
}

.home-security-alert.is-safe > i,
.home-security-alert.is-safe strong {
  color: #389e0d;
}

.home-security-alert.is-safe span {
  color: #52734d;
}

.home-security-alert.is-error {
  border-color: #ffccc7;
  background: #fff2f0;
}

.home-security-alert.is-error > i,
.home-security-alert.is-error strong {
  color: var(--home-danger);
}

.home-security-alert.is-error span {
  color: #a61d24;
}

.home-security-alert.is-loading {
  border-color: var(--home-border);
  background: var(--home-surface);
}

.home-alert-skeleton,
.home-number-skeleton {
  display: inline-block;
  border-radius: 2px;
  background: #edf0f5;
  animation: home-skeleton 1.3s ease-in-out infinite;
}

.home-alert-skeleton {
  width: 16px;
  height: 16px;
}

.home-security-alert.is-loading strong {
  color: var(--home-title);
}

.home-security-alert.is-loading span {
  color: var(--home-muted);
}

.home-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  align-items: start;
  width: 100%;
  min-width: 0;
  gap: 16px;
}

.home-primary-column,
.home-secondary-column {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.home-console .console-panel {
  min-width: 0;
  border: 0 !important;
  border-radius: 1px !important;
  background: var(--home-surface) !important;
  box-shadow: var(--v10-panel-shadow, 0 0 20px rgba(0, 0, 0, 0.06)) !important;
  overflow: hidden;
  font-synthesis: none;
}

.home-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 16px 20px 12px;
  border-bottom: 0;
  gap: 12px;
}

.home-panel-title h2 {
  margin: 0;
  color: var(--home-title);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}

.home-panel-title p,
.home-console .console-panel-head p {
  display: none;
}

.home-console .console-panel-head {
  align-items: center;
  min-height: 44px;
  padding: 16px 20px 12px;
  border-bottom: 0;
}

.home-console .console-panel-head h2 {
  color: var(--home-title);
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 24px !important;
}

.home-panel-title .console-text-action {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--home-title) !important;
  font-size: 12px;
  line-height: 24px;
}

.home-panel-title .console-text-action:hover,
.home-panel-title .console-text-action:focus-visible {
  color: var(--home-primary) !important;
}

.home-account-title-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.home-account-title-actions .el-button {
  height: 32px;
  margin: 0 !important;
  padding: 0 12px !important;
  border-radius: 2px;
}

.home-account-body {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  align-items: center;
  min-height: 142px;
  padding: 16px 20px 20px;
  gap: 20px;
}

.home-account-content {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.home-user-avatar {
  display: grid;
  flex: 0 0 98px;
  width: 98px;
  height: 98px;
  border-radius: 1px;
  color: #fff;
  background: var(--home-primary);
  font-size: 48px;
  font-weight: 500;
  place-items: center;
}

.home-level-button {
  min-height: 22px;
  margin: 0;
  padding: 0 7px;
  border: 1px solid var(--home-primary);
  border-radius: 2px;
  color: var(--home-primary);
  background: var(--home-primary-soft);
  font-size: 11px;
  line-height: 20px;
  cursor: pointer;
}

.home-level-button:hover,
.home-level-button:focus-visible {
  border-color: var(--home-primary);
  outline: 0;
}

.home-account-bindings {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.home-account-bindings span {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: #eaecf3;
  font-size: 15px;
  cursor: default;
  place-items: center;
}

.home-account-bindings span.is-complete {
  color: var(--home-success);
  background: #edf9f4;
}

.home-account-bindings span:focus-visible {
  outline: 2px solid var(--home-primary);
  outline-offset: 2px;
}

.home-account-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  gap: 16px 24px;
}

.home-account-meta > div {
  display: grid;
  min-width: 0;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px;
}

.home-account-meta dt,
.home-account-meta dd {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
}

.home-account-meta dt {
  color: var(--home-text);
}

.home-account-meta dd {
  color: var(--home-text);
  overflow-wrap: anywhere;
}

.home-account-actions {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 11px 20px;
  border-top: 1px dashed var(--home-border);
  gap: 10px;
  flex-wrap: wrap;
}

.home-account-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--home-primary);
  border-radius: 2px;
  color: var(--home-primary);
  background: var(--home-surface);
  font-size: 13px;
  gap: 7px;
  cursor: pointer;
}

.home-account-actions button:hover {
  color: var(--home-primary);
  border-color: var(--home-primary);
  background: var(--home-primary-soft);
}

.home-account-actions i {
  color: var(--home-primary);
  font-size: 16px;
}

.home-account-skeleton {
  min-height: 218px !important;
}

.home-profile-skeleton {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.home-profile-skeleton > span {
  width: 98px;
  height: 98px;
  border-radius: 1px;
  background: #edf0f5;
}

.home-profile-skeleton > div {
  display: grid;
  width: 180px;
  gap: 9px;
}

.home-profile-skeleton i {
  height: 12px;
  border-radius: 2px;
  background: #edf0f5;
}

.home-profile-skeleton i:last-child {
  width: 70%;
}

.home-business-grid {
  display: grid;
  grid-template-columns: minmax(190px, 3fr) minmax(0, 7fr);
  min-width: 0;
  gap: 16px;
}

.home-business-grid.is-ticket-unavailable {
  grid-template-columns: minmax(0, 1fr);
}

.home-business-panel {
  min-height: 162px;
}

.home-ticket-metric-panel > .home-metric-item,
.home-resource-metric-panel > .home-metric-grid {
  width: 100%;
  min-height: 162px;
}

.home-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-metric-item {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 162px;
  padding: 20px;
  border: 0;
  border-right: 1px solid var(--home-border);
  color: var(--home-text);
  background: var(--home-surface);
  text-align: left;
  cursor: pointer;
}

.home-metric-item:last-child {
  border-right: 0;
}

.home-metric-item:hover {
  background: var(--home-surface-hover);
}

.home-metric-item:disabled {
  cursor: default;
}

.home-metric-label {
  overflow: hidden;
  color: var(--home-title);
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-metric-item strong {
  margin-top: 15px;
  margin-bottom: 12px;
  color: var(--home-title);
  font-size: 36px;
  font-weight: 400;
  line-height: 25px;
}

.home-metric-item.is-order strong {
  color: var(--home-title);
}

.home-metric-item.is-running strong {
  color: var(--home-success);
}

.home-metric-item.is-expiring strong {
  color: var(--home-danger);
}

.home-number-skeleton {
  width: 48px;
  height: 30px;
  margin: 8px 0 4px;
}

.home-metric-item small {
  color: var(--home-action-muted);
  font-size: 12px;
  line-height: 20px;
}

.home-metric-item:disabled small {
  color: var(--home-muted);
}

.home-ticket-metric-panel .home-metric-item {
  cursor: default;
}

.home-metric-actions {
  display: flex;
  align-items: center;
  align-self: end;
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--home-border);
  gap: 10px;
}

.home-metric-actions button {
  padding: 0;
  border: 0;
  color: var(--home-muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  line-height: 20px;
  cursor: pointer;
}

.home-metric-actions button:hover,
.home-metric-actions button:focus-visible {
  color: var(--home-primary);
}

.home-metric-actions span {
  color: var(--home-border);
}

.home-panel-title-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.home-account-resource-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.44fr) minmax(0, 1fr);
  min-width: 0;
  gap: 16px;
}

.home-security-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  padding: 12px 20px 8px;
  gap: 12px;
}

.home-security-level {
  display: grid;
  min-width: 64px;
  gap: 6px;
}

.home-security-level > div {
  display: grid;
  gap: 0;
}

.home-security-level span {
  color: var(--home-text);
  font-size: 13px;
  line-height: 22px;
  white-space: nowrap;
}

.home-security-level strong {
  color: var(--home-success);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.home-security-level b {
  color: #000;
  font-size: 32px;
  font-weight: 500;
  line-height: 38px;
}

.home-security-gauge {
  flex: 0 1 128px;
  width: min(128px, 52%);
  min-width: 104px;
  height: 74px;
}

.home-security-gauge svg {
  display: block;
  width: 100%;
  height: 74px;
}

.home-security-gauge path {
  fill: none;
  stroke-width: 10;
}

.home-security-gauge-track {
  stroke: #e7eaf0;
}

.home-security-gauge-value {
  stroke: var(--home-success);
  stroke-linecap: butt;
  transition: stroke-dasharray 0.25s ease;
}

.home-security-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 20px 16px;
  gap: 8px;
}

.home-security-items span {
  color: var(--home-muted);
  font-size: 12px;
  line-height: 22px;
}

.home-security-items i {
  width: 18px;
  margin-right: 4px;
  color: var(--home-muted);
  text-align: center;
}

.home-security-items span.is-complete {
  color: var(--home-text);
}

.home-security-items span.is-complete i {
  color: var(--home-success);
}

.home-product-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 16px 20px 20px;
  gap: 12px;
}

.home-product-summary button {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 64px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid var(--home-border);
  border-radius: 2px;
  color: var(--home-text);
  background: #fff;
  text-align: left;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.home-product-summary button:hover {
  border-color: var(--home-primary);
  background: var(--home-surface-hover);
}

.home-product-summary__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.home-product-summary__identity > i {
  flex: 0 0 auto;
  color: var(--home-title);
  font-size: 20px;
}

.home-product-summary__identity > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-product-summary strong {
  color: var(--home-title);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  overflow-wrap: anywhere;
}

.home-product-summary__count {
  min-width: 28px;
  color: var(--home-title);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: right;
}

.home-product-summary-skeleton {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px 20px 20px;
  gap: 12px;
}

.home-product-summary-skeleton span,
.home-link-skeleton span,
.home-cost-loading span,
.home-cost-loading i {
  display: block;
  border-radius: 2px;
  background: #edf0f5;
  animation: home-skeleton 1.3s ease-in-out infinite;
}

.home-product-summary-skeleton span {
  height: 58px;
  margin: 0;
}

.home-resource-table {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.home-resource-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.home-resource-table th,
.home-resource-table td {
  height: 50px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--home-border);
  color: var(--home-text);
  font-size: 13px;
  line-height: 20px;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.home-resource-table th {
  height: 44px;
  color: var(--home-text);
  background: var(--home-workspace);
  font-weight: 500;
}

.home-resource-table th:first-child { width: 25%; }
.home-resource-table th:nth-child(2) { width: 90px; }
.home-resource-table th:nth-child(3) { width: 17%; }
.home-resource-table th:nth-child(4) { width: 150px; }
.home-resource-table th:nth-child(5) { width: 100px; }
.home-resource-table th:last-child { width: 64px; }

.home-resource-table tbody tr:hover {
  background: var(--home-surface-hover);
}

.home-resource-table tbody tr:last-child td {
  border-bottom: 0;
}

.home-resource-table td:first-child {
  display: grid;
  align-content: center;
}

.home-resource-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-resource-table td:first-child small {
  overflow: hidden;
  color: var(--home-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-title-count {
  margin-left: 3px;
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 400;
}

.home-danger-text {
  color: var(--home-danger) !important;
}

.mobile-resource-list {
  display: none;
}

.home-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 20px;
  color: var(--home-muted);
  gap: 12px;
}

.home-empty-state > i {
  color: var(--home-muted);
  font-size: 26px;
}

.home-empty-state > div {
  min-width: 0;
}

.home-empty-state strong {
  color: var(--home-title);
  font-size: 13px;
  font-weight: 500;
  line-height: 22px;
}

.home-empty-state p {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
}

.home-order-list {
  display: grid;
}

.home-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 16px;
  border: 0;
  border-bottom: 1px solid var(--home-border);
  color: var(--home-text);
  background: #fff;
  text-align: left;
  gap: 12px;
  cursor: pointer;
}

.home-order-row:last-child {
  border-bottom: 0;
}

.home-order-row:hover {
  background: var(--home-surface-hover);
}

.home-order-main,
.home-order-end {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.home-order-main {
  display: grid;
  gap: 1px;
}

.home-order-main strong {
  overflow: hidden;
  color: var(--home-title);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-order-main small {
  color: var(--home-muted);
  font-size: 12px;
}

.home-order-end > strong {
  color: var(--home-title);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.home-cost-loading {
  display: grid;
  min-height: 142px;
  padding: 18px 16px;
  gap: 12px;
}

.home-cost-loading span {
  width: 58%;
  height: 32px;
}

.home-cost-loading i {
  width: 100%;
  height: 18px;
}

.home-cost-balance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: 104px;
  padding: 16px 20px 14px;
}

.home-cost-balance > span {
  grid-column: 1 / -1;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 20px;
}

.home-cost-balance-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  gap: 8px;
}

.home-cost-balance-label > button {
  padding: 0;
  border: 0;
  color: var(--home-action-muted);
  background: transparent;
  font-size: 12px;
  line-height: 20px;
  cursor: pointer;
}

.home-cost-balance-label > button:hover,
.home-cost-balance-label > button:focus-visible {
  color: var(--home-primary-hover);
  outline: 0;
}

.home-cost-balance > strong {
  overflow: hidden;
  color: var(--home-title);
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-cost-balance .el-button {
  margin-bottom: 4px;
}

.home-cost-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 20px 20px;
  gap: 10px;
}

.home-cost-stats button {
  display: grid;
  min-width: 0;
  min-height: 72px;
  padding: 12px 16px;
  border: 0;
  color: var(--home-text);
  background: #f3f5f8;
  text-align: left;
  cursor: pointer;
}

.home-cost-stats button:hover {
  background: var(--home-surface-hover);
}

.home-cost-stats span {
  color: var(--home-muted);
  font-size: 12px;
  line-height: 18px;
}

.home-cost-stats strong {
  overflow: hidden;
  color: var(--home-title);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-finance-list {
  display: grid;
  margin: 0;
  padding: 8px 16px;
}

.home-finance-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-bottom: 1px solid var(--home-border);
  gap: 12px;
}

.home-finance-list > div:last-child {
  border-bottom: 0;
}

.home-finance-list dt,
.home-finance-list dd {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
}

.home-finance-list dt {
  color: var(--home-muted);
}

.home-finance-list dd {
  overflow: hidden;
  color: var(--home-title);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-panel-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--home-border);
}

.home-panel-footer button {
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--home-border);
  color: var(--home-text);
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.home-panel-footer button:last-child {
  border-right: 0;
}

.home-panel-footer button:hover {
  color: var(--home-primary);
  background: var(--home-surface-hover);
}

.home-panel-footer i {
  margin-right: 5px;
  color: var(--home-title);
}

.home-integration-list {
  display: grid;
}

.home-integration-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 8px 16px;
  border: 0;
  border-bottom: 1px solid var(--home-border);
  color: var(--home-text);
  background: #fff;
  cursor: pointer;
}

.home-integration-list button:last-child {
  border-bottom: 0;
}

.home-integration-list button:hover {
  background: var(--home-surface-hover);
}

.home-integration-list span {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 13px;
  gap: 8px;
}

.home-integration-list span > i {
  color: var(--home-primary);
}

.home-integration-list em {
  flex: 0 0 auto;
  color: var(--home-success);
  font-size: 11px;
  font-style: normal;
}

.home-integration-list em i {
  margin-left: 3px;
  color: var(--home-muted);
}

.home-link-skeleton {
  display: grid;
  padding: 12px 16px;
  gap: 10px;
}

.home-link-skeleton span {
  height: 34px;
}

.home-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-shortcuts-panel {
  order: 30;
}

.home-shortcut-grid button {
  display: grid;
  min-width: 0;
  min-height: 70px;
  padding: 10px 6px;
  border: 0;
  border-right: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
  color: var(--home-text);
  background: #fff;
  gap: 5px;
  cursor: pointer;
  place-items: center;
}

.home-shortcut-grid button:nth-child(3n) {
  border-right: 0;
}

.home-shortcut-grid button:hover {
  color: var(--home-primary);
  background: var(--home-surface-hover);
}

.home-shortcut-grid button > i {
  color: var(--home-title);
  font-size: 18px;
}

.home-shortcut-grid button > span {
  width: 100%;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news-list {
  display: grid;
}

.home-ticket-list {
  display: grid;
}

.home-ticket-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 7px 16px;
  border: 0;
  border-bottom: 1px solid var(--home-border);
  color: var(--home-text);
  background: #fff;
  text-align: left;
  gap: 12px;
  cursor: pointer;
}

.home-ticket-list button:last-child {
  border-bottom: 0;
}

.home-ticket-list button:hover {
  background: var(--home-surface-hover);
}

.home-ticket-list button > span {
  display: grid;
  min-width: 0;
}

.home-ticket-list strong {
  overflow: hidden;
  color: var(--home-title);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-ticket-list small,
.home-ticket-list em {
  color: var(--home-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 18px;
}

.home-ticket-list em {
  flex: 0 0 auto;
  color: var(--home-muted);
}

.home-news-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 7px 16px;
  border: 0;
  border-bottom: 1px solid var(--home-border);
  color: var(--home-text);
  background: #fff;
  text-align: left;
  gap: 10px;
  cursor: pointer;
}

.home-news-list button:last-child {
  border-bottom: 0;
}

.home-news-list button:hover {
  background: var(--home-surface-hover);
}

.home-news-list button > span {
  display: grid;
  min-width: 0;
}

.home-news-list strong {
  overflow: hidden;
  color: var(--home-title);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news-list small,
.home-news-list time {
  color: var(--home-muted);
  font-size: 12px;
  line-height: 18px;
}

.home-news-list time {
  flex: 0 0 auto;
}

.home-news-rank {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  color: var(--home-muted);
  background: var(--home-workspace);
  font-size: 12px;
  font-weight: 500;
  place-items: center;
}

.home-news-list button:nth-child(-n + 3) .home-news-rank {
  color: #fff;
  background: var(--home-primary);
}

.home-empty-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 14px;
  color: var(--home-muted);
  font-size: 12px;
  gap: 7px;
}

.home-empty-inline > i {
  color: var(--home-muted);
  font-size: 16px;
}

.home-empty-inline > button {
  padding: 0;
  border: 0;
  color: var(--home-primary);
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}

.home-order-empty {
  min-height: 94px;
}

.home-compact-state,
.home-list-state {
  min-height: 112px !important;
}

.home-table-state {
  min-height: 150px !important;
}

.home-table-skeleton {
  min-height: 150px !important;
}

.home-list-skeleton {
  min-height: 92px !important;
}

.credit-notice-dialog {
  max-width: calc(100vw - 32px);
  border-radius: 4px;
}

.credit-notice-dialog .el-dialog__header {
  display: none;
}

.credit-notice-dialog .el-dialog__body {
  padding: 0;
}

.credit-notice-dialog .credit-content {
  color: var(--home-text);
}

.credit-notice-dialog .credit-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--home-border);
}

.credit-notice-dialog .title-text {
  color: var(--home-title);
  font-size: 16px;
  font-weight: 500;
}

.credit-notice-dialog .close-btn {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  color: var(--home-muted);
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.credit-notice-dialog .credit-box {
  display: grid;
  padding: 20px;
  gap: 16px;
}

.credit-notice-dialog .credit-open,
.credit-notice-dialog .credit-input {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.credit-notice-dialog .credit-input .el-input-number {
  width: 180px;
}

.credit-notice-dialog .credit-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px;
  border-top: 1px solid var(--home-border);
  gap: 8px;
}

@keyframes home-skeleton {
  50% { opacity: 0.48; }
}

@media (max-width: 1200px) {
  .home-workspace-grid {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 16px;
  }

  .home-primary-column,
  .home-secondary-column {
    gap: 16px;
  }

  .home-business-grid {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .home-workspace-grid {
    grid-template-columns: 1fr;
  }

  .home-secondary-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .home-news-panel,
  .home-shortcuts-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .home-security-alert {
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    padding: 9px 10px;
  }

  .home-security-alert > div {
    display: grid;
    gap: 0;
  }

  .home-security-alert > .console-text-action {
    grid-column: 2;
    justify-self: start;
  }

  .home-workspace-grid,
  .home-primary-column,
  .home-secondary-column {
    gap: 12px;
  }

  .home-secondary-column {
    grid-template-columns: 1fr;
  }

  .home-news-panel,
  .home-shortcuts-panel {
    grid-column: auto;
  }

  .home-panel-title,
  .home-console .console-panel-head {
    min-height: 42px;
    padding: 12px 12px 0;
  }

  .home-account-panel .home-panel-title {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .home-account-title-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .home-account-body {
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    min-height: 0;
    padding: 14px 12px;
    gap: 12px;
  }

  .home-user-avatar {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    font-size: 26px;
  }

  .home-account-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-account-meta > div {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 4px;
  }

  .home-account-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 12px;
    gap: 8px;
  }

  .home-account-actions button {
    min-width: 0;
    min-height: 36px;
  }

  .home-account-actions button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .home-business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home-ticket-metric-panel,
  .home-resource-metric-panel,
  .home-resource-metric-panel .home-metric-grid {
    display: contents;
  }

  .home-business-grid .home-metric-item {
    min-height: 112px;
    padding: 12px;
    border: 0;
    border-radius: 1px;
    background: var(--home-surface);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.055);
  }

  .home-business-grid.is-ticket-unavailable {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-business-grid.is-ticket-unavailable .home-metric-item:last-child {
    grid-column: 1 / -1;
  }

  .home-metric-item strong {
    font-size: 26px;
    line-height: 34px;
  }

  .home-metric-actions {
    margin-top: 4px;
    padding-top: 4px;
    gap: 7px;
  }

  .home-account-resource-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-security-score {
    padding-right: 12px;
    padding-left: 12px;
  }

  .home-security-items {
    padding-right: 12px;
    padding-left: 12px;
  }

  .home-product-summary {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .home-product-summary-skeleton {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .desktop-resource-table {
    display: none !important;
  }

  .mobile-resource-list {
    display: grid !important;
    padding: 10px;
    gap: 8px;
  }

  .mobile-resource-card {
    display: block !important;
    padding: 12px !important;
  }

  .mobile-resource-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
  }

  .mobile-resource-head > strong {
    min-width: 0;
    color: var(--home-title);
    font-size: 13px;
    font-weight: 500;
    overflow-wrap: anywhere;
  }

  .mobile-resource-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 10px;
    gap: 8px 12px;
  }

  .mobile-resource-card dl > div:last-child {
    grid-column: 1 / -1;
  }

  .mobile-resource-card dt,
  .mobile-resource-card dd {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
  }

  .mobile-resource-card dt {
    color: var(--home-muted);
  }

  .mobile-resource-card dd {
    color: var(--home-text);
    overflow-wrap: anywhere;
  }

  .home-empty-state {
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 104px;
    padding: 16px 12px;
    flex-wrap: wrap;
  }

  .home-empty-state .el-button {
    width: 100%;
    margin-left: 38px;
  }

  .home-order-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 12px;
    gap: 6px;
  }

  .home-order-end {
    justify-content: space-between;
    width: 100%;
  }

  .home-cost-balance {
    padding: 14px 12px 12px;
  }

  .home-cost-balance > strong {
    font-size: 26px;
    line-height: 36px;
  }

  .home-cost-stats button,
  .home-finance-list,
  .home-integration-list button,
  .home-ticket-list button,
  .home-news-list button {
    padding-right: 12px;
    padding-left: 12px;
  }

  .home-cost-stats {
    padding: 0 12px 12px;
    gap: 8px;
  }

  .home-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-shortcut-grid button:nth-child(3n) {
    border-right: 1px solid var(--home-border);
  }

  .home-shortcut-grid button:nth-child(2n) {
    border-right: 0;
  }

  .home-shortcut-grid button > span {
    display: -webkit-box;
    overflow: hidden;
    line-height: 18px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-banner-region .el-carousel__container {
    height: 88px !important;
    min-height: 88px;
  }

  .credit-notice-dialog .credit-open,
  .credit-notice-dialog .credit-input {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .credit-notice-dialog .credit-input .el-input-number {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .home-account-actions button {
    padding: 7px 4px;
    font-size: 12px;
  }

  .home-account-actions button span {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .home-metric-item {
    padding: 10px;
  }

  .home-metric-label {
    font-size: 12px;
  }

  .home-shortcut-grid button {
    min-height: 64px;
  }
}

.home-console
  :where(button, a, input, select, textarea, [role="button"], [tabindex]):focus-visible {
  outline: 2px solid var(--home-primary) !important;
  outline-offset: 2px;
}

/* Stage 85: homepage Element actions use the same 006IDC state language. */
.home-console .el-button:not(.el-button--text) {
  display: inline-flex;
  min-height: 36px;
  padding: 8px 16px;
  align-items: center;
  justify-content: center;
  border-radius: 1px !important;
  box-shadow: none !important;
  line-height: 18px;
  transition: border-color 0.15s ease, background-color 0.15s ease,
    color 0.15s ease, opacity 0.15s ease;
}

.home-console
  .el-button:not(.el-button--primary):not(.el-button--danger):not(.el-button--text) {
  border-color: var(--home-border-strong, #c9d0dc) !important;
  color: var(--home-title) !important;
  background: #fff !important;
}

.home-console
  .el-button:not(.el-button--primary):not(.el-button--danger):not(.el-button--text):not(.is-disabled):not([disabled]):hover {
  border-color: var(--home-primary) !important;
  color: var(--home-primary) !important;
  background: var(--home-primary-soft) !important;
}

.home-console .el-button--primary {
  border-color: var(--home-primary) !important;
  color: #fff !important;
  background: var(--home-primary) !important;
}

.home-console .el-button--primary:not(.is-disabled):not([disabled]):hover {
  border-color: var(--home-primary-hover) !important;
  background: var(--home-primary-hover) !important;
}

.home-console .el-button--primary:not(.is-disabled):not([disabled]):active {
  border-color: var(--home-primary-active) !important;
  background: var(--home-primary-active) !important;
}

.home-console .el-button--text {
  min-height: 32px;
  padding: 5px 6px;
  border-color: transparent !important;
  color: var(--home-primary) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.home-console
  .el-button:is(.is-disabled, [disabled], [aria-disabled="true"]),
.home-console button:is([disabled], [aria-disabled="true"]) {
  cursor: not-allowed !important;
  opacity: 0.65;
  box-shadow: none !important;
  transform: none !important;
}

.home-console .el-button.is-loading {
  cursor: wait !important;
  pointer-events: none;
}

/* Stage 108: mobile home follows a sequential account-to-resource flow. */
@media (max-width: 767px) {
  .home-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .home-primary-column,
  .home-secondary-column {
    display: contents;
  }

  .home-certification-region { order: 5; }
  .home-account-panel { order: 10; }
  .home-cost-panel { order: 20; }
  .home-finance-panel { order: 25; }
  .home-business-grid { order: 30; }
  .home-account-resource-grid { order: 40; }
  .home-resources-panel { order: 50; }
  .home-orders-panel { order: 60; }
  .home-ticket-panel { order: 70 !important; }
  .home-integration-panel { order: 80 !important; }
  .home-shortcuts-panel { order: 90 !important; }
  .home-news-panel { order: 100 !important; }

  .home-business-grid,
  .home-business-grid.is-ticket-unavailable {
    display: grid;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
  }

  .home-ticket-metric-panel,
  .home-resource-metric-panel {
    display: block !important;
    width: 100%;
    min-width: 0;
  }

  .home-resource-metric-panel .home-metric-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-resource-metric-panel .home-metric-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .home-business-grid .home-metric-item {
    min-height: 100px;
    box-shadow: none;
  }

  .home-account-resource-grid,
  .home-secondary-column > .console-panel,
  .home-primary-column > .console-panel {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .home-console
    .el-button:not(.el-button--small):not(.el-button--mini):not(.el-button--text) {
    min-height: 40px;
  }
}

/* Stage 109: reference-style mobile rhythm without replacing live data. */
@media (max-width: 767px) {
  .home-console {
    color: var(--home-text);
    font-size: 15px;
    line-height: 23px;
  }

  .home-workspace-grid,
  .home-primary-column,
  .home-secondary-column,
  .home-business-grid,
  .home-account-resource-grid {
    gap: 10px !important;
  }

  .home-console .console-panel,
  .home-banner-region {
    border-radius: 2px !important;
    box-shadow: none !important;
  }

  .home-panel-title,
  .home-console .console-panel-head {
    min-height: 52px;
    padding: 16px 16px 0;
  }

  .home-panel-title h2,
  .home-console .console-panel-head h2 {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 24px !important;
  }

  .home-account-title-actions {
    display: none;
  }

  .home-account-body {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 20px 16px 18px;
    gap: 16px;
  }

  .home-user-avatar {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
    font-size: 30px;
  }

  .home-account-meta > div {
    grid-template-columns: 78px minmax(0, 1fr);
    font-size: 14px;
    line-height: 22px;
  }

  .home-account-meta > div:last-child {
    display: none;
  }

  .home-account-actions {
    display: flex;
    padding: 0 16px 16px;
    gap: 8px;
  }

  .home-account-actions .home-account-action--account,
  .home-account-actions .home-account-action--password {
    display: none;
  }

  .home-account-actions button {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 4px;
  }

  .home-account-actions button:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .home-business-grid .home-metric-item {
    min-height: 116px;
    padding: 16px;
  }

  .home-account-resource-grid,
  .home-product-summary,
  .mobile-resource-list {
    padding-right: 16px;
    padding-left: 16px;
  }

  .mobile-resource-card {
    padding: 16px !important;
  }

  .mobile-resource-head > strong {
    font-size: 15px;
    line-height: 22px;
  }
}
