/* 通用工具类 */
.text-break {
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* 手机端统一规范。桌面端规则仍由下方 1025px 以上断点负责。 */
@font-face {
  font-family: 'Material Design Icons';
  /* 绝对路径：本文件会被 tools/build-assets.mjs 合并进 static/build/，
     相对基准与源目录不同，故统一以 /static/ 为准。 */
  src: url('/static/app/fonts/materialdesignicons.woff2?v=2.0.46') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@media (max-width: 767px) {
  html { overflow-x: hidden; }
  body {
    min-width: 320px;
    overflow-x: hidden;
    background: #f4f6f8;
    color: #30343b;
    -webkit-text-size-adjust: 100%;
  }

  .user-shell,
  .agent-shell,
  .staff-shell,
  .admin-shell,
  .user-shell .lyear-layout-content,
  .agent-shell .lyear-layout-content,
  .staff-shell .lyear-layout-content,
  .admin-shell .lyear-layout-content { background: #f4f6f8; }

  .lyear-layout-header {
    height: 58px;
    border-bottom: 1px solid #e3e7eb;
    background: rgba(255, 255, 255, .97);
    box-shadow: none;
  }
  .lyear-layout-header .navbar {
    min-height: 58px;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .lyear-layout-header .topbar {
    width: 100%;
    min-height: 58px;
    padding: 0 12px;
    gap: 8px;
  }
  .lyear-aside-toggler {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin: 0 8px 0 -6px;
    padding: 10px 8px;
    border-radius: 6px;
  }
  .navbar-page-title {
    max-width: calc(100vw - 138px);
    color: #252a31;
    font-size: 15px;
    font-weight: 600;
  }
  .topbar-right { gap: 0; }
  .dropdown-profile > a { gap: 0; padding: 8px 0; }
  .dropdown-profile > a .img-avatar {
    width: 32px;
    height: 32px;
    margin-right: 0 !important;
  }
  .dropdown-profile > a .user-name { display: none; }
  .dropdown-profile .dropdown-menu {
    right: -4px;
    min-width: min(280px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 76px);
    border: 1px solid #dfe4e8;
    border-radius: 7px;
    box-shadow: 0 10px 28px rgba(28, 36, 44, .15);
  }
  .dropdown-profile .dropdown-menu > li > a,
  .dropdown-profile .dropdown-menu > li > form > button { min-height: 46px; }
  .admin-top-search { display: none !important; }

  .lyear-layout-sidebar {
    width: min(280px, 86vw);
    max-width: 86vw;
    border-right: 1px solid #e1e5e9;
    box-shadow: 8px 0 28px rgba(25, 33, 41, .14);
  }
  .lyear-layout-sidebar .sidebar-header { border-bottom: 1px solid #edf0f2; }
  .lyear-layout-sidebar-scroll { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .nav-drawer > li > a { min-height: 46px; color: #4d5661; }
  .nav-drawer > li.active > a,
  .nav-drawer > li.open > a {
    background: #eef3f8;
    color: #2f669e;
    font-weight: 600;
  }

  .lyear-layout-content {
    width: 100%;
    margin-left: 0 !important;
    padding: 58px 0 0 !important;
  }
  .lyear-layout-content > .container-fluid {
    width: 100%;
    padding: 14px 12px calc(24px + env(safe-area-inset-bottom));
  }
  .lyear-layout-content .row { margin-right: -6px; margin-left: -6px; }
  .lyear-layout-content [class*="col-"] { padding-right: 6px; padding-left: 6px; }

  .card,
  .soft-card,
  .metric-card,
  .panel,
  .well,
  .lyear-layout-web .lyear-layout-content .card:not(.workspace-hero):not(.metric-card):not(.soft-card) {
    margin-bottom: 12px;
    border: 1px solid #e1e5e9;
    border-radius: 7px;
    box-shadow: none;
  }
  .card-header,
  .soft-card .card-header,
  .lyear-layout-web .lyear-layout-content .card:not(.workspace-hero):not(.metric-card):not(.soft-card) > .card-header {
    min-height: 48px;
    padding: 13px 14px;
    border-bottom: 1px solid #e8ebee;
    background: #fff;
  }
  .card-header h4,
  .soft-card .card-header h4 { font-size: 15px; line-height: 22px; }
  .card-body,
  .soft-card .card-body,
  .metric-card .card-body,
  .panel-body,
  .lyear-layout-web .lyear-layout-content .card:not(.workspace-hero):not(.metric-card):not(.soft-card) > .card-body {
    padding: 14px;
  }
  .card-header.clearfix > h4.pull-left {
    max-width: calc(100% - 96px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .card-header.clearfix > .pull-right.btn { margin: -5px 0; }

  .workspace-hero {
    border: 1px solid #dfe3e7 !important;
    border-top: 3px solid #3b73af !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #30343b !important;
    box-shadow: none !important;
  }
  .workspace-hero::before { display: none !important; }
  .workspace-hero .card-body { padding: 17px 15px !important; }
  .workspace-kicker {
    margin-bottom: 6px;
    padding: 0;
    background: transparent;
    color: #6d7680;
    font-size: 11px;
    letter-spacing: 0;
  }
  .workspace-title { color: #252a31 !important; font-size: 21px; line-height: 1.35; }
  .workspace-subtitle { margin-top: 7px; color: #68717c !important; line-height: 1.6; }
  .workspace-meta { gap: 6px; margin-top: 12px; }
  .workspace-meta > li {
    max-width: 100%;
    padding: 5px 8px;
    border: 1px solid #e2e6ea;
    border-radius: 4px;
    background: #f7f8f9 !important;
    color: #59626c !important;
    font-size: 12px;
  }
  .workspace-sidecard {
    margin-top: 12px;
    padding: 13px 14px;
    border: 1px solid #e2e5e9;
    border-radius: 5px;
    background: #f8f9fa !important;
    color: #30343b !important;
  }
  .workspace-sidecard .workspace-sidecard-muted { color: #737c86 !important; }

  .metric-card,
  .dashboard-stat { min-height: 0; }
  .metric-card .card-body,
  .dashboard-stat .card-body { padding: 14px 15px; }
  .metric-value,
  .dashboard-stat .h3,
  .insight-value { font-size: 23px; }
  .metric-note { margin-top: 7px; }
  .insight-grid { gap: 10px; margin-bottom: 12px; }
  .insight-card { padding: 14px 15px; border-radius: 7px; box-shadow: none; }

  .quota-section { margin: 2px 0 12px; }
  .quota-section-head { margin: 2px 0 10px; gap: 3px; }
  .quota-section-title { font-size: 15px; }
  .quota-section-caption { margin: 2px 0 0; color: #7a838d; font-size: 11px; }
  .quota-overview-card {
    display: block;
    width: 100%;
    padding: 15px;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    background: #fff;
    color: #30343b;
    text-align: left;
    box-shadow: none;
  }
  .quota-overview-card > .card-body { padding: 0; }
  .quota-overview-head,
  .quota-overview-identity,
  .quota-overview-summary,
  .quota-overview-foot { display: flex; align-items: center; }
  .quota-overview-head { justify-content: space-between; gap: 10px; }
  .quota-overview-identity { min-width: 0; gap: 9px; }
  .quota-overview-icon {
    display: inline-flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    background: #edf4fa;
    color: #356fa9;
    font-size: 18px;
  }
  .quota-overview-identity strong {
    display: block;
    overflow: hidden;
    color: #252a31;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .quota-overview-identity span:last-child { display: block; margin-top: 2px; color: #7a838d; font-size: 11px; }
  .quota-overview-status {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 3px;
    background: #eef8f1;
    color: #287345;
    font-size: 11px;
    font-weight: 600;
  }
  .quota-overview-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 13px 0; }
  .quota-overview-metric { min-height: 66px; padding: 9px 10px; border: 1px solid #e6e9ec; border-radius: 5px; background: #fafbfc; }
  .quota-overview-metric > span { display: block; color: #7a838d; font-size: 11px; }
  .quota-overview-metric > strong { display: inline-block; margin-top: 4px; color: #252a31; font-size: 18px; }
  .quota-overview-metric > small { margin-left: 3px; color: #7a838d; }
  .quota-overview-summary { justify-content: space-between; padding-top: 11px; border-top: 1px solid #eaedef; color: #747e88; font-size: 11px; }
  .quota-overview-summary > strong { color: #2e9b4f; font-size: 24px; line-height: 1; }
  .quota-overview-summary > strong small { font-size: 12px; }
  .quota-overview-scale { display: grid; grid-template-columns: repeat(30, minmax(2px, 1fr)); gap: 2px; height: 18px; margin: 10px 0 7px; align-items: end; }
  .quota-overview-scale i { display: block; height: 8px; border-radius: 1px; background: #e5e9ec; }
  .quota-overview-scale i.is-filled { height: 15px; background: #35a85a; }
  .quota-overview-foot { justify-content: space-between; color: #8a939d; font-size: 10px; }

  .form-control { min-height: 40px; border-color: #d7dce1; border-radius: 4px; box-shadow: none; }
  select.form-control { padding-right: 28px; }
  textarea.form-control { min-height: 100px; resize: vertical; }
  .form-group { margin-bottom: 14px; }
  .form-inline .form-group { display: block; width: 100%; margin: 0 0 10px; }
  .form-inline .form-control { display: block; width: 100% !important; }
  .form-inline > .btn,
  .form-inline > a.btn { width: 100%; margin: 0 0 8px !important; }
  .admin-filter-bar,
  .filter-toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 9px; }
  .admin-filter-bar .form-group,
  .filter-toolbar .form-group { width: 100%; margin: 0 !important; }
  .admin-filter-panel { padding: 13px; }

  .btn { min-height: 38px; border-radius: 4px; }
  .btn-xs { min-height: 34px; }
  .responsive-action-group { float: none !important; width: 100%; margin-top: 10px; gap: 8px; }
  .responsive-action-group > .btn,
  .responsive-action-group > form { flex: 1 1 calc(50% - 4px); }
  .table-actions > .btn,
  .table-actions > form { flex: 1 1 calc(50% - 4px); }
  .card-toolbar { align-items: stretch; }
  .card-toolbar > h1,
  .card-toolbar > h2,
  .card-toolbar > h3,
  .card-toolbar > h4 { width: 100%; }

  .table-responsive {
    width: calc(100% + 2px);
    margin-bottom: 0;
    overflow-x: auto;
    border: 0;
    -webkit-overflow-scrolling: touch;
  }
  .table-responsive > .table { min-width: 680px; margin-bottom: 2px; }
  .table-responsive > .table.table-mobile-compact { min-width: 540px; }
  .table > thead > tr > th {
    padding: 9px 8px;
    background: #f7f8f9;
    color: #4c5560;
    font-size: 12px;
    white-space: nowrap;
  }
  .table > tbody > tr > td { padding: 10px 8px; vertical-align: middle; }
  .table-actions-cell { min-width: 150px; }
  .pagination { display: flex; max-width: 100%; overflow-x: auto; padding-bottom: 3px; white-space: nowrap; }
  .pagination > li { display: inline-flex; flex: 0 0 auto; }

  .modal { padding: 0 !important; }
  .modal-dialog {
    width: auto;
    margin: max(12px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom));
  }
  .modal-content { border: 0; border-radius: 8px; box-shadow: 0 14px 40px rgba(24, 31, 38, .22); }
  .modal-header,
  .modal-footer { padding: 13px 14px; border-color: #e5e8eb; }
  .modal-body { max-height: calc(100vh - 170px); overflow-y: auto; padding: 14px; -webkit-overflow-scrolling: touch; }
  .modal-footer { display: flex; gap: 8px; }
  .modal-footer .btn { flex: 1 1 0; margin: 0; }
  .quota-details-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; padding: 10px; background: #f8f9fa; }

  .profile-identity-card { border-top: 3px solid #3b73af; }
  .profile-identity-card > .card-body { display: block; padding: 16px; }
  .profile-identity-main { display: flex; align-items: center; min-width: 0; gap: 12px; }
  .profile-avatar-wrap { position: relative; flex: 0 0 auto; }
  .profile-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; background: #eef1f4; }
  .profile-avatar-action {
    position: absolute;
    right: -3px;
    bottom: -1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #3b73af;
    color: #fff;
    cursor: pointer;
    margin: 0;
    line-height: 1;
  }
  .profile-avatar-action:hover { background: #2f5f93; color: #fff; }
  .profile-avatar-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
  .profile-avatar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .profile-avatar-filename { margin-top: 8px; font-size: 12px; }
  .profile-identity-text { min-width: 0; }
  .profile-identity-text h2 { margin: 0 0 5px; font-size: 18px; }
  .profile-public-id { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; }
  .profile-public-id code { font-size: 12px; letter-spacing: .03em; }
  .profile-avatar-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e5e8eb; }
  .profile-avatar-note strong,
  .profile-avatar-note span { display: block; }

  .project-config-section { padding: 14px; border-radius: 7px; }
  .detail-item,
  .timeline-item,
  .inline-list > li,
  .ticket-chat-item,
  .ticket-log-item { padding: 13px 14px; border-radius: 6px; box-shadow: none; }
  .empty-state { padding: 24px 14px; border-radius: 7px; }
  .ticket-chat-time,
  .ticket-log-time { white-space: normal; }

  .alert { margin-bottom: 12px; padding: 11px 36px 11px 12px; border-radius: 5px; }
  .content-heading { margin-bottom: 12px; padding: 14px; }
  .content-heading h1,
  .content-heading h2 { font-size: 21px; }
  code { white-space: normal; overflow-wrap: anywhere; }
}

.api-interface-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.api-interface-summary > div { padding: 12px 14px; border: 1px solid #e0e8ee; border-radius: 8px; background: #fafcfd; }
.api-interface-summary span,.api-interface-summary strong { display: block; }
.api-interface-summary span { color: #748493; font-size: 11px; }
.api-interface-summary strong { margin-top: 3px; color: #2c4050; font-size: 20px; }
.api-interface-summary > div:nth-child(2) { border-top: 2px solid #38a476; }
.api-interface-summary > div:nth-child(3) { border-top: 2px solid #4b8dd0; }
.api-interface-summary > div:nth-child(4) { border-top: 2px solid #d69a3c; }
.api-interface-filters { display: grid; grid-template-columns: minmax(220px,1fr) 140px 140px auto auto; gap: 9px; align-items: center; margin-bottom: 12px; padding: 10px; border: 1px solid #dce7ed; border-radius: 8px; background: #f5f9fa; }
.api-filter-search { position: relative; }
.api-filter-search i { position: absolute; z-index: 1; top: 50%; left: 10px; color: #81909c; transform: translateY(-50%); }
.api-filter-search input { padding-left: 34px; }
.api-interface-filters [data-api-result] { color: #748390; font-size: 12px; white-space: nowrap; }
.api-row-actions { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.api-row-more { position: relative; }
.api-row-more > summary { padding: 5px 7px; color: #526b7e; cursor: pointer; list-style: none; font-size: 12px; }
.api-row-more > summary::-webkit-details-marker { display: none; }
.api-row-more > div { position: absolute; z-index: 20; top: calc(100% + 5px); right: 0; min-width: 142px; padding: 5px; border: 1px solid #dce4ea; border-radius: 7px; background: #fff; box-shadow: 0 8px 22px rgba(35,57,82,.14); }
.api-row-more form { display: block !important; margin: 0; }
.api-more-action { display: flex; align-items: center; gap: 7px; width: 100%; padding: 7px 9px; border: 0; border-radius: 5px; color: #52616e; background: transparent; font-size: 12px; text-align: left; }
.api-more-action:hover { background: #f2f6f8; }
.api-more-action.is-success { color: #237954; }
.api-more-action.is-warning { color: #9a6618; }
tr[data-api-row][hidden] { display: none; }
@media (max-width: 767px) {
  .api-interface-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .api-interface-filters { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .api-filter-search { grid-column: 1 / -1; }
  .api-interface-filters [data-api-result] { justify-self: end; }
}

/* Interface center: one scannable list for basic and optional capabilities. */
.interface-package-bar { margin: 18px 0 12px; border-radius: 8px; overflow: hidden; }
.interface-catalog-tools { display: grid; grid-template-columns: minmax(240px,1fr) 150px 150px auto auto; gap: 9px; align-items: center; margin-bottom: 10px; padding: 11px; border: 1px solid #dce7ed; border-radius: 8px; background: #f5f9fa; }
.interface-filter-search { position: relative; min-width: 0; }
.interface-filter-search > i { position: absolute; z-index: 1; top: 50%; left: 11px; color: #7c8b98; font-size: 18px; transform: translateY(-50%); }
.interface-filter-search .form-control { padding-left: 36px; }
.interface-filter-result { color: #6f7e8b; font-size: 12px; white-space: nowrap; }
.interface-catalog-list { overflow: hidden; border: 1px solid #dfe6ec; border-radius: 8px; background: #fff; }
.interface-catalog-head,
.interface-catalog-row { display: grid; grid-template-columns: minmax(230px,1fr) 120px 150px minmax(220px,auto); column-gap: 18px; align-items: center; }
.interface-catalog-head { min-height: 42px; padding: 0 15px; border-bottom: 1px solid #dfe6ec; color: #607385; background: #f2f7fa; font-size: 11px; font-weight: 600; }
.interface-catalog-row { min-height: 76px; padding: 11px 15px; border-bottom: 1px solid #edf1f4; transition: background-color 180ms ease; }
.interface-catalog-row:last-child { border-bottom: 0; }
.interface-catalog-row:hover { background: #f9fbfc; }
.interface-catalog-row[hidden] { display: none !important; }
.interface-cell { min-width: 0; color: #5d6b77; font-size: 12px; line-height: 1.5; }
.interface-name { display: block; }
.interface-name > div { min-width: 0; }
.interface-name strong,.interface-name small,.interface-state small { display: block; }
.interface-name strong { overflow: hidden; color: #263745; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.interface-name small { margin-top: 2px; color: #85929e; }
.interface-purpose { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.interface-key-cell code { display: block; overflow: hidden; padding: 5px 7px; border: 1px solid #e3e9ee; border-radius: 5px; color: #52677b; background: #f7f9fb; text-overflow: ellipsis; white-space: nowrap; }
.interface-type { display: inline-flex; padding: 3px 8px; border-radius: 10px; color: #24775c; background: #e4f5ed; font-size: 11px; white-space: nowrap; }
.interface-type.is-level { color: #5d54a4; background: #eeebff; }
.interface-type.is-optional { color: #976313; background: #fff0d5; }
.interface-state small { margin-top: 4px; color: #778590; font-size: 11px; }
.interface-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.interface-row-actions form { margin: 0; }
.interface-row-actions .btn { width: auto; margin: 0; white-space: nowrap; }
.interface-no-action { font-size: 12px; }
.interface-empty { padding: 38px 20px; color: #7a8995; text-align: center; }
.interface-empty[hidden] { display: none; }
.interface-empty i,.interface-empty strong,.interface-empty span { display: block; }
.interface-empty i { margin-bottom: 7px; font-size: 28px; }
.interface-empty strong { color: #465969; }
.interface-empty span { margin-top: 3px; font-size: 12px; }

@media (max-width: 1199px) {
  .interface-catalog-head,.interface-catalog-row { grid-template-columns: minmax(210px,1fr) 110px 140px minmax(200px,auto); gap: 12px; }
}
@media (max-width: 767px) {
  .interface-package-bar .basic-package-head { padding: 13px; }
  .interface-package-bar .basic-package-head p { display: none; }
  .interface-catalog-tools { grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: 10px; }
  .interface-filter-search { grid-column: 1 / -1; }
  .interface-catalog-tools [data-interface-reset] { justify-self: start; }
  .interface-filter-result { justify-self: end; }
  .interface-catalog-head { display: none; }
  .interface-catalog-row { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "name state" "type type" "actions actions"; gap: 8px 12px; min-height: 0; padding: 14px 13px; }
  .interface-name { grid-area: name; align-self: start; }
  .interface-catalog-row > .interface-cell:nth-child(2) { grid-area: type; padding-left: 0; }
  .interface-state { grid-area: state; text-align: right; }
  .interface-state small { max-width: 130px; }
  .interface-row-actions { grid-area: actions; justify-content: flex-end; padding-top: 8px; border-top: 1px dashed #e7ecef; }
  .interface-row-actions .text-center { margin-right: auto; text-align: left !important; }
}

/* Mobile action layout: center button labels and keep compact actions in rows. */
@media (max-width: 767px) {
  .lyear-layout-content .btn,
  .lyear-layout-content button.btn,
  .sidebar-footer .btn,
  .dropdown-profile .dropdown-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .lyear-layout-content .btn > i,
  .lyear-layout-content .btn > .mdi {
    flex: 0 0 auto;
    align-self: center;
  }

  .lyear-layout-content .btn-xs {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .responsive-action-group,
  .table-actions,
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell .table-actions,
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell .responsive-action-group,
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell .btn-group,
  .card-header-actions,
  .modal-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 7px;
  }

  .responsive-action-group > .btn,
  .responsive-action-group > form,
  .responsive-action-group > form > .btn,
  .table-actions > .btn,
  .table-actions > form,
  .table-actions > form > .btn,
  .card-header-actions > .btn,
  .card-header-actions > form,
  .card-header-actions > form > .btn,
  .modal-footer > .btn {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
  }

  .filter-toolbar,
  .admin-filter-bar,
  .mobile-stack-form,
  .form-inline,
  .admin-batch-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 9px;
  }

  .filter-toolbar > .form-group,
  .admin-filter-bar > .form-group,
  .mobile-stack-form > .form-group,
  .form-inline > .form-group,
  .admin-batch-bar > .form-group {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
  }

  .filter-toolbar > .btn,
  .filter-toolbar > a,
  .admin-filter-bar > .btn,
  .admin-filter-bar > a,
  .mobile-stack-form > .btn,
  .mobile-stack-form > a,
  .form-inline > .btn,
  .form-inline > a,
  .admin-batch-bar > .btn,
  .admin-batch-bar > a,
  .admin-batch-bar > form {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
  }

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

  .insight-card {
    min-width: 0;
  }
}

@media (max-width: 374px) {
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .filter-toolbar,
  .admin-filter-bar,
  .mobile-stack-form,
  .form-inline,
  .admin-batch-bar {
    grid-template-columns: 1fr;
  }
}

/* Author mobile app introduction */
.author-app-page { max-width: 1240px; padding-top: 8px; padding-bottom: 32px; color: #263448; }
.author-app-hero { overflow: hidden; position: relative; min-height: 292px; border: 1px solid #dfe8e7; border-radius: 8px; background: linear-gradient(120deg, #f4fbf8 0%, #fff 55%, #f2f8fc 100%); }
.author-app-hero::after { position: absolute; right: -70px; bottom: -115px; width: 300px; height: 300px; border: 58px solid rgba(39, 164, 119, .08); border-radius: 50%; content: ""; }
.author-app-hero__content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 292px; padding: 42px 48px; }
.author-app-product { display: flex; align-items: flex-start; gap: 24px; max-width: 720px; }
.author-app-product__icon { display: grid; flex: 0 0 72px; width: 72px; height: 72px; border-radius: 8px; color: #fff; background: #239b70; box-shadow: 0 10px 25px rgba(35, 155, 112, .2); place-items: center; }
.author-app-product__icon .mdi { font-size: 39px; }
.author-app-eyebrow, .author-app-section__heading span, .author-app-install > div > span { display: block; margin-bottom: 8px; color: #258363; font-size: 12px; font-weight: 700; }
.author-app-product h1 { margin: 0 0 13px; color: #1f2e3c; font-size: 34px; font-weight: 700; letter-spacing: 0; }
.author-app-product p { max-width: 610px; margin: 0; color: #647485; font-size: 15px; line-height: 1.85; }
.author-app-download { flex: 0 0 218px; text-align: center; }
.author-app-download__button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: 100%; border-radius: 6px; font-size: 15px; font-weight: 650; }
.author-app-download__button .mdi { font-size: 20px; }
.author-app-download > span { display: block; margin-top: 11px; color: #7a8997; font-size: 11px; }
.author-app-download > span .mdi { margin-right: 3px; color: #239b70; }
.author-app-notice { display: flex; align-items: center; gap: 14px; margin: 18px 0 30px; padding: 17px 20px; border: 1px solid #f0d49b; border-left: 4px solid #e9a62d; border-radius: 7px; background: #fffbf2; }
.author-app-notice > .mdi { flex: 0 0 auto; color: #dc9420; font-size: 28px; }
.author-app-notice div { min-width: 0; }
.author-app-notice strong { display: block; color: #624817; font-size: 14px; }
.author-app-notice p { margin: 3px 0 0; color: #846b3c; font-size: 12px; line-height: 1.65; }
.author-app-notice > a { flex: 0 0 auto; margin-left: auto; color: #9a6818; font-size: 12px; font-weight: 650; white-space: nowrap; }
.author-app-section { margin-bottom: 30px; }
.author-app-section__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 16px; }
.author-app-section__heading h2, .author-app-boundary h2, .author-app-install h2 { margin: 0; color: #263448; font-size: 21px; font-weight: 680; letter-spacing: 0; }
.author-app-section__heading > p { max-width: 420px; margin: 0; color: #7a8897; font-size: 12px; text-align: right; }
.author-app-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.author-app-feature { min-width: 0; padding: 22px; border: 1px solid #e2e8ed; border-radius: 8px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.author-app-feature:hover { border-color: #bfd8cd; box-shadow: 0 8px 22px rgba(35, 52, 72, .07); transform: translateY(-2px); }
.author-app-feature__icon { display: grid; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 7px; font-size: 21px; place-items: center; }
.author-app-feature__icon--green { color: #258b67; background: #e9f6f1; }
.author-app-feature__icon--blue { color: #397ead; background: #ebf3f9; }
.author-app-feature__icon--cyan { color: #278d96; background: #e8f6f7; }
.author-app-feature h3 { margin: 0 0 8px; color: #2e3d4e; font-size: 15px; font-weight: 680; }
.author-app-feature p { margin: 0; color: #738292; font-size: 12px; line-height: 1.75; }
.author-app-boundary { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: 36px; margin-bottom: 18px; padding: 26px 28px; border: 1px solid #dfe7ed; border-radius: 8px; background: #f8fafb; }
.author-app-boundary > div { display: flex; align-items: flex-start; gap: 16px; }
.author-app-boundary__icon { display: grid; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 7px; color: #397ead; background: #eaf2f8; font-size: 23px; place-items: center; }
.author-app-boundary h2 { margin-bottom: 8px; font-size: 17px; }
.author-app-boundary p { margin: 0; color: #718191; font-size: 12px; line-height: 1.75; }
.author-app-boundary ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.author-app-boundary li { color: #566779; font-size: 12px; }
.author-app-boundary li .mdi { margin-right: 7px; color: #26976e; }
.author-app-install { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 25px 28px; border: 1px solid #cfe4dc; border-radius: 8px; background: #f2faf7; }
.author-app-install h2 { margin-bottom: 7px; font-size: 18px; }
.author-app-install p { margin: 0; color: #6e8179; font-size: 12px; line-height: 1.65; }
.author-app-install > .btn { flex: 0 0 auto; min-width: 218px; min-height: 44px; padding-top: 11px; border-radius: 6px; font-weight: 650; }
.author-app-install > .btn .mdi { margin-right: 5px; }

@media (max-width: 900px) {
  .author-app-hero__content { align-items: flex-start; flex-direction: column; padding: 34px; }
  .author-app-download { width: 240px; }
  .author-app-boundary { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 767px) {
  .author-app-page { padding: 2px 12px 22px; }
  .author-app-hero { min-height: 0; }
  .author-app-hero::after { right: -110px; bottom: -150px; }
  .author-app-hero__content { min-height: 0; gap: 27px; padding: 25px 20px; }
  .author-app-product { display: block; }
  .author-app-product__icon { width: 56px; height: 56px; margin-bottom: 20px; }
  .author-app-product__icon .mdi { font-size: 31px; }
  .author-app-product h1 { font-size: 27px; }
  .author-app-product p { font-size: 13px; line-height: 1.75; }
  .author-app-download { width: 100%; }
  .author-app-notice { align-items: flex-start; flex-wrap: wrap; margin-bottom: 26px; padding: 15px; }
  .author-app-notice div { flex: 1 1 calc(100% - 45px); }
  .author-app-notice > a { flex-basis: 100%; margin: 2px 0 0 42px; }
  .author-app-section__heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .author-app-section__heading > p { text-align: left; }
  .author-app-feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .author-app-feature { padding: 18px; }
  .author-app-feature__icon { margin-bottom: 13px; }
  .author-app-boundary { padding: 20px 17px; }
  .author-app-boundary > div { gap: 12px; }
  .author-app-boundary__icon { flex-basis: 40px; width: 40px; height: 40px; }
  .author-app-install { align-items: stretch; flex-direction: column; gap: 18px; padding: 20px 18px; }
  .author-app-install > .btn { width: 100%; min-width: 0; }
}

/* Perceived-performance feedback: visible immediately, without blocking navigation. */
.gn-page-progress {
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #1cae8f;
  box-shadow: 0 0 8px rgba(28, 174, 143, .45);
  opacity: 0;
  pointer-events: none;
  transition: width 160ms ease, opacity 160ms ease;
}
.gn-page-progress.is-visible { width: 72%; opacity: 1; }
.gn-page-progress.is-visible:not(.is-done) { animation: gn-progress-drift 1.8s ease-in-out infinite; }
.gn-page-progress.is-done { width: 100%; opacity: 0; }
@keyframes gn-progress-drift { 0% { transform: translateX(-8%); } 50% { transform: translateX(28%); } 100% { transform: translateX(-8%); } }
.gn-auth-loading {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(245, 247, 250, .72);
  backdrop-filter: blur(2px);
}
.gn-auth-loading__panel {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 180px;
  padding: 22px 26px;
  border: 1px solid var(--gn-border);
  border-radius: 8px;
  color: var(--gn-text);
  background: #fff;
  box-shadow: 0 12px 32px rgba(25, 38, 55, .14);
}
.gn-auth-loading__panel > span:last-child { color: var(--gn-text-muted); font-size: 12px; }
.gn-auth-loading__spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #d8e8e4;
  border-top-color: #1cae8f;
  border-radius: 50%;
  animation: gn-submit-spin .7s linear infinite;
}
.captcha-image {
  transition: opacity 140ms ease, filter 140ms ease;
}
.captcha-image[role="button"] {
  cursor: pointer;
}
.captcha-image[role="button"]:focus-visible {
  outline: 3px solid rgba(33, 150, 243, .4);
  outline-offset: 2px;
}
.captcha-image.is-loading {
  opacity: .48;
  filter: grayscale(.35);
  cursor: wait;
}
.captcha-image.is-error {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .gn-page-progress,
  .gn-page-progress.is-visible:not(.is-done),
  .gn-auth-loading__spinner,
  .captcha-image { animation: none; transition: none; }
}

/* Shared submit feedback and compact status alignment. */
.btn.is-form-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: wait;
}
.btn.is-form-loading::before {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: '';
  opacity: .8;
  animation: gn-submit-spin .65s linear infinite;
}

/* Author entitlement redemption surface. */
.user-redemption-page { max-width: 1180px; margin: 0 auto; padding-bottom: 24px; }
.user-redemption-header { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; }
.user-redemption-header h1 { margin-bottom:8px; }
.user-redemption-badge { display:inline-flex; align-items:center; gap:6px; padding:7px 11px; border:1px solid #cde8dc; border-radius:6px; color:#237a5b; background:#f1faf6; font-size:12px; white-space:nowrap; }
.user-redemption-grid { display:grid; grid-template-columns:minmax(300px,.88fr) minmax(0,1.42fr); gap:18px; margin-bottom:22px; }
.user-redemption-panel { min-width:0; border:1px solid #e1e8ee; border-radius:8px; background:#fff; box-shadow:0 5px 18px rgba(35,52,72,.045); }
.user-redemption-panel__head { display:flex; align-items:flex-start; gap:12px; padding:20px 22px 15px; border-bottom:1px solid #edf1f4; }
.user-redemption-panel__head h2 { margin:1px 0 4px; color:#2d3d4e; font-size:17px; font-weight:650; }
.user-redemption-panel__head p { margin:0; color:#82909d; font-size:12px; line-height:1.6; }
.user-redemption-icon { display:grid; flex:0 0 38px; width:38px; height:38px; border-radius:7px; place-items:center; font-size:20px; }
.user-redemption-icon--green { color:#21835f; background:#e8f6f0; }
.user-redemption-icon--blue { color:#3977a3; background:#eaf3f9; }
.user-redemption-account { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 22px 0; padding:12px 14px; border:1px solid #e6edf1; border-radius:6px; background:#f8fafb; }
.user-redemption-account div { min-width:0; }
.user-redemption-account span { display:block; margin-bottom:4px; color:#8a98a5; font-size:11px; }
.user-redemption-account strong { display:block; overflow:hidden; color:#33475b; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.user-redemption-form { padding:19px 22px 16px; }
.user-redemption-form > label { display:block; margin-bottom:8px; color:#405266; font-size:13px; font-weight:600; }
.user-redemption-input { position:relative; }
.user-redemption-input > i { position:absolute; z-index:1; top:12px; left:12px; color:#8b9aa7; font-size:17px; }
.user-redemption-input .form-control { height:42px; padding-left:38px; border-color:#d9e3e9; border-radius:6px; box-shadow:none; }
.user-redemption-input .form-control:focus { border-color:#52ae8a; box-shadow:0 0 0 3px rgba(82,174,138,.13); }
.user-redemption-form .help-block { margin:8px 0 15px; color:#8997a3; font-size:11px; line-height:1.6; }
.user-redemption-form .help-block i { margin-right:4px; color:#5a9cc1; }
.user-redemption-submit { min-height:42px; border-radius:6px; font-weight:650; }
.user-redemption-submit > i { margin-right:5px; }
.user-redemption-flow { display:flex; align-items:center; justify-content:center; gap:8px; padding:0 18px 18px; color:#80909d; font-size:11px; }
.user-redemption-flow span { display:inline-flex; align-items:center; gap:4px; }
.user-redemption-flow span i { color:#56a583; font-size:15px; }
.user-redemption-flow > i { color:#c2ccd3; }
.user-redemption-result-body { padding:18px 22px 22px; min-height:190px; }
.user-redemption-success { position:relative; display:flex; align-items:center; gap:11px; margin-bottom:14px; padding:12px 14px; overflow:hidden; border:1px solid #c9eadb; border-radius:6px; color:#247455; background:#f1fbf6; animation:user-redemption-pop .35s ease-out both; }
.user-redemption-success__mark { display:grid; flex:0 0 28px; width:28px; height:28px; border-radius:50%; color:#fff; background:#35a879; place-items:center; font-size:17px; animation:user-redemption-check .45s .15s ease-out both; }
.user-redemption-success strong,.user-redemption-success span { display:block; }
.user-redemption-success strong { margin-bottom:2px; font-size:13px; }
.user-redemption-success span { color:#668d7c; font-size:11px; }
.user-redemption-success__spark { position:absolute; right:18px; color:#78c8a6; font-size:22px; animation:user-redemption-spark 1.8s ease-in-out infinite; }
.user-redemption-empty { display:flex; min-height:150px; align-items:center; justify-content:center; flex-direction:column; gap:7px; color:#8493a0; text-align:center; }
.user-redemption-empty i { color:#96b9aa; font-size:34px; }
.user-redemption-empty strong { color:#526779; font-size:13px; }
.user-redemption-empty span { font-size:11px; }
.user-redemption-effects { margin-bottom:0; }
.user-redemption-effects th { color:#788997; font-size:11px; font-weight:600; }
.user-redemption-effects td { color:#46596b; font-size:12px; vertical-align:middle !important; }
.user-redemption-history { border-top:1px solid #e2e9ee; padding-top:20px; }
.user-redemption-section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.user-redemption-section-head h2 { margin:0 0 4px; color:#304153; font-size:17px; font-weight:650; }
.user-redemption-section-head p { margin:0; color:#8795a1; font-size:11px; }
.user-redemption-section-head > i { color:#a1b0ba; font-size:22px; }
.user-redemption-history__table { margin-bottom:0; }
.user-redemption-history__table th { color:#7d8d99; font-size:11px; font-weight:600; }
.user-redemption-history__table td { color:#536577; font-size:12px; vertical-align:middle !important; }
.user-redemption-status { display:inline-flex; min-width:42px; justify-content:center; padding:3px 7px; border-radius:10px; font-size:10px; }
.user-redemption-status--success { color:#237755; background:#e8f7ef; }
.user-redemption-status--failed { color:#a65b56; background:#fceed; }
.user-redemption-status--rolled_back { color:#936b2d; background:#fff5df; }

@media (max-width: 767px) {
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] { min-width:0; width:100%; table-layout:fixed; }
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] > thead { display:none; }
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] > tbody,
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] > tbody > tr { display:block; }
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] > tbody > tr { margin:0 0 10px; padding:10px 12px; border:1px solid #e1e8ee; border-radius:8px; background:#fff; box-shadow:0 3px 10px rgba(35,52,72,.045); }
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] > tbody > tr > td { display:grid; grid-template-columns:72px minmax(0,1fr); gap:8px; align-items:center; width:100%; min-height:34px; padding:7px 0; border:0; border-bottom:1px solid #f0f3f5; text-align:left; }
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] > tbody > tr > td:last-child { border-bottom:0; }
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] > tbody > tr > td::before { content:attr(data-mobile-label); color:#8a98a5; font-size:11px; font-weight:500; }
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] code { color:#b24d67; font-size:12px; white-space:nowrap; overflow-wrap:normal; word-break:normal; }
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] .inline-copy { display:inline-flex; align-items:center; gap:7px; min-width:0; }
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] .ticket-title-cell a,
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] .ticket-title-cell strong,
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] .ticket-title-cell .text-break { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] .table-actions { justify-content:flex-start; }
  .lyear-layout-web .ticket-list-table[data-mobile-table="card"] .table-actions .btn { width:auto; }
}
@keyframes user-redemption-pop { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:none; } }
@keyframes user-redemption-check { from { transform:scale(.5); opacity:0; } to { transform:scale(1); opacity:1; } }
@keyframes user-redemption-spark { 0%,100% { transform:rotate(-8deg) scale(1); opacity:.65; } 50% { transform:rotate(8deg) scale(1.14); opacity:1; } }
@media (max-width: 767px) {
  .user-redemption-page { padding:0 2px 18px; }
  .user-redemption-header { align-items:flex-start; flex-direction:column; gap:10px; }
  .user-redemption-grid { grid-template-columns:1fr; gap:12px; }
  .user-redemption-panel__head { padding:17px 16px 13px; }
  .user-redemption-account { margin:14px 16px 0; }
  .user-redemption-form { padding:16px; }
  .user-redemption-flow { padding:0 12px 16px; }
  .user-redemption-result-body { padding:14px 16px 18px; }
  .user-redemption-effects { min-width:560px; }
  .user-redemption-history { padding-top:16px; }
}
@media (prefers-reduced-motion: reduce) { .user-redemption-success,.user-redemption-success__mark,.user-redemption-success__spark { animation:none; } }
@keyframes gn-submit-spin { to { transform: rotate(360deg); } }
.lyear-layout-web .label,
.lyear-layout-web .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  line-height: 1.2;
  vertical-align: middle;
}

/* The card inventory stays horizontally scannable on phones. */
.user-cards-table { min-width: 1280px; }
.user-cards-table th,
.user-cards-table td { vertical-align: middle !important; }
.user-cards-table td:nth-child(2),
.user-cards-table td:nth-child(2) code,
.user-cards-table .inline-copy {
  word-break: normal !important;
  overflow-wrap: normal !important;
  writing-mode: horizontal-tb;
  white-space: nowrap;
}
.iface-enable-modal #modal-days-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}
.iface-enable-modal #modal-days-btns > .btn {
  margin: 0 !important;
  min-width: 78px;
  min-height: 40px;
}
.iface-enable-modal .modal-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Dedicated Connect compatibility workspace. */
.connect-config-page { max-width: 1180px; margin: 0 auto; }
.connect-config-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin:0 0 18px; }
.connect-config-head h2 { margin:4px 0 6px; color:#253447; font-size:25px; font-weight:600; }
.connect-config-head p { max-width:700px; margin:0; color:#7a8795; font-size:13px; line-height:1.65; }
.connect-config-kicker { display:block; margin-top:13px; color:#66839b; font-size:11px; font-weight:700; letter-spacing:.1em; }
.connect-config-summary { display:grid; grid-template-columns:180px 180px minmax(0,1fr); align-items:center; margin-bottom:16px; border:1px solid #dce5ec; border-radius:7px; background:#f8fafc; }
.connect-config-summary > div { min-width:0; min-height:72px; padding:13px 16px; border-right:1px solid #e3e9ee; }
.connect-config-summary > div:last-child { border-right:0; }
.connect-config-summary span { display:block; margin-bottom:5px; color:#7e8b98; font-size:11px; }
.connect-config-summary strong { color:#2c3a49; font-size:14px; }
.connect-config-endpoint { display:grid; grid-template-columns:minmax(0,1fr) 28px; align-content:center; column-gap:8px; }
.connect-config-endpoint > span { grid-column:1 / -1; }
.connect-config-endpoint code { display:block; min-width:0; overflow-wrap:anywhere; color:#385b78; font-size:12px; line-height:1.5; }
.connect-config-endpoint .copy-icon-btn { align-self:center; }
.connect-config-layout { display:grid; grid-template-columns:minmax(0,1fr) 285px; gap:16px; align-items:start; }
.connect-config-form,.connect-config-side section,.connect-placeholder-guide,.connect-preview-panel { border:1px solid #e1e7ed; border-radius:7px; background:#fff; }
.connect-config-form { padding:20px 22px; }
.connect-config-section-head { display:flex; align-items:center; margin:0 0 13px; padding-bottom:11px; border-bottom:1px solid #edf1f4; }
.connect-config-section-head > div { display:flex; align-items:center; gap:10px; }
.connect-config-section-head > div > span { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:#eaf3fb; color:#337ab7; font-size:11px; font-weight:700; }
.connect-config-section-head h4 { margin:0 0 2px; color:#2e3d4d; font-size:15px; }
.connect-config-section-head p { margin:0; color:#81909e; font-size:11px; }
.connect-config-token-grid { display:grid; grid-template-columns:180px minmax(0,1fr); gap:14px; margin-bottom:22px; }
.connect-config-field-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 12px; margin-bottom:22px; }
.connect-config-form label { display:block; margin-bottom:6px; color:#3c4a57; font-size:12px; font-weight:600; }
.connect-config-form .form-group { margin-bottom:13px; }
.connect-config-form .help-block { margin-top:6px; line-height:1.55; }
.connect-secret-row { display:grid; grid-template-columns:minmax(0,1fr) 250px; gap:14px; align-items:center; }
.connect-secret-note { display:flex; align-items:flex-start; gap:7px; padding:11px 12px; border-left:3px solid #d7e5f0; background:#f7fafc; color:#748392; font-size:11px; line-height:1.6; }
.connect-secret-note i { color:#337ab7; font-size:17px; }
.connect-config-actions { display:flex; align-items:center; gap:12px; margin-top:4px; padding-top:16px; border-top:1px solid #edf1f4; }
.connect-config-actions .btn { min-width:190px; }
.connect-config-actions > span { color:#8a96a2; font-size:11px; }
.connect-config-side { display:grid; gap:12px; }
.connect-config-side section { padding:18px; }
.connect-side-icon { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; margin-bottom:10px; border-radius:7px; background:#edf5fb; color:#337ab7; font-size:19px; }
.connect-config-side h4 { margin:0 0 6px; color:#2d3d4d; font-size:15px; }
.connect-config-side p { margin:0 0 14px; color:#71808d; font-size:12px; line-height:1.65; }
.connect-current-default { padding:9px 10px; border-radius:4px; background:#f1faf5; color:#258352; font-size:12px; }
.connect-placeholder-guide { padding:0; }
.connect-placeholder-guide summary { display:flex; align-items:center; justify-content:space-between; padding:13px 15px; cursor:pointer; color:#405567; font-size:12px; font-weight:600; list-style:none; }
.connect-placeholder-guide summary::-webkit-details-marker { display:none; }
.connect-placeholder-guide summary i { color:#8292a0; }
.connect-placeholder-guide[open] summary { border-bottom:1px solid #edf1f4; }
.connect-placeholder-guide > div { display:flex; flex-wrap:wrap; gap:6px; padding:12px 15px 15px; }
.connect-placeholder-guide code { padding:3px 6px; border:1px solid #dfe7ed; border-radius:3px; background:#f7fafc; color:#42647d; font-size:11px; }
.connect-config-blocked { display:flex; align-items:center; gap:13px; padding:20px; border:1px solid #eadfbd; border-radius:7px; background:#fffaf0; }
.connect-config-blocked > span { display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background:#fff0c9; color:#ad7a1c; font-size:20px; }
.connect-config-blocked h4 { margin:0 0 4px; color:#5c4b29; font-size:15px; }
.connect-config-blocked p { margin:0; color:#88744d; font-size:12px; }
.connect-config-blocked .btn { margin-left:auto; flex:0 0 auto; }
.connect-preview-panel { margin-top:16px; overflow:hidden; }
.connect-preview-panel > summary { display:flex; align-items:center; justify-content:space-between; padding:13px 16px; cursor:pointer; list-style:none; color:#3b5060; font-size:13px; font-weight:600; }
.connect-preview-panel > summary::-webkit-details-marker { display:none; }
.connect-preview-panel > summary i { margin-right:6px; color:#337ab7; }
.connect-preview-panel > summary small { color:#8a98a4; font-size:11px; font-weight:400; }
.connect-preview-panel[open] > summary { border-bottom:1px solid #edf1f4; background:#f8fafc; }
.connect-preview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:15px; }
.connect-preview-grid h5 { margin:0 0 7px; color:#596a78; font-size:12px; }
.connect-preview-grid pre { min-height:120px; margin:0; padding:11px; border:1px solid #e1e8ed; border-radius:4px; background:#17232c; color:#dcecf5; font:11px/1.55 monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
@media (max-width: 767px) {
  .connect-config-head { align-items:flex-start; flex-direction:column; gap:12px; }
  .connect-config-head .btn { width:auto; min-width:132px; }
  .connect-config-head h2 { font-size:22px; }
  .connect-config-summary { grid-template-columns:1fr 1fr; }
  .connect-config-summary > div { min-height:64px; padding:11px 12px; }
  .connect-config-summary > div:nth-child(2n) { border-right:0; }
  .connect-config-summary .connect-config-endpoint { grid-column:1 / -1; border-top:1px solid #e3e9ee; border-right:0; }
  .connect-config-layout { grid-template-columns:1fr; }
  .connect-config-form { padding:16px 14px; }
  .connect-config-token-grid,.connect-secret-row { grid-template-columns:1fr; gap:0; }
  .connect-config-field-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 9px; }
  .connect-config-actions { align-items:stretch; flex-direction:column; }
  .connect-config-actions .btn { width:100%; }
  .connect-config-blocked { align-items:flex-start; flex-wrap:wrap; padding:15px; }
  .connect-config-blocked .btn { width:100%; margin-left:0; }
  .connect-preview-grid { grid-template-columns:1fr; }
}
@media (max-width: 359px) {
  .connect-config-field-grid { grid-template-columns:1fr; }
  .connect-config-summary { grid-template-columns:1fr; }
  .connect-config-summary > div { border-right:0; border-bottom:1px solid #e3e9ee; }
  .connect-config-summary > div:last-child { grid-column:auto; border-top:0; border-bottom:0; }
}
@media (max-width: 767px) {
  .user-cards-table { min-width: 1240px; table-layout: auto; }
  .user-cards-table td,
  .user-cards-table th { white-space: nowrap; }
  .user-cards-table .text-break { max-width: 190px; white-space: normal; }
}

.ticket-image-link { display: inline-block; margin-top: 12px; }
.ticket-attachment-image {
  display: block;
  width: auto;
  max-width: min(100%, 720px);
  max-height: 520px;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
}

/* 工单图片上传：方案 A 紧凑行 */
.ticket-image-field { margin-bottom: 16px; }
.ticket-image-field > label { display: block; margin-bottom: 6px; font-weight: 600; color: #3f4750; }
.ticket-image-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-height: 34px;
}
.ticket-image-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ticket-image-pick {
  margin: 0;
  flex: 0 0 auto;
}
.ticket-image-filename {
  flex: 1 1 140px;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-image-clear {
  flex: 0 0 auto;
  padding: 0 4px;
  color: #8a939d;
}
.ticket-image-clear:hover { color: #d9534f; }
.ticket-image-preview-wrap {
  margin-top: 10px;
  display: inline-block;
  max-width: 100%;
  padding: 6px;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  background: #f8fafc;
}
.ticket-image-preview {
  display: block;
  width: auto;
  max-width: min(100%, 280px);
  max-height: 160px;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
}
.ticket-image-field .help-block {
  margin-top: 6px;
  font-size: 12px;
  color: #8a939d;
}

@media (max-width: 767px) {
  .ticket-image-link, .ticket-attachment-image { width: 100%; }
  .ticket-attachment-image { max-height: 360px; }
  .ticket-image-filename { flex-basis: 100%; white-space: normal; }
  .ticket-image-preview { max-width: 100%; max-height: 180px; }
}

@media (max-width: 374px) {
  .lyear-layout-content > .container-fluid { padding-right: 9px; padding-left: 9px; }
  .quota-overview-metrics { grid-template-columns: 1fr; }
  .responsive-action-group > .btn,
  .responsive-action-group > form,
  .table-actions > .btn,
  .table-actions > form { flex-basis: 100%; }
  .workspace-title { font-size: 19px; }
}

/* Quiet workspace motion: fast enough for repeated operational use. */
@keyframes workspace-content-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes workspace-alert-enter {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.lyear-layout-web .lyear-layout-content > .container-fluid {
  animation: none;
}

.lyear-layout-web .lyear-layout-content .alert {
  animation: none;
}

.lyear-layout-web .nav-drawer > li > a,
.lyear-layout-web .nav-subnav > li > a,
.lyear-layout-web .btn,
.lyear-layout-web .card,
.lyear-layout-web .panel {
  transition: color 100ms ease, background-color 100ms ease,
    border-color 100ms ease, box-shadow 100ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .lyear-layout-web .nav-drawer > li > a:hover,
  .lyear-layout-web .nav-subnav > li > a:hover {
    transform: none;
  }

  .lyear-layout-web .btn:not(:disabled):hover {
    transform: none;
  }

  .lyear-layout-web .card:hover,
  .lyear-layout-web .panel:hover {
    box-shadow: 0 8px 22px rgba(25, 38, 58, 0.08);
  }
}

.lyear-layout-web .btn:active:not(:disabled) {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .lyear-layout-web *,
  .lyear-layout-web *::before,
  .lyear-layout-web *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* User ticket workspace */
.ticket-index-card { overflow: hidden; }
.ticket-index-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 15px 20px;
}
.ticket-index-header h4 { margin: 0 0 4px; }
.ticket-index-header p { margin: 0; color: #8490a2; font-size: 12px; }
.ticket-index-header .btn { flex: 0 0 auto; }
.ticket-index-body { padding: 20px; }
.ticket-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.ticket-metric {
  width: 100%;
  position: relative;
  min-height: 86px;
  padding: 15px 17px;
  overflow: hidden;
  border: 1px solid #e6eaf0;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ticket-metric:hover { border-color: #cbd5e1; background: #fbfcfe; }
.ticket-metric:focus-visible { outline: 2px solid #337ab7; outline-offset: 2px; }
.ticket-metric.is-active { border-color: #91acd0; background: #f4f8fc; box-shadow: inset 0 0 0 1px rgba(51,122,183,.08); }
.ticket-metric::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: #5d7ce6;
}
.ticket-metric > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #697588;
  font-size: 12px;
}
.ticket-metric > span i { font-size: 17px; }
.ticket-metric > strong {
  display: block;
  margin-top: 8px;
  color: #26334b;
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
}
.ticket-metric--open::before { background: #e3a52f; }
.ticket-metric--pending::before { background: #3998d3; }
.ticket-metric--replied::before { background: #596bd8; }
.ticket-metric--closed::before { background: #8a95a3; }
.admin-metric-grid > [class*=col-] { margin-bottom:16px; }
.admin-metric-link { display:block; min-height:116px; color:inherit; text-decoration:none; }
.admin-metric-link:hover,.admin-metric-link:focus { color:inherit; text-decoration:none; transform:translateY(-1px); }
.admin-metric-content { display:flex; min-width:0; align-items:center; justify-content:space-between; gap:12px; }
.admin-metric-copy { min-width:0; flex:1 1 auto; }
.admin-metric-visual { width:48px; height:48px; flex:0 0 48px; }
.admin-metric-icon { display:flex; width:48px; height:48px; align-items:center; justify-content:center; }
.admin-metric-icon .mdi { font-size:24px; line-height:1; }
.admin-metric-link .metric-note { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-runtime-section { margin-top:4px; }
.admin-runtime-section .online-overview { margin-top:0; }
@media (max-width:767px) {
  .admin-metric-grid { margin-right:-5px; margin-left:-5px; }
  .admin-metric-grid > [class*=col-] { padding-right:5px; padding-left:5px; margin-bottom:10px; }
  .admin-metric-link { min-height:108px; }
  .admin-metric-link .card-body { padding:13px!important; }
  .admin-metric-content { gap:8px; }
  .admin-metric-visual,.admin-metric-icon { width:34px; height:34px; flex-basis:34px; }
  .admin-metric-icon .mdi { font-size:19px; }
  .admin-metric-link .h2 { font-size:23px!important; }
  .admin-metric-link .metric-note { max-width:100%; font-size:10px; }
  .admin-runtime-section { margin-top:2px; }
}
.ticket-empty {
  display: flex;
  min-height: 180px;
  padding: 32px 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #dce2e9;
  border-radius: 6px;
  background: #fafbfc;
  color: #7d8898;
  text-align: center;
}
.ticket-empty-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf1f5;
  color: #7d8997;
  font-size: 24px;
}
.ticket-empty strong { color: #3d4858; font-size: 15px; }
.ticket-empty p { margin: 6px 0 0; font-size: 12px; }

@media (max-width: 767px) {
  .ticket-index-header { align-items: flex-start; padding: 14px 15px; }
  .ticket-index-header p { max-width: 190px; }
  .ticket-index-body { padding: 14px; }
  .ticket-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .ticket-metric { min-height: 76px; padding: 12px 13px; }
  .ticket-empty { min-height: 150px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .ticket-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 374px) {
  .ticket-index-header { flex-wrap: wrap; }
  .ticket-index-header .btn { width: 100%; }
}

/* User interface center */
.inline-copy { display:inline-flex; align-items:center; gap:5px; min-width:0; }
.inline-copy code { min-width:0; overflow-wrap:anywhere; }
.copy-icon-btn { display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; width:25px; height:25px; padding:0; border:1px solid #dfe4ea; border-radius:4px; background:#fff; color:#6e7d8f; font-size:13px; line-height:1; }
.copy-icon-btn:hover,.copy-icon-btn:focus { border-color:#b9c8da; color:#337ab7; outline:0; }
.copy-icon-btn.is-copied { border-color:#9bd2b4; background:#effaf4; color:#198754; }
.gn-copy-toast { position:fixed; right:22px; bottom:22px; z-index:9999; max-width:min(320px,calc(100vw - 30px)); padding:9px 13px; border-radius:5px; background:#253342; box-shadow:0 8px 24px rgba(24,34,46,.2); color:#fff; font-size:12px; opacity:0; pointer-events:none; transform:translateY(8px); transition:opacity .16s ease,transform .16s ease; }
.gn-copy-toast.is-visible { opacity:1; transform:translateY(0); }
.gn-copy-toast.is-error { background:#b8414b; }
.interface-workspace { margin-bottom:18px; }
.interface-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:22px; border:1px solid #e1e6ed; background:#f8fafc; }
.interface-summary-grid > div { min-width:0; padding:13px 15px; border-right:1px solid #e1e6ed; }
.interface-summary-grid > div:last-child { border-right:0; }
.interface-summary-grid span,.interface-detail-overview span { display:block; margin-bottom:4px; color:#7b8795; font-size:11px; }
.interface-summary-grid strong { display:block; overflow-wrap:anywhere; color:#283545; font-size:14px; }
.integration-choice { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:12px; padding:14px 16px; border:1px solid #cfe1ef; border-left:3px solid #337ab7; background:#f5faff; }
.integration-choice > div:first-child { min-width:0; }
.integration-choice-kicker { display:block; margin-bottom:3px; color:#337ab7; font-size:11px; font-weight:600; }
.integration-choice strong { display:block; color:#24384d; font-size:15px; }
.integration-choice p { margin:4px 0 0; color:#68798a; font-size:12px; line-height:1.5; }
.integration-choice-actions { display:flex; flex:0 0 auto; align-items:center; gap:5px; }
.project-create-advanced { margin:18px 0 16px; border:1px solid #e1e6ed; border-radius:6px; background:#fafbfd; }
.project-create-advanced > summary { display:flex; align-items:center; gap:8px; padding:12px 14px; cursor:pointer; list-style:none; color:#344456; font-size:13px; font-weight:600; }
.project-create-advanced > summary::-webkit-details-marker { display:none; }
.project-create-advanced > summary small { margin-left:auto; color:#8995a3; font-weight:400; }
.project-create-advanced[open] > summary { border-bottom:1px solid #e7ebf0; }
.project-create-advanced-body { padding:15px; }
.integration-next-step { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 16px; border:1px solid #dfe6ed; border-left:3px solid #337ab7; background:#fff; }
.integration-next-step-status { min-width:180px; }
.integration-next-step-status span,.integration-next-step-status small { display:block; color:#788695; font-size:12px; }
.integration-next-step-status strong { display:block; margin:2px 0 3px; font-size:15px; }
.integration-next-step-meta { display:flex; flex-wrap:wrap; gap:12px; color:#68798a; font-size:12px; }
.integration-next-step-actions { display:flex; flex:0 0 auto; gap:6px; }
.interface-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin:0 0 11px; }
.interface-section-head h5 { margin:0 0 4px; color:#253447; font-size:16px; }
.interface-section-head p { margin:0; color:#788594; font-size:12px; line-height:1.55; }
.interface-section-head > code { padding:6px 9px; white-space:nowrap; }
.interface-channel-grid { display:grid; grid-template-columns:1fr; gap:0; overflow:hidden; border:1px solid #dfe5ec; border-radius:6px; background:#fff; }
.interface-channel-card { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:12px; align-items:center; min-width:0; padding:13px 15px; border:0; border-bottom:1px solid #edf1f4; background:#fff; }
.interface-channel-card:last-child { border-bottom:0; }
.interface-channel-card:hover { background:#fafcfd; }
.interface-channel-card > .btn { grid-column:auto; justify-self:end; min-width:94px; }
.interface-channel-icon { display:flex; align-items:center; justify-content:center; width:38px; height:38px; border:1px solid #dce8f1; border-radius:6px; background:#f1f6fa; color:#337ab7; font-size:20px; }
.interface-channel-card:nth-child(2) .interface-channel-icon { border-color:#d9e9e1; background:#f1f8f4; color:#25845a; }
.interface-channel-card:nth-child(3) .interface-channel-icon { border-color:#e7e0f2; background:#f7f3fb; color:#7355a6; }
.interface-channel-card h5 { margin:0 0 4px; color:#263547; font-size:14px; line-height:1.45; }
.interface-channel-card p { min-height:0; margin:0; color:#6d7a89; font-size:12px; line-height:1.55; }
.interface-advanced { margin-top:12px; border:1px solid #e1e6ed; border-radius:6px; background:#fafbfd; }
.interface-advanced > summary,.basic-package-details > summary { cursor:pointer; list-style:none; }
.interface-advanced > summary::-webkit-details-marker,.basic-package-details > summary::-webkit-details-marker { display:none; }
.interface-advanced > summary { display:flex; align-items:center; gap:8px; padding:12px 14px; color:#344456; font-size:13px; font-weight:600; }
.interface-advanced > summary small { margin-left:auto; color:#8995a3; font-weight:400; }
.interface-advanced[open] > summary { border-bottom:1px solid #e7ebf0; }
.interface-advanced-body { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; padding:15px; }
.interface-endpoint-group { min-width:0; }
.interface-endpoint-group h6 { margin:0 0 8px; color:#344456; font-size:13px; }
.interface-endpoint-group > p { color:#758190; font-size:12px; line-height:1.55; }
.basic-package-details > summary { padding:10px 15px; color:#337ab7; font-size:12px; }
.basic-package-details[open] > summary { border-bottom:1px solid #dcebe3; }
.interface-capability-head { margin-top:22px; }
.interface-detail-page { max-width:1180px; margin:0 auto; }
.interface-detail-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:18px; }
.interface-back-link { display:inline-block; margin-bottom:8px; color:#64758a; font-size:12px; }
.interface-detail-head h2 { margin:0 0 5px; color:#253447; font-size:24px; }
.interface-detail-head p { max-width:760px; margin:0; color:#7a8795; font-size:13px; line-height:1.6; }
.interface-detail-overview { display:grid; grid-template-columns:150px minmax(180px,1fr) minmax(230px,1fr); margin-bottom:20px; border:1px solid #e1e6ed; background:#f8fafc; }
.interface-detail-overview > div { min-width:0; padding:13px 15px; border-right:1px solid #e1e6ed; }
.interface-detail-overview > div:last-child { border-right:0; }
.interface-detail-overview code { overflow-wrap:anywhere; color:#2e3d50; }
.interface-doc-section { margin-bottom:20px; }
.interface-param-table { margin-bottom:0; border:1px solid #e4e8ed; }
.interface-param-table td code { overflow-wrap:anywhere; }
.interface-param-table td small { display:block; margin-top:4px; color:#8994a2; }
.interface-example-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.interface-example-grid pre { min-height:110px; margin:0; padding:14px; border:0; border-radius:5px; background:#202833; color:#edf2f7; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; line-height:1.6; }
@media (max-width:991px) {
  .interface-channel-grid { grid-template-columns:1fr; }
  .interface-channel-card p { min-height:0; }
  .interface-advanced-body,.interface-example-grid { grid-template-columns:1fr; }
}
@media (max-width:600px) {
  .gn-copy-toast { right:15px; bottom:15px; }
  .interface-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .interface-summary-grid > div:nth-child(2) { border-right:0; }
  .interface-summary-grid > div:nth-child(-n+2) { border-bottom:1px solid #e1e6ed; }
  .interface-section-head,.interface-detail-head { align-items:flex-start; flex-direction:column; }
  .interface-section-head > code { white-space:normal; overflow-wrap:anywhere; }
  .interface-channel-card { grid-template-columns:34px minmax(0,1fr) auto; padding:12px; }
  .interface-channel-icon { width:32px; height:32px; }
  .interface-channel-card > .btn { min-width:82px; }
  .interface-advanced > summary small { display:none; }
  .integration-choice,.integration-next-step { align-items:stretch; flex-direction:column; gap:10px; }
  .integration-choice-actions,.integration-next-step-actions { width:100%; }
  .integration-choice-actions .btn,.integration-next-step-actions .btn { flex:1; }
  .project-create-advanced > summary small { display:none; }
  .interface-detail-head .btn { width:100%; }
  .interface-detail-overview { grid-template-columns:1fr; }
  .interface-detail-overview > div { border-right:0; border-bottom:1px solid #e1e6ed; }
  .interface-detail-overview > div:last-child { border-bottom:0; }
}

/* 用户端、代理端、客服端桌面规范。 */
@media (min-width: 1025px) {
  .user-shell,
  .agent-shell,
  .staff-shell,
  .user-shell .lyear-layout-content,
  .agent-shell .lyear-layout-content,
  .staff-shell .lyear-layout-content {
    background: #f5f6f8;
    color: #30343b;
  }

  .user-shell .lyear-layout-sidebar,
  .agent-shell .lyear-layout-sidebar,
  .staff-shell .lyear-layout-sidebar {
    border-right: 1px solid #e2e5e9;
    box-shadow: none;
  }
  .user-shell .sidebar-header,
  .agent-shell .sidebar-header,
  .staff-shell .sidebar-header { border-bottom: 1px solid #edf0f2; }
  .user-shell .lyear-layout-header,
  .agent-shell .lyear-layout-header,
  .staff-shell .lyear-layout-header {
    border-bottom: 1px solid #e2e5e9;
    box-shadow: none;
  }
  .user-shell .lyear-layout-header .navbar,
  .agent-shell .lyear-layout-header .navbar,
  .staff-shell .lyear-layout-header .navbar { box-shadow: none; }
  .user-shell .lyear-layout-content > .container-fluid,
  .agent-shell .lyear-layout-content > .container-fluid,
  .staff-shell .lyear-layout-content > .container-fluid { padding: 24px 26px 32px; }

  .user-shell .nav-drawer > li > a,
  .agent-shell .nav-drawer > li > a,
  .staff-shell .nav-drawer > li > a { color: #4d5661; }
  .user-shell .nav-drawer > li > a:hover,
  .agent-shell .nav-drawer > li > a:hover,
  .staff-shell .nav-drawer > li > a:hover {
    background: #f6f7f8;
    color: #2f5f91;
  }
  .user-shell .nav-drawer > li.active > a,
  .user-shell .nav-drawer > li.open > a,
  .agent-shell .nav-drawer > li.active > a,
  .agent-shell .nav-drawer > li.open > a,
  .staff-shell .nav-drawer > li.active > a,
  .staff-shell .nav-drawer > li.open > a {
    background: #eef3f8;
    color: #2f669e;
    font-weight: 600;
  }
  .user-shell .nav-subnav > li.active > a,
  .agent-shell .nav-subnav > li.active > a,
  .staff-shell .nav-subnav > li.active > a {
    color: #2f669e;
    font-weight: 600;
  }

  .user-shell .card,
  .agent-shell .card,
  .staff-shell .card,
  .user-shell .soft-card,
  .agent-shell .soft-card,
  .staff-shell .soft-card,
  .user-shell .metric-card,
  .agent-shell .metric-card,
  .staff-shell .metric-card {
    border: 1px solid #e1e5e9;
    border-radius: 5px;
    box-shadow: none;
  }
  .user-shell a.card:hover,
  .agent-shell a.card:hover,
  .staff-shell a.card:hover { box-shadow: none; }
  .user-shell .card-header,
  .agent-shell .card-header,
  .staff-shell .card-header,
  .user-shell .soft-card .card-header,
  .agent-shell .soft-card .card-header,
  .staff-shell .soft-card .card-header {
    min-height: 50px;
    padding: 15px 18px;
    background: #fff;
    border-bottom: 1px solid #e7eaed;
  }
  .user-shell .card-header h4,
  .agent-shell .card-header h4,
  .staff-shell .card-header h4 {
    color: #292e35;
    font-size: 15px;
    font-weight: 600;
  }
  .user-shell .card-body,
  .agent-shell .card-body,
  .staff-shell .card-body { padding: 18px; }

  .user-shell .workspace-hero,
  .agent-shell .workspace-hero,
  .staff-shell .workspace-hero {
    color: #30343b;
    background: #fff;
    border: 1px solid #dfe3e7;
    border-top: 3px solid #3b73af;
    border-radius: 5px;
    box-shadow: none;
  }
  .user-shell .workspace-hero::before,
  .agent-shell .workspace-hero::before,
  .staff-shell .workspace-hero::before { display: none; }
  .user-shell .workspace-hero .card-body,
  .agent-shell .workspace-hero .card-body,
  .staff-shell .workspace-hero .card-body { padding: 22px 24px; }
  .user-shell .workspace-kicker,
  .agent-shell .workspace-kicker,
  .staff-shell .workspace-kicker {
    margin-bottom: 7px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #6d7680;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
  }
  .user-shell .workspace-title,
  .agent-shell .workspace-title,
  .staff-shell .workspace-title { color: #252a31; font-size: 24px; }
  .user-shell .workspace-subtitle,
  .agent-shell .workspace-subtitle,
  .staff-shell .workspace-subtitle { margin-top: 8px; color: #68717c; }
  .user-shell .workspace-meta,
  .agent-shell .workspace-meta,
  .staff-shell .workspace-meta { gap: 0; margin-top: 16px; }
  .user-shell .workspace-meta > li,
  .agent-shell .workspace-meta > li,
  .staff-shell .workspace-meta > li {
    padding: 0 14px;
    border-right: 1px solid #dfe3e7;
    border-radius: 0;
    background: transparent;
    color: #555e68;
  }
  .user-shell .workspace-meta > li:first-child,
  .agent-shell .workspace-meta > li:first-child,
  .staff-shell .workspace-meta > li:first-child { padding-left: 0; }
  .user-shell .workspace-meta > li:last-child,
  .agent-shell .workspace-meta > li:last-child,
  .staff-shell .workspace-meta > li:last-child { border-right: 0; }
  .user-shell .workspace-sidecard,
  .agent-shell .workspace-sidecard,
  .staff-shell .workspace-sidecard {
    padding: 16px 18px;
    border: 1px solid #e2e5e9;
    border-radius: 4px;
    background: #f8f9fa;
    color: #30343b;
    backdrop-filter: none;
  }
  .user-shell .workspace-sidecard .workspace-sidecard-muted,
  .agent-shell .workspace-sidecard .workspace-sidecard-muted,
  .staff-shell .workspace-sidecard .workspace-sidecard-muted { color: #737c86; }

  .user-shell .metric-card,
  .agent-shell .metric-card,
  .staff-shell .metric-card { min-height: 96px; }
  .user-shell .metric-value,
  .agent-shell .metric-value,
  .staff-shell .metric-value { font-size: 24px; font-weight: 600; }
  .user-shell .metric-note,
  .agent-shell .metric-note,
  .staff-shell .metric-note { color: #737c86; }

  .user-shell .btn,
  .agent-shell .btn,
  .staff-shell .btn {
    border-radius: 3px;
    box-shadow: none;
    font-weight: 400;
  }
  .user-shell .form-control,
  .agent-shell .form-control,
  .staff-shell .form-control {
    border-color: #d7dce1;
    border-radius: 3px;
    box-shadow: none;
  }
  .user-shell .label,
  .user-shell .badge,
  .agent-shell .label,
  .agent-shell .badge,
  .staff-shell .label,
  .staff-shell .badge { border-radius: 2px; font-weight: 500; }

  .user-shell .table > thead > tr > th,
  .agent-shell .table > thead > tr > th,
  .staff-shell .table > thead > tr > th {
    padding: 10px 9px;
    border-bottom-width: 1px;
    background: #f7f8f9;
    color: #4c5560;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }
  .user-shell .table > tbody > tr > td,
  .agent-shell .table > tbody > tr > td,
  .staff-shell .table > tbody > tr > td {
    padding: 11px 9px;
    border-color: #e8ebee;
    vertical-align: middle;
  }
  .user-shell .table-striped > tbody > tr:nth-of-type(odd),
  .agent-shell .table-striped > tbody > tr:nth-of-type(odd),
  .staff-shell .table-striped > tbody > tr:nth-of-type(odd) { background: #fbfbfc; }

  .user-shell .detail-item,
  .agent-shell .detail-item,
  .staff-shell .detail-item,
  .user-shell .timeline-item,
  .agent-shell .timeline-item,
  .staff-shell .timeline-item,
  .user-shell .inline-list > li,
  .agent-shell .inline-list > li,
  .staff-shell .inline-list > li {
    border-color: #e3e7ea;
    border-radius: 4px;
    background: #f8f9fa;
    box-shadow: none;
  }
  .user-shell .empty-state,
  .agent-shell .empty-state,
  .staff-shell .empty-state {
    border-radius: 4px;
    background: #fafbfc;
  }
}

/* 手机端第二轮：信息结构与桌面一致，表现改为纵向阅读，尽量取消横向拖动。 */
@media (max-width: 767px) {
  .project-config-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    border-bottom: 0;
  }
  .project-config-tabs .project-config-tab {
    top: 0;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 9px 5px;
    border: 1px solid #e0e5e9;
    border-radius: 5px;
    background: #fff;
    font-size: 12px;
    text-align: center;
  }
  .project-config-tabs .project-config-tab.is-active,
  .project-config-tabs .project-config-tab[aria-current="page"] {
    border-color: #9ebbd7;
    background: #edf4fa;
    color: #2f669e;
  }
  .project-config-tabs .project-config-tab span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tab-cluster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab-cluster .btn { width: 100%; min-width: 0; }
  .nav-tabs { display: flex; flex-wrap: wrap; border-bottom: 0; gap: 5px; }
  .nav-tabs > li { float: none; flex: 1 1 calc(50% - 5px); margin: 0; }
  .nav-tabs > li > a {
    margin: 0;
    padding: 9px 8px;
    border: 1px solid #dfe4e8;
    border-radius: 4px;
    background: #fff;
    text-align: center;
  }

  .table-responsive {
    overflow: visible;
    width: 100%;
  }
  .table-responsive > .table.mobile-card-table {
    display: block;
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
  }
  .mobile-card-table > thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    /* 视觉隐藏但保留可访问性：必须同时移出可聚焦树，
       否则表头里的「全选」复选框仍可被 Tab 聚焦却看不见，
       形成键盘用户无法感知的焦点陷阱。 */
    visibility: hidden;
  }
  .mobile-card-table > tbody { display: grid; gap: 10px; width: 100%; }
  .mobile-card-table > tbody > tr {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: #fff !important;
  }
  .mobile-card-table > tbody > tr > td {
    display: grid;
    grid-template-columns: minmax(82px, 34%) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf0f2 !important;
    background: transparent !important;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .mobile-card-table > tbody > tr > td:last-child { border-bottom: 0 !important; }
  .mobile-card-table > tbody > tr > td::before {
    content: attr(data-mobile-label);
    color: #747e88;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.65;
    text-align: left;
  }
  .mobile-card-table > tbody > tr > td > * { max-width: 100%; }
  .mobile-card-table > tbody > tr > td .pull-left,
  .mobile-card-table > tbody > tr > td .pull-right { float: none !important; }
  .mobile-card-table > tbody > tr > td .table-actions,
  .mobile-card-table > tbody > tr > td .responsive-action-group {
    justify-content: flex-end;
    margin: 0;
  }
  .mobile-card-table > tbody > tr > td form[style*="inline"] { display: inline-flex !important; }
  .mobile-card-table > tbody > tr > td input:not([type="checkbox"]):not([type="radio"]),
  .mobile-card-table > tbody > tr > td select { max-width: 100%; }
  .mobile-card-table > tbody > tr.mobile-table-empty-row > td {
    display: block;
    padding: 26px 12px !important;
    text-align: center;
  }
  .mobile-card-table > tbody > tr.mobile-table-empty-row > td::before { display: none; }

  /* 选择列在卡片模式下的呈现。
     密集列表（卡密/订单/用户）现在会走卡片模式，勾选框与「全选」必须仍然
     易于点按，并且不占用整行高度。放大触控目标到 24px 是 WCAG 2.2 的建议值。 */
  .mobile-card-table > tbody > tr > td[data-mobile-label="选择"] {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 0;
    padding: 8px 12px !important;
    background: #f7f9fb !important;
  }
  .mobile-card-table > tbody > tr > td[data-mobile-label="选择"] input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin: 0;
    justify-self: end;
  }

  /* 明确要求保留原始列关系的表格可设置 data-mobile-table="scroll"。 */
  .table-responsive > table[data-mobile-table="scroll"] { min-width: 620px; }
  .table-responsive.mobile-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    overflow: visible;
    white-space: normal;
  }
  .pagination > li > a,
  .pagination > li > span {
    min-width: 36px;
    padding: 8px 9px;
    border-radius: 4px !important;
    text-align: center;
  }

  .admin-summary-strip { margin-right: -5px; margin-left: -5px; }
  .admin-summary-strip > [class*="col-"] { padding-right: 5px; padding-left: 5px; }
  .admin-summary-strip .card-body { padding: 12px 8px; text-align: center; }

  .online-overview-head { gap: 10px; }
  .online-overview-head > div:first-child { min-width: 0; }
  .online-total { flex: 0 0 auto; }
  .online-package .card-body { min-height: 108px !important; padding: 16px !important; }
  .online-package-icon { width: 42px !important; height: 42px !important; margin-right: 12px !important; }
  .online-package-copy { min-width: 0; }
  .online-package-copy p { white-space: normal; }
  .online-chart-wrap { overflow: hidden; padding-right: 10px !important; padding-left: 10px !important; }
  .online-chart { min-width: 0; width: 100%; }

  .btn-group { display: flex; flex-wrap: wrap; gap: 5px; }
  .btn-group > .btn {
    float: none;
    flex: 1 1 auto;
    margin: 0 !important;
    border-radius: 4px !important;
  }
  .input-group { width: 100%; }
  .list-group-item { padding: 11px 12px; }
}

@media (max-width: 374px) {
  .project-config-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-card-table > tbody > tr > td { grid-template-columns: 76px minmax(0, 1fr); }
}

/* 用户端额度总览卡，仅调整电脑端。 */
@media (min-width: 1025px) {
  .user-shell .quota-section { margin: 6px 0 20px; }
  .user-shell .quota-section-head { margin-bottom: 12px; }
  .user-shell .quota-section-title {
    color: #292e35;
    font-size: 16px;
    font-weight: 600;
  }
  .user-shell .quota-section-caption {
    margin: 4px 0 0;
    color: #747e88;
    font-size: 12px;
  }
  .user-shell .quota-overview-card {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    width: 100%;
    display: block;
    max-width: 760px;
    padding: 19px 20px 16px;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    background: #fff;
    color: #30343b;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(35, 42, 49, .06);
  }

  .user-announcement-item { padding: 0; }
  .user-announcement-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 15px; cursor: pointer; list-style: none; }
  .user-announcement-summary::-webkit-details-marker { display: none; }
  .user-announcement-summary::after { content: '\eab2'; flex: 0 0 auto; color: #8b96a3; font-family: 'Material Design Icons'; font-size: 17px; transition: transform .15s ease; }
  .user-announcement-item[open] .user-announcement-summary::after { transform: rotate(180deg); }
  .user-announcement-title { min-width: 0; color: #303b4d; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
  .user-announcement-meta { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; color: #8b96a3; }
  .user-announcement-meta small { white-space: nowrap; }
  .user-announcement-content { margin: 0 15px 15px; padding: 13px 14px; border-left: 3px solid #d9e4f4; background: #f8fafc; color: #566276; font-size: 13px; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; }
  .user-first-announcement { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; line-height: 1.6; }
  .user-first-announcement a { color: #1769aa; font-weight: 600; overflow-wrap: anywhere; }
  .user-first-announcement .m-l-8 { margin-left: auto; white-space: nowrap; }
  @media (max-width: 767px) { .user-announcement-summary { align-items: flex-start; padding: 13px 12px; } .user-announcement-meta { flex-direction: column; align-items: flex-end; gap: 4px; } .user-announcement-meta small { font-size: 10px; } .user-announcement-content { margin-right: 12px; margin-left: 12px; } }
  .user-shell .quota-overview-card > .card-body { padding: 0; }
  .user-shell .quota-overview-card:hover,
  .user-shell .quota-overview-card:focus {
    border-color: #c5cdd4;
    color: #30343b;
    text-decoration: none;
    box-shadow: 0 7px 20px rgba(35, 42, 49, .08);
  }
  .user-shell .quota-overview-head,
  .user-shell .quota-overview-identity,
  .user-shell .quota-overview-summary,
  .user-shell .quota-overview-foot {
    display: flex;
    align-items: center;
  }
  .user-shell .quota-overview-head {
    justify-content: space-between;
    gap: 18px;
  }
  .user-shell .quota-overview-identity { min-width: 0; gap: 11px; }
  .user-shell .quota-overview-icon {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 5px;
    background: #edf4fa;
    color: #356fa9;
    font-size: 20px;
  }
  .user-shell .quota-overview-identity strong {
    display: block;
    overflow: hidden;
    color: #252a31;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .user-shell .quota-overview-identity span:last-child {
    display: block;
    margin-top: 3px;
    color: #7a838d;
    font-size: 12px;
  }
  .user-shell .quota-overview-status {
    flex: 0 0 auto;
    padding: 3px 8px;
    border: 1px solid #bfdfcb;
    border-radius: 3px;
    background: #eef8f1;
    color: #287345;
    font-size: 12px;
    font-weight: 600;
  }
  .user-shell .quota-overview-card--warning .quota-overview-status {
    border-color: #ead4a8;
    background: #fff8e9;
    color: #9a6217;
  }
  .user-shell .quota-overview-card--danger .quota-overview-status {
    border-color: #e9bdc1;
    background: #fff1f2;
    color: #b23843;
  }
  .user-shell .quota-overview-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 17px 0 15px;
  }
  .user-shell .quota-overview-metric {
    min-height: 76px;
    padding: 11px 13px;
    border: 1px solid #e6e9ec;
    border-radius: 5px;
    background: #fafbfc;
  }
  .user-shell .quota-overview-metric > span {
    display: block;
    color: #7a838d;
    font-size: 12px;
  }
  .user-shell .quota-overview-metric > strong {
    display: inline-block;
    margin-top: 4px;
    color: #252a31;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
  }
  .user-shell .quota-overview-metric > small {
    margin-left: 7px;
    color: #7a838d;
  }
  .user-shell .quota-overview-summary {
    justify-content: space-between;
    padding-top: 13px;
    border-top: 1px solid #eaedef;
    color: #747e88;
    font-size: 12px;
  }
  .user-shell .quota-overview-summary > strong {
    color: #2e9b4f;
    font-size: 27px;
    font-weight: 600;
    line-height: 1;
  }
  .user-shell .quota-overview-summary > strong small {
    font-size: 14px;
    font-weight: 500;
  }
  .user-shell .quota-overview-card--warning .quota-overview-summary > strong { color: #bd7619; }
  .user-shell .quota-overview-card--danger .quota-overview-summary > strong { color: #c33d48; }
  .user-shell .quota-overview-scale {
    display: grid;
    grid-template-columns: repeat(30, minmax(2px, 1fr));
    gap: 3px;
    height: 20px;
    margin: 12px 0 8px;
    align-items: end;
  }
  .user-shell .quota-overview-scale i {
    display: block;
    height: 10px;
    border-radius: 1px;
    background: #e5e9ec;
  }
  .user-shell .quota-overview-scale i.is-filled { height: 18px; background: #35a85a; }
  .user-shell .quota-overview-card--warning .quota-overview-scale i.is-filled { background: #d68a27; }
  .user-shell .quota-overview-card--danger .quota-overview-scale i.is-filled { background: #cf4a55; }
  .user-shell .quota-overview-foot {
    justify-content: space-between;
    color: #8a939d;
    font-size: 11px;
  }
  .user-shell .quota-details-modal .modal-content {
    border: 1px solid #dce1e5;
    border-radius: 6px;
    box-shadow: 0 12px 34px rgba(35, 42, 49, .16);
  }
  .user-shell .quota-details-modal .modal-header,
  .user-shell .quota-details-modal .modal-footer { border-color: #e5e8eb; }
  .user-shell .quota-details-modal .modal-title {
    color: #252a31;
    font-size: 16px;
    font-weight: 600;
  }
  .user-shell .quota-details-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    padding: 11px 13px;
    border: 1px solid #e5e8eb;
    border-radius: 4px;
    background: #f8f9fa;
    color: #69727c;
    font-size: 13px;
  }
  .user-shell .quota-details-summary strong {
    margin-left: 4px;
    color: #30343b;
  }
  .user-shell .quota-details-table { margin-bottom: 0; }
}

/* 用户个人中心，仅调整电脑端。 */
@media (min-width: 1025px) {
  .user-shell .profile-settings-page { max-width: 1040px; }
  .user-shell .profile-identity-card { border-top: 3px solid #3b73af; }
  .user-shell .profile-identity-card > .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 22px 24px;
  }
  .user-shell .profile-identity-main {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 17px;
  }
  .user-shell .profile-avatar-wrap { position: relative; flex: 0 0 auto; }
  .user-shell .profile-avatar {
    width: 76px;
    height: 76px;
    border: 1px solid #dfe3e7;
    border-radius: 50%;
    object-fit: cover;
    background: #eef1f4;
  }
  .user-shell .profile-avatar-action {
    position: absolute;
    right: -2px;
    bottom: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #3b73af;
    color: #fff;
    cursor: pointer;
    margin: 0;
    line-height: 1;
  }
  .user-shell .profile-avatar-action:hover { background: #2f5f93; color: #fff; }
  .user-shell .profile-identity-text h2 {
    margin: 0 0 7px;
    color: #252a31;
    font-size: 21px;
    font-weight: 600;
  }
  .user-shell .profile-public-id { display: flex; align-items: center; gap: 8px; }
  .user-shell .profile-public-id > span { color: #747e88; font-size: 12px; }
  .user-shell .profile-public-id code { font-size: 14px; letter-spacing: .06em; }
  .user-shell .profile-identity-text > p {
    margin: 7px 0 0;
    color: #7a838d;
    font-size: 12px;
  }
  .user-shell .profile-avatar-note {
    flex: 0 0 auto;
    min-width: 220px;
    padding-left: 22px;
    border-left: 1px solid #e5e8eb;
  }
  .user-shell .profile-avatar-note strong,
  .user-shell .profile-avatar-note span { display: block; }
  .user-shell .profile-avatar-note strong { color: #3f4750; font-size: 13px; }
  .user-shell .profile-avatar-note span { margin-top: 4px; color: #8a939d; font-size: 12px; }
  .user-shell .profile-avatar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .user-shell .profile-avatar-filename { margin-top: 8px; font-size: 12px; }
  .user-shell .profile-setting-card .card-body { padding: 20px; }
  .user-shell .profile-setting-card label {
    color: #414951;
    font-size: 13px;
    font-weight: 600;
  }
  .user-shell .profile-email-current {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #e5e8eb;
    border-radius: 4px;
    background: #f8f9fa;
  }
  .user-shell .profile-email-current span,
  .user-shell .profile-email-current strong { display: block; }
  .user-shell .profile-email-current span { margin-bottom: 4px; color: #7a838d; font-size: 12px; }
  .user-shell .profile-email-current strong { color: #343b43; font-weight: 600; }
}

/* 管理后台桌面端基线：不影响其他端及移动端。 */
@media (min-width: 1025px) {
  .admin-shell,
  .admin-shell .lyear-layout-content {
    background: #f5f6f8;
    color: #30343b;
  }

  .admin-shell .lyear-layout-sidebar {
    border-right: 1px solid #e2e5e9;
    box-shadow: none;
  }
  .admin-shell .sidebar-header { border-bottom: 1px solid #edf0f2; }
  .admin-shell .nav-drawer > li > a { color: #4d5661; }
  .admin-shell .nav-drawer > li > a:hover {
    background: #f6f7f8;
    color: #2f5f91;
  }
  .admin-shell .nav-drawer > li.active > a,
  .admin-shell .nav-drawer > li.open > a {
    background: #eef3f8;
    color: #2f669e;
    font-weight: 600;
  }
  .admin-shell .nav-subnav > li > a { color: #66707b; }
  .admin-shell .nav-subnav > li.active > a {
    color: #2f669e;
    font-weight: 600;
  }
  .admin-shell .sidebar-footer {
    border-top: 1px solid #edf0f2;
    color: #7a838d;
  }
  .admin-shell .lyear-layout-header {
    border-bottom: 1px solid #e2e5e9;
    box-shadow: none;
  }
  .admin-shell .lyear-layout-header .navbar { box-shadow: none; }
  .admin-shell .topbar { padding-right: 18px; }
  .admin-shell .navbar-page-title {
    color: #252a31;
    font-size: 15px;
    font-weight: 600;
  }
  .admin-shell .dropdown-profile > a .user-name {
    color: #454d56;
    font-weight: 500;
  }
  .admin-shell .dropdown-profile .dropdown-menu {
    border-color: #dfe3e7;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(35, 42, 49, .1);
  }
  .admin-shell .lyear-layout-content > .container-fluid { padding: 24px 26px 32px; }

  .admin-shell .card,
  .admin-shell .lyear-layout-content .card:not(.workspace-hero):not(.metric-card):not(.soft-card),
  .admin-shell .metric-card,
  .admin-shell .soft-card {
    border: 1px solid #e1e5e9;
    border-radius: 5px;
    box-shadow: none;
  }
  .admin-shell .card:hover,
  .admin-shell a.card:hover,
  .admin-shell .metric-card:hover,
  .admin-shell .soft-card:hover { box-shadow: none; }

  .admin-shell .card-header,
  .admin-shell .soft-card .card-header,
  .admin-shell .lyear-layout-content .card:not(.workspace-hero):not(.metric-card):not(.soft-card) > .card-header {
    min-height: 50px;
    padding: 15px 18px;
    background: #fff;
    border-bottom: 1px solid #e7eaed;
  }
  .admin-shell .card-header h4,
  .admin-shell .soft-card .card-header h4 {
    color: #292e35;
    font-size: 15px;
    font-weight: 600;
  }
  .admin-shell .card-body,
  .admin-shell .soft-card .card-body,
  .admin-shell .lyear-layout-content .card:not(.workspace-hero):not(.metric-card):not(.soft-card) > .card-body {
    padding: 18px;
  }

  .admin-shell .workspace-hero {
    color: #30343b;
    background: #fff;
    border: 1px solid #dfe3e7;
    border-top: 3px solid #3b73af;
    border-radius: 5px;
    box-shadow: none;
  }
  .admin-shell .workspace-hero::before { display: none; }
  .admin-shell .workspace-hero .card-body { padding: 22px 24px; }
  .admin-shell .workspace-kicker {
    margin-bottom: 7px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #6d7680;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
  }
  .admin-shell .workspace-title { color: #252a31; font-size: 24px; }
  .admin-shell .workspace-subtitle {
    margin-top: 8px;
    color: #68717c;
    line-height: 1.65;
  }
  .admin-shell .workspace-meta { gap: 0; margin-top: 16px; }
  .admin-shell .workspace-meta > li {
    padding: 0 14px;
    border-right: 1px solid #dfe3e7;
    border-radius: 0;
    background: transparent;
    color: #555e68;
  }
  .admin-shell .workspace-meta > li:first-child { padding-left: 0; }
  .admin-shell .workspace-meta > li:last-child { border-right: 0; }
  .admin-shell .workspace-sidecard {
    padding: 16px 18px;
    border: 1px solid #e2e5e9;
    border-radius: 4px;
    background: #f8f9fa;
    color: #30343b;
    backdrop-filter: none;
  }
  .admin-shell .workspace-sidecard .workspace-sidecard-muted { color: #737c86; }

  .admin-shell .metric-card { min-height: 96px; }
  .admin-shell .metric-card .card-body { padding: 17px 18px; }
  .admin-shell .metric-card .h2,
  .admin-shell .metric-value,
  .admin-shell .dashboard-stat .h3,
  .admin-shell .insight-value { font-size: 24px; font-weight: 600; }
  .admin-shell .metric-card .img-avatar { border-radius: 4px; opacity: .88; }

  .admin-shell .btn { border-radius: 3px; box-shadow: none; font-weight: 400; }
  .admin-shell .btn:hover,
  .admin-shell .btn:focus,
  .admin-shell .btn:active { box-shadow: none; }
  .admin-shell .form-control {
    border-color: #d7dce1;
    border-radius: 3px;
    box-shadow: none;
  }
  .admin-shell .form-control:focus {
    border-color: #7da5ce;
    box-shadow: 0 0 0 2px rgba(59, 115, 175, .1);
  }
  .admin-shell .label,
  .admin-shell .badge { border-radius: 2px; font-weight: 500; }
  .admin-shell .alert { border-radius: 4px; box-shadow: none; }

  .admin-shell .table { color: #30343b; }
  .admin-shell .table > thead > tr > th {
    padding: 10px 9px;
    border-bottom-width: 1px;
    background: #f7f8f9;
    color: #4c5560;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }
  .admin-shell .table > tbody > tr > td {
    padding: 11px 9px;
    border-color: #e8ebee;
    vertical-align: middle;
  }
  .admin-shell .table-striped > tbody > tr:nth-of-type(odd) { background: #fbfbfc; }
  .admin-shell .table-hover > tbody > tr:hover,
  .admin-shell .table-striped > tbody > tr:hover { background: #f4f7fa; }

  .admin-shell .responsive-action-group { gap: 8px; }
  .admin-shell .responsive-action-group > .btn,
  .admin-shell .responsive-action-group > form {
    flex: 0 0 auto;
    width: auto;
  }
  .admin-shell .responsive-action-group > form > .btn { width: auto; }

  .admin-shell .admin-filter-bar {
    margin: -18px -18px 18px;
    padding: 14px 18px;
    border-bottom: 1px solid #e5e8eb;
    background: #fafbfc;
  }
  .admin-shell .admin-filter-bar .form-group { margin-bottom: 0; }
  .admin-shell .admin-filter-panel {
    margin: -18px -18px 18px;
    padding: 14px 18px 0;
    border-bottom: 1px solid #e5e8eb;
    background: #fafbfc;
  }

  .admin-shell .admin-summary-strip {
    margin-right: 0;
    margin-left: 0;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    background: #fff;
  }
  .admin-shell .admin-summary-strip > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
    border-right: 1px solid #e6e9ec;
  }
  .admin-shell .admin-summary-strip > [class*="col-"]:last-child { border-right: 0; }
  .admin-shell .admin-summary-strip .card {
    min-height: 88px;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
  }
  .admin-shell .admin-summary-strip .card-body { padding: 15px 10px; }
  .admin-shell .admin-summary-strip .h3 {
    margin-top: 5px;
    font-size: 22px;
    font-weight: 600;
  }

  .admin-shell .admin-batch-bar {
    padding: 10px 12px;
    border: 1px solid #ead8b3;
    border-radius: 4px;
    background: #fffaf0;
  }
  .admin-shell .admin-batch-bar form { margin-right: 6px; }

  .admin-shell .table-actions-cell {
    min-width: 150px;
    white-space: nowrap;
  }
  .admin-shell .table-actions-cell .btn { margin: 1px 2px 1px 0; }

  .admin-shell .control-center-page .content-heading {
    margin-bottom: 18px;
    padding-bottom: 13px;
    border-bottom: 1px solid #dde2e6;
  }
  .admin-shell .control-center-page .content-heading h1 {
    margin-bottom: 6px;
    color: #252a31;
    font-size: 22px;
    font-weight: 600;
  }
  .admin-shell .control-center-page .content-heading p { margin-bottom: 0; }
  .admin-shell .control-center-page .panel-heading {
    color: #30343b;
    font-size: 14px;
  }
  .admin-shell .control-center-page .control-metric {
    min-height: 83px;
    padding: 13px 14px;
    border-left: 2px solid #9aa5af;
    background: #f7f8f9;
  }
  .admin-shell .control-center-page .control-metric .h3 {
    overflow: hidden;
    color: #252a31;
    font-size: 20px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-shell .control-center-page .panel-warning > .panel-heading {
    border-top: 2px solid #d89b2b;
    background: #fff;
    color: #54401d;
  }

  .admin-shell .panel {
    border-color: #e1e5e9;
    border-radius: 5px;
    box-shadow: none;
  }
  .admin-shell .panel-heading {
    padding: 14px 16px;
    border-color: #e7eaed;
    background: #fff;
  }
  .admin-shell .panel-body { padding: 17px 16px; }
  .admin-shell .well {
    border-color: #e3e7ea;
    border-radius: 4px;
    background: #f8f9fa;
    box-shadow: none;
  }

  .admin-shell .content-heading {
    margin-bottom: 18px;
    padding-bottom: 13px;
    border-bottom: 1px solid #dde2e6;
  }
  .admin-shell .content-heading h1,
  .admin-shell .content-heading h2,
  .admin-shell .content-heading h3 {
    margin-top: 0;
    margin-bottom: 6px;
    color: #252a31;
    font-weight: 600;
  }
  .admin-shell .content-heading p:last-child { margin-bottom: 0; }

  .admin-shell .detail-item,
  .admin-shell .timeline-item,
  .admin-shell .inline-list > li,
  .admin-shell .project-config-section,
  .admin-shell .ticket-chat-item {
    border-color: #e3e7ea;
    border-radius: 4px;
    background: #f8f9fa;
    box-shadow: none;
  }
  .admin-shell .timeline-item,
  .admin-shell .ticket-chat-item { background: #fff; }
  .admin-shell .empty-state {
    border-radius: 4px;
    background: #fafbfc;
  }
  .admin-shell .project-config-tabs .project-config-tab {
    border-radius: 3px 3px 0 0;
    font-weight: 500;
  }
  .admin-shell .tab-cluster .btn { border-radius: 3px !important; }

  .admin-shell form:not(.form-inline) .form-group > label {
    color: #3f4750;
    font-size: 13px;
    font-weight: 600;
  }
  .admin-shell .help-block {
    color: #747e88;
    font-size: 12px;
    line-height: 1.6;
  }
  .admin-shell textarea.form-control { min-height: 96px; resize: vertical; }
  .admin-shell .form-control[readonly],
  .admin-shell .form-control[disabled] {
    background: #f3f4f5;
    color: #626b74;
  }
  .admin-shell .modal-content {
    border: 1px solid #dce1e5;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(35, 42, 49, .14);
  }
  .admin-shell .modal-header,
  .admin-shell .modal-footer { border-color: #e5e8eb; }
  .admin-shell .pagination { margin: 18px 0 0; }
  .admin-shell .pagination > li > a,
  .admin-shell .pagination > li > span {
    border-color: #dfe3e7;
    color: #46515d;
  }
  .admin-shell code {
    border-radius: 2px;
    background: #f1f3f5;
    color: #46515d;
  }

  /* 代理授权表：手机端把原有多列业务表转成纵向业务卡，操作不再挤在单元格中。 */
  .agent-grant-actions {
    display: grid;
    width: 100%;
    gap: 7px;
  }
  .agent-grant-actions .btn-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }
  .agent-grant-actions .btn-group > .btn {
    width: 100%;
    min-height: 36px;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 12px;
    white-space: normal;
  }
  .agent-grant-actions-secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }
  .agent-grant-actions-secondary .btn { min-height: 34px; }
  .mobile-card-table > tbody > tr > td[data-mobile-label="业务操作"] {
    align-items: center;
  }
}

@media (min-width: 768px) {
  .agent-grant-actions {
    display: grid;
    min-width: 192px;
    gap: 6px;
  }
  .agent-grant-actions .btn-group {
    display: flex;
    width: 100%;
  }
  .agent-grant-actions .btn-group > .btn {
    flex: 1 1 0;
    min-width: 0;
  }
  .agent-grant-actions-secondary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
  }
  .user-shell .mobile-card-table > tbody > tr:hover { background: #f8fafc; }
}

/* Author agent directory: reduce repeated controls without hiding capabilities. */
.user-agent-directory .agent-directory-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid #dce8f1;
  border-radius: 8px;
  color: #5e7081;
  background: #f7fafc;
  font-size: 12px;
  line-height: 1.6;
}
.user-agent-directory .agent-directory-note i { flex: 0 0 auto; margin-top: 1px; color: #3978a8; font-size: 17px; }
.user-agent-directory .agent-directory-summary .card { margin-bottom: 10px; }
.user-agent-directory .agent-directory-summary .card-body { min-height: 82px; padding: 13px 15px; }
.user-agent-directory .agent-directory-summary .h3 { font-size: 22px; }
.user-agent-directory .agent-directory-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  padding: 8px;
  border: 1px solid #e1e8ef;
  border-radius: 9px;
  background: #f8fafc;
}
.user-agent-directory .agent-directory-nav__item {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #5c6d7e;
  background: transparent;
  text-decoration: none;
}
.user-agent-directory .agent-directory-nav__item i { grid-row: 1 / 3; display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 6px; color: #527692; background: #eaf2f8; font-size: 16px; }
.user-agent-directory .agent-directory-nav__item span { overflow: hidden; color: #34495d; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.user-agent-directory .agent-directory-nav__item small { overflow: hidden; margin-top: 2px; color: #8b98a6; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.user-agent-directory .agent-directory-nav__item:hover,
.user-agent-directory .agent-directory-nav__item:focus,
.user-agent-directory .agent-directory-nav__item.is-current { border-color: #cfe0ed; background: #fff; text-decoration: none; }
.user-agent-directory .agent-directory-nav__item.is-current i { color: #216a9a; background: #dff0fb; }
.user-agent-directory .agent-grant-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 214px;
  gap: 6px;
}
.user-agent-directory .agent-grant-actions > .btn,
.user-agent-directory .agent-grant-more,
.user-agent-directory .agent-grant-more > .btn { width: 100%; min-width: 0; }
.user-agent-directory .agent-grant-more .dropdown-menu { min-width: 155px; }
.user-agent-directory .agent-grant-more .dropdown-menu > li > a { padding: 8px 14px; }

/* Agent program applications: application history is a status list, not another data grid. */
.agent-project-apply-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.35fr) auto;
  align-items: end;
  gap: 12px;
}
.agent-project-apply-form .form-group { margin: 0; }
.agent-project-apply-form > .btn { min-height: 42px; }
.agent-application-list { padding-top: 4px; padding-bottom: 4px; }
.agent-application-item { padding: 14px 2px; border-bottom: 1px solid #e8edf2; }
.agent-application-item:last-child { border-bottom: 0; }
.agent-application-main { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.agent-application-main strong { color: #29394d; font-size: 14px; }
.agent-application-main code { color: #526a80; }
.agent-application-item > p { margin: 8px 0 0; color: #647487; font-size: 12px; line-height: 1.55; }
.agent-application-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; color: #8a96a4; font-size: 11px; }
.agent-application-meta form { margin: 0; }
.agent-assigned-projects-table { min-width: 760px; }

@media (max-width: 767px) {
  .user-agent-directory > .card-header .pull-right { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-left: 0; gap: 7px; }
  .user-agent-directory > .card-header .pull-right .btn { width: 100%; margin: 0; }
  .user-agent-directory > .card-header .pull-right .btn:last-child { grid-column: 1 / -1; }
  .user-agent-directory .agent-directory-summary > [class*="col-"] { width: 50%; float: left; }
  .user-agent-directory .agent-directory-summary .card-body { min-height: 75px; padding: 11px 10px; }
  .user-agent-directory .agent-directory-summary .h3 { font-size: 19px; }
  .user-agent-directory .agent-directory-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; padding: 6px; }
  .user-agent-directory .agent-directory-nav__item { padding: 8px; }
  .user-agent-directory .agent-grant-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
  .user-agent-directory .agent-grant-more .dropdown-menu { right: 0; left: auto; }
  .agent-project-apply-form { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .agent-project-apply-form > .btn { width: 100%; }
  .agent-application-item { padding: 13px 0; }
  .agent-application-main { align-items: flex-start; }
  .agent-application-main strong { flex: 1 1 100%; }
  .agent-application-meta { align-items: center; }
}

/* Mobile finishing pass: preserve desktop information while tightening touch and overflow details. */
@media (max-width: 767px) {
  .card-header.clearfix {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .card-header.clearfix > .pull-left,
  .card-header.clearfix > .pull-right {
    float: none !important;
    min-width: 0;
  }
  .card-header.clearfix > .pull-right { margin-left: auto; }
  .modal-dialog { width: auto; margin: 12px; }
  .modal-content { max-height: calc(100vh - 24px); overflow-y: auto; }
  .modal-footer { display: flex; flex-wrap: wrap; gap: 8px; }
  .modal-footer .btn { flex: 1 1 120px; min-height: 42px; margin: 0; }
  code, pre, .text-break { overflow-wrap: anywhere; word-break: break-word; }
  pre { white-space: pre-wrap; }
  .form-control, select.form-control { min-height: 42px; }
  textarea.form-control { min-height: 96px; }
  .table-actions { justify-content: flex-end; }
  .table-actions > .btn,
  .table-actions > form { min-width: 0; }
}

/* 管理端发信邮箱配置 */
.mail-settings-page .mail-hero-card {
  border-top: 3px solid #3b73af;
}
.mail-status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.mail-template-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.mail-template-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  background: #fafbfc;
}
.mail-template-card.is-active {
  border-color: #3b73af;
  box-shadow: 0 0 0 1px rgba(59, 115, 175, .2);
  background: #f5f9fd;
}
.mail-template-swatch {
  width: 14px;
  height: 42px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.mail-debug-log {
  margin: 0;
  max-height: 280px;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #0f172a;
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.mail-preview-frame {
  max-height: 520px;
  overflow: auto;
  border: 1px solid #e5e8eb;
  border-radius: 10px;
  background: #f8fafc;
  padding: 8px;
}
.mail-preview-frame table {
  max-width: 100% !important;
}
@media (max-width: 991px) {
  .mail-template-gallery { grid-template-columns: 1fr; }
}

/* Mobile production pass: keep the desktop visual language and reorganize dense workflows for touch. */
@media (min-width: 768px) and (max-width: 1024px) {
  .admin-top-search { display: none !important; }
  .lyear-layout-content > .container-fluid { padding: 20px 18px 30px; }
  .workspace-hero .card-body { padding: 22px; }
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 0;
    -webkit-overflow-scrolling: touch;
  }
  .admin-filter-bar,
  .filter-toolbar { align-items: flex-end; }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 72px;
    overscroll-behavior-y: none;
  }
  body.mobile-drawer-open {
    overflow: hidden;
  }
  .lyear-mask-modal,
  .lyear-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: block;
    background: rgba(22, 29, 36, .42);
    backdrop-filter: none;
  }
  .lyear-aside-toggler {
    cursor: pointer;
    touch-action: manipulation;
  }
  .lyear-aside-toggler:focus-visible {
    outline: 2px solid #3b73af;
    outline-offset: 2px;
  }
  .lyear-layout-sidebar {
    z-index: 1041;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    transition-duration: 180ms;
  }
  .lyear-layout-sidebar-scroll {
    height: 100%;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  .sidebar-header a,
  .sidebar-header img { max-width: 100%; }
  .nav-drawer > li > a,
  .nav-subnav > li > a { touch-action: manipulation; }

  .lyear-layout-content > .container-fluid {
    max-width: 100%;
    overflow: visible;
  }
  .lyear-layout-content img,
  .lyear-layout-content video,
  .lyear-layout-content iframe,
  .lyear-layout-content canvas,
  .lyear-layout-content svg { max-width: 100%; }
  .lyear-layout-content iframe { width: 100%; }
  .lyear-layout-content fieldset,
  .lyear-layout-content form,
  .lyear-layout-content .row,
  .lyear-layout-content [class*="col-"] { min-width: 0; }

  .card-header,
  .panel-heading {
    overflow-wrap: anywhere;
  }
  .card-header.clearfix > h4.pull-left {
    max-width: 100%;
    flex: 1 1 180px;
    white-space: normal;
  }
  .card-header.clearfix > .card-header-actions {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    margin: 0 0 0 auto;
  }
  .card-header-actions > .btn,
  .card-header-actions > form,
  .card-header-actions > form > .btn { margin: 0 !important; }
  .card-header-actions > form { display: inline-flex; }
  .panel-title { line-height: 1.45; }

  .form-horizontal .control-label {
    padding-top: 0;
    margin-bottom: 6px;
    text-align: left;
  }
  .lyear-layout-content .form-control,
  .lyear-layout-content select.form-control,
  .lyear-layout-content input[type="date"],
  .lyear-layout-content input[type="datetime-local"] {
    max-width: 100%;
    font-size: 16px;
  }
  .lyear-layout-content input.form-control[style*="width"],
  .lyear-layout-content .responsive-min-width-180,
  .lyear-layout-content .period-cell .form-control {
    width: 100% !important;
    min-width: 0 !important;
  }
  .input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
  }
  .input-group .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
  }
  .input-group-btn,
  .input-group-addon,
  .input-group-append,
  .input-group-prepend {
    display: flex;
    flex: 0 0 auto;
    width: auto;
    align-items: stretch;
  }
  .input-group-btn > .btn,
  .input-group-append > .btn,
  .input-group-prepend > .btn,
  .input-group-text,
  .input-group-addon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    white-space: normal;
  }
  .checkbox,
  .radio,
  .checkbox-inline,
  .radio-inline { min-height: 34px; }
  .checkbox label,
  .radio label,
  .checkbox-inline,
  .radio-inline {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  input[type="checkbox"],
  input[type="radio"] { touch-action: manipulation; }

  .mobile-stack-form,
  .form-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    width: 100%;
  }
  .mobile-stack-form > *,
  .form-inline > * {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .mobile-stack-form .btn,
  .form-inline .btn { width: 100%; }
  .admin-filter-bar .row,
  .admin-filter-panel .row { margin-bottom: -10px; }
  .admin-filter-bar [class*="col-"],
  .admin-filter-panel [class*="col-"] { margin-bottom: 10px; }
  .admin-batch-bar {
    display: grid;
    gap: 8px;
  }
  .admin-batch-bar form,
  .admin-batch-bar .btn,
  .admin-batch-bar .form-control {
    width: 100%;
    margin: 0 !important;
  }

  .responsive-action-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .responsive-action-group > .btn,
  .responsive-action-group > form {
    width: 100%;
    min-width: 0;
  }
  .responsive-action-group > form > .btn { width: 100%; }
  .btn,
  button,
  [role="button"] { touch-action: manipulation; }
  .btn-link { white-space: normal; }

  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell,
  .mobile-card-table > tbody > tr > td.mobile-table-span-cell {
    display: block;
    text-align: left;
  }
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell::before,
  .mobile-card-table > tbody > tr > td.mobile-table-span-cell::before {
    display: block;
    margin-bottom: 7px;
  }
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell .table-actions,
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell .responsive-action-group,
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell .btn-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell .btn,
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell form,
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell form > .btn {
    width: 100%;
    margin: 0 !important;
  }
  .mobile-card-table > tbody > tr > td .progress {
    width: 100% !important;
    max-width: none !important;
  }
  .mobile-card-table .table-actions-cell { min-width: 0 !important; }
  .table-responsive.mobile-table-scroll {
    margin: 0;
    padding-bottom: 4px;
    overflow-x: auto;
  }
  .table-responsive.mobile-table-scroll::after {
    display: block;
    height: 1px;
    content: '';
  }

  .dl-horizontal dt {
    float: none;
    width: auto;
    margin: 0 0 4px;
    text-align: left;
  }
  .dl-horizontal dd {
    margin: 0 0 12px;
    overflow-wrap: anywhere;
  }
  .breadcrumb {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding: 9px 10px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .nav-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .nav-pills > li { float: none; margin: 0 !important; }
  .nav-pills > li > a { text-align: center; }
  .list-group-item { overflow-wrap: anywhere; }
  button.list-group-item { min-height: 48px; }

  .timeline-head,
  .ticket-chat-head,
  .ticket-log-head { gap: 4px; }
  .conversation-timeline,
  .ticket-chat-list,
  .ticket-log-list,
  .staff-shell .timeline-list[style*="max-height"] {
    max-height: none !important;
    overflow: visible !important;
  }
  .ticket-attachment-image { height: auto; }
  .mail-preview-frame { max-height: 420px; }

  .admin-search-result {
    align-items: flex-start !important;
    padding: 12px !important;
  }
  .admin-search-result-body strong,
  .admin-search-result-body small {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .admin-search-result-meta {
    flex: 0 0 auto;
    margin-left: 8px !important;
    white-space: normal !important;
    text-align: right;
  }
  .system-health-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .system-health-counts .label { margin: 0 !important; }
  .staff-form-card .card-body,
  .staff-side-card .card-body { padding: 14px !important; }
  .staff-permission-group,
  .staff-permission-advanced-wrap,
  .staff-permission-option,
  .staff-summary-tile,
  .staff-recommend-item { border-radius: 6px !important; }
  .staff-permission-group-head,
  .staff-permission-group-body { padding: 14px !important; }
  .staff-permission-advanced-toggle { padding: 13px 14px !important; }
  .staff-permission-advanced-toggle em { white-space: normal !important; }
  .iface-card-header,
  .iface-status-bar {
    align-items: flex-start !important;
    flex-direction: column;
  }
  .iface-card-header > *,
  .iface-status-bar { width: 100%; }
  .iface-card-body .btn { min-width: 92px; }
}

@media (max-width: 479px) {
  .card-header.clearfix > .card-header-actions {
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
  }
  .card-header-actions > .btn,
  .card-header-actions > form {
    flex: 1 1 calc(50% - 3px);
  }
  .card-header-actions > form > .btn { width: 100%; }
  .responsive-action-group,
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell .table-actions,
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell .responsive-action-group,
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell .btn-group,
  .nav-pills { grid-template-columns: minmax(0, 1fr); }
  .mobile-card-table > tbody > tr > td {
    display: block;
    min-height: 0;
    text-align: left;
  }
  .mobile-card-table > tbody > tr > td::before {
    display: block;
    margin-bottom: 4px;
  }
}

/* 作者端首页运营工作台 */
.user-shell .owner-dashboard { margin: 0 0 20px; }
.owner-welcome { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:4px 2px 19px; }
.owner-welcome-kicker { display:block; margin-bottom:4px; color:#748198; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.owner-welcome h2 { margin:0; color:#202b3e; font-size:25px; font-weight:600; line-height:1.25; }
.owner-welcome p { display:flex; flex-wrap:wrap; gap:0 8px; margin:8px 0 0; color:#7e8999; font-size:13px; }
.owner-welcome p i { color:#c0c7d0; font-style:normal; }
.owner-welcome-actions { display:flex; flex:0 0 auto; gap:9px; }
.owner-welcome-actions .btn { min-width:112px; padding:8px 14px; border-radius:5px; font-weight:500; }
.owner-welcome-actions .mdi { margin-right:3px; font-size:16px; vertical-align:-1px; }
.owner-pending { display:flex; align-items:center; gap:12px; margin:0 0 18px; padding:12px 15px; border:1px solid #dce7fa; border-radius:8px; background:#f7faff; }
.owner-pending-icon { display:flex; flex:0 0 33px; align-items:center; justify-content:center; width:33px; height:33px; border-radius:50%; background:#e8f1ff; color:#4776d7; font-size:18px; }
.owner-pending-copy { display:flex; flex:1; flex-wrap:wrap; align-items:baseline; gap:4px 9px; min-width:0; }
.owner-pending-copy strong { color:#34425b; font-size:13px; }
.owner-pending-copy span, .owner-pending-copy a { color:#77869a; font-size:12px; }
.owner-pending-copy a:hover { color:#3971d7; text-decoration:none; }
.owner-pending-link { flex:0 0 auto; color:#3971d7; font-size:12px; white-space:nowrap; }
.owner-pending-link:hover { color:#285fbf; text-decoration:none; }
.owner-pending--warning { border-color:#f5e4bc; background:#fffcf5; }.owner-pending--warning .owner-pending-icon { background:#fff4d8; color:#d5921b; }
.owner-pending--danger { border-color:#f2d5d8; background:#fff8f8; }.owner-pending--danger .owner-pending-icon { background:#ffe9ea; color:#cf5963; }
.owner-metric-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.owner-metric-card { position:relative; display:block; min-height:143px; padding:17px 17px 15px; overflow:hidden; border:1px solid #e7ebf1; border-radius:9px; background:#fff; box-shadow:0 4px 13px rgba(42,55,75,.035); color:inherit; transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.owner-metric-card:hover { border-color:#d6dfec; box-shadow:0 9px 22px rgba(42,55,75,.09); color:inherit; text-decoration:none; transform:translateY(-2px); }
.owner-metric-icon { display:flex; align-items:center; justify-content:center; width:34px; height:34px; margin-bottom:13px; border-radius:8px; font-size:19px; }.owner-metric-icon.is-blue{background:#edf3ff;color:#4879e9}.owner-metric-icon.is-cyan{background:#eaf8fa;color:#2296a8}.owner-metric-icon.is-green{background:#e9f9f2;color:#22ae78}.owner-metric-icon.is-amber{background:#fff6df;color:#d79a27}.owner-metric-icon.is-purple{background:#f1edff;color:#7b64d7}
.owner-metric-label { display:block; color:#7f8a9a; font-size:12px; }.owner-metric-card strong { display:block; margin:3px 0 2px; color:#253148; font-size:27px; font-weight:600; line-height:1.15; }.owner-metric-card small { display:block; overflow:hidden; color:#a0a9b5; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.owner-brief-row { margin-bottom:8px; }.owner-brief-row > [class*=col-] { margin-bottom:12px; }.owner-brief-card,.owner-attention-card { height:100%; border:1px solid #e7ebf1; border-radius:9px; box-shadow:0 4px 13px rgba(42,55,75,.035); }.owner-brief-card .card-body,.owner-attention-card .card-body { padding:19px 20px; }
.owner-section-title { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }.owner-section-title span:first-child { display:block; margin-bottom:3px; color:#8994a3; font-size:11px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }.owner-section-title h4 { margin:0; color:#2d394e; font-size:16px; font-weight:600; }.owner-section-title .label { margin-top:3px; padding:4px 7px; font-weight:500; }
.owner-brief-text { margin:13px 0 17px; color:#7a8697; font-size:13px; line-height:1.75; }.owner-brief-facts { display:flex; gap:0; border-top:1px solid #eef1f5; padding-top:14px; }.owner-brief-facts span { flex:1; padding:0 13px; border-left:1px solid #edf0f4; color:#8994a3; font-size:11px; }.owner-brief-facts span:first-child { padding-left:0; border-left:0; }.owner-brief-facts b { display:block; margin-bottom:2px; color:#33415a; font-size:17px; font-weight:600; }
.owner-attention-item { display:flex; align-items:center; gap:10px; margin-top:15px; color:inherit; }.owner-attention-item:hover { color:inherit; text-decoration:none; }.owner-attention-item > i { display:flex; flex:0 0 33px; align-items:center; justify-content:center; width:33px; height:33px; border-radius:50%; background:#edf3ff; color:#4e78de; font-size:17px; }.owner-attention-item > span { min-width:0; flex:1; }.owner-attention-item b,.owner-attention-item small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.owner-attention-item b { color:#4a5669; font-size:12px; font-weight:500; }.owner-attention-item small { margin-top:3px; color:#9aa4b2; font-size:11px; }.owner-attention-item em { color:#5279d6; font-size:11px; font-style:normal; }.owner-attention-item.is-warning>i { background:#fff4dd; color:#d59625; }.owner-attention-item.is-danger>i { background:#ffeaeb; color:#d15c65; }.owner-attention-empty { display:flex; align-items:center; gap:9px; margin-top:16px; color:#93a0af; font-size:12px; }.owner-attention-empty i { color:#28b77d; font-size:22px; }
@media (max-width:1199px) { .owner-metric-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:991px) { .owner-metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.owner-metric-card { min-height:128px; } }
@media (max-width:767px) { .user-shell .owner-dashboard { margin-bottom:14px; }.owner-welcome { display:block; padding:2px 1px 16px; }.owner-welcome h2 { font-size:22px; }.owner-welcome p { margin-top:7px; line-height:1.65; }.owner-welcome-actions { margin-top:14px; }.owner-welcome-actions .btn { flex:1; min-width:0; padding:9px 7px; }.owner-pending { align-items:flex-start; gap:9px; margin-bottom:14px; padding:11px; }.owner-pending-icon { flex-basis:30px; width:30px; height:30px; font-size:16px; }.owner-pending-copy { display:block; padding-top:1px; }.owner-pending-copy strong,.owner-pending-copy span { display:block; }.owner-pending-copy span { margin-top:3px; line-height:1.55; }.owner-pending-link { display:none; }.owner-metric-grid { gap:9px; margin-bottom:14px; }.owner-metric-card { min-height:116px; padding:13px; border-radius:8px; }.owner-metric-icon { width:29px; height:29px; margin-bottom:9px; border-radius:7px; font-size:16px; }.owner-metric-card strong { font-size:23px; }.owner-metric-card small { font-size:10px; }.owner-brief-row { margin-right:-5px; margin-left:-5px; }.owner-brief-row > [class*=col-] { padding-right:5px; padding-left:5px; margin-bottom:10px; }.owner-brief-card .card-body,.owner-attention-card .card-body { padding:16px; }.owner-brief-text { margin:11px 0 13px; line-height:1.65; }.owner-brief-facts { gap:8px; padding-top:12px; }.owner-brief-facts span { padding:0 7px; font-size:10px; }.owner-brief-facts b { font-size:15px; }.owner-attention-item { margin-top:13px; } }

/* 首页低干扰接入向导 */
.owner-integration-guide { margin:18px 0 4px; border:1px solid #e4e9ef; border-radius:7px; background:#fafbfc; }
.owner-integration-guide > summary { display:flex; align-items:center; gap:10px; padding:12px 14px; cursor:pointer; list-style:none; color:#667489; }
.owner-integration-guide > summary::-webkit-details-marker { display:none; }
.owner-guide-icon { display:flex; flex:0 0 30px; align-items:center; justify-content:center; width:30px; height:30px; border-radius:5px; background:#eef2f7; color:#60758f; font-size:16px; }
.owner-integration-guide > summary > span:nth-child(2) { min-width:0; flex:1; }
.owner-integration-guide > summary strong,.owner-integration-guide > summary small { display:block; }
.owner-integration-guide > summary strong { color:#526176; font-size:13px; font-weight:600; }
.owner-integration-guide > summary small { margin-top:2px; color:#929dab; font-size:11px; }
.owner-guide-chevron { transition:transform .18s ease; }
.owner-integration-guide[open] .owner-guide-chevron { transform:rotate(180deg); }
.owner-guide-body { padding:18px; border-top:1px solid #e7ebf0; background:#fff; }
.owner-guide-steps { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; margin:0 0 18px; padding:0; list-style:none; }
.owner-guide-steps li { display:flex; gap:9px; min-width:0; padding:0 13px; border-left:1px solid #e8ecf1; }
.owner-guide-steps li:first-child { padding-left:0; border-left:0; }
.owner-guide-steps li > span { display:flex; flex:0 0 24px; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:#edf3fb; color:#4c75a8; font-size:11px; font-weight:600; }
.owner-guide-steps li > div { min-width:0; }
.owner-guide-steps strong { display:block; margin:2px 0 6px; color:#35445a; font-size:13px; }
.owner-guide-steps p { margin:0 0 7px; color:#7d8998; font-size:11px; line-height:1.6; }
.owner-guide-steps a,.owner-guide-methods a { color:#4776aa; font-size:11px; }
.owner-guide-methods { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.owner-guide-methods article { min-width:0; padding:14px; border:1px solid #e5e9ee; border-radius:6px; background:#fafbfd; }
.owner-guide-methods article > span { display:block; margin-bottom:3px; color:#66809f; font-size:10px; font-weight:600; text-transform:uppercase; }
.owner-guide-methods article > strong { display:block; margin-bottom:7px; color:#35445a; font-size:13px; }
.owner-guide-methods p { min-height:70px; margin:0 0 8px; color:#7b8796; font-size:11px; line-height:1.65; }
.owner-guide-methods code { overflow-wrap:anywhere; font-size:10px; }
.owner-guide-check { display:flex; align-items:flex-start; gap:9px; margin-top:12px; padding:11px 12px; border-left:3px solid #3ba875; background:#f4faf7; }
.owner-guide-check > i { color:#2da56f; font-size:18px; }
.owner-guide-check p { margin:0; color:#607267; font-size:11px; line-height:1.65; }
.owner-guide-check strong { color:#3f584a; }
@media (max-width:1199px) { .owner-guide-steps { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 0; }.owner-guide-steps li:nth-child(odd) { padding-left:0; border-left:0; } }
@media (max-width:767px) { .owner-guide-body { padding:14px; }.owner-guide-steps,.owner-guide-methods { grid-template-columns:1fr; }.owner-guide-steps { gap:13px; }.owner-guide-steps li,.owner-guide-steps li:nth-child(odd) { padding:0 0 13px; border-bottom:1px solid #edf0f4; border-left:0; }.owner-guide-steps li:last-child { padding-bottom:0; border-bottom:0; }.owner-guide-methods p { min-height:0; }.owner-integration-guide > summary small { line-height:1.45; } }

/* 独立运营报告：不引入第二套图表库，保证低配与移动端也可读。 */
.owner-report-link { color:#4776d7; font-size:12px; white-space:nowrap; }.owner-brief-facts small { display:block; margin-top:2px; color:#7d94bd; font-size:10px; }
.operation-report { max-width:1280px; margin:0 auto; }.operation-report-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:0 0 18px; }.operation-report-kicker { display:block; color:#7d8ba0; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }.operation-report h2 { margin:3px 0 6px; color:#26354d; font-size:25px; font-weight:600; }.operation-report-head p { max-width:650px; margin:0; color:#8793a5; font-size:12px; line-height:1.65; }.operation-report-filter { display:flex; gap:8px; min-width:330px; }.operation-report-filter select { min-width:150px; height:36px; }.operation-report-period { display:flex; gap:5px; }.operation-report-period .btn { min-width:72px; height:36px; }
.operation-report-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:16px; }.operation-report-metrics article { min-height:132px; padding:18px; border:1px solid #e7ebf1; border-radius:9px; background:#fff; box-shadow:0 4px 13px rgba(42,55,75,.035); }.operation-report-metrics span,.operation-report-metrics small { display:block; color:#8793a5; font-size:12px; }.operation-report-metrics span i { color:#547fe0; font-size:17px; vertical-align:-1px; }.operation-report-metrics strong { display:block; margin:9px 0 5px; color:#26354d; font-size:28px; font-weight:600; line-height:1.1; }.operation-report-metrics small { color:#a0a9b5; font-size:11px; }.operation-report-grid > [class*=col-] { margin-bottom:15px; }.operation-report-card { height:100%; border:1px solid #e7ebf1; border-radius:9px; box-shadow:0 4px 13px rgba(42,55,75,.035); }.operation-report-card .card-header { display:flex; align-items:center; justify-content:space-between; min-height:56px; padding:16px 18px; }.operation-report-card .card-header h4 { margin:0; color:#33415a; font-size:15px; font-weight:600; }.operation-report-card .card-header .text-muted { font-size:11px; }.operation-trend-list { display:grid; gap:10px; }.operation-trend-row { display:grid; grid-template-columns:44px minmax(70px,1fr) 58px 52px; align-items:center; gap:9px; }.operation-trend-row time,.operation-trend-row small { color:#8c98a9; font-size:11px; }.operation-trend-row strong { color:#48566b; font-size:12px; text-align:right; }.operation-trend-row small { text-align:right; }.operation-trend-track { height:8px; overflow:hidden; border-radius:8px; background:#edf1f6; }.operation-trend-track i { display:block; min-width:2px; height:100%; border-radius:8px; background:linear-gradient(90deg,#6995ee,#4d79db); }.operation-empty { min-height:122px; display:flex; align-items:center; justify-content:center; gap:7px; color:#98a4b3; font-size:12px; text-align:center; }.operation-empty i { color:#6f91d8; font-size:21px; }.operation-attention-list { display:grid; gap:12px; }.operation-attention-item { display:flex; gap:10px; color:inherit; }.operation-attention-item:hover { color:inherit; text-decoration:none; }.operation-attention-item>i { display:flex; flex:0 0 30px; align-items:center; justify-content:center; width:30px; height:30px; border-radius:50%; background:#fff3dc; color:#d6911d; font-size:16px; }.operation-attention-item.is-danger>i { background:#ffeaeb; color:#d15c65; }.operation-attention-item span { min-width:0; }.operation-attention-item b,.operation-attention-item small { display:block; }.operation-attention-item b { color:#4b5870; font-size:12px; font-weight:600; }.operation-attention-item small { margin-top:3px; color:#909bac; font-size:11px; line-height:1.45; }.operation-error-list { display:grid; gap:9px; }.operation-error-list>div { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid #f0f2f5; }.operation-error-list>div:last-child { border-bottom:0; }.operation-error-list span { display:flex; align-items:center; justify-content:center; width:21px; height:21px; border-radius:50%; background:#eef3ff; color:#587fd7; font-size:11px; }.operation-error-list code { flex:1; padding:0; background:transparent; color:#57657c; font-size:12px; }.operation-error-list strong { color:#4c596d; font-size:12px; font-weight:500; }.operation-project-table { margin:0; }.operation-project-table th { border-top:0!important; color:#8995a6; font-size:11px; font-weight:600; }.operation-project-table td { color:#536075; font-size:12px; vertical-align:middle!important; }
@media (max-width:991px) { .operation-report-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.operation-report-head { align-items:flex-start; flex-direction:column; }.operation-report-filter { width:100%; } }
@media (max-width:767px) { .operation-report { margin:0 -1px; }.operation-report h2 { font-size:22px; }.operation-report-head { margin-bottom:14px; }.operation-report-filter { display:grid; grid-template-columns:1fr; }.operation-report-filter select { width:100%; }.operation-report-period { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }.operation-report-period .btn { width:100%; }.operation-report-metrics { gap:9px; margin-bottom:12px; }.operation-report-metrics article { min-height:112px; padding:13px; }.operation-report-metrics strong { margin:7px 0 4px; font-size:23px; }.operation-report-metrics small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }.operation-report-grid { margin-right:-5px; margin-left:-5px; }.operation-report-grid>[class*=col-] { padding-right:5px; padding-left:5px; margin-bottom:10px; }.operation-report-card .card-header { min-height:51px; padding:14px; }.operation-report-card .card-body { padding:14px; }.operation-trend-row { grid-template-columns:39px minmax(50px,1fr) 46px; gap:7px; }.operation-trend-row small { display:none; }.operation-project-table { min-width:560px; } }

/* User workspace polish: predictable density and touch-friendly controls. */
.user-shell .card-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.user-shell .card-toolbar .data-note { margin-left:auto; }
.user-shell .table-responsive { border-radius:6px; }
.user-shell .surface-table th { white-space:nowrap; }
.user-shell .table-actions { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.user-shell .table-actions form { margin:0; }
.user-shell .btn { min-height:34px; }
@media (max-width:767px) {
  .user-shell .lyear-layout-content .container-fluid { padding-right:12px; padding-left:12px; }
  .user-shell .card-header { padding:13px 14px; }
  .user-shell .card-body { padding:14px; }
  .user-shell .card-toolbar { align-items:flex-start; gap:6px; }
  .user-shell .card-toolbar .data-note { width:100%; margin-left:0; }
  .user-shell .table-responsive { margin-right:-2px; margin-left:-2px; }
  .user-shell .table { min-width:640px; }
  .user-shell .table-actions .btn { min-width:72px; }
}

/* Final responsive contract shared by all four portals. */
@media (max-width: 767px) {
  .lyear-layout-sidebar {
    left: -280px;
    width: min(280px, 86vw);
    max-width: 86vw;
  }
  .lyear-layout-sidebar.lyear-aside-open,
  .lyear-layout-sidebar.open { left: 0; }
  .topbar-right .dropdown-profile > a .user-name { display: none; }
  .topbar-right .dropdown-profile > a { gap: 0; }
  .topbar-right .dropdown-profile .img-avatar { width: 34px; height: 34px; margin-right: 0 !important; }
  .navbar-page-title { max-width: calc(100vw - 112px); }
  .table-responsive.mobile-table-scroll {
    position: relative;
    border: 1px solid #e5e9ed;
    border-radius: 6px;
    background: #fff;
  }
  .table-responsive.mobile-table-scroll::after {
    position: sticky;
    left: 0;
    display: block;
    width: max-content;
    height: auto;
    padding: 5px 9px;
    color: #7b8794;
    content: '\5DE6\53F3\6ED1\52A8\67E5\770B\5B8C\6574\5185\5BB9';
    font-size: 11px;
  }
  .table-responsive.mobile-table-scroll > .table { margin-bottom: 0; }
}

/* User operations workspace: full-width task surfaces instead of inline boxes. */
.operations-workspace { max-width:1180px; margin:0 auto; }
.operations-workspace-narrow { max-width:860px; }
.operations-page-head { display:flex; align-items:flex-end; justify-content:space-between; margin:0 0 18px; }
.operations-page-head span { color:#78879a; font-size:12px; font-weight:600; }
.operations-page-head h2 { margin:4px 0 5px; color:#26354d; font-size:24px; font-weight:600; }
.operations-page-head p { margin:0; color:#8793a5; font-size:13px; line-height:1.65; }
.operations-create-card .card-body { padding:22px; }
.operations-form { max-width:900px; }
.operations-fieldset { margin:0 0 22px; padding:0; border:0; }
.operations-fieldset legend,.operations-fieldset>label { display:block; margin:0 0 10px; color:#35445b; font-size:13px; font-weight:600; }
.export-type-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.export-type-option { position:relative; display:flex; align-items:center; gap:12px; min-height:84px; margin:0; padding:14px; border:1px solid #e2e7ed; border-radius:6px; background:#fff; cursor:pointer; }
.export-type-option:hover { border-color:#b9cbe0; background:#f9fbfd; }
.export-type-option:has(input:checked) { border-color:#5b88bd; box-shadow:0 0 0 1px #5b88bd; background:#f5f9fd; }
.export-type-option input { position:absolute; top:10px; right:10px; }
.export-type-icon { display:flex; flex:0 0 38px; align-items:center; justify-content:center; width:38px; height:38px; border-radius:6px; background:#eef4fa; color:#4778ad; font-size:20px; }
.export-type-option strong,.export-type-option small { display:block; }
.export-type-option strong { color:#33415a; font-size:14px; }
.export-type-option small { margin-top:4px; color:#8995a5; font-size:11px; line-height:1.45; }
.operations-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.operations-span-2 { grid-column:1/-1; }
.operations-check { display:flex; flex-direction:column; justify-content:center; min-height:68px; padding:10px 12px; border:1px solid #e4e8ed; border-radius:6px; background:#fafbfc; }
.operations-check label { margin:0 0 4px; }
.operations-check small { color:#8995a5; }
.operations-form-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; padding-top:18px; border-top:1px solid #edf0f3; }
.operations-form-actions .btn { min-width:128px; }
.operations-format-note { display:grid; gap:7px; margin:4px 0 18px; padding:14px 16px; border:1px solid #dce5ee; border-radius:6px; background:#f7fafc; }
.operations-format-note strong { color:#405169; font-size:13px; }
.operations-format-note code { color:#345f8a; overflow-wrap:anywhere; }
.operations-format-note span { color:#8491a2; font-size:12px; }
.operations-file-input { height:auto!important; padding:8px 10px; }
@media (max-width:767px) {
  .operations-page-head { align-items:flex-start; }
  .operations-page-head h2 { font-size:21px; }
  .operations-create-card .card-body { padding:15px; }
  .export-type-grid,.operations-form-grid { grid-template-columns:1fr; }
  .operations-span-2 { grid-column:auto; }
  .export-type-option { min-height:78px; }
  .operations-form-actions .btn { width:100%; }
}

/* Mobile UI final alignment pass. Keep this last so component-specific rules share one touch baseline. */
@media (max-width: 767px) {
  .lyear-layout-web .btn,
  .lyear-layout-web button.btn,
  .lyear-layout-web a.btn,
  .lyear-layout-web input.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 13px;
    line-height: 1.25;
    letter-spacing: 0;
    vertical-align: middle;
    white-space: normal;
    text-align: center;
  }
  .lyear-layout-web .btn-sm {
    min-height: 38px;
    padding: 7px 11px;
    font-size: 13px;
  }
  .lyear-layout-web .btn-xs {
    min-height: 36px;
    padding: 6px 9px;
    font-size: 12px;
  }
  .lyear-layout-web .btn > i,
  .lyear-layout-web .btn > .mdi {
    flex: 0 0 auto;
    margin-right: 5px;
    line-height: 1;
  }
  .lyear-layout-web .btn-icon > i,
  .lyear-layout-web .btn-icon > .mdi,
  .lyear-layout-web .btn > i:only-child,
  .lyear-layout-web .btn > .mdi:only-child { margin-right: 0; }
  .lyear-layout-web .dropdown-toggle .caret {
    flex: 0 0 auto;
    margin: 0 0 0 6px;
  }
  .lyear-layout-web .btn-block { display: flex; width: 100%; }
  .lyear-layout-web .btn-group > .btn { display: inline-flex; }
  .lyear-layout-web .close,
  .lyear-layout-web button.close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    line-height: 1;
  }

  .lyear-layout-header .topbar { height: 58px; }
  .topbar-left,
  .topbar-right,
  .dropdown-profile,
  .dropdown-profile > a { height: 100%; }
  .dropdown-profile > a { justify-content: center; }
  .navbar-page-title { line-height: 1.35; }

  .card-header,
  .panel-heading { line-height: 1.45; }
  .card-header h1,
  .card-header h2,
  .card-header h3,
  .card-header h4,
  .panel-title { overflow-wrap: anywhere; }
  .card-header.clearfix > .pull-right.btn { margin: 0; }
  .card-header-actions { align-items: stretch; }
  .card-header-actions > form { align-items: stretch; }

  .form-group > label,
  .control-label {
    display: block;
    margin-bottom: 6px;
    line-height: 1.45;
  }
  .form-control,
  select.form-control {
    height: auto;
    padding-top: 9px;
    padding-bottom: 9px;
    line-height: 1.4;
  }
  select.form-control { padding-right: 30px; }
  textarea.form-control { line-height: 1.55; }
  .help-block { line-height: 1.55; }

  .alert {
    min-height: 46px;
    line-height: 1.55;
  }
  .alert > .close {
    position: absolute;
    top: 5px;
    right: 5px;
  }
  .modal-title { line-height: 1.4; }
  .modal-header .close { margin-top: -5px; }
  .modal-footer { align-items: stretch; }

  .responsive-action-group,
  .table-actions,
  .btn-group { align-items: stretch; }
  .responsive-action-group > form,
  .table-actions > form { display: flex; }
  .responsive-action-group > form > .btn,
  .table-actions > form > .btn { height: 100%; }

  .pagination > li > a,
  .pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    line-height: 1;
  }
}

@media (max-width: 374px) {
  .lyear-layout-content > .container-fluid {
    padding-right: 10px;
    padding-left: 10px;
  }
  .lyear-layout-web .btn { padding-right: 10px; padding-left: 10px; }
  .modal-dialog { margin-right: 8px; margin-left: 8px; }
  .operation-report-period { grid-template-columns: minmax(0, 1fr); }
}
/* Responsive brand lockup: separate mark and type keep both crisp at small sizes. */
.sidebar-header a {
  display: flex;
  width: 100%;
  height: 76px;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px 8px 20px;
  box-sizing: border-box;
}

.brand-lockup { display: inline-flex; align-items: center; color: #172b36; }
.brand-lockup img { display: block; flex: 0 0 auto; filter: none !important; }
.brand-lockup__copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-lockup__copy strong { color: #172b36; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.brand-lockup__copy small { color: #74838c; font-family: Arial, Helvetica, sans-serif; font-weight: 600; letter-spacing: 1.6px; white-space: nowrap; }
.brand-lockup--sidebar { gap: 10px; transform: translateY(1px); }
.brand-lockup--sidebar img { width: 43px; height: 43px; }
.brand-lockup--sidebar strong { font-size: 21px; }
.brand-lockup--sidebar small { margin-top: 6px; font-size: 8px; }
.brand-lockup--auth { justify-content: center; gap: 13px; margin: 0 auto 1rem; }
.brand-lockup--auth img { width: 56px; height: 56px; }
.brand-lockup--auth strong { font-size: 28px; }
.brand-lockup--auth small { margin-top: 8px; font-size: 10px; letter-spacing: 2px; }
.login-header a { display: inline-block; color: inherit; text-decoration: none; }

@media (max-width: 575px) {
  .sidebar-header a { height: 70px; padding: 11px 14px 7px 18px; }
  .brand-lockup--sidebar { gap: 9px; }
  .brand-lockup--sidebar img { width: 40px; height: 40px; }
  .brand-lockup--sidebar strong { font-size: 20px; }
  .brand-lockup--auth img { width: 50px; height: 50px; }
  .brand-lockup--auth strong { font-size: 25px; }
}

/* Final mobile control pass. Keep this after all shell-specific overrides. */
@media (max-width: 767px) {
  .lyear-layout-content .btn,
  .sidebar-footer .btn,
  .dropdown-profile .dropdown-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .lyear-layout-content .btn-xs {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .responsive-action-group,
  .table-actions,
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell .table-actions,
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell .responsive-action-group,
  .mobile-card-table > tbody > tr > td.mobile-table-actions-cell .btn-group,
  .card-header-actions,
  .modal-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 7px;
  }

  .responsive-action-group > *,
  .responsive-action-group > form > .btn,
  .table-actions > *,
  .table-actions > form > .btn,
  .card-header-actions > *,
  .card-header-actions > form > .btn,
  .modal-footer > .btn {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
  }

  .filter-toolbar,
  .admin-filter-bar,
  .mobile-stack-form,
  .form-inline,
  .admin-batch-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 9px;
  }

  .filter-toolbar > .form-group,
  .admin-filter-bar > .form-group,
  .mobile-stack-form > .form-group,
  .form-inline > .form-group,
  .admin-batch-bar > .form-group {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
  }

  .filter-toolbar > :not(.form-group),
  .admin-filter-bar > :not(.form-group),
  .mobile-stack-form > :not(.form-group),
  .form-inline > :not(.form-group),
  .admin-batch-bar > :not(.form-group) {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
  }

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

@media (max-width: 374px) {
  .filter-toolbar,
  .admin-filter-bar,
  .mobile-stack-form,
  .form-inline,
  .admin-batch-bar,
  .insight-grid {
    grid-template-columns: 1fr;
  }
}
/* 2026-08 workspace visual system: shared across user/admin/staff/agent. */
:root {
  --gn-bg: #f5f7fa;
  --gn-surface: #ffffff;
  --gn-surface-subtle: #f8fafc;
  --gn-border: #e2e7ee;
  --gn-border-strong: #d2d9e3;
  --gn-text: #202833;
  --gn-text-muted: #687384;
  --gn-primary: #1769aa;
  --gn-primary-hover: #12578e;
  --gn-primary-soft: #eaf3fb;
  --gn-success: #22845a;
  --gn-warning: #b97316;
  --gn-danger: #c44751;
  --gn-focus: rgba(23, 105, 170, .2);
  --gn-shadow: 0 1px 2px rgba(25, 38, 55, .04), 0 8px 24px rgba(25, 38, 55, .045);
}

/* Admin user directory: keep identity readable while allowing dense actions. */
.admin-users-page .admin-users-table {
  min-width: 980px;
}
.admin-users-page .admin-users-table > thead > tr > th {
  white-space: nowrap;
}
.admin-users-page .admin-user-pen-name {
  margin-top: 3px;
  color: #667587;
  font-size: 12px;
}
.admin-users-page .admin-user-pen-name .text-muted {
  color: #a0aab5;
  font-style: italic;
}
.admin-users-page .admin-users-table td:last-child {
  min-width: 230px;
  line-height: 1.9;
}

@media (max-width: 767px) {
  .admin-users-page .card-header {
    align-items: flex-start;
  }
  .admin-users-page .card-header .responsive-action-group {
    width: 100%;
    margin-top: 9px;
  }
  .admin-users-page .card-header .responsive-action-group .btn {
    min-width: 0;
  }
  .admin-users-page .admin-filter-bar {
    padding: 11px;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    background: #f8fafc;
  }
  .admin-users-page .admin-summary-strip {
    margin-right: -4px;
    margin-left: -4px;
  }
  .admin-users-page .admin-summary-strip > [class*="col-"] {
    padding-right: 4px;
    padding-left: 4px;
  }
  .admin-users-page .admin-summary-strip .card-body {
    min-height: 72px;
    padding: 10px 7px;
  }
  .admin-users-page .admin-summary-strip .h3 {
    font-size: 20px;
  }
  .admin-users-page .table-responsive {
    margin-right: -14px;
    margin-left: -14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .admin-users-page .admin-users-table {
    min-width: 930px;
    margin-bottom: 0;
  }
  .admin-users-page .admin-users-table td,
  .admin-users-page .admin-users-table th {
    padding-right: 10px;
    padding-left: 10px;
  }
  .admin-users-page .admin-users-table td:last-child {
    min-width: 245px;
  }
}

html { color-scheme: light; }
body {
  color: var(--gn-text);
  background: var(--gn-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.lyear-layout-web .lyear-layout-content {
  background: var(--gn-bg);
}

.lyear-layout-web .lyear-layout-content > .container-fluid {
  width: 100%;
  max-width: 1680px;
  margin-right: auto;
  margin-left: auto;
}

.lyear-layout-web .lyear-layout-header {
  border-bottom: 1px solid var(--gn-border);
  background: rgba(255, 255, 255, .96);
}

.lyear-layout-web .lyear-layout-header .navbar {
  background: transparent;
  box-shadow: none;
}

.lyear-layout-web .navbar-page-title {
  max-width: min(58vw, 720px);
  overflow: hidden;
  color: var(--gn-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lyear-layout-web .lyear-layout-sidebar {
  border-right: 1px solid var(--gn-border);
  background: var(--gn-surface);
  box-shadow: none;
}

.lyear-layout-web .sidebar-header {
  border-bottom: 1px solid var(--gn-border);
  background: var(--gn-surface);
}

.lyear-layout-web .brand-lockup__copy strong { color: var(--gn-text); }
.lyear-layout-web .brand-lockup__copy small { color: #8993a2; letter-spacing: .08em; }

.lyear-layout-web .nav-drawer > li > a {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 2px 10px;
  padding: 10px 12px 10px 14px;
  border-radius: 6px;
  color: #4c5868;
  font-weight: 500;
}

.lyear-layout-web .nav-drawer > li > a > .mdi {
  position: static;
  top: auto;
  left: auto;
  display: block;
  flex: 0 0 22px;
  width: 22px;
  margin-right: 8px;
  color: #7d8998;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  vertical-align: -2px;
}

.lyear-layout-web .nav-drawer > li > a > span:not(.badge) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lyear-layout-web .nav-drawer > li.active > a,
.lyear-layout-web .nav-drawer > li > a:hover,
.lyear-layout-web .nav-drawer > li > a:focus {
  color: var(--gn-primary);
  background: var(--gn-primary-soft);
}

.lyear-layout-web .nav-drawer > li.active > a > .mdi { color: var(--gn-primary); }
.lyear-layout-web .nav-subnav { padding: 2px 10px 5px 44px; }
.lyear-layout-web .nav-subnav > li > a {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 5px;
  color: #687384;
  line-height: 20px;
}
.lyear-layout-web .nav-subnav > li.active > a {
  color: var(--gn-primary);
  background: #f2f7fb;
  font-weight: 600;
}

.lyear-layout-web .card,
.lyear-layout-web .panel,
.lyear-layout-web .soft-card {
  border: 1px solid var(--gn-border);
  border-radius: 7px;
  background: var(--gn-surface);
  box-shadow: var(--gn-shadow);
}

.lyear-layout-web .card-header,
.lyear-layout-web .panel-heading,
.lyear-layout-web .soft-card .card-header {
  min-height: 48px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--gn-border);
  background: var(--gn-surface);
}

.lyear-layout-web .card-header h4,
.lyear-layout-web .panel-title,
.lyear-layout-web .soft-card .card-header h4 {
  margin: 0;
  color: var(--gn-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.lyear-layout-web .card-body { padding: 18px; }
.lyear-layout-web .text-muted,
.lyear-layout-web .help-block { color: var(--gn-text-muted) !important; }

.lyear-layout-web .btn {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 5px;
  font-weight: 500;
  line-height: 20px;
  box-shadow: none;
}
.lyear-layout-web .btn-primary {
  border-color: var(--gn-primary);
  background: var(--gn-primary);
}
.lyear-layout-web .btn-primary:hover,
.lyear-layout-web .btn-primary:focus {
  border-color: var(--gn-primary-hover);
  background: var(--gn-primary-hover);
}
.lyear-layout-web .btn-default {
  border-color: var(--gn-border-strong);
  color: #435064;
  background: var(--gn-surface);
}
.lyear-layout-web .btn-default:hover,
.lyear-layout-web .btn-default:focus {
  border-color: #aeb9c7;
  color: var(--gn-primary);
  background: var(--gn-surface-subtle);
}
.lyear-layout-web .btn:focus,
.lyear-layout-web a:focus,
.lyear-layout-web .form-control:focus {
  outline: 0;
  box-shadow: 0 0 0 3px var(--gn-focus);
}

.lyear-layout-web .form-control {
  min-height: 38px;
  border-color: var(--gn-border-strong);
  border-radius: 5px;
  color: var(--gn-text);
  background: var(--gn-surface);
  box-shadow: none;
}
.lyear-layout-web .form-control:hover { border-color: #aeb8c5; }
.lyear-layout-web .form-control:focus { border-color: var(--gn-primary); }
.lyear-layout-web label { color: #394657; font-weight: 600; }

.lyear-layout-web .table-responsive {
  border: 1px solid var(--gn-border);
  border-radius: 6px;
  background: var(--gn-surface);
}
.lyear-layout-web .table { margin-bottom: 0; color: var(--gn-text); }
.lyear-layout-web .table > thead > tr > th {
  padding: 11px 12px;
  border-bottom: 1px solid var(--gn-border-strong);
  color: #586577;
  background: var(--gn-surface-subtle);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.lyear-layout-web .table > tbody > tr > td {
  padding: 11px 12px;
  border-top-color: #edf0f4;
  vertical-align: middle;
}
.lyear-layout-web .table-bordered { border: 0; }
.lyear-layout-web .table-bordered > thead > tr > th,
.lyear-layout-web .table-bordered > tbody > tr > td { border-right: 0; border-left: 0; }
.lyear-layout-web .table-hover > tbody > tr:hover { background: #f7fafc; }

.lyear-layout-web .alert {
  padding: 12px 14px;
  border-width: 1px;
  border-radius: 6px;
  line-height: 1.55;
}
.lyear-layout-web .label,
.lyear-layout-web .badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 16px;
}

@media (min-width: 1025px) {
  .lyear-layout-web .lyear-layout-content > .container-fluid { padding: 24px 28px 36px; }
  .lyear-layout-web .sidebar-footer { border-top: 1px solid var(--gn-border); background: var(--gn-surface-subtle); }
  .lyear-layout-web .card:hover,
  .lyear-layout-web .panel:hover { border-color: var(--gn-border-strong); box-shadow: var(--gn-shadow); }
}

@media (max-width: 767px) {
  .lyear-layout-web .lyear-layout-header { height: 56px; }
  .lyear-layout-web .lyear-layout-header .navbar,
  .lyear-layout-web .lyear-layout-header .topbar { min-height: 56px; }
  .lyear-layout-web .navbar-page-title { max-width: calc(100vw - 150px); font-size: 15px; }
  .lyear-layout-web .lyear-layout-content { padding-top: 56px; }
  .lyear-layout-web .lyear-layout-content > .container-fluid { padding: 12px 10px 24px; }
  .lyear-layout-web .lyear-layout-sidebar { width: min(86vw, 310px); }
  .lyear-layout-web .nav-drawer > li > a { min-height: 46px; padding-top: 12px; padding-bottom: 12px; }
  .lyear-layout-web .nav-subnav > li > a { min-height: 40px; padding-top: 10px; padding-bottom: 10px; }
  .lyear-layout-web .card,
  .lyear-layout-web .panel,
  .lyear-layout-web .soft-card { margin-bottom: 12px; border-radius: 7px; box-shadow: 0 1px 2px rgba(25, 38, 55, .035); }
  .lyear-layout-web .card-header,
  .lyear-layout-web .panel-heading,
  .lyear-layout-web .soft-card .card-header { min-height: 46px; padding: 12px 14px; }
  .lyear-layout-web .card-body { padding: 14px; }
  .lyear-layout-web .btn { min-height: 42px; }
  .lyear-layout-web .btn-xs,
  .lyear-layout-web .btn-sm { min-height: 38px; }
  .lyear-layout-web .form-control { min-height: 44px; font-size: 16px; }
  .lyear-layout-web textarea.form-control { min-height: 96px; }
  /* 横向滚动表格做「通栏出血」：抵消容器左右 padding，让内容可滑到屏幕边缘。
     负 margin 的绝对值**必须等于**容器 padding，否则容器会越出视口，
     而 html{overflow-x:hidden} 会把越出的部分直接裁掉（首列被切）。
     容器 padding 在本断点为 12px（见下方 container-fluid 规则），
     因此这里用 -12px 而不是 -14px。 */
  .lyear-layout-web .table-responsive.mobile-table-scroll {
    margin-right: -12px;
    margin-left: -12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .lyear-layout-web .mobile-card-table > tbody > tr {
    margin-bottom: 10px;
    border: 1px solid var(--gn-border);
    border-radius: 7px;
    background: var(--gn-surface);
  }
  .lyear-layout-web .mobile-card-table > tbody > tr > td {
    min-height: 38px;
    padding: 9px 12px 9px 42%;
    border-top: 1px solid #edf0f4;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .lyear-layout-web .mobile-card-table > tbody > tr > td::before {
    width: 38%;
    color: var(--gn-text-muted);
    font-size: 12px;
    font-weight: 600;
  }
  .lyear-layout-web .mobile-card-table > tbody > tr > td.mobile-table-actions-cell {
    padding: 10px 12px;
    background: var(--gn-surface-subtle);
  }
  .lyear-layout-web .responsive-action-group,
  .lyear-layout-web .table-actions,
  .lyear-layout-web .card-header-actions { gap: 8px; }
}

@media (max-width: 374px) {
  .lyear-layout-web .lyear-layout-content > .container-fluid { padding-right: 8px; padding-left: 8px; }
  /* 出血量必须跟随容器 padding 一起收窄，否则容器会越出视口被裁切。 */
  .lyear-layout-web .table-responsive.mobile-table-scroll { margin-right: -8px; margin-left: -8px; }
  .lyear-layout-web .mobile-card-table > tbody > tr > td { padding-left: 40%; }
}

/* High-frequency author workflows: keep primary actions visible, isolate risk. */
.project-action-cell { min-width: 252px; }
.project-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}
.project-primary-actions > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
}
.project-primary-actions > .btn .mdi { margin-right: 5px; }
.project-more-actions { display: block; width: 100%; margin-top: 6px; }
.project-more-actions > summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--gn-border-strong);
  border-radius: 5px;
  color: #4d596a;
  background: var(--gn-surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
}
.project-more-actions > summary::-webkit-details-marker { display: none; }
.project-more-actions > summary .mdi { margin-right: 5px; }
.project-more-actions[open] > summary {
  border-color: var(--gn-primary);
  color: var(--gn-primary);
  box-shadow: 0 0 0 3px var(--gn-focus);
}
.project-more-actions__menu {
  display: grid;
  gap: 9px;
  width: 100%;
  margin-top: 6px;
  padding: 9px;
  border: 1px solid var(--gn-border);
  border-radius: 6px;
  background: var(--gn-surface-subtle);
  box-shadow: none;
}
.project-more-actions__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.project-more-actions__links .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding-right: 6px;
  padding-left: 6px;
  font-size: 11px;
  white-space: nowrap;
}
.project-more-actions__links .btn .mdi { margin-right: 4px; }
.project-more-actions__commands {
  display: grid;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid var(--gn-border);
}
.project-more-actions__section-title {
  color: var(--gn-text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}
.project-more-actions__menu form { display: block; margin: 0; }
.project-more-actions__menu .btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 34px;
  margin: 0;
  text-align: left;
}
.project-more-actions__menu .btn .mdi { margin-right: 7px; }

@media (max-width: 767px) {
  .project-action-cell { min-width: 0; }
  .project-primary-actions { width: 100%; }
  .project-primary-actions > .btn { width: 100%; }
  .project-more-actions > summary { justify-content: center; width: 100%; min-height: 42px; }
  .project-more-actions__menu { margin-top: 7px; padding: 8px; }
  .project-more-actions__links { grid-template-columns: 1fr; }
  .project-more-actions__links .btn { min-height: 38px; justify-content: flex-start; padding-right: 10px; padding-left: 10px; font-size: 12px; }
  .project-more-actions__menu .btn { min-height: 40px; }

  .user-cards-table.mobile-card-table > tbody > tr > td:nth-child(6),
  .user-cards-table.mobile-card-table > tbody > tr > td:nth-child(7),
  .user-cards-table.mobile-card-table > tbody > tr > td:nth-child(8),
  .user-cards-table.mobile-card-table > tbody > tr > td:nth-child(10),
  .user-cards-table.mobile-card-table > tbody > tr > td:nth-child(11) { display: none; }
  .user-cards-table.mobile-card-table > tbody > tr > td:first-child {
    min-height: 34px;
    padding: 7px 12px;
    background: var(--gn-surface-subtle);
  }
  .user-cards-table.mobile-card-table > tbody > tr > td:first-child::before { content: "选择"; }
  .user-cards-table.mobile-card-table > tbody > tr > td:last-child { padding: 10px 12px; background: var(--gn-surface-subtle); }
  .user-cards-table.mobile-card-table > tbody > tr > td:last-child::before { display: none; }
  .user-cards-table.mobile-card-table > tbody > tr > td:last-child .btn,
  .user-cards-table.mobile-card-table > tbody > tr > td:last-child form {
    display: inline-flex !important;
    width: calc(50% - 4px);
    margin: 2px 2px 2px 0;
  }
  .user-cards-table.mobile-card-table > tbody > tr > td:last-child form > .btn { width: 100%; margin: 0; }

  .owner-metric-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .owner-metric-grid > :last-child:nth-child(odd) .owner-metric-card { min-height: 104px; }
}

/* Shared shell contract: keep all four portals aligned at every breakpoint. */
.lyear-layout-web .lyear-layout-sidebar {
  width: 240px;
  overflow: hidden;
}

.lyear-layout-web .sidebar-header {
  height: 70px;
  padding: 0 18px;
}

.lyear-layout-web .sidebar-header > a {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.lyear-layout-web .sidebar-header .brand-lockup {
  min-width: 0;
  width: 100%;
}

.user-shell .sidebar-header .brand-lockup--sidebar {
  transform: translate(-4px, 4px);
}

.lyear-layout-web .lyear-layout-sidebar-scroll {
  height: calc(100% - 70px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd4df transparent;
}

.lyear-layout-web .nav-drawer {
  margin: 10px 0 0;
  padding: 0 8px;
}

.lyear-layout-web .nav-drawer > li > a {
  min-height: 44px;
  margin: 2px 0;
  padding: 10px 14px;
  border-radius: 6px;
  line-height: 22px;
}

.lyear-layout-web .nav-drawer > li > a > .mdi {
  flex-basis: 22px;
  width: 22px;
  margin-right: 9px;
  font-size: 18px;
}

.lyear-layout-web .nav-drawer > li > a > span:not(.badge) {
  min-width: 0;
  flex: 1 1 auto;
}

.lyear-layout-web .nav-drawer > li > a > .badge {
  flex: 0 0 auto;
  min-width: 22px;
  margin-left: auto !important;
  padding-right: 6px;
  padding-left: 6px;
  justify-content: center;
}

.lyear-layout-web .nav-subnav {
  margin: 2px 0 6px;
  padding: 0 0 0 31px;
}

.lyear-layout-web .nav-subnav > li > a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 5px;
  line-height: 22px;
}

.lyear-layout-web .sidebar-footer {
  width: auto;
  height: auto;
  margin: 14px 8px 0;
  padding: 16px 10px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--gn-border);
  background: transparent;
  line-height: 1.55;
}

.lyear-layout-web .sidebar-footer .btn {
  min-height: 38px;
}

.user-shell .sidebar-quota {
  margin: 11px 0 12px;
  padding: 10px;
  border: 1px solid var(--gn-border);
  border-radius: 6px;
  background: #fff;
}
.user-shell .sidebar-quota__head,
.user-shell .sidebar-quota__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.user-shell .sidebar-quota__head strong { min-width: 0; color: #32373d; font-size: 12px; }
.user-shell .sidebar-quota__head button { padding: 0; border: 0; background: transparent; color: #2f80ed; font-size: 11px; cursor: pointer; }
.user-shell .sidebar-quota__head button:hover,
.user-shell .sidebar-quota__head button:focus { color: #176bc5; text-decoration: underline; outline: none; }
.user-shell .sidebar-quota__head button:focus-visible { outline: 2px solid rgba(47, 128, 237, .3); outline-offset: 3px; border-radius: 2px; }
.user-shell .sidebar-quota__meta { margin-top: 8px; color: #7a838d; font-size: 10px; }
.user-shell .sidebar-quota__meta strong { color: #32373d; font-size: 11px; }
.user-shell .sidebar-quota__track { overflow: hidden; height: 6px; margin-top: 6px; border-radius: 3px; background: #e8ecef; }
.user-shell .sidebar-quota__track i { display: block; height: 100%; border-radius: inherit; background: #35a85a; transition: width .2s ease; }
.user-shell .sidebar-quota--warning .sidebar-quota__track i { background: #d68a27; }
.user-shell .sidebar-quota--danger .sidebar-quota__track i { background: #cf4a55; }
.user-shell .sidebar-quota__empty { display: block; margin-top: 7px; color: #8a939d; font-size: 10px; }

.lyear-layout-web .lyear-layout-header .topbar {
  min-height: 68px;
  padding-right: 24px;
  padding-left: 24px;
}

.lyear-layout-web .lyear-layout-header .topbar-left,
.lyear-layout-web .lyear-layout-header .navbar-page-title {
  min-width: 0;
}

.lyear-layout-web .card-header,
.lyear-layout-web .panel-heading,
.lyear-layout-web .soft-card .card-header {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lyear-layout-web .card-header > h1,
.lyear-layout-web .card-header > h2,
.lyear-layout-web .card-header > h3,
.lyear-layout-web .card-header > h4,
.lyear-layout-web .card-header > h5,
.lyear-layout-web .card-header > h6,
.lyear-layout-web .panel-heading > h1,
.lyear-layout-web .panel-heading > h2,
.lyear-layout-web .panel-heading > h3,
.lyear-layout-web .panel-heading > h4,
.lyear-layout-web .panel-heading > h5,
.lyear-layout-web .panel-heading > h6 {
  min-width: 0;
  margin: 0;
  line-height: 22px;
}

.lyear-layout-web .card-header-actions,
.lyear-layout-web .card-header > .pull-right,
.lyear-layout-web .panel-heading > .pull-right {
  margin-left: auto;
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .lyear-layout-web .lyear-layout-sidebar {
    width: min(310px, 86vw);
  }

  .lyear-layout-web .sidebar-header {
    height: 64px;
    padding: 0 14px;
  }

  .lyear-layout-web .lyear-layout-sidebar-scroll {
    height: calc(100% - 64px);
  }

  .lyear-layout-web .nav-drawer {
    margin-top: 8px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .lyear-layout-web .nav-drawer > li > a {
    min-height: 48px;
    margin: 2px 0;
    padding: 12px 14px;
  }

  .lyear-layout-web .nav-subnav > li > a {
    min-height: 42px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .lyear-layout-web .sidebar-footer {
    margin-top: 10px;
    padding-top: 14px;
  }

  .lyear-layout-web .lyear-layout-header .topbar {
    min-height: 56px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .lyear-layout-web .card-header,
  .lyear-layout-web .panel-heading,
  .lyear-layout-web .soft-card .card-header {
    min-height: 48px;
    gap: 8px;
  }

  .user-shell .project-action-cell .project-more-actions__links .btn,
  .user-shell .project-action-cell .project-more-actions__commands form,
  .user-shell .project-action-cell .project-more-actions__commands form > .btn {
    display: flex !important;
    width: 100%;
    margin: 0;
  }
}

/* User project list: improve scanability without changing its workflow. */
.user-projects-page .metric-card {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  border-color: #e3e9f0;
  background: #fff;
}

.user-projects-page .metric-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #5b86bd;
  content: '';
}

.user-projects-page .row > div:nth-child(2) .metric-card::before { background: #2f9b8b; }
.user-projects-page .row > div:nth-child(3) .metric-card::before { background: #5980d7; }
.user-projects-page .row > div:nth-child(4) .metric-card::before { background: #c7953b; }
.user-projects-page .metric-card .card-body { padding: 17px 18px 15px; }
.user-projects-page .metric-label { margin: 0 0 7px; color: #718095; font-size: 12px; font-weight: 600; }
.user-projects-page .metric-value { margin: 0; color: #27364b; font-size: 27px; font-weight: 600; line-height: 1.05; }
.user-projects-page .metric-note { margin-top: 8px; color: #8794a5; font-size: 11px; line-height: 1.45; }

.user-projects-page .soft-card > .card-header { padding: 15px 18px; }
.user-projects-page .card-toolbar { width: 100%; }
.user-projects-page .card-toolbar h4 { color: #27364b; }
.user-projects-page .card-toolbar .data-note { color: #8794a5; font-size: 12px; line-height: 1.45; }
.user-projects-page .soft-card > .card-body { padding: 16px 18px 18px; }
.user-projects-page .project-list-table { table-layout: fixed; }
.user-projects-page .project-list-table th:nth-child(1) { width: 23%; }
.user-projects-page .project-list-table th:nth-child(2) { width: 11%; }
.user-projects-page .project-list-table th:nth-child(3) { width: 18%; }
.user-projects-page .project-list-table th:nth-child(4) { width: 13%; }
.user-projects-page .project-list-table th:nth-child(5) { width: 12%; }
.user-projects-page .project-list-table th:nth-child(6) { width: 23%; }
.user-projects-page .project-list-table > thead > tr > th {
  padding-top: 12px;
  padding-bottom: 12px;
  color: #718095;
  background: #f8fafc;
  font-size: 11px;
  letter-spacing: .02em;
}

.user-projects-page .project-list-table > tbody > tr > td {
  padding-top: 14px;
  padding-bottom: 14px;
  color: #536175;
  line-height: 1.5;
}

.user-projects-page .project-list-table > tbody > tr > td:first-child > div:first-child strong {
  display: block;
  overflow: hidden;
  color: #2c3a4f;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-projects-page .project-list-table code {
  display: inline-block;
  max-width: 128px;
  overflow: hidden;
  padding: 2px 5px;
  border: 1px solid #e5ebf1;
  border-radius: 3px;
  background: #f7f9fb;
  color: #536d8d;
  font-size: 11px;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.user-projects-page .project-list-table .label { min-width: 70px; justify-content: center; }
.user-projects-page .project-list-table > tbody > tr:hover { background: #fbfdff; }
.user-projects-page .project-action-cell { background: #fcfdff; }

@media (max-width: 767px) {
  .user-projects-page .metric-card { min-height: 108px; }
  .user-projects-page .metric-card .card-body { padding: 14px 15px; }
  .user-projects-page .metric-value { font-size: 24px; }
  .user-projects-page .metric-note { font-size: 10px; }
  .user-projects-page .soft-card > .card-header,
  .user-projects-page .soft-card > .card-body { padding-right: 14px; padding-left: 14px; }
  .user-projects-page .project-list-table { min-width: 900px; table-layout: auto; }
  .user-projects-page .project-list-table th:nth-child(6) { min-width: 252px; }
}

/* User project list color pass: vivid accents with restrained operational surfaces. */
.user-projects-page .metric-card,
.user-projects-page .soft-card,
.user-projects-page .table-responsive,
.user-projects-page .project-more-actions__menu {
  border-radius: 8px;
}

.user-projects-page .metric-card {
  border-top-width: 3px;
  box-shadow: 0 4px 14px rgba(38, 63, 94, .06);
}

.user-projects-page .metric-card::before { display: none; }
.user-projects-page .row > div:nth-child(1) .metric-card { border-top-color: #2f7fd3; background: #f6faff; }
.user-projects-page .row > div:nth-child(2) .metric-card { border-top-color: #159f8c; background: #f2fcf9; }
.user-projects-page .row > div:nth-child(3) .metric-card { border-top-color: #6865d8; background: #f6f5ff; }
.user-projects-page .row > div:nth-child(4) .metric-card { border-top-color: #d89124; background: #fffaf1; }
.user-projects-page .row > div:nth-child(1) .metric-value { color: #2267ae; }
.user-projects-page .row > div:nth-child(2) .metric-value { color: #167e70; }
.user-projects-page .row > div:nth-child(3) .metric-value { color: #5654bd; }
.user-projects-page .row > div:nth-child(4) .metric-value { color: #b66f12; }

.user-projects-page .soft-card {
  border-color: #dce6f0;
  box-shadow: 0 5px 18px rgba(38, 63, 94, .055);
}

.user-projects-page .soft-card > .card-header {
  border-bottom-color: #dfe8f1;
  background: #fbfdff;
}

.user-projects-page .project-list-table > thead > tr > th {
  border-bottom-color: #d6e2ee;
  background: #eef6ff;
  color: #4d6682;
}

.user-projects-page .project-list-table > tbody > tr:nth-child(even) > td { background: #fcfdff; }
.user-projects-page .project-list-table > tbody > tr:hover > td { background: #f2f8ff; }
.user-projects-page .project-action-cell { background: #f8fbff !important; }
.user-projects-page .project-list-table .label-success { background-color: #e4f7ee; color: #16734b; }
.user-projects-page .project-list-table .label-warning { background-color: #fff3d9; color: #a8660d; }
.user-projects-page .project-list-table .label-danger { background-color: #ffeaec; color: #ba4050; }

.user-projects-page .project-primary-actions > .btn,
.user-projects-page .project-more-actions > summary {
  border-radius: 7px;
}

.user-projects-page .project-primary-actions > .btn-primary {
  border-color: #2778c9;
  background: #2778c9;
}

.user-projects-page .project-primary-actions > .btn-primary:hover,
.user-projects-page .project-primary-actions > .btn-primary:focus {
  border-color: #1d63a8;
  background: #1d63a8;
}

.user-projects-page .project-more-actions > summary {
  border-color: #c8d9eb;
  color: #3970a7;
  background: #f4f9ff;
}

.user-projects-page .project-more-actions[open] > summary {
  border-color: #71a4d7;
  color: #1c639f;
  background: #eaf4ff;
}

.user-projects-page .project-more-actions__menu {
  border-color: #d5e4f0;
  background: #f7fbff;
}

.user-projects-page .project-more-actions__links .btn {
  border-color: #d4e3f0;
  color: #386a9c;
  background: #fff;
}

.user-projects-page .project-more-actions__links .btn:hover,
.user-projects-page .project-more-actions__links .btn:focus {
  border-color: #93bcdf;
  color: #1d639f;
  background: #edf7ff;
}

/* Registration agreement and standalone legal document. */
.register-agreement-field { margin: 3px 0 14px; }
.register-agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid #dce5ee;
  border-radius: 7px;
  color: #556477;
  background: #f8fbfe;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}
.register-agreement-check input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #1769aa;
}
.register-agreement-check a { margin-left: 3px; color: #1769aa; font-weight: 600; }
.register-agreement-check:focus-within { border-color: #6fa3d1; box-shadow: 0 0 0 3px rgba(23,105,170,.14); }
.register-agreement-note { margin: 5px 2px 0; color: #8a95a3; font-size: 11px; line-height: 1.5; }

/* Registration surfaces: clearer hierarchy than the compact login form. */
.register-page .login-center {
  max-width: 474px;
}

.auth-two-factor-panel {
  margin-top: 18px;
  padding: 12px 12px 13px;
  border: 1px solid #d8e7f2;
  border-radius: 8px;
  background: #f6fbff;
}
.auth-two-factor-panel > label {
  display: block;
  margin-bottom: 3px;
  color: #315674;
  font-size: 13px;
  font-weight: 700;
}
.auth-two-factor-panel .help-block {
  margin: 0 0 9px;
  color: #6c8294;
  font-size: 11px;
  line-height: 1.5;
}
.auth-two-factor-panel .form-control {
  background: #fff;
}
.register-page .login-header {
  margin-bottom: 18px !important;
}
.register-page .login-header p {
  margin-bottom: 12px;
  color: #3f5266;
  font-size: 15px;
  font-weight: 650;
}
.register-form-intro {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 auto 20px;
  padding: 10px 12px;
  border: 1px solid #dceaf4;
  border-radius: 7px;
  background: #f5faff;
  color: #607387;
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}
.register-form-intro i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #2777ad;
  font-size: 16px;
}
.register-form-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 3px 0 11px;
  color: #34485c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
}
.register-form-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5ebf1;
}
.register-form-section-title--security { margin-top: 21px; }
.register-form .form-group { margin-bottom: 12px; }
.register-form .form-control { background: #fff; }
.register-form .input-group { display: flex; gap: 8px; }
.register-form .input-group .form-control { min-width: 0; }
.register-form .input-group-btn { flex: 0 0 118px; }
.register-form .input-group-btn .btn { width: 100%; height: 48px; border-radius: 8px; }
.register-submit-group { margin-top: 18px; }
.register-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid #e7ebf0;
}
.register-footer .btn-link { min-height: 36px; padding: 8px 10px; }
.register-footer p { align-self: center; margin: 0; font-size: 12px; }

@media (max-width: 575px) {
  .register-page .login-center { max-width: 460px; }
  .register-page .login-header p { font-size: 14px; }
  .register-form-intro { margin-bottom: 18px; }
  .register-form-section-title--security { margin-top: 18px; }
  .register-form .input-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .register-form .input-group-btn { width: 100%; }
  .register-form .input-group-btn .btn { height: 44px; }
  .register-submit-group { margin-top: 16px; }
  .register-footer { margin-top: 16px; }
}

@media (min-width: 1025px) {
  .register-page .login-center { max-width: 474px; padding: 30px 36px 25px; }
  .register-page .register-form .form-control { height: 46px; }
  .register-page .register-form .input-group-btn .btn { height: 46px; }
}

.legal-document-page { min-width: 320px; margin: 0; color: #2a3647; background: #f3f7fb; }
.legal-document-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 10px max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid #dbe4ed;
  background: rgba(255,255,255,.97);
}
.legal-document-brand { display: inline-flex; align-items: center; min-width: 0; gap: 10px; color: #26354a; }
.legal-document-brand:hover,
.legal-document-brand:focus { color: #1769aa; text-decoration: none; }
.legal-document-brand img { flex: 0 0 38px; width: 38px; height: 38px; }
.legal-document-brand span,
.legal-document-brand strong,
.legal-document-brand small { display: block; min-width: 0; }
.legal-document-brand strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.legal-document-brand small { margin-top: 1px; color: #8793a3; font-size: 9px; letter-spacing: .08em; }
.legal-document-header .btn { flex: 0 0 auto; min-height: 38px; border-radius: 6px; }
.legal-document-shell { width: 100%; max-width: 1040px; margin: 0 auto; padding: 30px 20px 50px; }
.legal-document {
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(36,59,84,.08);
}
.legal-document-title { padding: 32px 40px 26px; border-bottom: 1px solid #e2e9f0; background: #f8fbfe; }
.legal-document-kicker { display: block; color: #3979b7; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.legal-document-title h1 { margin: 7px 0 14px; color: #203047; font-size: 28px; font-weight: 650; line-height: 1.35; letter-spacing: 0; }
.legal-document-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.legal-document-meta span { padding: 5px 9px; border: 1px solid #dbe7f1; border-radius: 6px; color: #607186; background: #fff; font-size: 11px; }
.legal-document-notice { display: flex; align-items: flex-start; gap: 12px; margin: 24px 40px 0; padding: 15px 16px; border-left: 4px solid #d89024; border-radius: 6px; background: #fff8ea; }
.legal-document-notice > i { flex: 0 0 auto; color: #c27b14; font-size: 22px; }
.legal-document-notice strong { display: block; margin-bottom: 3px; color: #7d4c09; font-size: 14px; }
.legal-document-notice p { margin: 0; color: #806439; font-size: 12px; line-height: 1.7; }
.legal-document-content { padding: 14px 40px 38px; }
.legal-document-content h2 { margin: 30px 0 12px; padding-bottom: 9px; border-bottom: 1px solid #e6ebf1; color: #263851; font-size: 18px; font-weight: 650; line-height: 1.45; }
.legal-document-content h2.is-important { border-bottom-color: #efd4d8; color: #a33a48; }
.legal-document-content p { margin: 0 0 11px; color: #526176; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.legal-document-content .legal-document-clause { color: #394a61; }
.legal-document-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 40px; border-top: 1px solid #e2e9f0; background: #f8fbfe; color: #758398; font-size: 12px; }
.legal-document-footer .btn { min-width: 132px; border-radius: 6px; }

@media (max-width: 767px) {
  .legal-document-header { min-height: 58px; padding: 8px 12px; }
  .legal-document-brand img { flex-basis: 34px; width: 34px; height: 34px; }
  .legal-document-brand small { display: none; }
  .legal-document-header .btn { min-height: 38px; padding-right: 10px; padding-left: 10px; font-size: 12px; }
  .legal-document-shell { padding: 14px 10px 30px; }
  .legal-document-title { padding: 23px 18px 20px; }
  .legal-document-title h1 { font-size: 22px; }
  .legal-document-notice { margin: 16px 14px 0; padding: 13px; }
  .legal-document-content { padding: 5px 18px 26px; }
  .legal-document-content h2 { margin-top: 25px; font-size: 16px; }
  .legal-document-content p { font-size: 12px; line-height: 1.8; }
  .legal-document-footer { align-items: stretch; flex-direction: column; padding: 15px 18px; }
  .legal-document-footer .btn { width: 100%; }
}

/* 2026-08 final UI polish: shared hierarchy, color and interaction contract. */
:root {
  --gn-primary: #1677c8;
  --gn-primary-hover: #0f62aa;
  --gn-primary-soft: #eaf5ff;
  --gn-success: #15966f;
  --gn-warning: #d78a16;
  --gn-danger: #d94b5c;
  --gn-info: #3979d2;
  --gn-border: #dfe6ee;
  --gn-border-strong: #cbd6e2;
  --gn-shadow: 0 2px 5px rgba(31, 50, 73, .045), 0 10px 28px rgba(31, 50, 73, .055);
}

.lyear-layout-web .card,
.lyear-layout-web .panel,
.lyear-layout-web .soft-card,
.lyear-layout-web .table-responsive {
  border-radius: 8px;
}

.lyear-layout-web .card,
.lyear-layout-web .panel,
.lyear-layout-web .soft-card {
  border-color: var(--gn-border);
  box-shadow: var(--gn-shadow);
}

.lyear-layout-web .card-header,
.lyear-layout-web .panel-heading,
.lyear-layout-web .soft-card .card-header {
  background: #fbfdff;
}

.lyear-layout-web .nav-drawer > li > a {
  border-radius: 8px;
  transition: color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.lyear-layout-web .nav-drawer > li.active > a,
.lyear-layout-web .nav-drawer > li.open > a {
  color: #1267ad;
  background: #e8f4ff;
  box-shadow: inset 3px 0 0 #21b6aa;
}

.lyear-layout-web .nav-subnav > li.active > a {
  color: #1166aa;
  background: #edf7ff;
}

.lyear-layout-web .btn {
  border-radius: 7px;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

@media (hover: hover) {
  .lyear-layout-web .btn:not(:disabled):hover { transform: translateY(-1px); }
}

.lyear-layout-web .btn-success { border-color: #15966f; background: #15966f; }
.lyear-layout-web .btn-info { border-color: #3979d2; background: #3979d2; }
.lyear-layout-web .btn-warning { border-color: #d78a16; background: #d78a16; color: #fff; }
.lyear-layout-web .btn-danger { border-color: #d94b5c; background: #d94b5c; }

.lyear-layout-web .label-success,
.lyear-layout-web .badge-success { color: #0c7253; background: #dcf7ed; }
.lyear-layout-web .label-info,
.lyear-layout-web .badge-info,
.lyear-layout-web .label-primary,
.lyear-layout-web .badge-primary { color: #1d65ad; background: #e4f1ff; }
.lyear-layout-web .label-warning,
.lyear-layout-web .badge-warning { color: #9b5c05; background: #fff0cf; }
.lyear-layout-web .label-danger,
.lyear-layout-web .badge-danger { color: #b33143; background: #ffe5e9; }
.lyear-layout-web .label-default,
.lyear-layout-web .badge-default { color: #5f6d7d; background: #edf1f5; }

.lyear-layout-web .table > thead > tr > th {
  background: #f1f7fc;
  color: #50657a;
}
.lyear-layout-web .table > tbody > tr:nth-child(even) > td { background: #fcfdff; }
.lyear-layout-web .table-hover > tbody > tr:hover > td { background: #eef7ff; }
.lyear-layout-web .table-actions-cell { min-width: 132px; }
.lyear-layout-web .table-actions .btn-danger,
.lyear-layout-web .responsive-action-group .btn-danger { margin-left: auto; }

.lyear-layout-web .form-control {
  border-radius: 7px;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.lyear-layout-web textarea.form-control { line-height: 1.65; resize: vertical; }
.lyear-layout-web .form-group { margin-bottom: 18px; }
.lyear-layout-web .form-group > label { margin-bottom: 7px; }
.lyear-layout-web .help-block { margin-top: 6px; line-height: 1.55; }

.admin-benefits-page .benefit-guide { margin-bottom: 16px; border-color: #cce5fa; background: #eef8ff; }
.benefit-group-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.benefit-group-summary__item { display: flex; align-items: center; gap: 11px; min-height: 72px; padding: 13px 15px; border: 1px solid #dce5ef; border-radius: 8px; background: #fff; }
.benefit-group-summary__item > i { display: inline-flex; flex: 0 0 36px; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; font-size: 19px; }
.benefit-group-summary__item span,
.benefit-group-summary__item strong,
.benefit-group-summary__item small { display: block; min-width: 0; }
.benefit-group-summary__item strong { color: #28384c; font-size: 14px; }
.benefit-group-summary__item small { margin-top: 3px; color: #7a8899; font-size: 11px; }
.benefit-group-summary__item--capacity { border-top: 3px solid #d9911e; background: #fffaf1; }
.benefit-group-summary__item--capacity > i { color: #ac6a08; background: #ffedc7; }
.benefit-group-summary__item--access { border-top: 3px solid #199c78; background: #f3fcf9; }
.benefit-group-summary__item--access > i { color: #0e795a; background: #dff7ef; }
.benefit-group-summary__item--quota { border-top: 3px solid #3979d2; background: #f4f8ff; }
.benefit-group-summary__item--quota > i { color: #2866ba; background: #e1edff; }

.benefit-matrix-scroll { overflow: auto; border-color: #d7e1eb; }
.benefit-matrix { min-width: 980px; }
.benefit-matrix .benefit-group-row > th { padding: 12px 14px; border-top: 0; background: #f8fafc; }
.benefit-group + .benefit-group .benefit-group-row > th { border-top: 10px solid #fff; }
.benefit-group-row th > span { display: inline-block; vertical-align: middle; }
.benefit-group-row__icon { display: inline-flex !important; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 7px; }
.benefit-group-row strong,
.benefit-group-row small { display: block; }
.benefit-group-row strong { color: #2b3a4e; font-size: 13px; }
.benefit-group-row small { margin-top: 2px; color: #77869a; font-size: 11px; font-weight: 400; }
.benefit-group--capacity .benefit-group-row__icon { color: #a9690c; background: #fff0d2; }
.benefit-group--access .benefit-group-row__icon { color: #08795a; background: #dff7ef; }
.benefit-group--quota .benefit-group-row__icon { color: #2868bb; background: #e2efff; }
.benefit-matrix > tbody > tr > td:first-child { border-left: 3px solid transparent; }
.benefit-group--capacity > tr:not(.benefit-group-row) > td:first-child { border-left-color: #e1a13e; }
.benefit-group--access > tr:not(.benefit-group-row) > td:first-child { border-left-color: #35aa8a; }
.benefit-group--quota > tr:not(.benefit-group-row) > td:first-child { border-left-color: #5b8fd8; }
.benefit-matrix .benefit-hint { color: #748397; line-height: 1.5; }
.benefit-save-bar { position: sticky; z-index: 5; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px -4px -4px; padding: 12px 14px; border: 1px solid #d9e3ec; border-radius: 8px; background: rgba(255, 255, 255, .96); box-shadow: 0 -5px 18px rgba(31, 50, 73, .07); }
.benefit-save-bar > span { color: #66768a; font-size: 12px; line-height: 1.5; }
.benefit-save-bar > span i { margin-right: 4px; color: #3979d2; }
.benefit-save-bar .btn { flex: 0 0 auto; min-width: 150px; }
.benefit-save-bar .btn i { margin-right: 5px; }

@media (max-width: 1024px) {
  .lyear-layout-web .lyear-layout-sidebar {
    left: 0 !important;
    transform: translate3d(-100%, 0, 0);
    transition: transform 160ms ease;
    will-change: transform;
  }
  .lyear-layout-web .lyear-layout-sidebar.lyear-aside-open,
  .lyear-layout-web .lyear-layout-sidebar.open {
    left: 0 !important;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 767px) {
  .lyear-layout-web .card,
  .lyear-layout-web .panel,
  .lyear-layout-web .soft-card,
  .lyear-layout-web .mobile-card-table > tbody > tr { border-radius: 8px; }
  .lyear-layout-web .mobile-card-table > tbody > tr { overflow: hidden; box-shadow: 0 3px 12px rgba(31, 50, 73, .045); }
  .lyear-layout-web .mobile-card-table > tbody > tr > td { min-height: 42px; line-height: 1.55; }
  .lyear-layout-web .mobile-card-table > tbody > tr > td.mobile-table-actions-cell { padding-top: 12px; padding-bottom: 12px; }
  .benefit-group-summary { grid-template-columns: 1fr; gap: 8px; }
  .benefit-group-summary__item { min-height: 62px; padding: 10px 12px; }
  .benefit-matrix-scroll { margin-right: 0 !important; margin-left: 0 !important; border-right: 1px solid #d7e1eb !important; border-left: 1px solid #d7e1eb !important; border-radius: 8px !important; }
  .benefit-matrix { min-width: 900px; }
  .benefit-save-bar { position: static; align-items: stretch; flex-direction: column; margin-right: 0; margin-left: 0; }
  .benefit-save-bar .btn { width: 100%; min-width: 0; }
  .owner-welcome h2 { max-width: 100%; font-size: 21px; line-height: 1.25; overflow-wrap: anywhere; }
  .owner-welcome-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .owner-welcome-actions .btn { width: 100%; }
}

@media (max-width: 374px) {
  .owner-metric-grid { grid-template-columns: 1fr; }
  .owner-metric-grid > * { grid-column: auto !important; }
}

/* Calm-density pass: reduce simultaneous emphasis and create breathing room. */
:root {
  --gn-bg: #f6f8fa;
  --gn-surface-subtle: #f8fafc;
  --gn-border: #e4e9ef;
  --gn-border-strong: #d4dde6;
  --gn-text-muted: #718096;
  --gn-shadow: none;
}

.lyear-layout-web .lyear-layout-content > .container-fluid {
  padding-bottom: 44px;
}

.lyear-layout-web .card,
.lyear-layout-web .panel,
.lyear-layout-web .soft-card,
.lyear-layout-web .lyear-layout-content .card:not(.workspace-hero):not(.metric-card):not(.soft-card) {
  border-color: var(--gn-border);
  box-shadow: none;
}

.lyear-layout-web .card:hover,
.lyear-layout-web .panel:hover,
.lyear-layout-web .soft-card:hover {
  border-color: var(--gn-border);
  box-shadow: none;
}

.lyear-layout-web .row > [class*="col-"] > .card,
.lyear-layout-web .row > [class*="col-"] > .panel,
.lyear-layout-web .row > [class*="col-"] > .soft-card {
  margin-bottom: 20px;
}

.lyear-layout-web .card-header,
.lyear-layout-web .panel-heading,
.lyear-layout-web .soft-card .card-header {
  min-height: 52px;
  padding-top: 14px;
  padding-bottom: 14px;
  background: #fff;
}

.lyear-layout-web .card-body { padding: 20px; }

.lyear-layout-web .btn {
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) {
  .lyear-layout-web .btn:not(:disabled):hover { transform: none; }
}

.lyear-layout-web .btn-default {
  border-color: #d7e0e8;
  color: #536274;
  background: #fff;
}

.lyear-layout-web .btn-default:hover,
.lyear-layout-web .btn-default:focus {
  border-color: #bfcdd9;
  color: #315e88;
  background: #f8fafc;
}

.lyear-layout-web .nav-drawer > li.active > a,
.lyear-layout-web .nav-drawer > li.open > a {
  color: #245f91;
  background: #edf4fa;
  box-shadow: none;
}

.lyear-layout-web .nav-drawer > li.active > a > .mdi,
.lyear-layout-web .nav-drawer > li.open > a > .mdi { color: #3c749f; }

.lyear-layout-web .nav-subnav > li.active > a {
  color: #315f87;
  background: #f1f6fa;
}

.lyear-layout-web .table > thead > tr > th { background: #f6f8fa; }
.lyear-layout-web .table > tbody > tr:nth-child(even) > td { background: #fdfefe; }
.lyear-layout-web .table-hover > tbody > tr:hover > td { background: #f5f9fc; }

.lyear-layout-web .label,
.lyear-layout-web .badge {
  padding-right: 9px;
  padding-left: 9px;
  font-weight: 500;
}

.lyear-layout-web .alert {
  border-color: transparent;
  line-height: 1.65;
}

.owner-dashboard { max-width: 1460px; }
.owner-welcome { padding-bottom: 26px; }
.owner-welcome p { margin-top: 9px; line-height: 1.75; }
.owner-welcome-actions { margin-top: 18px; }
.owner-pending { margin-bottom: 22px; padding: 14px 16px; background: #f8fbfe; }
.owner-metric-grid { gap: 16px; margin-bottom: 24px; }
.owner-metric-card {
  min-height: 148px;
  border-color: #e5ebf1;
  box-shadow: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.owner-metric-card:hover {
  border-color: #cfdae5;
  background: #fbfcfd;
  box-shadow: none;
  transform: none;
}
.owner-metric-icon { background: #f1f5f8 !important; color: #55728d !important; }
.owner-brief-row > [class*="col-"] { margin-bottom: 18px; }
.owner-brief-card,
.owner-attention-card { box-shadow: none; }
.owner-integration-guide { margin-top: 24px; }

.dashboard-stat,
.operation-report-metrics article,
.operation-report-card,
.user-projects-page .metric-card,
.user-projects-page .soft-card {
  box-shadow: none !important;
}

.user-projects-page .row > div .metric-card { background: #fff; }
.user-projects-page .metric-card { border-top-width: 2px; }

.benefit-group-summary { gap: 14px; margin-bottom: 22px; }
.benefit-group-summary__item {
  min-height: 76px;
  border-top-width: 1px;
  background: #fff;
}
.benefit-group-summary__item--capacity,
.benefit-group-summary__item--access,
.benefit-group-summary__item--quota { background: #fff; }
.benefit-group-summary__item > i { background: #f1f5f8 !important; color: #58728a !important; }
.benefit-matrix > tbody > tr > td:first-child { border-left-width: 1px; border-left-color: transparent !important; }
.benefit-save-bar {
  margin-top: 20px;
  border-color: #e0e7ed;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -2px 10px rgba(31, 50, 73, .035);
}

@media (min-width: 768px) {
  .lyear-layout-web .responsive-action-group,
  .lyear-layout-web .table-actions { gap: 8px; }
  .lyear-layout-web .filter-toolbar,
  .lyear-layout-web .admin-filter-bar { margin-bottom: 24px !important; }
}

@media (max-width: 767px) {
  .lyear-layout-web .lyear-layout-content > .container-fluid { padding: 16px 12px 36px; }
  .lyear-layout-web .card,
  .lyear-layout-web .panel,
  .lyear-layout-web .soft-card { margin-bottom: 16px; }
  .lyear-layout-web .card-header,
  .lyear-layout-web .panel-heading,
  .lyear-layout-web .soft-card .card-header { padding: 14px 16px; }
  .lyear-layout-web .card-body { padding: 16px; }
  .lyear-layout-web .mobile-card-table > tbody { gap: 14px; }
  .lyear-layout-web .mobile-card-table > tbody > tr { box-shadow: none; }
  .lyear-layout-web .mobile-card-table > tbody > tr > td { padding-top: 11px; padding-bottom: 11px; }
  .responsive-action-group,
  .table-actions,
  .card-header-actions,
  .modal-footer { gap: 10px; }
  .filter-toolbar,
  .admin-filter-bar,
  .mobile-stack-form,
  .form-inline,
  .admin-batch-bar { gap: 12px; }
  .owner-welcome { padding-bottom: 22px; }
  .owner-welcome-actions { gap: 10px; margin-top: 16px; }
  .owner-pending { margin-bottom: 18px; padding: 13px; }
  .owner-metric-grid { gap: 12px; margin-bottom: 20px; }
  .owner-metric-card { min-height: 124px; padding: 15px; }
  .owner-brief-row > [class*="col-"] { margin-bottom: 14px; }
  .benefit-group-summary { gap: 10px; margin-bottom: 18px; }
  .benefit-save-bar { margin-top: 18px; }
}

/* Author dashboard entitlements: keep the summary card as the mobile entry. */
.quota-mobile-list,
.quota-mobile-detail-trigger { display: none; }

@media (max-width: 767px) {
  .user-shell .quota-section { margin-top: 8px; }
  .user-shell .quota-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }
  .user-shell .quota-section-head > div { min-width: 0; }
  .user-shell .quota-section-caption { line-height: 1.5; }
  .user-shell .quota-mobile-detail-trigger,
  .user-shell .quota-mobile-list { display: none; }
  .user-shell .quota-overview-card { display: block; }
  .user-shell .quota-details-modal .mobile-table-scroll { margin: 0; border-radius: 7px; }
  .user-shell .quota-details-modal .quota-details-table { min-width: 620px; }
}

/* Refined portal surfaces: borrow clarity and rhythm without copying the reference UI. */
:root {
  --gn-card-radius: 11px;
  --gn-control-radius: 8px;
  --gn-section-gap: 24px;
}

.lyear-layout-web .card,
.lyear-layout-web .panel,
.lyear-layout-web .soft-card,
.lyear-layout-web .table-responsive {
  border-radius: var(--gn-card-radius);
}

.lyear-layout-web .btn,
.lyear-layout-web .form-control,
.lyear-layout-web .input-group-addon,
.lyear-layout-web .dropdown-menu { border-radius: var(--gn-control-radius); }

.lyear-layout-web .card-header h4,
.lyear-layout-web .panel-title,
.lyear-layout-web .soft-card .card-header h4 {
  color: #263448;
  font-size: 15px;
  font-weight: 650;
}

.lyear-layout-web .table-responsive {
  overflow: auto;
  border-color: #e8edf2;
}

.lyear-layout-web .table-bordered > thead > tr > th,
.lyear-layout-web .table-bordered > tbody > tr > td {
  border-right: 0;
  border-left: 0;
}

.lyear-layout-web .table > thead > tr > th {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dce4ec;
  color: #5c6c7e;
  background: #f7f9fb;
  font-size: 12px;
}

.lyear-layout-web .table > tbody > tr > td {
  padding-top: 12px;
  padding-bottom: 12px;
  border-top-color: #edf1f4;
}

.lyear-layout-web .filter-toolbar,
.lyear-layout-web .admin-filter-bar {
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #e7ecf1;
  border-radius: 10px;
  background: #f9fbfc;
}

.lyear-layout-web .filter-toolbar .form-control,
.lyear-layout-web .admin-filter-bar .form-control { background: #fff; }

.admin-dashboard-hero .card-body { padding: 20px 22px; }
.admin-dashboard-hero .workspace-title { margin-top: 2px; font-size: 25px; }
.admin-dashboard-hero .workspace-subtitle { margin-top: 7px; line-height: 1.65; }
.admin-dashboard-hero .workspace-meta { margin-top: 12px; }
.admin-dashboard-hero .responsive-action-group { margin-top: 14px !important; }
.admin-log-filter { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.admin-log-filter .form-group { margin:0; }
.admin-log-filter .form-control { min-width:145px; }
.admin-log-filter > .m-t-10 { display:flex; flex-basis:100%; align-items:center; margin-top:8px !important; }
@media (max-width:600px) {
  .admin-log-filter { display:grid; grid-template-columns:1fr 1fr; }
  .admin-log-filter .form-group,.admin-log-filter .form-control,.admin-log-filter > .m-t-10 { min-width:0; width:100%; margin-left:0 !important; }
  .admin-log-filter > .btn,.admin-log-filter > a { width:100%; margin-left:0 !important; }
  .admin-log-filter > .m-t-10 { grid-column:1 / -1; }
  .admin-log-filter > .m-t-10 .form-control { flex:1; }
}

.admin-system-summary {
  padding: 14px 16px;
  border-color: #e5ebf0;
  border-radius: 10px;
  background: #f9fbfc;
}
.admin-system-summary__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.admin-system-summary__head strong { overflow: hidden; color: #2d3b4f; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.admin-system-summary__states { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.admin-system-summary__states > span { min-width: 0; padding: 8px 9px; border: 1px solid #e8edf2; border-radius: 8px; color: #6b7889; background: #fff; font-size: 11px; line-height: 1.45; }
.admin-system-summary__states i { margin-right: 4px; color: #668098; font-size: 14px; vertical-align: -1px; }
.admin-system-summary__states b { display: block; margin: 3px 0 0 19px; font-weight: 600; }
.admin-system-summary__rule,
.admin-system-summary__notice { margin: 10px 0 0; color: #778596; font-size: 11px; line-height: 1.55; }
.admin-system-summary__notice { overflow: hidden; margin-top: 5px; text-overflow: ellipsis; white-space: nowrap; }

.admin-shell .admin-metric-grid { margin-right: -8px; margin-left: -8px; }
.admin-shell .admin-metric-grid > [class*="col-"] { padding-right: 8px; padding-left: 8px; }
.admin-shell .admin-metric-link { min-height: 106px; border-color: #e5ebf0; }
.admin-shell .admin-metric-link .card-body { padding: 17px 18px; }
.admin-shell .admin-metric-content { align-items: center; gap: 13px; }
.admin-shell .admin-metric-visual { order: -1; flex: 0 0 auto; }
.admin-shell .admin-metric-copy { min-width: 0; flex: 1; }
.admin-shell .admin-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  opacity: .78;
}
.admin-shell .admin-metric-link .h2 { margin-top: 2px; color: #263448 !important; font-size: 24px; }
.admin-shell .admin-metric-link .metric-note { margin-top: 2px; color: #8591a0 !important; }

.admin-quick-list { display: grid; gap: 8px; }
.admin-quick-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: inherit;
  background: #f7f9fb;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.admin-quick-item:hover,
.admin-quick-item:focus { border-color: #dce5ed; color: inherit; background: #f2f6f9; text-decoration: none; }
.admin-quick-item__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; color: #217b70; background: #e1f6f1; font-size: 19px; }
.admin-quick-item__copy,
.admin-quick-item__copy strong,
.admin-quick-item__copy small { display: block; min-width: 0; }
.admin-quick-item__copy strong { color: #334155; font-size: 13px; font-weight: 600; }
.admin-quick-item__copy small { overflow: hidden; margin-top: 2px; color: #7d8998; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.admin-quick-item__arrow { color: #9aa5b2; font-size: 18px; text-align: right; }

.owner-metric-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 13px;
  align-content: center;
  min-height: 124px;
}
.owner-metric-icon { grid-row: 1 / 4; align-self: center; width: 38px; height: 38px; margin: 0; border-radius: 9px; }
.owner-metric-label,
.owner-metric-card strong,
.owner-metric-card small { grid-column: 2; }
.owner-metric-card strong { margin: 2px 0; font-size: 25px; }

@media (max-width: 991px) {
  .admin-system-summary__states { grid-template-columns: 1fr; }
  .admin-system-summary__states b { display: inline; margin-left: 5px; }
}

@media (max-width: 767px) {
  .lyear-layout-web .card,
  .lyear-layout-web .panel,
  .lyear-layout-web .soft-card,
  .lyear-layout-web .table-responsive { border-radius: 10px; }
  .lyear-layout-web .filter-toolbar,
  .lyear-layout-web .admin-filter-bar { gap: 11px; padding: 12px; }
  .admin-dashboard-hero .card-body { padding: 17px 16px; }
  .admin-dashboard-hero .workspace-title { font-size: 22px; }
  .admin-dashboard-hero .workspace-sidecard { margin-top: 14px; }
  .admin-system-summary__states { grid-template-columns: 1fr; }
  .admin-system-summary__states > span { display: flex; align-items: center; min-height: 38px; }
  .admin-system-summary__states b { margin: 0 0 0 auto; }
  .admin-shell .admin-metric-grid { margin-right: -5px; margin-left: -5px; }
  .admin-shell .admin-metric-grid > [class*="col-"] { padding-right: 5px; padding-left: 5px; }
  .admin-shell .admin-metric-link { min-height: 112px; }
  .admin-shell .admin-metric-link .card-body { padding: 14px; }
  .admin-shell .admin-metric-content { align-items: flex-start; gap: 10px; }
  .admin-shell .admin-metric-icon { width: 34px; height: 34px; border-radius: 8px; }
  .admin-shell .admin-metric-link .h2 { font-size: 22px; }
  .admin-quick-item { min-height: 60px; }
  .owner-metric-card { grid-template-columns: 34px minmax(0, 1fr); min-height: 116px; padding: 14px; column-gap: 11px; }
  .owner-metric-icon { width: 34px; height: 34px; }
  .owner-metric-card strong { font-size: 23px; }
}

@media (max-width: 374px) {
  .admin-shell .admin-metric-grid > [class*="col-"] { width: 100%; }
  .admin-shell .admin-metric-link { min-height: 92px; }
  .owner-metric-card { min-height: 96px; }
}

/* Balanced color and motion: richer accents, one predictable interaction language. */
:root {
  --gn-accent-blue: #397dcc;
  --gn-accent-teal: #169b8d;
  --gn-accent-green: #2b9b68;
  --gn-accent-amber: #d58a1f;
  --gn-accent-coral: #d45b68;
  --gn-accent-violet: #7566cf;
  --gn-motion-fast: 160ms;
  --gn-motion-base: 220ms;
  --gn-motion-ease: cubic-bezier(.2, .75, .25, 1);
}

.lyear-layout-web .btn,
.lyear-layout-web .form-control,
.lyear-layout-web .nav-drawer a,
.lyear-layout-web a.card,
.lyear-layout-web .admin-quick-item,
.lyear-layout-web .owner-metric-card {
  transition-duration: var(--gn-motion-base);
  transition-timing-function: var(--gn-motion-ease);
}

.lyear-layout-web .btn,
.lyear-layout-web a.card,
.lyear-layout-web .owner-metric-card,
.lyear-layout-web .admin-metric-link,
.lyear-layout-web .admin-quick-item {
  transform: none !important;
}

.lyear-layout-web .btn:active {
  transform: none !important;
  filter: brightness(.97);
}

.lyear-layout-web a.card:hover,
.lyear-layout-web a.card:focus,
.lyear-layout-web .owner-metric-card:hover,
.lyear-layout-web .owner-metric-card:focus {
  border-color: #cfdbe6;
  box-shadow: 0 8px 22px rgba(35, 57, 82, .075) !important;
  transform: none !important;
}

.gn-page-progress.is-visible:not(.is-done) {
  animation: gn-progress-drift 1.8s ease-in-out infinite;
  will-change: transform;
}

@media (max-width: 1024px) {
  .lyear-layout-web .lyear-layout-sidebar {
    transition-duration: var(--gn-motion-base);
    transition-timing-function: var(--gn-motion-ease);
  }
}

.lyear-layout-web .lyear-layout-content {
  background:
    linear-gradient(180deg, rgba(227, 246, 244, .46) 0, rgba(246, 248, 250, 0) 230px),
    var(--gn-bg);
}

.lyear-layout-web .card-header,
.lyear-layout-web .panel-heading,
.lyear-layout-web .soft-card .card-header {
  border-bottom-color: #e7edf2;
  background: #fcfdfe;
}

.admin-dashboard-hero {
  overflow: hidden;
  border-top: 3px solid var(--gn-accent-teal) !important;
  background: #fff;
}
.admin-dashboard-hero .workspace-kicker { color: #16877c; }

.admin-shell .admin-metric-grid > :nth-child(6n + 1) .admin-metric-link { border-top: 2px solid #70a8e5; }
.admin-shell .admin-metric-grid > :nth-child(6n + 2) .admin-metric-link { border-top: 2px solid #9a87df; }
.admin-shell .admin-metric-grid > :nth-child(6n + 3) .admin-metric-link { border-top: 2px solid #55bd82; }
.admin-shell .admin-metric-grid > :nth-child(6n + 4) .admin-metric-link { border-top: 2px solid #e7a44b; }
.admin-shell .admin-metric-grid > :nth-child(6n + 5) .admin-metric-link { border-top: 2px solid #4fb8b0; }
.admin-shell .admin-metric-grid > :nth-child(6n + 6) .admin-metric-link { border-top: 2px solid #df7b86; }

.admin-shell .admin-metric-icon.bg-primary,
.admin-shell .admin-metric-icon.bg-info { color: #2e73bf !important; background: #e6f1ff !important; }
.admin-shell .admin-metric-icon.bg-success { color: #21845c !important; background: #e1f6eb !important; }
.admin-shell .admin-metric-icon.bg-warning { color: #b97716 !important; background: #fff0d4 !important; }
.admin-shell .admin-metric-icon.bg-danger { color: #bd4553 !important; background: #ffe5e9 !important; }
.admin-shell .admin-metric-icon.bg-default { color: #6d62bd !important; background: #eeebff !important; }
.admin-shell .admin-metric-icon .mdi { color: inherit !important; }

.owner-metric-icon.is-blue { color: #3977c5 !important; background: #e7f1ff !important; }
.owner-metric-icon.is-cyan { color: #168c91 !important; background: #e2f6f6 !important; }
.owner-metric-icon.is-green { color: #25875e !important; background: #e2f6eb !important; }
.owner-metric-icon.is-amber { color: #b97918 !important; background: #fff0d5 !important; }
.owner-metric-icon.is-purple { color: #6b5dc2 !important; background: #edeaff !important; }

.owner-metric-grid > :nth-child(1) { border-top: 2px solid #72a7df; }
.owner-metric-grid > :nth-child(2) { border-top: 2px solid #51b5b8; }
.owner-metric-grid > :nth-child(3) { border-top: 2px solid #58b886; }
.owner-metric-grid > :nth-child(4) { border-top: 2px solid #dda44c; }
.owner-metric-grid > :nth-child(5) { border-top: 2px solid #9989dc; }

.admin-quick-list > :nth-child(4n + 1) .admin-quick-item__icon { color: #187f74; background: #ddf5ef; }
.admin-quick-list > :nth-child(4n + 2) .admin-quick-item__icon { color: #3975bd; background: #e5f0ff; }
.admin-quick-list > :nth-child(4n + 3) .admin-quick-item__icon { color: #aa701a; background: #fff0d6; }
.admin-quick-list > :nth-child(4n + 4) .admin-quick-item__icon { color: #6f60bd; background: #eeeaff; }

.admin-quick-item:hover,
.admin-quick-item:focus {
  border-color: #d5e1ea;
  background: #f4f8fb;
  box-shadow: 0 5px 14px rgba(35, 57, 82, .055);
}
.admin-quick-item:hover .admin-quick-item__arrow,
.admin-quick-item:focus .admin-quick-item__arrow { color: #4d789d; }

.lyear-layout-web .filter-toolbar,
.lyear-layout-web .admin-filter-bar {
  border-color: #dde7ed;
  background: #f5f9fa;
  box-shadow: inset 3px 0 0 rgba(22, 155, 141, .55);
}

.lyear-layout-web .table > thead > tr > th {
  color: #52677b;
  background: #f2f7fa;
}

.lyear-layout-web .nav-drawer > li.active > a,
.lyear-layout-web .nav-drawer > li.open > a {
  color: #176b78;
  background: #e7f6f4;
}
.lyear-layout-web .nav-drawer > li.active > a > .mdi,
.lyear-layout-web .nav-drawer > li.open > a > .mdi { color: #15978a; }
.lyear-layout-web .nav-subnav > li.active > a { color: #286c7a; background: #edf8f7; }

.workspace-hero:not(.admin-dashboard-hero),
.agent-page-banner {
  border-top: 3px solid #6b9fd2 !important;
  background: #fff;
}

.label-success,
.badge-success { border: 1px solid #c8ebdc; }
.label-info,
.badge-info,
.label-primary,
.badge-primary { border: 1px solid #cfe2f5; }
.label-warning,
.badge-warning { border: 1px solid #f1ddb4; }
.label-danger,
.badge-danger { border: 1px solid #f1ccd2; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 767px) {
  .lyear-layout-web .lyear-layout-content {
    background:
      linear-gradient(180deg, rgba(227, 246, 244, .38) 0, rgba(246, 248, 250, 0) 160px),
      var(--gn-bg);
  }
  .admin-shell .admin-metric-grid > [class*="col-"] .admin-metric-link,
  .owner-metric-grid > .owner-metric-card { border-top-width: 1px; }
  .lyear-layout-web a.card:hover,
  .lyear-layout-web a.card:focus,
  .lyear-layout-web .owner-metric-card:hover,
  .lyear-layout-web .owner-metric-card:focus,
  .admin-quick-item:hover,
  .admin-quick-item:focus { box-shadow: none !important; }
}

/* Admin log tools: isolated pages for diagnostics and destructive maintenance. */
.log-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid #e2e9ef;
  border-radius: 8px;
  background: #fff;
}
.log-page-toolbar__title strong,
.log-page-toolbar__title span { display: block; }
.log-page-toolbar__title strong { color: #263448; font-size: 14px; font-weight: 650; }
.log-page-toolbar__title span { margin-top: 2px; color: #7b8998; font-size: 12px; }
.log-page-toolbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.log-page-toolbar__actions .btn { margin: 0; }
.log-page-toolbar__actions .mdi { margin-right: 4px; }

.log-tool-page { max-width: 1440px; margin: 0 auto; }
.log-tool-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 4px 2px 0;
}
.log-tool-heading > div { min-width: 0; }
.log-tool-kicker { display: block; margin-bottom: 6px; color: #16877c; font-size: 12px; font-weight: 650; }
.log-tool-heading h1 { margin: 0; color: #1f2d3d; font-size: 25px; font-weight: 700; line-height: 1.3; }
.log-tool-heading p { max-width: 760px; margin: 7px 0 0; color: #6e7d8e; font-size: 13px; line-height: 1.7; }
.log-tool-heading > .btn { flex: 0 0 auto; margin-top: 10px; }
.log-tool-heading > .btn .mdi { margin-right: 4px; }

.log-maintenance-summary { overflow: hidden; border-top: 3px solid #55a99f !important; }
.log-maintenance-summary > .card-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  padding: 24px !important;
}
.log-maintenance-total { display: flex; flex-direction: column; justify-content: center; min-height: 102px; padding-right: 28px; border-right: 1px solid #e7edf2; }
.log-maintenance-total span { color: #657588; font-size: 13px; }
.log-maintenance-total strong { margin: 4px 0 1px; color: #1f4f59; font-size: 34px; font-weight: 700; line-height: 1.1; }
.log-maintenance-total small { color: #8a96a3; font-size: 12px; }
.log-maintenance-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.log-maintenance-count {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  min-width: 0;
  padding: 12px;
  border-left: 1px solid #e4eaef;
}
.log-maintenance-count:first-child { border-left: 0; }
.log-maintenance-count .mdi { grid-row: 1 / 3; align-self: center; color: #258579; font-size: 23px; }
.log-maintenance-count span { overflow: hidden; color: #718093; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.log-maintenance-count strong { margin-top: 3px; color: #263448; font-size: 20px; font-weight: 650; }

.log-maintenance-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.log-maintenance-scope section { padding: 18px 20px; border: 1px solid #e2e9ef; border-radius: 8px; background: #fff; }
.log-maintenance-scope h2 { margin: 0 0 8px; color: #2e3c4e; font-size: 15px; font-weight: 650; }
.log-maintenance-scope h2 .mdi { margin-right: 6px; color: #278b72; }
.log-maintenance-scope p { margin: 0; color: #6f7e8e; font-size: 13px; line-height: 1.7; }

.log-maintenance-danger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border: 1px solid #edc9cf;
  border-left: 4px solid #d45b68;
  border-radius: 8px;
  background: #fffafb;
}
.log-maintenance-danger__copy { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.log-maintenance-danger__copy > .mdi { flex: 0 0 auto; color: #c84d5c; font-size: 25px; line-height: 1; }
.log-maintenance-danger h2 { margin: 0 0 5px; color: #66333a; font-size: 15px; font-weight: 650; }
.log-maintenance-danger p { margin: 0; color: #815d62; font-size: 12px; line-height: 1.6; }
.log-maintenance-danger form { flex: 0 0 auto; margin: 0; }
.log-maintenance-danger .btn { min-width: 190px; }
.log-maintenance-danger .btn .mdi { margin-right: 4px; }

.log-user-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid #cfe3ee;
  border-radius: 8px;
  color: #486879;
  background: #f3f9fc;
  font-size: 12px;
}
.log-user-context > .mdi { color: #3d819b; font-size: 18px; }
.log-user-context a { margin-left: auto; }
.log-user-context a + a { margin-left: 0; }

.log-error-search { border-top: 3px solid #6b9fd2 !important; }
.log-error-search > .card-body { padding: 20px !important; }
.log-error-search label { display: block; margin-bottom: 8px; color: #344357; font-size: 13px; font-weight: 650; }
.log-error-search__controls { display: grid; grid-template-columns: minmax(280px, 1fr) auto auto; gap: 9px; align-items: center; }
.log-error-search__controls .form-control { min-width: 0; font-family: Consolas, Monaco, monospace; }
.log-error-search__controls .btn { min-width: 104px; }
.log-error-search__controls .btn .mdi { margin-right: 4px; }
.log-error-search__error { margin: 8px 0 0; color: #bc3f4e; font-size: 12px; }

.log-error-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 20px 2px 12px; }
.log-error-results-head h2 { margin: 0; color: #263448; font-size: 17px; font-weight: 650; }
.log-error-results-head code { display: inline-block; margin-top: 5px; color: #506477; background: transparent; font-size: 11px; }
.log-error-results-head > span { flex: 0 0 auto; color: #7d8998; font-size: 12px; }
.log-error-list { display: grid; gap: 10px; }
.log-error-item { overflow: hidden; padding: 17px 18px; border: 1px solid #e0e7ed; border-left: 3px solid #d45b68; border-radius: 8px; background: #fff; }
.log-error-item > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.log-error-item > header > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.log-error-item h3 { overflow-wrap: anywhere; margin: 0; color: #263448; font-size: 14px; font-weight: 650; line-height: 1.5; }
.log-error-item time { flex: 0 0 auto; color: #8793a1; font-size: 11px; white-space: nowrap; }
.log-error-item dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 14px 0 0; border-top: 1px solid #edf1f4; }
.log-error-item dl > div { min-width: 0; padding: 11px 14px 0 0; }
.log-error-item dt { color: #8a96a3; font-size: 10px; font-weight: 500; }
.log-error-item dd { overflow-wrap: anywhere; margin: 3px 0 0; color: #4b5b6d; font-size: 12px; line-height: 1.5; }
.log-error-item dd code { color: #3d5b72; background: #f3f6f8; }
.log-error-item__notice { margin: 12px 0 0; color: #738394; font-size: 11px; }
.log-error-item__notice .mdi { margin-right: 4px; color: #4e8ba5; }
.log-error-item details { margin-top: 12px; border-top: 1px solid #edf1f4; }
.log-error-item summary { padding-top: 11px; color: #557187; font-size: 12px; cursor: pointer; }
.log-error-item pre { max-height: 360px; margin: 10px 0 0; padding: 12px; border: 1px solid #e3e9ee; border-radius: 6px; color: #536274; background: #f7f9fb; font-size: 11px; white-space: pre-wrap; }
.log-error-empty { padding: 46px 20px; border: 1px dashed #d4dee6; border-radius: 8px; color: #718093; background: #fbfcfd; text-align: center; }
.log-error-empty .mdi { display: block; margin-bottom: 8px; color: #35a276; font-size: 31px; }
.log-error-empty strong { display: block; color: #3d4d60; font-size: 14px; }
.log-error-empty p { margin: 5px 0 0; font-size: 12px; }

@media (max-width: 1100px) {
  .log-maintenance-summary > .card-body { grid-template-columns: 170px minmax(0, 1fr); gap: 18px; }
  .log-maintenance-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-maintenance-count:nth-child(3) { border-left: 0; }
  .log-error-item dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .log-page-toolbar,
  .log-tool-heading,
  .log-maintenance-danger { align-items: stretch; flex-direction: column; }
  .log-page-toolbar__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .log-page-toolbar__actions .btn { width: 100%; }
  .log-tool-heading { gap: 12px; }
  .log-tool-heading h1 { font-size: 22px; }
  .log-tool-heading > .btn { align-self: flex-start; margin-top: 0; }
  .log-maintenance-summary > .card-body { display: block; padding: 17px !important; }
  .log-maintenance-total { min-height: 0; margin-bottom: 14px; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid #e7edf2; }
  .log-maintenance-counts { gap: 0; }
  .log-maintenance-count { padding: 11px 8px; }
  .log-maintenance-count:nth-child(odd) { border-left: 0; }
  .log-maintenance-scope { grid-template-columns: 1fr; gap: 10px; }
  .log-maintenance-scope section { padding: 15px; }
  .log-maintenance-danger form,
  .log-maintenance-danger .btn { width: 100%; }
  .log-user-context a { margin-left: 0; }
  .log-error-search > .card-body { padding: 16px !important; }
  .log-error-search__controls { grid-template-columns: 1fr 1fr; }
  .log-error-search__controls .form-control { grid-column: 1 / -1; }
  .log-error-item { padding: 15px; }
  .log-error-item > header { display: block; }
  .log-error-item > header > div { align-items: flex-start; }
  .log-error-item time { display: block; margin-top: 8px; white-space: normal; }
  .log-error-item dl { grid-template-columns: 1fr; }
}

@media (max-width: 374px) {
  .log-page-toolbar__actions,
  .log-maintenance-counts,
  .log-error-search__controls { grid-template-columns: 1fr; }
  .log-error-search__controls .form-control { grid-column: auto; }
}
.reset-overview{display:grid;grid-template-columns:44px minmax(180px,1fr) auto auto;align-items:center;gap:16px;margin:8px 0 20px;padding:16px 18px;border:1px solid #dfe5ec;border-left:3px solid #20a162;background:#fff}.reset-overview.is-empty{border-left-color:#aab3bf}.reset-overview-icon{display:flex;width:40px;height:40px;align-items:center;justify-content:center;border-radius:8px;background:#eaf7f0;color:#188457;font-size:23px}.reset-overview.is-empty .reset-overview-icon{background:#f1f3f5;color:#8b95a2}.reset-overview-copy>span{display:block;color:#7d8794;font-size:11px;font-weight:600}.reset-overview-copy strong{margin-right:10px;color:#263247;font-size:18px}.reset-overview-copy em{padding:3px 7px;border-radius:4px;background:#fff4df;color:#a86600;font-size:11px;font-style:normal}.reset-overview-copy small{color:#9099a5}.reset-overview-types{display:flex;gap:18px}.reset-overview-types span{color:#7a8491;font-size:11px}.reset-overview-types b{display:block;color:#29364b;font-size:16px}.reset-overview-link{color:#2878c8;font-weight:600;white-space:nowrap}.reset-page-head{display:flex;align-items:flex-end;justify-content:space-between;padding:6px 2px 18px;border-bottom:1px solid #e4e8ed}.reset-kicker{color:#188457;font-size:11px;font-weight:700}.reset-page-head h2{margin:4px 0 5px;font-size:24px}.reset-page-head p{margin:0;color:#7b8694}.reset-page-total{text-align:right}.reset-page-total strong{display:block;color:#188457;font-size:30px;line-height:1}.reset-page-total span{color:#7f8996;font-size:11px}.reset-tabs{display:flex;gap:24px;margin-bottom:22px;border-bottom:1px solid #e4e8ed}.reset-tabs a{padding:13px 2px 11px;color:#778290}.reset-tabs a.is-active{border-bottom:2px solid #188457;color:#243147;font-weight:600}.reset-card-section{margin-bottom:28px}.reset-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.reset-section-head h3{margin:0;font-size:16px}.reset-section-head span{color:#8a94a0;font-size:11px}.reset-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.reset-ticket{display:grid;grid-template-columns:42px minmax(0,1fr);gap:13px;padding:17px;border:1px solid #e1e6ec;border-radius:7px;background:#fff}.reset-ticket--available{border-top:2px solid #20a162}.reset-ticket-mark{display:flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:7px;background:#edf8f2;color:#188457;font-size:21px}.reset-ticket-top{display:flex;justify-content:space-between}.reset-ticket-top span{color:#188457;font-size:11px;font-weight:600}.reset-ticket-top em{color:#7e8995;font-size:10px;font-style:normal}.reset-ticket h4{margin:4px 0 5px;font-size:16px}.reset-ticket p{min-height:34px;margin:0 0 11px;color:#7b8592;font-size:12px;line-height:1.45}.reset-ticket-scope{padding:9px 10px;background:#f6f8fa}.reset-ticket-scope b,.reset-ticket-scope span{display:block;font-size:11px}.reset-ticket-scope b{margin-bottom:2px;color:#89939f}.reset-ticket-scope span{color:#344155}.reset-ticket-meta{display:flex;justify-content:space-between;margin-top:10px;color:#89939f;font-size:10px}.reset-ticket-action{grid-column:2;margin-top:1px;text-align:right}.reset-ticket-action .btn{min-width:112px}.reset-empty{display:flex;min-height:150px;align-items:center;justify-content:center;flex-direction:column;border:1px dashed #d7dde5;background:#fafbfc;color:#8b95a1}.reset-empty i{margin-bottom:7px;font-size:28px}.reset-empty strong{color:#596675}.reset-empty span{margin-top:3px;font-size:11px}.reset-empty--compact{min-height:80px}.reset-history-list{border-top:1px solid #e4e8ed}.reset-history-list>div{display:flex;justify-content:space-between;padding:12px 4px;border-bottom:1px solid #edf0f3}.reset-history-list span{color:#89939f;font-size:11px}@media(max-width:767px){.reset-overview{grid-template-columns:40px 1fr auto;gap:10px;padding:13px}.reset-overview-types{grid-column:2/4}.reset-overview-link{grid-column:3;grid-row:1}.reset-card-grid{grid-template-columns:1fr}.reset-page-head{align-items:flex-start}.reset-ticket{grid-template-columns:36px minmax(0,1fr);padding:14px}.reset-ticket-mark{width:34px;height:34px}.reset-ticket-meta{display:block}.reset-ticket-meta span{display:block;margin-top:4px}}
.mdi-refresh-circle:before{content:"\F450"}.mdi-ticket-confirmation-outline:before{content:"\F518"}.mdi-clock-outline:before{content:"\F150"}.mdi-code-json:before{content:"\F169"}.mdi-gift-outline:before{content:"\F2A1"}.mdi-lightning-bolt-outline:before{content:"\F241"}.mdi-package-variant-closed-plus:before{content:"\F3D7"}.mdi-shield-check-outline:before{content:"\F498"}
.redeem-builder .btn>.mdi,.admin-user-context .btn>.mdi,.card .btn>.mdi{display:inline-block;width:1.15em;line-height:1;vertical-align:-.08em;text-align:center}.reset-overview-icon>.mdi,.reset-ticket-mark>.mdi{display:block;line-height:1}

/* ==================================================================== *
 * 移动端 / 平板可用性收口（最终覆盖层）
 *
 * 本文件历史上采用「追加式覆盖」演进，同一断点有数十个 @media 块，
 * 同一属性被反复声明，导致前面写过的规则实际失效、难以判断最终生效值。
 * 这一段刻意放在文件末尾，作为触控可用性的**单一收口点**：
 * 后续再调整触控尺寸/字号，请改这里，不要继续在中间追加新块。
 *
 * 实测方法：node tools/audit-mobile.mjs
 * （真实 Chromium 渲染构建产物，在 320/360/375/414/768/1024 测量
 *   触控目标尺寸、输入框字号、可读性与横向溢出）
 * ==================================================================== */

/* --- 平板区间（768~1024px）------------------------------------------
 * iPad 竖屏 768、Android 平板 800 等落在这一区间。此前没有专门规则：
 * 输入框沿用 Bootstrap 的 14px，iOS Safari 聚焦时会自动放大页面。
 * 16px 是 iOS 的自动缩放阈值，必须对所有输入类控件生效。
 * 注意：本文件后段存在 `.lyear-layout-web .btn{min-height:36px}` 等
 * 规则，因此收口规则必须放在文件最末，且选择器要写到同等特异性。 */
@media (min-width: 768px) and (max-width: 1024px) {
  /* 特异性说明：文件中另有
       .lyear-layout-web .form-control { min-height: 38px; ... }
     其特异性为 (0,2,0)，高于 `input.form-control` 的 (0,1,1)。
     因此这里必须补上 .lyear-layout-web 前缀，否则 44px 不生效。 */
  .lyear-layout-web input.form-control,
  .lyear-layout-web select.form-control,
  .lyear-layout-web textarea.form-control,
  .lyear-layout-web .input-group .form-control,
  .lyear-layout-web input[type="date"],
  .lyear-layout-web input[type="datetime-local"],
  .lyear-layout-web input[type="time"],
  .lyear-layout-web input[type="month"],
  .lyear-layout-web input[type="number"] {
    font-size: 16px;
    min-height: 44px;
  }

  /* 状态标签可读性：Bootstrap 的 .label 为 font-size:75%（相对父级 14px
     约 10.5px），在平板上偏小，统一提升到 12px。 */
  .label,
  .badge {
    font-size: 12px;
  }
}

/* 平板触控目标：仅在真实触控设备上放大，桌面鼠标环境保持紧凑排版。
   pointer:coarse 让 768~1024px 的桌面窄窗口不受影响。 */
@media (min-width: 768px) and (max-width: 1024px) and (pointer: coarse) {
  .lyear-layout-web .btn,
  .lyear-layout-web button.btn,
  .lyear-layout-web a.btn,
  .lyear-layout-web input.btn,
  .lyear-layout-web .btn-xs,
  .lyear-layout-web .btn-sm,
  .lyear-layout-web .table-actions .btn,
  .lyear-layout-web .table-actions-cell .btn {
    min-height: 44px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .lyear-aside-toggler,
  .close {
    min-width: 44px;
    min-height: 44px;
  }

  /* 触控设备上的复选框同样需要可点按面积（浏览器默认约 13x13）。 */
  input[type="checkbox"]:not(.gn-no-touch-resize),
  input[type="radio"]:not(.gn-no-touch-resize) {
    width: 24px;
    height: 24px;
    margin-top: 0;
    vertical-align: middle;
  }

  .pagination > li > a,
  .pagination > li > span {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  /* --- 触控目标 -----------------------------------------------------
   * WCAG 2.2 建议触控目标不小于 44x44 CSS px。
   * 此前 .btn-xs/.btn-sm 实测仅 38~42px，表格行内操作按钮是点击最频繁的
   * 目标，偏小会导致误触（尤其是「封禁/删除」这类破坏性操作）。
   *
   * 注意特异性：后面还有一条
   *   .lyear-layout-web .btn, .lyear-layout-web button.btn,
   *   .lyear-layout-web a.btn, .lyear-layout-web input.btn { min-height:42px }
   * 其特异性为 (0,3,0)，高于 .lyear-layout-web .btn 的 (0,2,0)。
   * 因此这里必须用同样写成 button.btn / a.btn 的形式提升特异性，
   * 否则 min-height 会被那条 42px 覆盖（只加 padding 是无效的）。
   * 实测方法：node tools/audit-mobile.mjs。 */
  .lyear-layout-web .btn,
  .lyear-layout-web button.btn,
  .lyear-layout-web a.btn,
  .lyear-layout-web input.btn,
  .lyear-layout-web .btn-xs,
  .lyear-layout-web .btn-sm,
  .lyear-layout-web .table-actions .btn,
  .lyear-layout-web .table-actions-cell .btn,
  .lyear-layout-web .responsive-action-group .btn {
    min-height: 44px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  /* 分页是列表页最高频的导航控件，原 36x38 偏小。 */
  .pagination > li > a,
  .pagination > li > span {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
  }

  /* 主触控入口：汉堡菜单按钮（原 38x38，实测最小）。 */
  .lyear-aside-toggler {
    min-width: 44px;
    min-height: 44px;
  }

  /* 弹窗/提示关闭按钮（原 36x36）。 */
  .close {
    min-width: 44px;
    min-height: 44px;
    opacity: 1;
  }

  /* --- 复选框 -------------------------------------------------------
   * 浏览器默认复选框约 13x13，触控很难点中。
   * 卡片模式下此前已放大到 24px，这里覆盖全站（筛选栏、批量选择、
   * 独立表单等非卡片场景），保证一致的可点按面积。 */
  input[type="checkbox"]:not(.gn-no-touch-resize),
  input[type="radio"]:not(.gn-no-touch-resize) {
    width: 24px;
    height: 24px;
    margin-top: 0;
    vertical-align: middle;
  }

  /* --- 卡片模式的「全选」条 -----------------------------------------
   * 表头在卡片模式下被视觉隐藏，表头里的全选复选框会一起消失。
   * mobile-ui.js 的 promoteSelectAll() 会把全选搬到表格前方这一个可见条里，
   * 这里只负责它的外观与触控尺寸。 */
  .gn-mobile-select-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid var(--gn-border, #e2e7ee);
    border-radius: 8px;
    background: var(--gn-surface-subtle, #f8fafc);
  }

  .gn-mobile-select-all__label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    min-height: 44px;
    font-weight: 600;
    cursor: pointer;
    /* 覆盖上面统一的 24px：这里整行都是点击区域，复选框本身可保持常规尺寸 */
  }

  .gn-mobile-select-all__label .gn-mobile-select-all__box {
    width: 24px;
    height: 24px;
    margin: 0;
    flex: 0 0 auto;
  }

  .gn-mobile-select-all__count {
    color: var(--gn-text-muted, #687384);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
  }

  /* --- 可读性 -------------------------------------------------------
   * 低于 12px 的正文级文字在手机上难以辨认。
   * 仅提升承载业务信息的文本，纯装饰性角标维持原样。 */  .label,
  .badge,
  .metric-note,
  .user-redemption-status,
  .quota-overview-foot,
  .owner-metric-card small,
  .admin-metric-link .metric-note,
  .user-projects-page .metric-note,
  .agent-directory-nav__item small,
  .sidebar-quota__meta,
  .sidebar-quota__head button,
  .log-error-item dt {
    font-size: 12px;
  }

  /* 品牌副标题（原 8px）与法务页脚（原 9px）：至少可辨认。 */
  .brand-lockup--sidebar small,
  .legal-document-brand small {
    font-size: 11px;
  }

  /* --- 输入类控件尺寸 -----------------------------------------------
   * 与 768~1024px 规则取值一致，避免跨断点跳变；16px 是 iOS 自动缩放阈值。
   * 同样需要 .lyear-layout-web 前缀来胜过 .lyear-layout-web .form-control
   * 的 (0,2,0) 特异性。 */
  .lyear-layout-web input.form-control,
  .lyear-layout-web select.form-control,
  .lyear-layout-web textarea.form-control,
  .lyear-layout-web .input-group .form-control {
    font-size: 16px;
    min-height: 44px;
  }
}

