.office {
  --office-header: 66px;
  --office-sidebar: 236px;
  --office-ink: #272334;
  --office-muted: #686574;
  --office-border: #e5e3ec;
  --office-brand: #6947d7;
  --office-wash: #f6f6fa;
  --serif: inherit;
  min-height: 100vh;
  padding: 0;
  background: var(--office-wash);
  color: var(--office-ink);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
.office [hidden] {display: none !important;}
.office :is(a,button):focus-visible {outline: 3px solid #9477e9; outline-offset: 2px;}
.office-top {
  position: sticky;
  z-index: 24;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--office-header);
  padding: 0 clamp(16px, 2.4vw, 40px);
  border-bottom: 1px solid var(--office-border);
  background: white;
}
.office-brand, .office-session {align-items: center; display: flex; gap: 12px; min-width: 0;}
.office-brand {color: #2d2448; white-space: nowrap;}
.office-brand img {width: 34px; height: 34px; border-radius: 10px;}
.office-brand span {font-size: 20px; line-height: 1; font-weight: 760; letter-spacing: .04em;}
.office-brand b {
  padding-left: 14px;
  border-left: 1px solid var(--office-border);
  color: #5e586a;
  font-size: 14px;
  font-weight: 600;
}
.office-session {justify-content: flex-end; font-size: 13px;}
.office-session span {overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.office-session a {color: var(--office-brand); white-space: nowrap;}
.admin-office #admin-rows .p-tabs {margin-top: 20px; width: fit-content; max-width: 100%; flex-wrap: wrap;}
.admin-office #admin-rows td:first-child {overflow-wrap: anywhere;}
#office-community {color: var(--office-muted);}
#office-user {font-weight: 650;}
.office-session button, .office-heading button {
  flex: none;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--office-border);
  border-radius: 8px;
  background: white;
  color: #514860;
  font-size: 13px;
}
.office-session button:hover, .office-heading button:hover {background: #f7f4ff; color: #5735ba;}
.office-signed .office-layout {
  display: grid;
  grid-template-columns: var(--office-sidebar) minmax(0, 1fr);
  min-height: calc(100dvh - var(--office-header));
}
#office-sidebar {
  position: sticky;
  top: var(--office-header);
  align-self: start;
  height: calc(100dvh - var(--office-header));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 14px 32px;
  border-right: 1px solid var(--office-border);
  background: white;
}
#office-toggle {display: none;}
#office-nav {display: grid; gap: 16px;}
.office-nav-group h2 {
  margin: 0 0 5px 12px;
  color: #777281;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .075em;
  line-height: 1.6;
}
.office-nav-group a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 36px;
  margin-top: 2px;
  padding: 6px 12px;
  border-radius: 8px;
  color: #4e495c;
  font-size: 13px;
  line-height: 1.45;
}
.office-nav-group a svg {width: 17px; height: 17px; flex: none; color: #777183;}
.office-nav-group a:hover {background: var(--office-wash);}
.office-nav-group a[aria-current="page"] {background: #eee9fc; color: #5233b0; font-weight: 700;}
.office-nav-group a[aria-current="page"] svg {color: #6947d7;}
.office #main {min-width: 0; outline: none;}
.office-signed #main {
  width: 100%;
  max-width: 1550px;
  margin-inline: auto;
  padding: 30px clamp(22px, 3.5vw, 58px) 56px;
  overflow-wrap: anywhere;
}
.office #main :is(.r-page,.p-page,.mk-page,.cv-page) {max-width: none;}
.office #main .page-head {padding-top: 0;}
.office #main .page-head h1, .office-heading h1 {
  margin: 5px 0 0;
  color: var(--office-ink);
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 740;
  letter-spacing: -.045em;
  line-height: 1.3;
}
.office-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.office-heading p {color: var(--office-muted); font-size: 13px; line-height: 1.6;}
.office-heading button {display: inline-flex; align-items: center; gap: 7px;}
.office-metrics {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px;}
.office-metric, .office-panel {
  border: 1px solid var(--office-border);
  border-radius: 13px;
  background: white;
  box-shadow: 0 3px 9px -7px #352b4c42;
}
.office-metric {
  --metric-icon: #6248be;
  --metric-tint: #eee9fb;
  position: relative;
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 19px 21px;
}
.office-metric:nth-child(2) {--metric-icon: #15746e; --metric-tint: #e4f4ef;}
.office-metric:nth-child(3) {--metric-icon: #a46622; --metric-tint: #faf0dd;}
.office-metric:hover {border-color: #bcb0de; box-shadow: 0 3px 13px #4932780e;}
.office-metric > span:first-child {display: flex; align-items: center; gap: 9px; color: #554e62; font-size: 13px; font-weight: 630;}
.office-metric > span:first-child svg {width: 30px; height: 30px; padding: 6px; border-radius: 8px; color: var(--metric-icon); background: var(--metric-tint);}
.office-metric strong {font-size: clamp(27px, 3vw, 36px); font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums;}
.office-metric > :last-child:not(strong):not(:first-child) {position: absolute; right: 19px; bottom: 22px; color: #948ba7;}
.office-panel {min-width: 0; margin-top: 22px;}
.office-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 21px;
  border-bottom: 1px solid var(--office-border);
}
.office-panel header h2 {font-size: 17px; font-weight: 710;}
.office-panel header a, .office-table a {color: #6043b6; font-size: 13px; font-weight: 600;}
.office-panel header a:hover, .office-table a:hover {text-decoration: underline;}
.office-table {max-width: 100%; overflow-x: auto;}
.office-table table, table.office-table {width: 100%; border-collapse: collapse; text-align: left; font-size: 13px;}
.office-table :is(th,td) {padding: 13px 18px; border-bottom: 1px solid #efedf3; text-align: left; line-height: 1.6;}
.office-table th {background: #f8f7fb; color: var(--office-muted); font-weight: 600;}
.office-table tr:last-child td {border-bottom: 0;}
.office-stage {display: inline-block; padding: 2px 8px; border-radius: 5px; background: #f0ecfa; color: #60468d; font-size: 12px; font-weight: 600;}
.office-empty, .office-status {padding: 34px 20px; color: var(--office-muted); text-align: center; font-size: 14px; line-height: 1.75;}
.office-empty {margin: 0;}
.office-empty > svg {width: 34px; height: 34px; margin-bottom: 7px; padding: 8px; border-radius: 50%; background: #f0f6f3; color: #38745e;}
.office-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  width: min(calc(100% - 64px), 1010px);
  min-height: clamp(390px, 59vh, 550px);
  margin: clamp(30px, 9vh, 94px) auto 40px;
  overflow: hidden;
  border: 1px solid #ddd9e6;
  border-radius: 18px;
  background: white;
  box-shadow: 0 17px 55px -28px #35205056;
}
.office-login-art {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: clamp(23px, 3.7vw, 50px);
  color: white;
  background: linear-gradient(180deg, #27183803 25%, #221a36c9 100%), url("/assets/neighborhood.webp") 52% center / cover no-repeat;
}
.office-login-art h2 {max-width: 14em; font-size: clamp(24px, 3.1vw, 41px); font-weight: 680; line-height: 1.33; letter-spacing: -.035em; text-wrap: balance;}
.office-login-art p {margin-top: 9px; color: #f5f3f9; line-height: 1.7;}
.office-login-form {align-self: center; min-width: 0; padding: 42px clamp(25px, 4vw, 57px);}
.office-login-form h1 {font-size: clamp(25px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -.04em;}
.office-login-form p {margin-top: 10px; color: var(--office-muted); font-size: 14px; line-height: 1.7;}
.office-login-form form {display: grid; gap: 18px; margin: 27px 0 0;}
.office-login-form .p-field input {min-height: 44px; background: white;}
.office-login-form button[type="submit"] {width: 100%; min-height: 45px; margin-top: 2px;}
.office-login-form .p-error {color: #a13346; font-size: 13px;}
.office-login-form form + a {display: inline-block; margin-top: 16px; padding-block: 5px; color: #6043b6; font-size: 13px;}
.office-login-form form + a:hover {text-decoration: underline;}
.office #main > .office-login-form {max-width: 480px; margin: 8vh auto; border: 1px solid var(--office-border); border-radius: 13px; background: white;}
.office #main > .office-login-form .btn {margin-top: 18px;}
@media (max-width: 1040px) {
  .office {--office-sidebar: 202px;}
  .office-signed #main {padding-inline: 20px;}
  .office-metric {padding: 15px;}
}
@media (max-width: 760px) {
  .office {--office-header: 56px;}
  .office-signed .office-layout {display: block;}
  .office-brand, .office-session {gap: 8px;}
  .office-brand img {width: 28px; height: 28px;}
  .office-brand span {font-size: 16px;}
  .office-brand b {padding-left: 9px; font-size: 12px;}
  #office-community {display: none;}
  #office-sidebar {
    z-index: 20;
    height: auto;
    max-height: calc(100dvh - var(--office-header));
    padding: 6px 16px;
    border-right: none;
    border-bottom: 1px solid var(--office-border);
  }
  #office-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 4px 9px;
    color: #5138a1;
    background: #f1edfb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 650;
  }
  #office-toggle::after {content: ""; width: 6px; height: 6px; margin-top: -3px; transform: rotate(45deg); border: solid currentColor; border-width: 0 1.5px 1.5px 0;}
  #office-toggle[aria-expanded="true"]::after {margin-top: 3px; transform: rotate(225deg);}
  #office-nav {display: none;}
  #office-sidebar.is-open #office-nav {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px 0;}
  .office-nav-group a {min-height: 38px;}
  .office-signed #main {padding: 22px 16px 36px;}
  .office-metrics {gap: 10px;}
  .office-table :is(th,td) {padding: 10px;}
  .office-login-layout {width: min(calc(100% - 32px), 500px); min-height: 0; grid-template-columns: 1fr; margin: 25px auto;}
  .office-login-art {min-height: 142px; padding: 20px 25px; background-position: center 57%;}
  .office-login-art h2 {font-size: 26px;}
  .office-login-form {padding: 26px;}
}
@media (max-width: 520px) {
  .office-top {padding-inline: 12px;}
  .office-metrics {grid-template-columns: 1fr;}
  .office-metric {display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 38px 12px 14px;}
  .office-metric strong {font-size: 24px;}
  .office-metric > :last-child:not(strong):not(:first-child) {right: 13px; bottom: auto; top: 50%; transform: translateY(-50%);}
  .office-panel {margin-top: 16px;}
  .office-panel header {padding: 14px;}
  .office-heading {margin-bottom: 15px;}
  .office-login-form {padding: 24px 20px;}
}
@media (max-width: 420px) {
  .office-signed .office-brand span {display: none;}
  .office-signed .office-brand b {padding-left: 0; border-left: 0;}
  .office-session {max-width: 52%;}
}
