/* 班组履职评价系统 V1.2
 * 移动端视觉与交互增强层。业务接口、权限和数据处理逻辑保持兼容。
 */

:root {
  --v12-navy: #063866;
  --v12-blue: #075fc0;
  --v12-cyan: #139bd1;
  --v12-bg: #f2f7fb;
  --v12-card: #ffffff;
  --v12-ink: #122945;
  --v12-muted: #708197;
  --v12-border: #dce7f0;
  --v12-soft-blue: #eef7fd;
  --v12-shadow: 0 8px 28px rgba(18, 61, 96, .08);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--v12-bg);
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.ui-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -4px;
}

.btn .ui-icon {
  width: 17px;
  height: 17px;
  margin-right: 5px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon > .ui-icon {
  position: absolute;
  z-index: 1;
  left: 13px;
  width: 18px;
  height: 18px;
  color: #627a94;
  pointer-events: none;
}

.input-with-icon > input {
  padding-left: 42px;
}

.mobile-login-hero,
.mobile-sidebar-profile,
.mobile-menu-backdrop,
.sidebar-logout,
.mobile-topbar-title,
.mobile-cycle-card,
.mobile-filter-head,
.mobile-filter-trigger {
  display: none;
}

.page-head-action {
  flex: 0 0 auto;
}

.topbar {
  background: linear-gradient(110deg, #07345f 0%, #075484 54%, #0789b5 100%);
}

.nav-icon {
  height: 24px;
  display: grid;
  place-items: center;
}

.nav-icon .ui-icon {
  width: 19px;
  height: 19px;
}

.sidebar-scroll {
  min-height: 100%;
}

.entry-intro {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f1f9fe, #fff);
}

.entry-intro > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e4f3fc;
  color: var(--v12-blue);
}

.entry-intro strong,
.entry-intro small {
  display: block;
}

.entry-intro small {
  margin-top: 4px;
  color: var(--v12-muted);
}

.team-card {
  position: relative;
  overflow: hidden;
}

.team-card-symbol {
  display: none;
}

.team-draft-summary {
  display: block;
  margin-top: 12px;
  color: var(--v12-blue);
  font-size: 11px;
}

.entry-head > div > h2 {
  margin: 0 0 5px;
  color: var(--v12-ink);
  font-size: 23px;
}

.entry-head > div > p:last-child {
  margin: 0;
  color: var(--v12-muted);
  font-size: 12px;
}

.draft-saved {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f7f3;
  color: #187e6d;
  font-size: 11px;
  white-space: nowrap;
}

.category-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.category-name .ui-icon {
  color: var(--v12-blue);
}

.category-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #73849a;
  font-size: 11px;
  font-weight: 500;
}

.category-meta i {
  display: inline-block;
  font-size: 18px;
  font-style: normal;
  transition: transform .2s ease;
}

.category.open .category-meta i {
  transform: rotate(180deg);
}

.total strong small {
  color: inherit;
  font-size: 12px;
}

.profile-identity {
  display: grid;
  grid-template-columns: auto minmax(180px, .55fr) 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0870c7, #14a1cc);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(7, 102, 181, .2);
}

.profile-identity h3,
.profile-identity p {
  margin: 0;
}

.profile-identity p {
  margin: 5px 0 8px;
  color: var(--v12-muted);
  font-size: 12px;
}

.profile-identity dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.profile-identity dl > div {
  padding: 10px 12px;
  border-radius: 9px;
  background: #f6f9fc;
}

.profile-identity dt {
  color: #8291a3;
  font-size: 10px;
}

.profile-identity dd {
  margin: 4px 0 0;
  color: var(--v12-ink);
  font-size: 12px;
}

.action-dialog {
  text-align: center;
}

.dialog-symbol {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #e8f7f2;
  color: #159470;
  font-size: 27px;
  font-weight: 900;
}

.action-dialog.danger .dialog-symbol {
  background: #fff0f1;
  color: #e13f4b;
}

.action-dialog .dialog-message {
  max-width: 520px;
  margin: 0 auto 15px;
  color: var(--v12-muted);
  font-size: 13px;
  line-height: 1.75;
}

.action-dialog .field {
  text-align: left;
}

@media (max-width: 760px) {
  :root {
    --radius: 14px;
  }

  html,
  body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: var(--v12-bg);
  }

  body,
  button,
  input,
  select,
  textarea {
    font-size: 14px;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .shell {
    min-height: 100dvh;
  }

  .topbar {
    height: calc(62px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 13px 0;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(4, 47, 87, .18);
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    font-size: 20px;
  }

  .topbar-title {
    min-width: 0;
    flex: 1;
    gap: 9px;
  }

  .topbar-title .logo {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    font-size: 19px;
  }

  .desktop-topbar-title {
    display: none !important;
  }

  .mobile-topbar-title {
    display: block;
    max-width: 43vw;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-title small,
  .user-meta,
  .topbar .logout {
    display: none;
  }

  .topbar-user {
    flex: 0 0 38px;
    margin-left: 0;
  }

  .topbar-user .avatar {
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, .35);
    background: #edf8fd;
    color: var(--v12-navy);
  }

  .workspace {
    min-height: calc(100dvh - 62px - env(safe-area-inset-top));
  }

  .main {
    width: 100%;
    padding: 18px 14px calc(36px + env(safe-area-inset-bottom));
  }

  .stack {
    gap: 14px;
  }

  .card {
    border-color: var(--v12-border);
    box-shadow: var(--v12-shadow);
  }

  .card-pad {
    padding: 17px;
  }

  .mobile-menu-backdrop {
    position: fixed;
    z-index: 74;
    inset: 0;
    display: block;
    visibility: hidden;
    border: 0;
    background: rgba(5, 28, 50, .48);
    opacity: 0;
    transition: opacity .22s ease, visibility .22s ease;
    backdrop-filter: blur(2px);
  }

  .shell.mobile-open .mobile-menu-backdrop {
    visibility: visible;
    opacity: 1;
  }

  .sidebar {
    z-index: 75;
    top: 0;
    width: min(84vw, 340px);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
    border: 0;
    border-radius: 0 18px 18px 0;
    box-shadow: 18px 0 45px rgba(7, 38, 67, .22);
    transform: translateX(-102%);
    transition: transform .24s cubic-bezier(.2, .8, .2, 1);
  }

  .shell.mobile-open .sidebar {
    transform: translateX(0);
  }

  .mobile-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 21px 17px 18px;
    border-bottom: 1px solid #e9eff4;
    background: linear-gradient(145deg, #f8fcff, #fff);
  }

  .mobile-sidebar-profile .avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    background: linear-gradient(135deg, #075fae, #1196c5);
    color: #fff;
  }

  .mobile-sidebar-profile > div {
    min-width: 0;
    flex: 1;
  }

  .mobile-sidebar-profile strong,
  .mobile-sidebar-profile small {
    display: block;
  }

  .mobile-sidebar-profile strong {
    color: var(--v12-ink);
    font-size: 17px;
  }

  .mobile-sidebar-profile small {
    margin-top: 4px;
    color: var(--v12-muted);
    font-size: 11px;
  }

  .sidebar-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: #f0f5f9;
    color: #60758c;
  }

  .sidebar-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 12px 16px;
    overscroll-behavior: contain;
  }

  .sidebar .nav-section {
    margin: 9px 0 17px;
  }

  .sidebar .nav-label {
    margin: 0 10px 7px;
    color: #9ba8b5;
    font-size: 10px;
  }

  .sidebar .nav-button {
    min-height: 48px;
    margin: 3px 0;
    padding: 0 13px;
    border-radius: 11px;
    color: #52657a;
    font-size: 14px;
  }

  .sidebar .nav-button.active {
    background: linear-gradient(135deg, #e8f5fc, #f0f9fd);
    color: #0565ae;
  }

  .sidebar-logout {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 10px 14px 14px;
    border: 1px solid #dbe5ed;
    border-radius: 11px;
    background: #fff;
    color: #53677c;
    font-weight: 700;
  }

  .page-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .page-head > div:first-child {
    min-width: 0;
    flex: 1;
  }

  .page-head-action {
    margin: 0;
  }

  .breadcrumb {
    margin-bottom: 6px;
    color: #8391a3;
    font-size: 11px;
  }

  .page-head h2 {
    margin-bottom: 6px;
    color: var(--v12-ink);
    font-size: 22px;
  }

  .page-head p:last-child {
    color: var(--v12-muted);
    font-size: 12px;
    line-height: 1.65;
  }

  .page-head > .btn,
  .page-head-action > .btn {
    margin-top: 0;
  }

  .mobile-filter-trigger {
    min-width: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-filter-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 4px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e8eef4;
  }

  .mobile-filter-head strong,
  .mobile-filter-head small {
    display: block;
  }

  .mobile-filter-head strong {
    color: var(--v12-ink);
    font-size: 18px;
  }

  .mobile-filter-head small {
    margin-top: 3px;
    color: var(--v12-muted);
    font-size: 11px;
  }

  .mobile-filter-head button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: #f0f5f9;
    color: #5b7087;
  }

  .filter-panel {
    position: fixed;
    z-index: 115;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(86dvh, 760px);
    grid-template-columns: 1fr !important;
    gap: 12px;
    overflow-y: auto;
    margin: 0;
    padding: 19px 16px calc(18px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 20px 20px 0 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(104%);
    transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, visibility .2s ease;
    box-shadow: 0 -18px 50px rgba(7, 36, 63, .2), 0 -100vh 0 100vh rgba(5, 25, 44, .44);
    overscroll-behavior: contain;
  }

  .filter-panel.mobile-filter-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .filter-panel > .btn.primary {
    width: 100%;
    min-height: 49px;
    margin-top: 3px;
  }

  .mobile-cycle-card {
    min-height: 78px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid var(--v12-border);
    border-radius: 14px;
    background: var(--v12-card);
    box-shadow: var(--v12-shadow);
  }

  .cycle-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e7f4fc;
    color: #0871bd;
  }

  .mobile-cycle-card strong,
  .mobile-cycle-card small {
    display: block;
  }

  .mobile-cycle-card strong {
    overflow: hidden;
    color: var(--v12-ink);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-cycle-card small {
    margin-top: 5px;
    overflow: hidden;
    color: var(--v12-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-cycle-card .btn {
    display: inline-flex;
    align-items: center;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .metric {
    min-height: 106px;
    padding: 15px;
    border-radius: 14px;
    box-shadow: var(--v12-shadow);
  }

  .metric span {
    color: #7c8b9d;
    font-size: 11px;
  }

  .metric strong {
    margin-top: 13px;
    color: var(--v12-ink);
    font-size: 25px;
  }

  .metric small {
    font-size: 11px;
  }

  .chart-card {
    padding: 17px 14px 14px;
    border-radius: 15px;
  }

  .chart-card .card-title {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .chart-card .card-title h3 {
    color: var(--v12-ink);
    font-size: 17px;
  }

  .chart-scroll {
    margin: 0 -2px;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .bar-chart {
    min-width: max(100%, 480px);
    height: 270px;
    gap: 18px;
    padding: 32px 20px 26px;
  }

  .entry-intro {
    padding: 14px;
    border-radius: 14px;
  }

  .entry-intro > span {
    width: 40px;
    height: 40px;
  }

  .entry-intro strong {
    font-size: 14px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .team-card {
    min-height: 188px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--v12-shadow);
  }

  .team-card:hover {
    transform: none;
  }

  .team-card-symbol {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    margin: 4px auto 11px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e9f5fe, #dff2fb);
    color: #0872c2;
  }

  .team-card-symbol .ui-icon {
    width: 26px;
    height: 26px;
  }

  .team-card .team-top {
    width: 100%;
    display: block;
  }

  .team-card h3 {
    font-size: 17px;
  }

  .team-card .pill {
    position: absolute;
    top: 9px;
    right: 9px;
  }

  .team-card p {
    margin: 8px 0 5px;
    font-size: 11px;
  }

  .team-card small {
    line-height: 1.55;
  }

  .team-draft-summary {
    margin-top: auto;
    padding-top: 9px;
  }

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

  .entry-head .back {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    margin-top: 18px;
    border-radius: 11px;
  }

  .entry-head > div > h2 {
    font-size: 21px;
  }

  .draft-saved {
    align-self: center;
    margin-top: 18px;
    padding: 6px 8px;
    font-size: 9px;
  }

  .category {
    border-radius: 14px;
    box-shadow: var(--v12-shadow);
  }

  .category-title {
    min-height: 62px;
    padding: 15px;
    background: #fff;
  }

  .category-name {
    font-size: 15px;
  }

  .category-name .ui-icon {
    width: 22px;
    height: 22px;
  }

  .item-row {
    padding: 15px 13px;
  }

  .item-main {
    grid-template-columns: 66px minmax(0, 1fr) 36px;
    gap: 9px;
  }

  .score-badge {
    padding: 7px 5px;
    border-radius: 7px;
    background: #eaf5fd;
    color: #0769b3;
    font-size: 10px;
  }

  .item-text {
    color: var(--v12-ink);
    font-size: 13px;
    line-height: 1.65;
  }

  .dots {
    border: 0;
    background: #f3f7fa;
  }

  .item-menu,
  .draft-detail-menu {
    right: 51px;
    border-radius: 11px;
  }

  .draft-list,
  .inline-editor {
    margin-left: 0;
  }

  .draft-line {
    padding: 12px;
    border-left: 0;
    border: 1px solid #dcece9;
    border-radius: 10px;
    background: #f4fbf9;
  }

  .inline-editor {
    padding: 12px;
    border-radius: 11px;
    background: #f8fbfd;
  }

  .inline-editor textarea {
    min-height: 112px;
  }

  .entry-footer {
    bottom: calc(8px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 15px;
  }

  .total {
    min-width: 80px;
  }

  .total strong {
    font-size: 21px;
  }

  .footer-actions {
    display: grid;
    grid-template-columns: minmax(106px, .9fr) minmax(106px, 1fr);
    gap: 8px;
    margin: 0;
  }

  .footer-actions .btn {
    min-height: 43px;
    padding: 0 10px;
    font-size: 12px;
  }

  .summary-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  .summary-strip > div {
    min-height: 88px;
    padding: 15px;
  }

  .summary-strip > div:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 64px;
    border-top: 1px solid var(--v12-border);
    border-right: 0;
  }

  .summary-strip p {
    display: none;
  }

  .mobile-list {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .mobile-card {
    min-height: 142px;
    padding: 15px;
    border-radius: 13px;
    box-shadow: 0 4px 14px rgba(18, 61, 96, .05);
  }

  .mobile-card-top b {
    color: #e33844;
    font-size: 16px;
  }

  .mobile-card h4 {
    color: var(--v12-ink);
    font-size: 15px;
  }

  .pager {
    padding: 13px;
  }

  .table-wrap.desktop {
    display: none;
  }

  .table-wrap:not(.desktop) {
    overflow: visible;
  }

  .responsive-table,
  .responsive-table tbody {
    width: 100%;
    display: block;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tr {
    display: block;
    margin: 11px;
    overflow: hidden;
    border: 1px solid var(--v12-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(18, 61, 96, .05);
  }

  .responsive-table tr:only-child td[colspan] {
    display: block;
    text-align: center;
  }

  .responsive-table td {
    min-height: 44px;
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 11px 13px;
    border-top: 1px solid #edf2f6;
    color: var(--v12-ink);
    line-height: 1.55;
    word-break: break-word;
  }

  .responsive-table td:first-child {
    border-top: 0;
  }

  .responsive-table td::before {
    content: attr(data-label);
    color: #8190a2;
    font-size: 11px;
    font-weight: 700;
  }

  .responsive-table td.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding-left: 13px;
    background: #f8fbfd;
  }

  .responsive-table td.actions::before {
    width: 78px;
    flex: 0 0 78px;
  }

  .responsive-table td.actions .btn {
    min-height: 34px;
    padding: 0 8px;
  }

  .error-table {
    margin: 12px -6px 0;
  }

  .drawer-backdrop,
  .modal-backdrop {
    padding: 0;
  }

  .drawer {
    position: absolute;
    inset: 48px 0 0;
    width: 100%;
    height: auto;
    padding: 18px 15px calc(22px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -16px 45px rgba(8, 35, 60, .24);
  }

  .drawer-head {
    position: sticky;
    z-index: 2;
    top: -18px;
    margin: -18px -15px 12px;
    padding: 17px 15px 13px;
    border-bottom: 1px solid #e8eef4;
    border-radius: 20px 20px 0 0;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
  }

  .modal-backdrop {
    align-items: end;
  }

  .modal {
    width: 100%;
    max-height: 90dvh;
    padding: 21px 17px calc(21px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -18px 55px rgba(7, 34, 58, .25);
  }

  .modal-backdrop[data-locked="1"] {
    align-items: stretch;
    background: var(--v12-bg);
  }

  .modal-backdrop[data-locked="1"] .modal {
    max-height: 100dvh;
    min-height: 100dvh;
    padding-top: calc(30px + env(safe-area-inset-top));
    border-radius: 0;
  }

  .modal h3 {
    color: var(--v12-ink);
    font-size: 20px;
  }

  .detail-grid,
  .form-grid,
  .profile-grid,
  .permission-list {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    gap: 8px;
  }

  .detail-grid > div {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }

  .detail-grid dd {
    margin: 0;
    text-align: right;
  }

  .detail-block {
    padding: 13px;
    border-radius: 11px;
  }

  .modal-actions {
    position: sticky;
    bottom: calc(-21px - env(safe-area-inset-bottom));
    margin: 18px -17px calc(-21px - env(safe-area-inset-bottom));
    padding: 12px 17px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #e6edf3;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
  }

  .modal-actions .btn {
    min-height: 45px;
    flex: 1;
  }

  .tabs {
    gap: 0;
    padding: 4px;
    border: 1px solid var(--v12-border);
    border-radius: 12px;
    background: #fff;
  }

  .tab {
    min-width: 0;
    min-height: 42px;
    flex: 1;
    padding: 0 8px;
    border: 0;
    border-radius: 9px;
    font-size: 12px;
  }

  .tab.active {
    border: 0;
    background: linear-gradient(135deg, #0867bd, #1399ce);
    color: #fff;
  }

  .import-zone {
    min-height: 255px;
    padding: 24px 15px;
    border-radius: 13px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar .search {
    min-width: 0;
  }

  .permission {
    min-height: 62px;
    align-items: center;
    border-radius: 11px;
  }

  .profile-identity {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
  }

  .profile-avatar {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }

  .profile-identity dl {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .profile-grid {
    gap: 14px;
  }

  .steps {
    gap: 5px;
  }

  .step {
    min-height: 48px;
    display: grid;
    place-items: center;
    padding: 6px;
    line-height: 1.4;
  }

  .toast-root {
    top: calc(70px + env(safe-area-inset-top));
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: 0;
    max-width: none;
    padding: 13px 15px;
    border-radius: 12px;
  }

  .login {
    display: block;
    min-height: 100dvh;
    background: #fff;
  }

  .login-brand,
  .mobile-brand,
  .login-eyebrow {
    display: none;
  }

  .login-side {
    min-height: 100dvh;
    display: block;
    padding: 0;
  }

  .login-card {
    width: 100%;
    min-height: 100dvh;
    padding: 0 20px calc(28px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mobile-login-hero {
    min-height: 225px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 -20px 25px;
    padding: calc(25px + env(safe-area-inset-top)) 20px 32px;
    border-radius: 0 0 28px 28px;
    background: radial-gradient(circle at 76% 10%, rgba(47, 193, 220, .34), transparent 34%), linear-gradient(145deg, #07325d, #075783 58%, #0795b9);
    color: #fff;
    box-shadow: 0 14px 35px rgba(6, 57, 94, .18);
  }

  .mobile-login-hero .logo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    font-size: 27px;
  }

  .mobile-login-hero h1,
  .mobile-login-hero p {
    margin: 0;
  }

  .mobile-login-hero h1 {
    margin-top: 10px;
    font-size: 23px;
    letter-spacing: .04em;
  }

  .mobile-login-hero p {
    color: #cfe7f3;
    font-size: 12px;
  }

  .login-card h2 {
    margin: 0 0 6px;
    color: var(--v12-ink);
    font-size: 23px;
  }

  .login-card .sub {
    margin-bottom: 22px;
  }

  .login-card .field {
    gap: 8px;
    margin: 15px 0;
  }

  .login-card .field > span {
    color: #4e6176;
    font-size: 12px;
  }

  .login-card input {
    min-height: 50px;
    border-radius: 11px;
    background: #fbfdff;
  }

  .login-card .code-row {
    grid-template-columns: minmax(0, 1fr) 116px;
  }

  .login-card .code-row .btn {
    min-height: 50px;
    padding: 0 8px;
    border-radius: 11px;
    font-size: 12px;
  }

  .login-card .btn.block {
    min-height: 50px;
    margin-top: 18px;
    border-radius: 11px;
    font-size: 16px;
  }

  .security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .security .ui-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 430px) {
  .main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .mobile-topbar-title {
    max-width: 39vw;
    font-size: 14px;
  }

  .mobile-cycle-card {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px;
  }

  .cycle-icon {
    width: 38px;
    height: 38px;
  }

  .mobile-cycle-card .btn {
    min-height: 36px;
    padding: 0 8px;
  }

  .metric {
    min-height: 100px;
    padding: 13px;
  }

  .metric strong {
    font-size: 22px;
  }

  .team-card {
    min-height: 180px;
  }

  .entry-footer {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .footer-actions {
    grid-template-columns: 1fr 1fr;
  }

  .footer-actions .btn {
    padding: 0 7px;
    font-size: 11px;
  }

  .responsive-table td {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .profile-identity dl {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    gap: 8px;
  }

  .modal-actions .btn {
    padding: 0 10px;
  }
}

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