/* Desktop signed-in visual system v9. Mobile layouts remain owned by styles.css. */
@media (min-width: 1081px) {
  body:not(.is-logged-out) {
    overflow-x: hidden;
    background:
      radial-gradient(circle at 78% -8%, rgba(24, 161, 148, 0.09), transparent 31%),
      radial-gradient(circle at 4% 92%, rgba(223, 177, 91, 0.07), transparent 24%),
      #f3f7f6;
    color: #172d30;
  }

  body:not(.is-logged-out) .app-shell {
    grid-template-columns: 268px minmax(0, 1fr);
  }

  body:not(.is-logged-out) .sidebar {
    gap: 24px;
    border-right: 1px solid rgba(31, 72, 72, 0.08);
    background:
      radial-gradient(circle at 0 0, rgba(31, 174, 159, 0.1), transparent 210px),
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 250, 0.98));
    padding: 24px 18px 20px;
    box-shadow: 14px 0 35px rgba(27, 64, 64, 0.035);
  }

  body:not(.is-logged-out) .brand {
    min-height: 62px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.62);
    padding: 8px 10px;
    box-shadow: 0 10px 26px rgba(28, 68, 68, 0.055);
  }

  body:not(.is-logged-out) .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: linear-gradient(145deg, #075f59, #19a095);
    box-shadow: 0 11px 24px rgba(8, 103, 96, 0.21), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  body:not(.is-logged-out) .brand-copy h1 {
    color: #183437;
    font-size: 18px;
    letter-spacing: -0.02em;
  }

  body:not(.is-logged-out) .brand-copy p {
    color: #849391;
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  body:not(.is-logged-out) .nav-tabs {
    display: grid;
    gap: 8px;
  }

  body:not(.is-logged-out) .nav-tab {
    position: relative;
    min-height: 47px;
    justify-content: flex-start;
    gap: 12px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    color: #526668;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 800;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
  }

  body:not(.is-logged-out) .nav-tab::after {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #0f8178;
    content: "";
    opacity: 0;
    transform: scaleY(0.45);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body:not(.is-logged-out) .nav-tab:hover {
    background: rgba(238, 247, 245, 0.72);
    color: #245052;
    transform: translateX(2px);
  }

  body:not(.is-logged-out) .nav-tab.active {
    border-color: rgba(15, 129, 120, 0.11);
    background: linear-gradient(105deg, #e8f6f3, rgba(255, 255, 255, 0.94));
    color: #096b64;
    box-shadow: 0 10px 24px rgba(26, 75, 72, 0.08);
  }

  body:not(.is-logged-out) .nav-tab.active::after {
    opacity: 1;
    transform: scaleY(1);
  }

  body:not(.is-logged-out) .nav-dot {
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 5px rgba(77, 110, 107, 0.055);
  }

  body:not(.is-logged-out) .sidebar-summary {
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 21px;
    background:
      radial-gradient(circle at 92% 8%, rgba(255, 225, 159, 0.29), transparent 70px),
      linear-gradient(145deg, #075e59, #118b82);
    color: #ffffff;
    padding: 18px;
    box-shadow: 0 18px 38px rgba(7, 94, 89, 0.19);
  }

  body:not(.is-logged-out) .sidebar-summary span {
    color: rgba(255, 255, 255, 0.65);
  }

  body:not(.is-logged-out) .sidebar-summary strong {
    color: #ffffff;
    font-size: 30px;
  }

  body:not(.is-logged-out) .main-panel {
    max-width: none;
    padding: 20px 28px 42px;
  }

  body:not(.is-logged-out) .topbar {
    position: sticky;
    top: 14px;
    z-index: 12;
    align-items: center;
    min-height: 76px;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    padding: 11px 13px 11px 22px;
    box-shadow: 0 16px 40px rgba(28, 68, 68, 0.075), inset 0 1px 0 #ffffff;
    backdrop-filter: blur(18px);
  }

  body:not(.is-logged-out) .title-block {
    display: grid;
    height: 56px;
    align-content: center;
  }

  body:not(.is-logged-out) .title-block .eyebrow {
    color: #a17122;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.13em;
  }

  body:not(.is-logged-out) .title-block h2 {
    margin-top: 3px;
    color: #153235;
    font-size: 25px;
    letter-spacing: -0.035em;
  }

  body:not(.is-logged-out) .topbar-controls {
    height: 56px;
    box-sizing: border-box;
    border: 1px solid #e6eeec;
    border-radius: 16px;
    background: rgba(247, 250, 249, 0.88);
    padding: 6px;
  }

  body:not(.is-logged-out) .topbar-employee-picker select {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 5px 14px rgba(28, 68, 68, 0.045);
  }

  body:not(.is-logged-out) .current-user {
    min-height: 42px;
    border-radius: 12px;
    background: #e8f5f2;
  }

  body:not(.is-logged-out) .logout-button {
    min-height: 42px;
    border-radius: 12px;
    background: #ffffff;
  }

  body:not(.is-logged-out) .view.active {
    animation: desktopModuleEnter 260ms ease-out both;
  }

  body:not(.is-logged-out) .panel {
    border: 1px solid rgba(223, 234, 231, 0.9);
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 13px 34px rgba(28, 68, 68, 0.065);
  }

  body:not(.is-logged-out) .section-heading h3,
  body:not(.is-logged-out) .grant-heading h3,
  body:not(.is-logged-out) .mall-title-block h3 {
    color: #193638;
    letter-spacing: -0.025em;
  }

  body:not(.is-logged-out) .section-heading p,
  body:not(.is-logged-out) .grant-heading p,
  body:not(.is-logged-out) .mall-title-block p {
    color: #839391;
  }

  body:not(.is-logged-out) .field > span,
  body:not(.is-logged-out) .field legend {
    color: #5d7373;
    font-size: 11px;
    font-weight: 900;
  }

  body:not(.is-logged-out) input,
  body:not(.is-logged-out) select,
  body:not(.is-logged-out) textarea {
    border-color: #dfe9e7;
    border-radius: 13px;
    background-color: #f8faf9;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }

  body:not(.is-logged-out) input:focus,
  body:not(.is-logged-out) select:focus,
  body:not(.is-logged-out) textarea:focus {
    border-color: #58afa6;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 129, 120, 0.09);
    outline: 0;
  }

  body:not(.is-logged-out) .primary-button {
    border-radius: 12px;
    background: linear-gradient(135deg, #086961, #16988d);
    box-shadow: 0 10px 20px rgba(8, 105, 97, 0.17);
  }

  body:not(.is-logged-out) .secondary-button {
    border-color: #dbe6e4;
    border-radius: 12px;
    background: #ffffff;
    color: #34595a;
  }

  body:not(.is-logged-out) .secondary-button:hover:not(:disabled) {
    border-color: #9bcfc9;
    background: #f2faf8;
    color: #0d756d;
  }

  body:not(.is-logged-out) .danger-button {
    border-radius: 12px;
  }

  /* Employee query */
  body:not(.is-logged-out) #queryView > .two-column {
    grid-template-columns: minmax(410px, 0.82fr) minmax(570px, 1.18fr);
    gap: 20px;
  }

  body:not(.is-logged-out) #queryView > .two-column > .panel:first-child {
    overflow: hidden;
    padding: 22px;
  }

  body:not(.is-logged-out) #queryView > .two-column > .panel:first-child .section-heading {
    margin: -22px -22px 18px;
    background:
      radial-gradient(circle at 92% 0, rgba(51, 183, 168, 0.17), transparent 120px),
      linear-gradient(145deg, #f7fcfb, #edf8f6);
    padding: 22px;
  }

  body:not(.is-logged-out) #queryView .search-field input {
    min-height: 48px;
    padding-left: 15px;
  }

  body:not(.is-logged-out) #queryView .employee-list {
    gap: 8px;
    margin-top: 15px;
  }

  body:not(.is-logged-out) #queryView .employee-card {
    min-height: 69px;
    border: 1px solid #e4ecea;
    border-radius: 17px;
    background: linear-gradient(105deg, #ffffff, #fafcfc);
    padding: 10px 12px;
    box-shadow: 0 6px 16px rgba(28, 68, 68, 0.035);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  body:not(.is-logged-out) #queryView .employee-card:hover {
    border-color: #abd6d1;
    box-shadow: 0 10px 23px rgba(28, 80, 76, 0.075);
    transform: translateY(-1px);
  }

  body:not(.is-logged-out) #queryView .employee-card.active {
    border-color: #178d83;
    background: linear-gradient(105deg, #e9f7f4, #f8fcfb);
    box-shadow: 0 10px 25px rgba(14, 120, 111, 0.12);
  }

  body:not(.is-logged-out) #queryView .employee-card .avatar {
    border-radius: 15px;
    background: linear-gradient(145deg, #e8f2f1, #f5f8f8);
    color: #2f5456;
  }

  body:not(.is-logged-out) #queryView .points-chip {
    border: 0;
    border-radius: 999px;
    background: #f0f4f5;
    color: #213a51;
    padding: 8px 13px;
  }

  body:not(.is-logged-out) #queryView .employee-card.active .points-chip {
    background: #ffffff;
    color: #08746c;
  }

  body:not(.is-logged-out) #queryView .employee-pagination {
    margin-top: 15px;
    border: 0;
    border-radius: 15px;
    background: #f5f8f7;
    padding: 8px;
  }

  body:not(.is-logged-out) #queryView .profile-panel {
    overflow: hidden;
    background:
      radial-gradient(circle at 94% 0, rgba(223, 177, 91, 0.14), transparent 170px),
      linear-gradient(155deg, #ffffff, #f8fbfa);
    padding: 24px;
  }

  body:not(.is-logged-out) #queryView .profile-header {
    border: 1px solid #e5eeec;
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.78);
    padding: 14px;
    box-shadow: 0 8px 20px rgba(28, 68, 68, 0.045);
  }

  body:not(.is-logged-out) #queryView .metric-grid {
    gap: 10px;
    margin-top: 15px;
  }

  body:not(.is-logged-out) #queryView .metric {
    min-height: 100px;
    border: 1px solid #e6eeec;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    padding: 16px;
  }

  body:not(.is-logged-out) #queryView .metric:first-child {
    background: linear-gradient(145deg, #096b64, #15978c);
  }

  body:not(.is-logged-out) #queryView .metric:first-child span,
  body:not(.is-logged-out) #queryView .metric:first-child strong {
    color: #ffffff;
  }

  body:not(.is-logged-out) #queryView .profile-rank-item,
  body:not(.is-logged-out) #queryView .history-item {
    border-color: #e7eeed;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
  }

  body:not(.is-logged-out) #queryView .progress-block {
    border: 1px solid #e5edeb;
    border-radius: 17px;
    background: #f5f9f8;
    padding: 15px;
  }

  /* Grant workbench */
  body:not(.is-logged-out) #grantView .grant-workbench {
    width: 100%;
    min-height: 1020px;
    overflow: hidden;
    grid-template-columns: minmax(620px, 1.42fr) minmax(390px, 0.72fr);
    margin-inline: 0;
    border: 0;
    border-radius: 25px;
    box-shadow: 0 17px 43px rgba(28, 68, 68, 0.085);
  }

  body:not(.is-logged-out) #grantView .grant-panel {
    display: flex;
    min-height: 1020px;
    flex-direction: column;
    background: #ffffff;
    padding: 24px;
  }

  body:not(.is-logged-out) #grantView .grant-heading {
    margin: -24px -24px 17px;
    background:
      radial-gradient(circle at 92% 0, rgba(46, 176, 160, 0.16), transparent 150px),
      linear-gradient(145deg, #f8fcfb, #eff8f6);
    padding: 23px 25px;
  }

  body:not(.is-logged-out) #grantView .grant-heading-icon {
    border-radius: 16px;
    background: linear-gradient(145deg, #0a6e66, #18a095);
    box-shadow: 0 11px 24px rgba(10, 110, 102, 0.18);
  }

  body:not(.is-logged-out) #grantView .grant-form {
    flex: 1;
    grid-template-rows: auto auto minmax(250px, 1fr) auto;
    gap: 18px;
    padding: 20px 20px 24px;
  }

  body:not(.is-logged-out) #grantView .grant-form-section {
    --grant-section-accent: #15988d;
    --grant-section-soft: rgba(21, 152, 141, 0.09);
    position: relative;
    overflow: hidden;
    border: 1px solid #dce9e6;
    border-radius: 21px;
    background:
      radial-gradient(circle at 100% 0, var(--grant-section-soft), transparent 175px),
      linear-gradient(145deg, #ffffff, #f8fbfa);
    padding: 20px 21px 22px;
    box-shadow: 0 10px 26px rgba(35, 80, 76, 0.055), inset 0 1px 0 #ffffff;
  }

  body:not(.is-logged-out) #grantView .grant-form-section:nth-of-type(2) {
    --grant-section-accent: #4a9170;
    --grant-section-soft: rgba(74, 145, 112, 0.09);
  }

  body:not(.is-logged-out) #grantView .grant-form-section:nth-of-type(3) {
    --grant-section-accent: #4a9170;
    --grant-section-soft: rgba(74, 145, 112, 0.09);
  }

  body:not(.is-logged-out) #grantView .grant-form-section::before {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 4px;
    border-radius: 0 8px 8px 0;
    background: linear-gradient(180deg, var(--grant-section-accent), color-mix(in srgb, var(--grant-section-accent) 45%, white));
    content: "";
  }

  body:not(.is-logged-out) #grantView .grant-form-section:nth-of-type(3) {
    display: flex;
    flex-direction: column;
  }

  body:not(.is-logged-out) #grantView .grant-form-section:nth-of-type(3) .grant-detail-grid {
    flex: 1;
    grid-template-rows: auto minmax(130px, 1fr);
  }

  body:not(.is-logged-out) #grantView .grant-form-section:nth-of-type(3) .full-span {
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr);
  }

  body:not(.is-logged-out) #grantView .grant-form-section:nth-of-type(3) textarea {
    height: 100%;
    min-height: 170px;
  }

  body:not(.is-logged-out) #grantView .grant-section-heading > span {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border: 1px solid color-mix(in srgb, var(--grant-section-accent) 18%, white);
    border-radius: 12px;
    background: color-mix(in srgb, var(--grant-section-accent) 10%, white);
    color: var(--grant-section-accent);
    box-shadow: 0 5px 13px var(--grant-section-soft);
  }

  body:not(.is-logged-out) #grantView .grant-section-heading strong {
    color: #173c3a;
    font-size: 15px;
    letter-spacing: -0.01em;
  }

  body:not(.is-logged-out) #grantView .grant-section-heading small {
    margin-top: 3px;
    color: #718783;
    line-height: 1.45;
  }

  body:not(.is-logged-out) #grantView .grant-section-grid,
  body:not(.is-logged-out) #grantView .grant-detail-grid {
    gap: 16px;
    margin-top: 16px;
  }

  body:not(.is-logged-out) #grantView .grant-form .field > span,
  body:not(.is-logged-out) #grantView .grant-form fieldset.field > legend {
    color: #58736f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.015em;
  }

  body:not(.is-logged-out) #grantView .grant-form select,
  body:not(.is-logged-out) #grantView .grant-form input,
  body:not(.is-logged-out) #grantView .grant-form textarea {
    min-height: 48px;
    border-color: #d7e5e2;
    border-radius: 13px;
    background-color: rgba(255, 255, 255, 0.94);
    color: #183936;
    box-shadow: 0 5px 15px rgba(35, 77, 73, 0.04), inset 0 1px 0 #ffffff;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  }

  body:not(.is-logged-out) #grantView .grant-form select:focus,
  body:not(.is-logged-out) #grantView .grant-form input:focus,
  body:not(.is-logged-out) #grantView .grant-form textarea:focus {
    border-color: #6bc0b7;
    outline: 0;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(35, 161, 149, 0.1), 0 8px 18px rgba(35, 89, 83, 0.06);
  }

  body:not(.is-logged-out) #grantView .grant-form textarea {
    padding: 14px 15px;
    line-height: 1.7;
  }

  body:not(.is-logged-out) #grantView .segmented {
    gap: 7px;
    border: 1px solid #dbe8e5;
    border-radius: 13px;
    background: #edf5f3;
    padding: 4px;
  }

  body:not(.is-logged-out) #grantView .segmented span {
    min-height: 40px;
    border-color: transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.68);
    color: #45645f;
  }

  body:not(.is-logged-out) #grantView .segmented input:checked + span {
    border-color: transparent;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff, #f4fbf9);
    color: #08756d;
    box-shadow: 0 7px 17px rgba(29, 75, 72, 0.11), inset 0 -2px 0 rgba(24, 159, 146, 0.12);
  }

  body:not(.is-logged-out) #grantView .grant-form-footer {
    border: 1px solid #dce9e6;
    border-radius: 17px;
    background: linear-gradient(145deg, #fbfdfc, #f3f9f7);
    padding: 14px 16px;
  }

  body:not(.is-logged-out) #grantView .grant-preview-panel {
    border-left: 1px solid #d9eae7;
    background:
      radial-gradient(circle at 100% 0, rgba(238, 197, 112, 0.16), transparent 235px),
      radial-gradient(circle at 0 42%, rgba(44, 177, 163, 0.11), transparent 260px),
      linear-gradient(165deg, #f4fbf9 0%, #eaf6f3 55%, #f8fcfb 100%);
  }

  body:not(.is-logged-out) #grantView .grant-preview-content {
    overflow: hidden;
    margin: 16px 16px 12px;
    border: 1px solid rgba(205, 228, 224, 0.95);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 15px 34px rgba(31, 80, 75, 0.09), inset 0 1px 0 #ffffff;
    backdrop-filter: blur(12px);
  }

  body:not(.is-logged-out) #grantView .grant-preview-heading {
    position: relative;
    height: 91px;
    border-bottom: 1px solid #d5e9e5;
    background:
      radial-gradient(circle at 90% 10%, rgba(235, 193, 105, 0.19), transparent 105px),
      linear-gradient(135deg, #ddf2ee, #f5faf8);
    color: #173f3c;
    padding-inline: 21px;
  }

  body:not(.is-logged-out) #grantView .grant-preview-heading::before {
    position: absolute;
    top: 0;
    right: 22px;
    left: 22px;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, #15988d, #7bc8b8 66%, #d9ad58);
    content: "";
  }

  body:not(.is-logged-out) #grantView .grant-preview-heading span {
    color: #5e7d79;
  }

  body:not(.is-logged-out) #grantView .grant-preview-heading em {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-color: #b8ddd7;
    background: rgba(255, 255, 255, 0.78);
    color: #0b756d;
    padding: 6px 10px;
    box-shadow: 0 5px 13px rgba(38, 104, 96, 0.06);
  }

  body:not(.is-logged-out) #grantView .grant-preview-heading em::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2aab9e;
    box-shadow: 0 0 0 4px rgba(42, 171, 158, 0.11);
    content: "";
  }

  body:not(.is-logged-out) #grantView .grant-preview-person {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 13px;
    margin: 16px 17px 0;
    border: 1px solid #e0ece9;
    border-radius: 17px;
    background: linear-gradient(145deg, #ffffff, #f5faf8);
    padding: 12px;
  }

  body:not(.is-logged-out) #grantView .grant-preview-person > .grant-preview-avatar {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    background: linear-gradient(145deg, #0f8178, #27aa9d);
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(7, 82, 75, 0.16);
    box-shadow: 0 10px 20px rgba(15, 129, 120, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }

  body:not(.is-logged-out) #grantView .grant-preview-person strong,
  body:not(.is-logged-out) #grantView .grant-preview-details strong,
  body:not(.is-logged-out) #grantView .grant-process-heading strong,
  body:not(.is-logged-out) #grantView .grant-process-list strong {
    color: #1c3f3c;
  }

  body:not(.is-logged-out) #grantView .grant-preview-person div > span,
  body:not(.is-logged-out) #grantView .grant-preview-details span,
  body:not(.is-logged-out) #grantView .grant-process-list small {
    color: #6a817e;
  }

  body:not(.is-logged-out) #grantView .grant-preview-person strong {
    font-size: 17px;
    letter-spacing: -0.015em;
  }

  body:not(.is-logged-out) #grantView .grant-balance-flow {
    margin: 12px 17px 0;
    border: 1px solid #dce9e6;
    border-radius: 17px;
    background:
      radial-gradient(circle at 50% 0, rgba(47, 174, 160, 0.1), transparent 90px),
      #f8fbfa;
    padding: 15px 16px;
    box-shadow: inset 0 1px 0 #ffffff;
  }

  body:not(.is-logged-out) #grantView .grant-balance-flow strong {
    color: #173b39;
    font-size: 23px;
    letter-spacing: -0.02em;
  }

  body:not(.is-logged-out) #grantView .grant-flow-arrow {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #d7e8e4;
    border-radius: 50%;
    background: #ffffff;
    color: #44a99f;
    font-size: 17px;
    box-shadow: 0 5px 12px rgba(37, 94, 88, 0.07);
  }

  body:not(.is-logged-out) #grantView .grant-delta-card {
    margin: 11px 17px 0;
    border: 1px solid rgba(101, 200, 148, 0.28);
    border-radius: 17px;
    background: linear-gradient(135deg, #e8faf0, #f4fcf7);
    padding: 15px 16px;
    box-shadow: 0 8px 18px rgba(35, 132, 84, 0.07), inset 0 1px 0 #ffffff;
  }

  body:not(.is-logged-out) #grantView .grant-delta-card > strong {
    font-size: 27px;
    letter-spacing: -0.025em;
  }

  body:not(.is-logged-out) #grantView .grant-delta-deduct {
    border-color: rgba(231, 111, 129, 0.25);
    background: linear-gradient(135deg, #fff0f2, #fff8f8);
  }

  body:not(.is-logged-out) #grantView .grant-preview-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 12px 17px 0;
    border: 0;
  }

  body:not(.is-logged-out) #grantView .grant-preview-details > div {
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 70px;
    border: 1px solid #e0ebe9;
    border-radius: 14px;
    background: #ffffff;
    padding: 11px 12px;
  }

  body:not(.is-logged-out) #grantView .grant-preview-details strong {
    max-width: none;
    text-align: left;
  }

  body:not(.is-logged-out) #grantView .grant-preview-details > div + div,
  body:not(.is-logged-out) #grantView .grant-process-heading {
    border-color: #dce9e7;
  }

  body:not(.is-logged-out) #grantView .grant-preview-details > div + div {
    border-top: 1px solid #e0ebe9;
  }

  body:not(.is-logged-out) #grantView .grant-preview-tip {
    align-items: center;
    margin: 12px 17px 17px;
    border: 1px solid #dcebe7;
    border-radius: 14px;
    background: linear-gradient(135deg, #f2faf8, #f8fcfb);
    padding: 11px 12px;
  }

  body:not(.is-logged-out) #grantView .grant-preview-tip > span {
    background: #def4ef;
    box-shadow: 0 4px 11px rgba(31, 140, 126, 0.1);
  }

  body:not(.is-logged-out) #grantView .grant-process-heading span {
    color: #0d7b72;
  }

  body:not(.is-logged-out) #grantView .grant-preview-process {
    display: flex;
    min-height: 320px;
    flex: 1;
    flex-direction: column;
    margin: 0 16px 16px;
    border-color: #d4e6e2;
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.88);
    padding: 15px;
    box-shadow: 0 13px 28px rgba(31, 82, 77, 0.085), inset 0 1px 0 #ffffff;
    backdrop-filter: blur(10px);
  }

  body:not(.is-logged-out) #grantView .grant-process-list {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 10px;
    flex: 1;
    margin-top: 12px;
  }

  body:not(.is-logged-out) #grantView .grant-process-list > div {
    position: relative;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    border: 1px solid #e1ece9;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f6faf9);
    padding: 13px 14px;
    box-shadow: 0 7px 17px rgba(31, 82, 77, 0.045), inset 0 1px 0 #ffffff;
  }

  body:not(.is-logged-out) #grantView .grant-process-list > div:nth-child(2) {
    background: linear-gradient(145deg, #ffffff, #f3faf7);
  }

  body:not(.is-logged-out) #grantView .grant-process-list > div:nth-child(3) {
    background: linear-gradient(145deg, #fffefb, #f8faf5);
  }

  body:not(.is-logged-out) #grantView .grant-process-list > div > span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(145deg, #dff3ef, #edf9f6);
    color: #0d7b72;
    box-shadow: 0 5px 12px rgba(27, 126, 114, 0.09);
  }

  body:not(.is-logged-out) #grantView .grant-process-list strong {
    font-size: 12px;
    line-height: 1.35;
  }

  body:not(.is-logged-out) #grantView .grant-process-list small {
    margin-top: 4px;
    font-size: 10.5px;
    line-height: 1.35;
  }

  body:not(.is-logged-out) #grantView .grant-preview-actions {
    border-top-color: #d9e9e6;
    background: rgba(255, 255, 255, 0.88);
  }

  /* Rules */
  body:not(.is-logged-out) #rulesView .rules-toolbar {
    overflow: hidden;
    background:
      radial-gradient(circle at 88% 0, rgba(255, 220, 147, 0.17), transparent 180px),
      linear-gradient(145deg, #ffffff, #f4faf8);
    padding: 15px 18px;
  }

  body:not(.is-logged-out) #rulesView .rule-summary {
    gap: 10px;
  }

  body:not(.is-logged-out) #rulesView .rule-summary-item {
    border: 1px solid #e2ece9;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 14px;
  }

  body:not(.is-logged-out) #rulesView .rules-filters,
  body:not(.is-logged-out) #rewardsView .mall-filters {
    gap: 13px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    padding: 15px;
  }

  body:not(.is-logged-out) #rulesView .rules-filters {
    margin-bottom: 12px;
    border-radius: 17px;
    padding: 11px 13px;
  }

  body:not(.is-logged-out) #rulesView .rules-filters input,
  body:not(.is-logged-out) #rulesView .rules-filters select,
  body:not(.is-logged-out) #rulesView .rules-filters button {
    min-height: 40px;
  }

  body:not(.is-logged-out) #rulesView .rules-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 13px;
  }

  body:not(.is-logged-out) #rulesView .rule-card {
    position: relative;
    grid-template-rows: auto auto minmax(48px, auto) minmax(0, 1fr) auto;
    align-content: stretch;
    gap: 12px;
    overflow: hidden;
    min-height: 370px;
    border: 1px solid #e0ebe8;
    border-radius: 18px;
    background:
      radial-gradient(circle at 100% 0, rgba(38, 170, 154, 0.1), transparent 130px),
      #ffffff;
    padding: 19px 20px 18px;
    box-shadow: 0 12px 29px rgba(27, 68, 66, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }

  body:not(.is-logged-out) #rulesView .rule-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #0e7a72, #4cbcaf, #dfb461);
    content: "";
  }

  body:not(.is-logged-out) #rulesView .rule-card:hover {
    border-color: #b9dcd7;
    box-shadow: 0 18px 38px rgba(27, 80, 75, 0.11);
    transform: translateY(-3px);
  }

  body:not(.is-logged-out) #rulesView .rule-category {
    border-radius: 999px;
    background: #e9f6f3;
    color: #0d776f;
    padding: 5px 9px;
    font-size: 11px;
  }

  body:not(.is-logged-out) #rulesView .rule-card-topline strong {
    font-size: 22px;
  }

  body:not(.is-logged-out) #rulesView .rule-card h3 {
    font-size: 17px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  body:not(.is-logged-out) #rulesView .rule-card > p {
    font-size: 13px;
    line-height: 1.58;
    overflow-wrap: anywhere;
  }

  body:not(.is-logged-out) #rulesView .rule-detail-list {
    align-content: start;
    gap: 8px;
    border-radius: 12px;
    padding: 2px 0;
  }

  body:not(.is-logged-out) #rulesView .rule-detail-list > div {
    border-top: 0;
    border-radius: 10px;
    background: #f6f9f8;
    min-height: 49px;
    padding: 9px 10px;
  }

  body:not(.is-logged-out) #rulesView .rule-detail-list span {
    font-size: 10px;
  }

  body:not(.is-logged-out) #rulesView .rule-detail-list strong {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.42;
    overflow-wrap: anywhere;
  }

  body:not(.is-logged-out) #rulesView .rule-card > .secondary-button {
    min-height: 40px;
    margin-top: auto;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 13px;
  }

  /* Mall */
  body:not(.is-logged-out) #rewardsView .mall-toolbar {
    overflow: hidden;
    border: 1px solid #dbece9;
    min-height: 132px;
    grid-template-columns: minmax(280px, 0.8fr) minmax(570px, 1.2fr);
    gap: clamp(24px, 3vw, 46px);
    background:
      radial-gradient(circle at 91% 0, rgba(243, 196, 102, 0.25), transparent 195px),
      radial-gradient(circle at 4% 100%, rgba(69, 180, 165, 0.15), transparent 180px),
      linear-gradient(135deg, #f7fcfb 0%, #eaf7f4 58%, #fffaf0 100%);
    padding: 22px 26px;
    color: #173e3b;
    box-shadow: 0 16px 38px rgba(32, 88, 82, 0.1);
  }

  body:not(.is-logged-out) #rewardsView .mall-title-block h3,
  body:not(.is-logged-out) #rewardsView .mall-title-block p {
    color: #17433f;
  }

  body:not(.is-logged-out) #rewardsView .mall-title-block p {
    color: #617d79;
    opacity: 1;
  }

  body:not(.is-logged-out) #rewardsView .mall-title-mark {
    border-color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(145deg, #0d8178, #40b8aa);
    color: #ffffff;
    box-shadow: 0 11px 24px rgba(13, 129, 120, 0.2);
  }

  body:not(.is-logged-out) #rewardsView .mall-userbar {
    grid-template-columns: minmax(300px, 1fr) 118px 150px;
    align-items: center;
    gap: 9px;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  body:not(.is-logged-out) #rewardsView .mall-employee-control {
    grid-template-columns: 62px minmax(0, 1fr);
    min-height: 62px;
    border: 1px solid #dfecea;
    border-radius: 18px;
    background: #ffffff;
    padding: 6px;
    box-shadow: 0 11px 25px rgba(31, 82, 77, 0.09);
  }

  body:not(.is-logged-out) #rewardsView .mall-employee-control > span {
    display: grid;
    height: 42px;
    place-items: center;
    margin: 0;
    border: 0;
    border-radius: 13px;
    background: #e8f5f2;
    color: #0b756d;
    padding: 0;
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  body:not(.is-logged-out) #rewardsView .mall-employee-control select {
    height: 50px;
    border-radius: 12px;
    background-color: transparent;
    color: #183839;
    padding-right: 32px;
    font-size: 14px;
  }

  body:not(.is-logged-out) #rewardsView .reward-balance,
  body:not(.is-logged-out) #rewardsView .mall-cart-trigger {
    min-height: 62px;
    border: 1px solid #d7e8e5;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    color: #173e3b;
    box-shadow: 0 9px 22px rgba(31, 82, 77, 0.07);
    backdrop-filter: blur(8px);
  }

  body:not(.is-logged-out) #rewardsView .reward-balance {
    position: relative;
    align-content: center;
    padding: 8px 10px 8px 44px;
    border-color: #eddcba;
    background: linear-gradient(145deg, #fff8e8, rgba(255, 255, 255, 0.9));
    text-align: left;
  }

  body:not(.is-logged-out) #rewardsView .reward-balance::before {
    position: absolute;
    top: 50%;
    left: 10px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 10px;
    background: #f9e9c6;
    color: #a66d18;
    content: "分";
    font-size: 11px;
    font-weight: 900;
    transform: translateY(-50%);
  }

  body:not(.is-logged-out) #rewardsView .reward-balance small,
  body:not(.is-logged-out) #rewardsView .mall-cart-trigger-copy small {
    color: #718885;
    font-size: 10px;
  }

  body:not(.is-logged-out) #rewardsView .reward-balance strong {
    margin-top: 2px;
    color: #ad7017;
    font-size: 21px;
    line-height: 1;
  }

  body:not(.is-logged-out) #rewardsView .mall-cart-trigger {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px 10px 7px 7px;
  }

  body:not(.is-logged-out) #rewardsView .mall-cart-trigger:hover {
    border-color: #9ecfc8;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(21, 104, 96, 0.12);
    transform: translateY(-1px);
  }

  body:not(.is-logged-out) #rewardsView .mall-cart-trigger-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(145deg, #0c7d74, #35b0a3);
    color: #ffffff;
  }

  body:not(.is-logged-out) #rewardsView .mall-cart-trigger-copy strong {
    color: #17433f;
    font-size: 13px;
  }

  body:not(.is-logged-out) #rewardsView .mall-cart-count {
    min-width: 24px;
    height: 24px;
    background: #e6f4f1;
    color: #08756d;
  }

  body:not(.is-logged-out) #rewardsView .mall-products-panel {
    border: 0;
    background: transparent;
    padding: 2px 0;
    box-shadow: none;
  }

  body:not(.is-logged-out) #rewardsView .reward-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 14px;
  }

  body:not(.is-logged-out) #rewardsView .reward-card {
    overflow: hidden;
    min-height: 480px;
    border: 1px solid #e0eae8;
    border-radius: 22px;
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 13px 31px rgba(28, 68, 68, 0.07);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  body:not(.is-logged-out) #rewardsView .reward-card:hover {
    border-color: #b5dad5;
    box-shadow: 0 20px 43px rgba(26, 83, 78, 0.12);
    transform: translateY(-4px);
  }

  body:not(.is-logged-out) #rewardsView .reward-visual {
    min-height: 178px;
    border-radius: 17px;
  }

  body:not(.is-logged-out) #rewardsView .reward-card.mall-card {
    grid-template-rows: 178px auto minmax(90px, 1fr) auto auto;
  }

  body:not(.is-logged-out) #rewardsView .reward-topline,
  body:not(.is-logged-out) #rewardsView .reward-info,
  body:not(.is-logged-out) #rewardsView .reward-card-footer,
  body:not(.is-logged-out) #rewardsView .reward-actions {
    margin-right: 7px;
    margin-left: 7px;
  }

  body:not(.is-logged-out) #rewardsView .reward-name {
    color: #193638;
    font-size: 16px;
  }

  body:not(.is-logged-out) #rewardsView .reward-cost {
    color: #0d756d;
    font-size: 24px;
  }

  body:not(.is-logged-out) #rewardsView .reward-actions {
    gap: 8px;
    margin-bottom: 7px;
  }

  /* Rankings */
  body:not(.is-logged-out) #rankingsView .rankings-toolbar {
    overflow: hidden;
    background:
      radial-gradient(circle at 90% 0, rgba(21, 160, 145, 0.15), transparent 190px),
      linear-gradient(145deg, #ffffff, #f2faf8);
  }

  body:not(.is-logged-out) #rankingsView .rank-tabs {
    border-radius: 15px;
    background: #e8f4f2;
    padding: 4px;
  }

  body:not(.is-logged-out) #rankingsView .rank-tab {
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #58736f;
  }

  body:not(.is-logged-out) #rankingsView .rank-tab.active {
    background: #ffffff;
    color: #0b786f;
    box-shadow: 0 7px 17px rgba(14, 112, 103, 0.12);
  }

  body:not(.is-logged-out) #rankingsView .rankings-workbench {
    overflow: hidden;
    grid-template-columns: minmax(530px, 1.1fr) minmax(410px, 0.9fr);
    border: 0;
    box-shadow: 0 16px 39px rgba(28, 68, 68, 0.08);
  }

  body:not(.is-logged-out) #rankingsView .ranking-list-column {
    background: #fbfcfc;
    padding: 16px;
  }

  body:not(.is-logged-out) #rankingsView .ranking-list {
    gap: 8px;
  }

  body:not(.is-logged-out) #rankingsView .ranking-item {
    border: 1px solid #e2ebe9;
    border-radius: 17px;
    background: #ffffff;
    padding: 11px 13px;
    box-shadow: 0 6px 16px rgba(28, 68, 68, 0.035);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  }

  body:not(.is-logged-out) #rankingsView .ranking-item:hover {
    border-color: #a9d5cf;
    box-shadow: 0 11px 25px rgba(17, 104, 96, 0.09);
    transform: translateY(-1px);
  }

  body:not(.is-logged-out) #rankingsView .ranking-item.current {
    border-color: #8cc9c1;
    background: linear-gradient(105deg, #eef9f7, #ffffff);
  }

  body:not(.is-logged-out) #rankingsView .rank-number.top {
    background: linear-gradient(145deg, #20ab9d, #08776f);
    color: #ffffff;
    box-shadow: 0 7px 15px rgba(8, 119, 111, 0.2);
  }

  body:not(.is-logged-out) #rankingsView .ranking-summary-panel {
    border-left: 0;
    background:
      radial-gradient(circle at 100% 0, rgba(108, 207, 194, 0.18), transparent 170px),
      linear-gradient(165deg, #edf8f6, #fbfdfc);
  }

  body:not(.is-logged-out) #rankingsView .ranking-summary-header {
    background: linear-gradient(135deg, #086b64, #15988d);
  }

  body:not(.is-logged-out) #rankingsView .ranking-feature-card,
  body:not(.is-logged-out) #rankingsView .ranking-mini-stats > div,
  body:not(.is-logged-out) #rankingsView .department-ranking-block {
    border-color: #d8ebe8;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
  }

  body:not(.is-logged-out) #rankingsView .ranking-mini-stats {
    gap: 10px;
    margin-top: 13px;
  }

  body:not(.is-logged-out) #rankingsView .ranking-mini-stats > .ranking-mini-stat {
    display: grid;
    min-height: 82px;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    border-color: #d7e9e5;
    background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(241,249,247,.9));
    box-shadow: 0 9px 22px rgba(27,83,77,.06);
    padding: 12px;
    text-align: left;
  }

  body:not(.is-logged-out) #rankingsView .ranking-mini-stats > .ranking-mini-stat::after {
    content: "";
    width: 48px;
    height: 48px;
    position: absolute;
    right: -24px;
    top: -26px;
    border: 1px solid rgba(25,143,130,.09);
    border-radius: 50%;
  }

  body:not(.is-logged-out) #rankingsView .ranking-mini-stat-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #dff4ef, #edf9f6);
    color: #167d72;
    font-size: 11px;
    font-weight: 900;
  }

  body:not(.is-logged-out) #rankingsView .ranking-mini-stat-champion .ranking-mini-stat-icon {
    background: linear-gradient(145deg, #fff0cf, #fff8e8);
    color: #a56d15;
  }

  body:not(.is-logged-out) #rankingsView .ranking-mini-stat-current .ranking-mini-stat-icon {
    background: linear-gradient(145deg, #e6eefb, #f3f6fc);
    color: #506e9b;
  }

  body:not(.is-logged-out) #rankingsView .ranking-mini-stat-copy { min-width: 0; }
  body:not(.is-logged-out) #rankingsView .ranking-mini-stat-copy > span { color: #708985; font-size: 10px; font-weight: 750; }
  body:not(.is-logged-out) #rankingsView .ranking-mini-stat-copy > strong { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; color: #173f3b; font-size: 16px; line-height: 1.15; }
  body:not(.is-logged-out) #rankingsView .ranking-mini-stat-copy > strong small { display: inline; flex: 0 0 auto; margin-top: 0; color: #78908c; font-size: 9px; white-space: nowrap; }

  body:not(.is-logged-out) #rankingsView .department-ranking-block {
    margin-top: 17px;
    border: 1px solid #d8ebe8;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    padding: 17px;
    box-shadow: 0 9px 22px rgba(30, 76, 73, 0.05);
  }

  body:not(.is-logged-out) #rankingsView .department-ranking-heading {
    margin-bottom: 15px;
  }

  body:not(.is-logged-out) #rankingsView .department-ranking-heading h3 {
    font-size: 19px;
  }

  body:not(.is-logged-out) #rankingsView .department-ranking-heading em {
    padding: 6px 10px;
  }

  body:not(.is-logged-out) #rankingsView .department-ranking-list {
    gap: 11px;
  }

  body:not(.is-logged-out) #rankingsView .department-ranking-item {
    min-height: 72px;
    grid-template-columns: 44px minmax(0, 1fr) 52px;
    gap: 12px;
    border: 1px solid #dfeae8;
    border-radius: 15px;
    background: #fbfdfc;
    padding: 11px 12px;
    box-shadow: 0 5px 14px rgba(30, 73, 70, 0.035);
  }

  body:not(.is-logged-out) #rankingsView .department-ranking-item.current {
    border-color: #79c3ba;
    background: linear-gradient(105deg, #e7f6f3, #f9fcfb);
    box-shadow: inset 3px 0 0 #0e7b72, 0 7px 17px rgba(15, 118, 110, 0.07);
  }

  body:not(.is-logged-out) #rankingsView .department-ranking-item > .rank-number {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 14px;
  }

  body:not(.is-logged-out) #rankingsView .department-ranking-main strong {
    font-size: 15px;
    line-height: 1.3;
  }

  body:not(.is-logged-out) #rankingsView .department-ranking-main > span,
  body:not(.is-logged-out) #rankingsView .department-ranking-score span {
    font-size: 11px;
    line-height: 1.4;
  }

  body:not(.is-logged-out) #rankingsView .department-ranking-main > span {
    margin-top: 5px;
  }

  body:not(.is-logged-out) #rankingsView .department-progress {
    height: 5px;
    margin-top: 8px;
  }

  body:not(.is-logged-out) #rankingsView .department-ranking-score {
    min-width: 52px;
  }

  body:not(.is-logged-out) #rankingsView .department-ranking-score strong {
    font-size: 23px;
  }

  /* Records and accounts */
  body:not(.is-logged-out) #recordsView > .panel:first-child,
  body:not(.is-logged-out) #accountsView > .panel:first-child {
    overflow: hidden;
    padding: 20px;
  }

  body:not(.is-logged-out) #recordsView .records-toolbar {
    margin: -20px -20px 18px;
    border-bottom: 1px solid #e5edeb;
    background:
      radial-gradient(circle at 92% 0, rgba(232, 102, 132, 0.1), transparent 155px),
      linear-gradient(145deg, #ffffff, #fbf7f8);
    padding: 18px 20px;
  }

  body:not(.is-logged-out) #accountsView .section-heading {
    margin: -20px -20px 18px;
    border-bottom: 1px solid #e4ebf0;
    background:
      radial-gradient(circle at 94% 0, rgba(75, 118, 215, 0.13), transparent 155px),
      linear-gradient(145deg, #ffffff, #f4f7fd);
    padding: 20px;
  }

  body:not(.is-logged-out) #recordsView .table-wrap,
  body:not(.is-logged-out) #accountsView .table-wrap {
    overflow: auto;
    border: 1px solid #e3ecea;
    border-radius: 17px;
    background: #ffffff;
  }

  body:not(.is-logged-out) #accountsView .table-wrap {
    overflow-x: hidden;
  }

  body:not(.is-logged-out) #accountsTable {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  body:not(.is-logged-out) #accountsTable th:nth-child(1),
  body:not(.is-logged-out) #accountsTable td:nth-child(1) {
    width: 9%;
  }

  body:not(.is-logged-out) #accountsTable th:nth-child(2),
  body:not(.is-logged-out) #accountsTable td:nth-child(2) {
    width: 23%;
  }

  body:not(.is-logged-out) #accountsTable th:nth-child(3),
  body:not(.is-logged-out) #accountsTable td:nth-child(3) {
    width: 11%;
  }

  body:not(.is-logged-out) #accountsTable th:nth-child(4),
  body:not(.is-logged-out) #accountsTable td:nth-child(4),
  body:not(.is-logged-out) #accountsTable th:nth-child(5),
  body:not(.is-logged-out) #accountsTable td:nth-child(5) {
    width: 8%;
    text-align: center;
  }

  body:not(.is-logged-out) #accountsTable th:nth-child(6),
  body:not(.is-logged-out) #accountsTable td:nth-child(6) {
    width: 41%;
  }

  body:not(.is-logged-out) #recordsView table,
  body:not(.is-logged-out) #accountsView table {
    border-collapse: separate;
    border-spacing: 0;
  }

  body:not(.is-logged-out) #recordsView thead,
  body:not(.is-logged-out) #accountsView thead {
    background: linear-gradient(135deg, #edf7f5, #f8fbfa);
  }

  body:not(.is-logged-out) #recordsView th,
  body:not(.is-logged-out) #accountsView th {
    height: 50px;
    border-bottom: 1px solid #dfe9e7;
    color: #466a68;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.03em;
  }

  body:not(.is-logged-out) #recordsView tbody tr,
  body:not(.is-logged-out) #accountsView tbody tr {
    transition: background 160ms ease, box-shadow 160ms ease;
  }

  body:not(.is-logged-out) #accountsView tbody tr:nth-child(even) {
    background: #fcfefd;
  }

  body:not(.is-logged-out) #recordsView tbody tr:hover,
  body:not(.is-logged-out) #accountsView tbody tr:hover {
    background: linear-gradient(90deg, #eef9f7, #fbfdfc);
  }

  body:not(.is-logged-out) #recordsView td,
  body:not(.is-logged-out) #accountsView td {
    height: 68px;
    border-bottom-color: #e8efed;
  }

  body:not(.is-logged-out) #accountsTable tbody tr:hover td:first-child {
    box-shadow: inset 3px 0 0 #22a798;
  }

  body:not(.is-logged-out) #accountsTable td:first-child {
    color: #203f41;
    font-weight: 850;
  }

  body:not(.is-logged-out) #accountsTable th,
  body:not(.is-logged-out) #accountsTable td {
    padding-right: 10px;
    padding-left: 10px;
    vertical-align: middle;
  }

  body:not(.is-logged-out) #accountsTable td:nth-child(2) {
    color: #254446;
    font-weight: 750;
  }

  body:not(.is-logged-out) #accountsTable td:nth-child(2)::before {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    margin-right: 9px;
    border: 1px solid #cae6e1;
    border-radius: 11px;
    background: linear-gradient(145deg, #e5f5f2, #f6fbfa);
    color: #0c786f;
    content: "员";
    font-size: 11px;
    font-weight: 900;
    vertical-align: middle;
  }

  body:not(.is-logged-out) #accountsTable td:nth-child(3) {
    min-width: 0;
    color: #57716f;
    font-weight: 700;
    white-space: nowrap;
    writing-mode: horizontal-tb;
  }

  body:not(.is-logged-out) #accountsTable th:nth-child(3) {
    min-width: 0;
    white-space: nowrap;
  }

  body:not(.is-logged-out) #accountsTable td:nth-child(3)::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: #61bdb2;
    content: "";
    vertical-align: middle;
  }

  body:not(.is-logged-out) #accountsTable .role-pill,
  body:not(.is-logged-out) #accountsTable .status-pill {
    display: inline-flex;
    min-width: 50px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  body:not(.is-logged-out) #accountsTable .account-actions {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 6px;
    border: 1px solid #e2ecea;
    border-radius: 15px;
    background: #f7faf9;
    padding: 5px;
  }

  body:not(.is-logged-out) #accountsTable .account-actions button {
    display: inline-flex;
    min-width: 0;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 11px;
    padding: 0 6px;
    font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.015em;
    white-space: nowrap;
    box-shadow: none;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  }

  body:not(.is-logged-out) #accountsTable .account-actions button::before {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    border-radius: 50%;
    font-family: "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
    font-size: 10px;
    font-weight: 800;
  }

  body:not(.is-logged-out) #accountsTable [data-user-role-id] {
    gap: 0;
    border-color: #d7e6f8;
    background: #f3f7fd;
    color: #315f93;
    padding-right: 6px;
    padding-left: 6px;
  }

  body:not(.is-logged-out) #accountsTable [data-user-role-id]::before {
    display: none;
  }

  body:not(.is-logged-out) #accountsTable [data-user-status-id][data-next-status="disabled"] {
    border-color: #f1dcad;
    background: #fff8e9;
    color: #8f651d;
  }

  body:not(.is-logged-out) #accountsTable [data-user-status-id][data-next-status="disabled"]::before {
    background: #f9e8bd;
    content: "停";
  }

  body:not(.is-logged-out) #accountsTable [data-user-status-id][data-next-status="active"] {
    border-color: #cce9df;
    background: #edf9f5;
    color: #177a5d;
  }

  body:not(.is-logged-out) #accountsTable [data-user-status-id][data-next-status="active"]::before {
    background: #d8f1e8;
    content: "启";
  }

  body:not(.is-logged-out) #accountsTable [data-user-password-id] {
    border-color: #cfe8e4;
    background: #eff8f6;
    color: #236f69;
  }

  body:not(.is-logged-out) #accountsTable [data-user-password-id]::before {
    background: #d9efeb;
    content: "密";
  }

  body:not(.is-logged-out) #accountsTable [data-user-delete-id] {
    border-color: #f5ccd5;
    background: #fff3f5;
    color: #b83b56;
  }

  body:not(.is-logged-out) #accountsTable [data-user-delete-id]::before {
    background: #fbe0e6;
    content: "删";
  }

  body:not(.is-logged-out) #accountsTable .account-actions button:hover:not(:disabled) {
    border-color: #9fcfc8;
    background: #ffffff;
    box-shadow: 0 7px 16px rgba(34, 79, 76, 0.1);
    transform: translateY(-1px);
  }

  body:not(.is-logged-out) #accountsTable .account-actions button:disabled {
    background: #f3f5f5;
    color: #9aa8a6;
    opacity: 0.68;
  }

  body:not(.is-logged-out) #accountsTable .account-actions button:disabled::before {
    background: #e7eceb;
  }

  body:not(.is-logged-out) #recordsView > .pagination-panel,
  body:not(.is-logged-out) #accountsView > .pagination-panel,
  body:not(.is-logged-out) #rankingsView .ranking-pagination {
    border: 1px solid #e2ebe9;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 12px;
    box-shadow: 0 9px 23px rgba(28, 68, 68, 0.05);
  }

  body:not(.is-logged-out) .pagination-button,
  body:not(.is-logged-out) .pagination-page {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  body:not(.is-logged-out) .pagination-page {
    border: 0;
    background: linear-gradient(135deg, #086a62, #15958b);
    color: #ffffff;
    box-shadow: 0 7px 15px rgba(8, 106, 98, 0.15);
  }
}

@media (min-width: 1081px) and (max-width: 1280px) {
  body:not(.is-logged-out) #accountsTable .account-actions button {
    gap: 0;
    padding: 0 4px;
    font-size: 10px;
  }

  body:not(.is-logged-out) #accountsTable .account-actions button::before {
    display: none;
  }

  body:not(.is-logged-out) #rewardsView .mall-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body:not(.is-logged-out) #rewardsView .mall-userbar {
    grid-template-columns: minmax(300px, 1fr) 118px 150px;
  }

  body:not(.is-logged-out) #queryView > .two-column {
    grid-template-columns: minmax(360px, 0.78fr) minmax(510px, 1.22fr);
  }

  body:not(.is-logged-out) #rulesView .rules-grid,
  body:not(.is-logged-out) #rewardsView .reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.is-logged-out) #grantView .grant-workbench,
  body:not(.is-logged-out) #rankingsView .rankings-workbench {
    grid-template-columns: minmax(560px, 1.25fr) minmax(330px, 0.75fr);
  }
}

/* Desktop welcome feature rail */
@media (min-width: 1101px) {
  body.is-logged-out .mobile-login-benefits {
    width: min(calc(100% - 56px), 1320px);
    grid-template-columns: minmax(250px, 0.92fr) repeat(3, minmax(0, 1fr));
    gap: 11px;
    border: 1px solid #dcebe8;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.76);
    padding: 10px;
    box-shadow: 0 18px 45px rgba(31, 79, 75, 0.09), inset 0 1px 0 #ffffff;
    backdrop-filter: blur(16px);
  }

  body.is-logged-out .mobile-login-benefits > div {
    position: relative;
    min-height: 108px;
    overflow: hidden;
    border: 1px solid #e1ecea;
    border-radius: 20px;
    padding: 17px 18px;
  }

  body.is-logged-out .mobile-login-benefits > .welcome-mobile-benefits-title {
    align-items: flex-start;
    gap: 10px;
    border-color: #cae7e2;
    background:
      radial-gradient(circle at 100% 0, rgba(120, 177, 167, 0.12), transparent 105px),
      linear-gradient(135deg, #e1f2ef, #f5f9f7);
    padding-left: 22px;
  }

  body.is-logged-out .mobile-login-benefits > .welcome-mobile-benefits-title::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(180deg, #0d7b72, #54afa4, #91aa79);
    content: "";
  }

  body.is-logged-out .welcome-mobile-benefits-title small {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #31766f;
    padding: 5px 8px;
    font-size: 8px;
    letter-spacing: 0.17em;
  }

  body.is-logged-out .welcome-mobile-benefits-title strong {
    color: #153e3b;
    font-size: 17px;
    letter-spacing: -0.015em;
  }

  body.is-logged-out .mobile-login-benefits > div:not(.welcome-mobile-benefits-title) {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    gap: 4px 13px;
    border-color: #cae7e2;
    background:
      radial-gradient(circle at 100% 0, rgba(120, 177, 167, 0.12), transparent 105px),
      linear-gradient(135deg, #e1f2ef, #f5f9f7);
    box-shadow: 0 8px 20px rgba(31, 76, 72, 0.045);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  }

  body.is-logged-out .mobile-login-benefits > div:not(.welcome-mobile-benefits-title):hover {
    border-color: #a9d7d0;
    background:
      radial-gradient(circle at 100% 0, rgba(120, 177, 167, 0.16), transparent 105px),
      linear-gradient(135deg, #dcefeb, #f3f9f7);
    box-shadow: 0 14px 29px rgba(28, 83, 78, 0.1);
    transform: translateY(-3px);
  }

  body.is-logged-out .mobile-login-benefits > div:not(.welcome-mobile-benefits-title) > span {
    display: grid;
    width: 46px;
    height: 46px;
    grid-row: 1 / 3;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 9px 19px rgba(29, 80, 75, 0.08), inset 0 1px 0 #ffffff;
  }

  body.is-logged-out .mobile-login-benefits > div:not(.welcome-mobile-benefits-title) > strong {
    align-self: end;
    color: #224341;
    font-size: 15px;
    line-height: 1.25;
  }

  body.is-logged-out .mobile-login-benefits > div:not(.welcome-mobile-benefits-title) > small {
    align-self: start;
    color: #748784;
    font-size: 10px;
    line-height: 1.45;
  }

  body.is-logged-out .mobile-login-benefits > div:not(.welcome-mobile-benefits-title)::after {
    display: grid;
    width: 28px;
    height: 28px;
    grid-column: 3;
    grid-row: 1 / 3;
    place-items: center;
    border-radius: 9px;
    background: #f0f6f4;
    color: #72908b;
    font-size: 9px;
    font-weight: 900;
  }

  body.is-logged-out .mobile-login-benefits > div:not(.welcome-mobile-benefits-title) > span {
    background: rgba(255, 255, 255, 0.72);
    color: #18786f;
  }

  body.is-logged-out .mobile-login-benefits > div:not(.welcome-mobile-benefits-title)::after {
    background: rgba(255, 255, 255, 0.62);
    color: #4a7d77;
  }

  body.is-logged-out .mobile-login-benefits > div:nth-of-type(2)::after {
    content: "01";
  }

  body.is-logged-out .mobile-login-benefits > div:nth-of-type(3)::after {
    content: "02";
  }

  body.is-logged-out .mobile-login-benefits > div:nth-of-type(4)::after {
    content: "03";
  }
}

@keyframes desktopModuleEnter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.is-logged-out) .view.active {
    animation: none;
  }
}
