:root {
  --green: #2fae6a;
  --green-deep: #21975a;
  --green-soft: #e4f5e9;
  --green-line: #8fd4aa;
  --blue: #1653b3;
  --ink: #080b0b;
  --muted: #737b78;
  --muted-light: #9ba29f;
  --line: #e8ece9;
  --line-strong: #dfe6e1;
  --white: #ffffff;
  --canvas-w: 1920px;
  --canvas-h: 1080px;
  --glass-tint: rgb(249 252 249 / 52%);
  --glass-tint-strong: rgb(255 255 255 / 68%);
  --glass-border: rgb(255 255 255 / 74%);
  --glass-shadow:
    0 28px 70px rgb(73 102 84 / 13%),
    inset 0 1px 0 rgb(255 255 255 / 88%),
    inset 0 -1px 0 rgb(78 105 91 / 4%);
  --glass-blur: 28px;
  --glass-saturation: 122%;
  --card-radius: 36px;
  --control-radius: 16px;
  --focus-ring: 0 0 0 4px rgb(47 174 106 / 18%);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f4f6ef;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family:
    "Microsoft YaHei UI",
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans SC",
    ui-sans-serif,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

button:focus-visible,
input:focus-visible {
  outline: none;
}

h1,
h2 {
  text-wrap: balance;
}

[tabindex="-1"]:focus {
  outline: none;
}

button:focus-visible {
  box-shadow: var(--focus-ring);
}

.scene-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgb(246 249 241 / 12%), rgb(252 251 237 / 16%)),
    url("assets/background.jpg") center center / cover no-repeat;
}

.scene-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 28%, rgb(241 250 242 / 22%), transparent 30%),
    linear-gradient(180deg, rgb(255 255 255 / 4%), rgb(252 252 246 / 12%));
}

body:not(.is-workspace) .scene-background {
  background:
    linear-gradient(115deg, rgb(246 249 241 / 12%), rgb(252 251 237 / 16%)),
    url("assets/auth-background.jpg") center center / cover no-repeat;
}

.viewport-frame {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.design-canvas {
  position: relative;
  width: var(--canvas-w);
  height: var(--canvas-h);
  flex: none;
  transform: scale(1);
  transform-origin: center center;
}

.auth-main,
.auth-view {
  position: absolute;
  inset: 0;
}

.auth-view {
  animation: view-enter 300ms var(--ease) both;
}

.auth-view[hidden] {
  display: none !important;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-lockup {
  position: absolute;
  top: 58px;
  left: 61px;
  z-index: 20;
  color: var(--blue);
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
}

.brand-jnk {
  font-family: "Arial Black", "Microsoft YaHei UI", sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.brand-rule {
  width: 2px;
  height: 42px;
  background: currentColor;
  opacity: 0.82;
}

.brand-name {
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-subtitle {
  margin: 25px 0 0;
  color: #101312;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.7px;
}

.liquid-glass {
  position: absolute;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgb(248 251 248 / 94%);
  box-shadow: var(--glass-shadow);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .liquid-glass {
    background:
      linear-gradient(135deg, rgb(255 255 255 / 16%), transparent 46%),
      var(--glass-tint);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  }
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 34%), transparent 31%),
    radial-gradient(circle at 88% 104%, rgb(255 255 255 / 25%), transparent 37%);
  pointer-events: none;
}

.auth-card {
  margin: 0;
  color: var(--ink);
}

/* Registration */

.register-intro {
  position: absolute;
  top: 272px;
  left: 164px;
  width: 760px;
  z-index: 4;
}

.register-intro h1 {
  margin: 0;
  font-size: 68px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0;
}

.register-intro p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.5px;
}

.register-cat-scene {
  position: absolute;
  top: 401px;
  left: 75px;
  z-index: 3;
  width: 830px;
  min-height: 600px;
  pointer-events: none;
}

.register-cat {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: auto;
  user-select: none;
  filter: drop-shadow(0 18px 20px rgb(89 105 74 / 9%));
}

.speech-bubble {
  position: absolute;
  z-index: 4;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 30px;
  background: rgb(255 255 255 / 80%);
  box-shadow:
    0 14px 36px rgb(72 92 78 / 11%),
    inset 0 1px 0 rgb(255 255 255 / 92%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  width: 27px;
  height: 27px;
  border-right: 1px solid rgb(255 255 255 / 88%);
  border-bottom: 1px solid rgb(255 255 255 / 88%);
  background: rgb(255 255 255 / 81%);
  transform: rotate(45deg);
}

.speech-bubble p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #121615;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.2px;
}

.register-bubble {
  top: 145px;
  left: 441px;
  width: 380px;
  min-height: 154px;
  padding: 34px 22px 28px 58px;
}

.register-bubble::after {
  bottom: -12px;
  left: 54px;
}

.bubble-accent {
  position: absolute;
  top: 47px;
  left: 33px;
  width: 19px;
  height: 19px;
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.register-card {
  top: 65px;
  left: 982px;
  width: 852px;
  height: 963px;
  padding: 42px 65px 28px;
  border-radius: 35px;
}

.card-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.card-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.45;
}

.form-stack {
  display: flex;
  flex-direction: column;
}

.register-form-stack {
  margin-top: 22px;
  gap: 15px;
}

.form-field {
  position: relative;
}

.form-field label {
  display: block;
  margin: 0 0 8px;
  color: #222625;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 61px;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgb(255 255 255 / 78%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 82%),
    0 1px 2px rgb(38 57 46 / 2%);
  transition:
    border-color 160ms var(--ease),
    background-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.input-shell:hover {
  border-color: #dce4df;
  background: rgb(255 255 255 / 86%);
}

.input-shell:focus-within {
  border-color: var(--green-line);
  background: rgb(255 255 255 / 94%);
  box-shadow: var(--focus-ring);
}

.input-shell input {
  width: 100%;
  min-width: 0;
  height: 59px;
  padding: 0 47px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #161a18;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1px;
}

.input-shell select {
  width: 100%;
  min-width: 0;
  height: 59px;
  padding: 0 47px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #161a18;
  font: inherit;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  appearance: none;
}

.office-select-chevron {
  position: absolute;
  top: 50%;
  right: 19px;
  width: 22px;
  height: 22px;
  color: #7b8581;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  pointer-events: none;
  transform: translateY(-50%);
}

.login-card .input-shell input {
  padding-left: 21px;
  padding-right: 54px;
}

.input-shell input::placeholder {
  color: #a5aca9;
  opacity: 1;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 19px;
  z-index: 1;
  width: 24px;
  height: 24px;
  color: #7b8581;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.inline-icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7b8581;
  cursor: pointer;
  transition:
    color 150ms var(--ease),
    background-color 150ms var(--ease);
}

.inline-icon-button:hover {
  color: #4d5752;
  background: rgb(231 237 233 / 58%);
}

.inline-icon-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clear-button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.clear-button svg {
  width: 21px;
  height: 21px;
}

.validation-icon {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 31px;
  height: 31px;
  color: var(--green);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  transition: opacity 150ms var(--ease);
}

.phone-field:not(.is-success) .validation-icon {
  opacity: 0;
}

.phone-row {
  display: block;
}

.phone-row .input-shell {
  min-width: 0;
}

.phone-available {
  display: none;
}

.phone-field:not(.is-success) .phone-available {
  visibility: hidden;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 171px;
  gap: 14px;
  align-items: center;
}

.outline-button {
  height: 54px;
  padding: 0 20px;
  border: 2px solid var(--green);
  border-radius: 28px;
  background: rgb(255 255 255 / 12%);
  color: var(--green-deep);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease);
}

.outline-button:hover:not(:disabled) {
  background: var(--green);
  color: #fff;
}

.outline-button:active:not(:disabled) {
  transform: scale(0.98);
}

.outline-button:disabled {
  border-color: #bdc9c1;
  color: #8d9892;
  cursor: default;
}

.resend-note {
  margin: 10px 5px 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.2;
  text-align: right;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

.password-toggle .eye-closed {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.password-strength {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 12px 0 0;
}

.strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex: 1;
}

.strength-bars span {
  height: 8px;
  border-radius: 8px;
  background: #e4e9e6;
  transition:
    background-color 180ms var(--ease),
    opacity 180ms var(--ease);
}

.password-strength[data-strength-level="1"] .strength-bars span:nth-child(-n + 1),
.password-strength[data-strength-level="2"] .strength-bars span:nth-child(-n + 2),
.password-strength[data-strength-level="3"] .strength-bars span:nth-child(-n + 3),
.password-strength[data-strength-level="4"] .strength-bars span:nth-child(-n + 4) {
  background: var(--green);
}

.password-strength p {
  min-width: 96px;
  margin: 0;
  color: #343a37;
  font-size: 19px;
  line-height: 1;
  text-align: right;
}

.password-strength strong {
  font-weight: 400;
}

.check-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #4d5551;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.check-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.custom-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 25px;
  height: 25px;
  margin-right: 10px;
  border: 1.5px solid #9faaa4;
  border-radius: 3px;
  background: rgb(255 255 255 / 52%);
  transition:
    border-color 150ms var(--ease),
    background-color 150ms var(--ease);
}

.custom-check svg {
  width: 17px;
  height: 17px;
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 150ms var(--ease),
    transform 150ms var(--ease);
}

.check-row input:checked + .custom-check {
  border-color: var(--green);
  background: var(--green);
}

.check-row input:checked + .custom-check svg {
  opacity: 1;
  transform: scale(1);
}

.check-row input:focus-visible + .custom-check {
  box-shadow: var(--focus-ring);
}

.terms-row {
  margin-top: 19px;
}

.terms-row > span:last-child {
  display: inline;
}

.inline-link {
  display: inline;
  min-height: auto;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}

.field-error {
  display: none;
  margin: 6px 4px 0;
  color: #c84646;
  font-size: 15px;
  line-height: 1.35;
}

.form-field.is-invalid .field-error,
.terms-error.is-visible {
  display: block;
}

.form-field.is-invalid .input-shell {
  border-color: #df9191;
  box-shadow: 0 0 0 4px rgb(200 70 70 / 9%);
}

.terms-error {
  margin: 2px 0 0 35px;
}

.primary-button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 65px;
  padding: 0 28px;
  border: 0;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 8%), transparent 48%),
    linear-gradient(135deg, #34b873, #279f60);
  box-shadow:
    0 12px 24px rgb(47 174 106 / 17%),
    inset 0 1px 0 rgb(255 255 255 / 24%),
    inset 0 -1px 0 rgb(17 120 66 / 13%);
  color: #fff;
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 1px;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    filter 160ms var(--ease);
}

.primary-button:hover {
  filter: saturate(1.06) brightness(1.02);
  box-shadow:
    0 15px 30px rgb(47 174 106 / 23%),
    inset 0 1px 0 rgb(255 255 255 / 26%);
}

.primary-button:active {
  transform: translateY(1px) scale(0.997);
}

.primary-button:disabled {
  cursor: wait;
  filter: grayscale(0.08);
  opacity: 0.78;
}

.register-submit {
  margin-top: 20px;
}

.card-footer {
  margin: 20px 0 0;
  color: #606864;
  font-size: 21px;
  line-height: 1.5;
  text-align: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--green-deep);
  font-size: inherit;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}

.text-link:hover {
  color: #187b49;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mini-cat {
  position: absolute;
  right: 19px;
  bottom: 12px;
  width: 123px;
  height: auto;
  pointer-events: none;
}

/* Login */

.login-card {
  top: 152px;
  left: 352px;
  width: 692px;
  padding: 49px 60px 34px;
  border-radius: 36px;
}

.employee-card {
  height: 830px;
}

.leader-card {
  height: 830px;
}

.leader-strip {
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 10px;
  border-radius: 0 0 13px 13px;
  background: linear-gradient(180deg, #3eb674, #299d61);
  box-shadow: 0 2px 8px rgb(42 157 98 / 16%);
}

.login-heading {
  text-align: center;
}

.role-badge {
  display: inline-grid;
  place-items: center;
  min-width: 110px;
  height: 40px;
  padding: 0 19px;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 22px;
  background: rgb(220 244 225 / 70%);
  color: var(--green-deep);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.manager-badge {
  background: rgb(224 241 227 / 76%);
}

.login-heading h2 {
  margin-top: 13px;
  font-size: 65px;
  font-weight: 800;
  line-height: 1.08;
}

.login-heading p {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.45;
}

.login-form-stack {
  margin-top: 25px;
  gap: 18px;
}

.login-form-stack .form-field label {
  margin-bottom: 8px;
  font-size: 22px;
}

.login-form-stack .input-shell {
  min-height: 63px;
  border-radius: 15px;
  background: rgb(255 255 255 / 82%);
}

.login-form-stack .input-shell input {
  height: 61px;
  font-size: 23px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.remember-row {
  color: #303735;
  font-size: 22px;
  font-weight: 500;
}

.remember-row .custom-check {
  width: 27px;
  height: 27px;
  margin-right: 9px;
}

.login-options .text-link {
  font-size: 21px;
  font-weight: 500;
}

.login-submit {
  height: 64px;
  margin-top: 20px;
  font-size: 29px;
}

.login-register-copy {
  margin-top: 18px;
  font-size: 22px;
}

.card-divider {
  height: 1px;
  margin: 20px 0 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(145 158 151 / 33%) 14%,
    rgb(145 158 151 / 33%) 86%,
    transparent
  );
}

.role-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  align-self: center;
  min-height: 44px;
  margin-top: 11px;
  padding: 4px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #737b78;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  transition: color 150ms var(--ease);
}

.role-switch:hover {
  color: #343c38;
}

.role-switch svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leader-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 0;
  color: #4d5551;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}

.leader-switches {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
}

.leader-switches .role-switch {
  margin-top: 3px;
  color: #242b28;
  font-size: 21px;
}

.leader-switches p {
  margin: 2px 0 0;
  color: #5f6763;
  font-size: 20px;
  line-height: 1.5;
}

.leader-access {
  top: 992px;
  left: 352px;
  display: flex;
  align-items: center;
  width: 692px;
  height: 76px;
  padding: 0 44px;
  border-radius: 38px;
  color: #4d5651;
}

.leader-access svg {
  flex: none;
  width: 36px;
  height: 36px;
  margin-right: 20px;
  color: #6fc291;
  fill: rgb(120 194 148 / 12%);
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leader-access p {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.login-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.login-cat {
  position: absolute;
  top: 153px;
  left: 963px;
  width: 805px;
  height: auto;
  user-select: none;
  filter: drop-shadow(0 16px 18px rgb(91 105 77 / 8%));
}

.login-bubble {
  width: 265px;
  min-height: 195px;
  padding: 33px 31px 28px;
}

.login-bubble::after {
  bottom: -11px;
  left: 62px;
}

.employee-bubble {
  top: 399px;
  left: 1542px;
}

.leader-bubble {
  top: 376px;
  left: 1533px;
  min-height: 176px;
}

.bubble-heart {
  position: absolute;
  right: 20px;
  bottom: 23px;
  width: 24px;
  height: 24px;
  color: #b6eac8;
  fill: #b6eac8;
  stroke: currentColor;
  stroke-width: 1.5;
  transform: rotate(-32deg);
}

.bubble-leaf {
  position: absolute;
  top: 40px;
  left: 28px;
  width: 30px;
  height: 30px;
  color: #9bd8b1;
  fill: #9bd8b1;
  stroke: currentColor;
  stroke-width: 1.4;
}

.leader-bubble p {
  padding-left: 43px;
}

/* Feedback and accessibility */

.toast {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 100;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 20px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 14px;
  background: rgb(24 37 30 / 84%);
  box-shadow: 0 14px 40px rgb(20 35 26 / 18%);
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms var(--ease),
    transform 180ms var(--ease);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@media (min-width: 1101px) {
  .register-form-stack {
    margin-top: 27px;
    gap: 26px;
  }

  .register-card .password-strength {
    margin-top: 20px;
  }

  .register-card .terms-row {
    margin-top: 30px;
  }

  .register-card .register-submit {
    margin-top: 34px;
  }

  .employee-card .login-heading h2 {
    margin-top: 23px;
  }

  .employee-card .login-form-stack {
    gap: 25px;
  }

  .employee-card .login-options {
    margin-top: 29px;
  }

  .employee-card .login-submit {
    margin-top: 50px;
  }

  .employee-card .login-register-copy {
    margin-top: 9px;
  }

  .employee-card .role-switch {
    margin-top: 34px;
  }

  .leader-card .card-divider {
    margin-top: 36px;
  }

  .leader-card .leader-switches {
    margin-top: 18px;
  }

  .leader-card .leader-switches .role-switch {
    margin-top: 10px;
  }

  .leader-card .leader-switches p {
    margin-top: 8px;
  }
}

/* Unified liquid-glass surfaces */

:root {
  --glass-tint: rgb(250 253 250 / 50%);
  --glass-tint-strong: rgb(255 255 255 / 68%);
  --glass-border: rgb(255 255 255 / 70%);
  --glass-blur: 30px;
  --glass-saturation: 138%;
}

.auth-main {
  --glass-tint: rgb(249 252 249 / 52%);
  --glass-tint-strong: rgb(255 255 255 / 68%);
  --glass-border: rgb(255 255 255 / 74%);
  --glass-blur: 28px;
  --glass-saturation: 122%;
}

.workspace-app {
  --glass-surface:
    linear-gradient(145deg, rgb(255 255 255 / 32%), transparent 42%),
    rgb(250 253 250 / 53%);
  --glass-surface-strong:
    linear-gradient(145deg, rgb(255 255 255 / 38%), transparent 44%),
    rgb(250 253 250 / 64%);
  --glass-edge:
    inset 0 1px 0 rgb(255 255 255 / 84%),
    inset 1px 0 0 rgb(255 255 255 / 42%),
    inset 0 -1px 0 rgb(75 106 87 / 4%);
}

.workspace-card,
.dialog-card {
  border-color: rgb(255 255 255 / 68%);
  background: var(--glass-surface, rgb(250 253 250 / 68%));
  box-shadow:
    0 20px 58px rgb(54 83 64 / 9%),
    var(--glass-edge, inset 0 1px 0 rgb(255 255 255 / 84%));
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
}

.dialog-card {
  background: var(--glass-surface-strong, rgb(250 253 250 / 82%));
  -webkit-backdrop-filter: blur(34px) saturate(144%);
  backdrop-filter: blur(34px) saturate(144%);
}

.segmented-control,
.select-shell,
.search-shell,
.soft-tip,
.upload-dropzone,
.uploaded-file-row,
.review-queue-item,
.team-member-card,
.report-list-item,
.week-day,
.ai-comment-box,
.review-comment-input textarea,
.dialog-field input,
.dialog-field textarea {
  border-color: rgb(255 255 255 / 62%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 32%), transparent 48%),
    rgb(255 255 255 / 46%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 76%),
    0 8px 22px rgb(50 79 61 / 4%);
}

.segmented-control,
.select-shell,
.search-shell,
.upload-dropzone,
.team-member-card,
.review-queue-item {
  -webkit-backdrop-filter: blur(16px) saturate(128%);
  backdrop-filter: blur(16px) saturate(128%);
}

.week-task {
  border-color: rgb(255 255 255 / 58%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 28%), transparent 54%),
    rgb(255 255 255 / 43%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%);
}

.review-queue-item:hover,
.review-queue-item.is-selected,
.uploaded-file-row:hover,
.uploaded-file-row.is-selected,
.report-list-item.is-selected {
  border-color: rgb(68 185 123 / 48%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 38%), transparent 48%),
    rgb(242 252 246 / 66%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 84%),
    0 10px 26px rgb(55 128 83 / 6%);
}

.review-comment-input textarea,
.dialog-field input,
.dialog-field textarea {
  -webkit-backdrop-filter: blur(14px) saturate(124%);
  backdrop-filter: blur(14px) saturate(124%);
}

.secondary-action,
.soft-button,
.history-button {
  border-color: rgb(255 255 255 / 64%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 38%), transparent 56%),
    rgb(255 255 255 / 48%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 80%),
    0 8px 20px rgb(49 77 60 / 5%);
  -webkit-backdrop-filter: blur(14px) saturate(126%);
  backdrop-filter: blur(14px) saturate(126%);
}

@media (max-width: 820px) {
  .workspace-card,
  .dialog-card,
  .segmented-control,
  .select-shell,
  .search-shell,
  .upload-dropzone,
  .team-member-card,
  .review-queue-item {
    -webkit-backdrop-filter: blur(18px) saturate(132%);
    backdrop-filter: blur(18px) saturate(132%);
  }
}

@media (forced-colors: active) {
  .liquid-glass,
  .speech-bubble,
  .input-shell {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  .primary-button {
    border: 1px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }
}

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

/* Tablet and mobile */

@media (max-width: 1100px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .viewport-frame {
    position: relative;
    display: block;
    min-height: 100dvh;
    overflow: visible;
  }

  .design-canvas {
    width: 100%;
    height: auto;
    min-height: 100dvh;
    transform: none !important;
  }

  .brand-lockup {
    position: relative;
    top: auto;
    left: auto;
    padding: max(27px, env(safe-area-inset-top)) 28px 0;
  }

  .brand-jnk {
    font-size: clamp(33px, 6.2vw, 42px);
  }

  .brand-rule {
    height: clamp(30px, 5.8vw, 39px);
  }

  .brand-name {
    font-size: clamp(21px, 4.1vw, 26px);
  }

  .brand-subtitle {
    margin-top: 17px;
    font-size: clamp(20px, 3.8vw, 25px);
  }

  .auth-main,
  .auth-view {
    position: relative;
    inset: auto;
  }

  .auth-view {
    min-height: calc(100dvh - 106px);
    padding: 28px 24px max(36px, env(safe-area-inset-bottom));
  }

  .register-view,
  .login-view {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .register-intro {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 760px);
    margin-top: 34px;
    text-align: center;
  }

  .register-intro h1 {
    font-size: clamp(37px, 6.8vw, 58px);
  }

  .register-intro p {
    margin-top: 12px;
    font-size: clamp(19px, 3.3vw, 27px);
  }

  .register-cat-scene {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 790px);
    min-height: 0;
    margin-top: 20px;
  }

  .register-cat {
    position: relative;
    top: auto;
    left: auto;
    width: min(39vw, 300px);
  }

  .register-bubble {
    position: relative;
    top: auto;
    left: auto;
    width: min(46vw, 360px);
    min-height: 126px;
    margin-left: clamp(-45px, -3vw, -16px);
    padding: 27px 25px 23px 51px;
  }

  .register-bubble p {
    font-size: clamp(17px, 2.6vw, 22px);
  }

  .bubble-accent {
    top: 33px;
    left: 24px;
  }

  .register-card {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 760px);
    height: auto;
    min-height: 0;
    margin-top: 28px;
    padding: 38px clamp(28px, 5.3vw, 58px) 31px;
  }

  .card-heading h2 {
    font-size: clamp(35px, 5vw, 45px);
  }

  .card-heading p {
    font-size: clamp(17px, 2.4vw, 22px);
  }

  .mini-cat {
    width: 95px;
  }

  .login-view {
    padding-top: 34px;
  }

  .login-card {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 690px);
    height: auto;
    min-height: 0;
    padding: 42px clamp(28px, 5.8vw, 60px) 32px;
  }

  .employee-card {
    padding-bottom: 30px;
  }

  .leader-card {
    padding-bottom: 30px;
  }

  .login-heading h2 {
    font-size: clamp(45px, 7vw, 62px);
  }

  .login-heading p {
    font-size: clamp(17px, 2.5vw, 21px);
  }

  .login-visual {
    position: relative;
    inset: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 760px);
    min-height: 0;
    margin-top: 25px;
  }

  .login-cat {
    position: relative;
    top: auto;
    left: auto;
    width: min(58vw, 450px);
  }

  .login-bubble {
    position: relative;
    top: auto;
    left: auto;
    width: min(32vw, 260px);
    min-height: 145px;
    margin-left: clamp(-90px, -7vw, -30px);
    padding: 25px 23px 22px;
  }

  .login-bubble p,
  .leader-bubble p {
    padding-left: 0;
    font-size: clamp(16px, 2.3vw, 21px);
  }

  .leader-bubble {
    min-height: 150px;
  }

  .bubble-leaf {
    top: 25px;
    left: 21px;
    width: 21px;
    height: 21px;
  }

  .leader-bubble p {
    padding-top: 34px;
  }

  .leader-access {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 690px);
    height: auto;
    min-height: 70px;
    margin-top: 16px;
    padding: 15px 28px;
    border-radius: 28px;
  }

  .leader-access p {
    font-size: clamp(15px, 2.3vw, 19px);
  }

  .leader-access svg {
    width: 31px;
    height: 31px;
    margin-right: 15px;
  }
}

@media (max-width: 640px) {
  .brand-lockup {
    padding-right: 21px;
    padding-left: 21px;
  }

  .brand-line {
    gap: 7px;
  }

  .brand-rule {
    width: 1.5px;
  }

  .auth-view {
    padding-right: 15px;
    padding-left: 15px;
  }

  .register-intro {
    margin-top: 28px;
    padding: 0 8px;
  }

  .register-intro h1 {
    font-size: clamp(33px, 9.7vw, 45px);
    line-height: 1.25;
  }

  .register-intro .title-line {
    display: block;
  }

  .register-intro p {
    font-size: 18px;
  }

  .register-cat-scene {
    margin-top: 17px;
  }

  .register-cat {
    width: 48vw;
    max-width: 230px;
  }

  .register-bubble {
    width: 55vw;
    max-width: 285px;
    min-height: 104px;
    margin-left: -20px;
    padding: 20px 17px 18px 40px;
    border-radius: 22px;
  }

  .register-bubble p {
    font-size: clamp(14px, 4.1vw, 17px);
    line-height: 1.55;
  }

  .bubble-accent {
    top: 23px;
    left: 17px;
    width: 15px;
    height: 15px;
  }

  .register-card {
    margin-top: 22px;
    padding: 30px 21px 27px;
    border-radius: 26px;
  }

  .card-heading h2 {
    font-size: 33px;
  }

  .card-heading p {
    font-size: 16px;
  }

  .register-form-stack {
    margin-top: 22px;
    gap: 13px;
  }

  .form-field label {
    font-size: 17px;
  }

  .input-shell {
    min-height: 56px;
    border-radius: 14px;
  }

  .input-shell input {
    height: 54px;
    padding-right: 43px;
    padding-left: 43px;
    font-size: 18px;
  }

  .input-shell select {
    height: 54px;
    padding-right: 43px;
    padding-left: 43px;
    font-size: 18px;
  }

  .field-icon {
    left: 15px;
    width: 22px;
    height: 22px;
  }

  .validation-icon {
    right: 15px;
    width: 26px;
    height: 26px;
  }

  .phone-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
  }

  .phone-available {
    font-size: 15px;
  }

  .code-row {
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 8px;
  }

  .outline-button {
    height: 50px;
    padding: 0 12px;
    font-size: 16px;
  }

  .resend-note {
    margin-top: 7px;
    font-size: 14px;
  }

  .password-strength {
    gap: 12px;
  }

  .strength-bars {
    gap: 7px;
  }

  .strength-bars span {
    height: 6px;
  }

  .password-strength p {
    min-width: 70px;
    font-size: 14px;
  }

  .check-row {
    min-height: 44px;
    font-size: 14px;
  }

  .custom-check {
    width: 23px;
    height: 23px;
    margin-right: 8px;
  }

  .terms-row {
    align-items: flex-start;
    margin-top: 14px;
    padding-top: 9px;
  }

  .primary-button {
    height: 57px;
    border-radius: 30px;
    font-size: 22px;
  }

  .register-submit {
    margin-top: 15px;
  }

  .card-footer {
    margin-top: 16px;
    font-size: 16px;
  }

  .mini-cat {
    right: 8px;
    bottom: 6px;
    width: 74px;
  }

  .login-view {
    padding-top: 29px;
  }

  .login-card {
    padding: 34px 21px 27px;
    border-radius: 27px;
  }

  .leader-strip {
    right: 11px;
    left: 11px;
    height: 8px;
  }

  .role-badge {
    min-width: 95px;
    height: 35px;
    padding: 0 16px;
    font-size: 16px;
  }

  .login-heading h2 {
    margin-top: 12px;
    font-size: 42px;
  }

  .login-heading p {
    font-size: 15px;
  }

  .login-form-stack {
    margin-top: 23px;
    gap: 15px;
  }

  .login-form-stack .form-field label {
    font-size: 17px;
  }

  .login-form-stack .input-shell {
    min-height: 56px;
  }

  .login-form-stack .input-shell input {
    height: 54px;
    padding-left: 17px;
    padding-right: 48px;
    font-size: 18px;
  }

  .login-options {
    margin-top: 13px;
  }

  .remember-row {
    font-size: 16px;
  }

  .remember-row .custom-check {
    width: 24px;
    height: 24px;
  }

  .login-options .text-link {
    font-size: 16px;
  }

  .login-submit {
    height: 57px;
    margin-top: 15px;
    font-size: 23px;
  }

  .login-register-copy {
    margin-top: 16px;
    font-size: 17px;
  }

  .card-divider {
    margin-top: 17px;
  }

  .role-switch,
  .leader-switches .role-switch {
    font-size: 16px;
  }

  .leader-help {
    flex-wrap: wrap;
    gap: 2px;
    margin-top: 14px;
    font-size: 15px;
  }

  .leader-switches p {
    font-size: 16px;
  }

  .login-visual {
    margin-top: 19px;
  }

  .login-cat {
    width: 64vw;
    max-width: 310px;
  }

  .login-bubble {
    width: 39vw;
    max-width: 175px;
    min-height: 112px;
    margin-left: -32px;
    padding: 19px 16px 17px;
    border-radius: 22px;
  }

  .login-bubble p,
  .leader-bubble p {
    font-size: 14px;
    line-height: 1.55;
  }

  .bubble-heart {
    right: 13px;
    bottom: 13px;
    width: 17px;
    height: 17px;
  }

  .leader-bubble {
    min-height: 120px;
  }

  .bubble-leaf {
    top: 16px;
    left: 15px;
    width: 17px;
    height: 17px;
  }

  .leader-bubble p {
    padding-top: 26px;
  }

  .leader-access {
    min-height: 62px;
    margin-top: 12px;
    padding: 13px 18px;
    border-radius: 24px;
  }

  .leader-access svg {
    width: 27px;
    height: 27px;
    margin-right: 11px;
  }

  .leader-access p {
    font-size: 14px;
  }

  .toast {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    max-width: none;
    text-align: center;
  }
}

/* Workspace application */

body.is-workspace {
  overflow: hidden;
}

body.is-workspace .viewport-frame {
  display: none;
}

body.is-workspace .scene-background::after {
  background:
    radial-gradient(circle at 16% 22%, rgb(255 255 255 / 12%), transparent 32%),
    linear-gradient(180deg, rgb(255 255 255 / 2%), rgb(252 252 246 / 8%));
}

.workspace-app[hidden],
.workspace-page[hidden],
.mobile-nav-scrim[hidden] {
  display: none !important;
}

.workspace-app {
  --workspace-sidebar: 278px;
  --workspace-ui-scale: 1;
  --workspace-ui-width: 100vw;
  --workspace-ui-height: 100dvh;
  --workspace-green: #38b978;
  --workspace-green-deep: #269d61;
  --workspace-green-soft: #e5f7ec;
  --workspace-ink: #101615;
  --workspace-muted: #737d78;
  --workspace-line: rgb(219 228 222 / 78%);
  --workspace-card: rgb(255 255 255 / 73%);
  --workspace-card-solid: rgb(255 255 255 / 90%);
  --workspace-shadow:
    0 18px 50px rgb(53 82 64 / 8%),
    inset 0 1px 0 rgb(255 255 255 / 76%);
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  color: var(--workspace-ink);
  animation: workspace-enter 260ms var(--ease) both;
}

@media (min-width: 1101px) {
  .workspace-app {
    top: 0;
    right: auto;
    bottom: auto;
    left: 0;
    width: var(--workspace-ui-width);
    height: var(--workspace-ui-height);
    transform: scale(var(--workspace-ui-scale));
    transform-origin: top left;
  }
}

@keyframes workspace-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.workspace-sidebar {
  position: relative;
  z-index: 5;
  display: flex;
  flex: none;
  flex-direction: column;
  width: var(--workspace-sidebar);
  height: 100%;
  padding: 37px 25px 28px;
  border-right: 1px solid rgb(255 255 255 / 56%);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 57%), rgb(250 253 249 / 49%)),
    rgb(252 253 250 / 56%);
  box-shadow: 12px 0 42px rgb(62 84 70 / 5%);
  -webkit-backdrop-filter: blur(24px) saturate(112%);
  backdrop-filter: blur(24px) saturate(112%);
}

.workspace-brand {
  display: block;
  width: fit-content;
  margin: 0 8px 28px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.workspace-brand:focus-visible,
.workspace-nav-item:focus-visible,
.profile-trigger:focus-visible,
.icon-action:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.soft-button:focus-visible,
.round-arrow:focus-visible,
.workspace-nav-item:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.workspace-brand img {
  display: block;
  width: 215px;
  height: auto;
}

.workspace-brand span {
  display: block;
  margin-top: 12px;
  color: #202622;
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
}

.workspace-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.workspace-nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #505a55;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition:
    color 160ms var(--ease),
    background-color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    transform 160ms var(--ease);
}

.workspace-nav-item svg {
  flex: none;
  width: 25px;
  height: 25px;
  margin-right: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-nav-item:hover {
  background: rgb(255 255 255 / 50%);
  color: #27312c;
}

.workspace-nav-item.is-active {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 10%), transparent 50%),
    linear-gradient(135deg, #43bf83, #32ae70);
  box-shadow:
    0 10px 24px rgb(50 174 112 / 17%),
    inset 0 1px 0 rgb(255 255 255 / 22%);
  color: #fff;
  font-weight: 650;
}

.workspace-app[data-role="employee"] .leader-only {
  display: none !important;
}

.workspace-app[data-role="leader"] .employee-only-copy {
  display: none;
}

.sidebar-whisper {
  position: relative;
  width: 100%;
  height: 230px;
  min-height: 230px;
  margin-top: auto;
  pointer-events: none;
}

.sidebar-whisper p {
  position: absolute;
  top: 6px;
  left: 0;
  z-index: 2;
  width: 100%;
  margin: 0;
  color: #1f5638;
  font-family: "KaiTi", "STKaiti", "Microsoft YaHei UI", sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 1px 2px rgb(255 255 255 / 82%);
  transform: rotate(-6deg);
}

.sidebar-whisper img {
  position: absolute;
  bottom: 0;
  left: -2px;
  width: 220px;
  height: auto;
  filter: drop-shadow(0 18px 22px rgb(90 100 72 / 9%));
}

.workspace-stage {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.workspace-globalbar {
  position: absolute;
  top: 16px;
  right: 36px;
  left: 38px;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  pointer-events: none;
}

.globalbar-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  pointer-events: auto;
}

.icon-action,
.mobile-menu-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: rgb(255 255 255 / 42%);
  color: #26302b;
  box-shadow: 0 8px 26px rgb(55 83 64 / 7%);
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.icon-action svg,
.mobile-menu-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-button {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ff5b66;
}

.profile-trigger {
  display: flex;
  align-items: center;
  min-width: 185px;
  height: 60px;
  padding: 4px 8px 4px 5px;
  border: 0;
  border-radius: 31px;
  background: rgb(255 255 255 / 35%);
  color: #1d2420;
  cursor: pointer;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  transition: background-color 160ms var(--ease);
}

.profile-trigger:hover {
  background: rgb(255 255 255 / 55%);
}

.profile-trigger > img {
  width: 51px;
  height: 51px;
  border: 2px solid rgb(255 255 255 / 72%);
  border-radius: 50%;
  background: #dff4e6;
  object-fit: cover;
  object-position: center 35%;
}

.profile-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  margin-left: 9px;
  text-align: left;
}

.profile-copy strong,
.profile-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy strong {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.15;
}

.profile-copy small {
  margin-top: 3px;
  color: var(--workspace-muted);
  font-size: 14px;
  line-height: 1.15;
}

.profile-chevron {
  flex: none;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.session-link {
  min-height: 40px;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--workspace-green-deep);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.session-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mobile-menu-button {
  display: none;
}

.workspace-content {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 94px 36px 28px 40px;
  scrollbar-color: rgb(109 129 117 / 25%) transparent;
  scrollbar-width: thin;
}

.workspace-page {
  width: min(100%, 1550px);
  min-height: calc(100dvh - 122px);
  margin: 0 auto;
  animation: page-in 220ms var(--ease) both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workspace-card {
  border: 1px solid rgb(255 255 255 / 71%);
  border-radius: 23px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 16%), transparent 42%),
    var(--workspace-card);
  box-shadow: var(--workspace-shadow);
  -webkit-backdrop-filter: blur(17px) saturate(116%);
  backdrop-filter: blur(17px) saturate(116%);
}

.workspace-card h2 {
  margin: 0;
  color: var(--workspace-ink);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
}

.workbench-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 4px 0 22px;
}

.workbench-heading h1,
.page-heading h1 {
  margin: 0;
  color: var(--workspace-ink);
  font-size: clamp(33px, 2.1vw, 41px);
  font-weight: 760;
  line-height: 1.12;
}

.workbench-heading p,
.page-heading p {
  margin: 9px 0 0;
  color: var(--workspace-muted);
  font-size: 16px;
  line-height: 1.5;
}

.primary-action,
.secondary-action,
.soft-button,
.danger-text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 0 22px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    background-color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    color 160ms var(--ease);
}

.primary-action {
  border: 0;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 9%), transparent 55%),
    linear-gradient(135deg, #43bf83, #30ad70);
  box-shadow:
    0 10px 24px rgb(50 174 112 / 16%),
    inset 0 1px 0 rgb(255 255 255 / 22%);
  color: #fff;
}

.primary-action:hover {
  filter: brightness(1.02) saturate(1.04);
  transform: translateY(-1px);
}

.primary-action:active,
.secondary-action:active,
.soft-button:active {
  transform: translateY(1px);
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: default;
  opacity: 0.58;
  transform: none;
}

.primary-action svg,
.secondary-action svg,
.soft-button svg,
.danger-text-action svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secondary-action,
.soft-button {
  border: 1px solid rgb(228 235 230 / 88%);
  background: rgb(255 255 255 / 76%);
  color: #303a35;
  box-shadow: 0 5px 16px rgb(50 70 58 / 4%);
}

.secondary-action:hover,
.soft-button:hover {
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 8px 20px rgb(50 70 58 / 7%);
}

.compact-action {
  min-height: 50px;
  padding: 0 25px;
  border-radius: 18px;
  font-size: 17px;
}

.compact-action svg {
  width: 22px;
  height: 22px;
}

.schedule-card {
  min-height: 330px;
  padding: 22px 17px 18px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 7px 14px;
}

.card-title-row h2 {
  display: flex;
  align-items: center;
  font-size: 27px;
}

.title-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 13px;
  border-radius: 10px;
  color: #31ae71;
}

.title-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.week-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #333d38;
  font-size: 16px;
}

.week-controls strong {
  margin-left: 16px;
  color: #5d6761;
  font-weight: 500;
}

.round-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgb(228 235 230 / 88%);
  border-radius: 50%;
  background: rgb(255 255 255 / 65%);
  color: #535d57;
  cursor: pointer;
}

.round-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
  min-height: 245px;
}

.week-day {
  min-width: 0;
  padding: 12px 9px 9px;
  border: 1px solid rgb(235 239 236 / 64%);
  border-radius: 15px;
  background: rgb(255 255 255 / 29%);
}

.week-day.is-today {
  border-color: rgb(81 193 134 / 62%);
  background: rgb(255 255 255 / 52%);
  box-shadow: inset 0 0 0 1px rgb(69 184 122 / 10%);
}

.week-day[data-week-date] {
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.week-day[data-week-date]:hover {
  border-color: rgb(81 193 134 / 48%);
}

.week-day.is-selected {
  border-color: rgb(43 168 107 / 92%);
  background:
    linear-gradient(180deg, rgb(232 249 239 / 92%), rgb(255 255 255 / 66%));
  box-shadow:
    inset 0 0 0 1px rgb(43 168 107 / 28%),
    0 10px 24px rgb(50 79 61 / 8%);
}

.week-day.is-selected .week-day-header strong {
  color: #2f8f5b;
}

.week-day[data-week-date]:focus-visible {
  outline: 2px solid rgb(81 193 134 / 55%);
  outline-offset: 2px;
}

.week-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 30px;
  margin-bottom: 8px;
  padding: 0 3px;
}

.week-day-header strong {
  color: #202723;
  font-size: 18px;
  font-weight: 650;
  white-space: nowrap;
}

.week-day-header small {
  color: #727c76;
  font-size: 14px;
}

.task-count {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e1f6e9;
  color: #25a566;
  font-size: 13px;
  font-weight: 700;
}

.week-tasks {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.week-task {
  padding: 9px 9px 8px;
  border: 1px solid rgb(238 241 239 / 78%);
  border-radius: 11px;
  background: rgb(255 255 255 / 65%);
}

.week-task strong {
  display: block;
  overflow: hidden;
  color: #2c332f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.week-task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
}

.week-task-meta span {
  color: #8a928e;
  font-size: 11px;
  white-space: nowrap;
}

.status-chip {
  display: inline-grid;
  place-items: center;
  min-height: 21px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.status-chip.is-done {
  background: #53c48b;
  color: #fff;
}

.status-chip.is-running {
  background: #ffd05f;
  color: #875900;
}

.status-chip.is-waiting {
  background: #eef1ef;
  color: #707a74;
}

.week-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #8d9691;
  font-size: 13px;
}

.week-empty svg {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-daily-card {
  position: relative;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 230px;
  min-height: 285px;
  margin-top: 14px;
  padding: 26px 24px 20px;
  overflow: hidden;
}

.daily-cat-wrap {
  position: relative;
  min-width: 0;
}

.daily-cat-wrap img {
  position: absolute;
  bottom: -52px;
  left: -26px;
  width: 315px;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 18px 20px rgb(88 101 72 / 10%));
}

.daily-cat-wrap span {
  position: absolute;
  bottom: 68px;
  left: 8px;
  z-index: 2;
  color: #2b3931;
  font-family: "KaiTi", "STKaiti", "Microsoft YaHei UI", sans-serif;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.38;
  text-align: center;
  transform: rotate(-8deg);
}

.daily-summary {
  position: relative;
  z-index: 2;
  padding: 9px 34px 0 12px;
  border-left: 1px solid rgb(231 236 233 / 78%);
}

.daily-summary-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.document-emblem {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #e4f6eb;
  color: #39b87a;
}

.document-emblem svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.daily-summary h2 {
  font-size: 27px;
  font-weight: 760;
}

.daily-summary-heading p {
  margin: 7px 0 0;
  color: #6f7873;
  font-size: 14px;
  line-height: 1.45;
}

.daily-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.daily-points li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  color: #2e3632;
  font-size: 14px;
  line-height: 1.55;
}

.daily-points strong {
  position: relative;
  padding-left: 17px;
  font-weight: 650;
}

.daily-points strong::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38b979;
}

.daily-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding-left: 18px;
}

.completion-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: conic-gradient(#43b97c calc(var(--value) * 1%), #e8eeea 0);
}

.completion-ring::before,
.score-ring::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgb(255 255 255 / 89%);
  box-shadow: inset 0 1px 5px rgb(35 59 44 / 4%);
}

.completion-ring::before {
  inset: 13px;
}

.completion-ring strong {
  position: relative;
  z-index: 1;
  font-size: 26px;
  line-height: 1;
}

.daily-score > span {
  margin-top: 8px;
  color: #737c77;
  font-size: 14px;
}

.daily-actions {
  display: flex;
  gap: 9px;
  margin-top: 20px;
}

.daily-actions .primary-action,
.daily-actions .secondary-action {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  font-size: 14px;
}

.soft-tip {
  display: flex;
  align-items: center;
  min-height: 49px;
  margin-top: 14px;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 17px;
  background: rgb(255 255 255 / 54%);
  color: #68726c;
  font-size: 14px;
  box-shadow: 0 10px 30px rgb(55 78 63 / 5%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.soft-tip > svg {
  width: 25px;
  height: 25px;
  margin-right: 13px;
  color: #44b87b;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.soft-tip button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8b938f;
  cursor: pointer;
}

.soft-tip button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.page-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 19px;
}

.page-heading {
  min-width: 0;
}

.heading-inline {
  display: flex;
  align-items: baseline;
  gap: 17px;
}

.heading-date {
  color: #69736d;
  font-size: 17px;
  font-weight: 500;
}

.page-heading-actions,
.report-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.segmented-control {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 26px;
  background: rgb(255 255 255 / 55%);
  box-shadow: 0 8px 20px rgb(52 74 60 / 4%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.segmented-control button {
  min-width: 84px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #505a54;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease);
}

.segmented-control button.is-active {
  background: #42b77b;
  box-shadow: 0 8px 16px rgb(48 169 107 / 13%);
  color: #fff;
}

.select-shell,
.search-shell {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 15px;
  background: rgb(255 255 255 / 72%);
  color: #5a645e;
  font-size: 14px;
  box-shadow: 0 8px 20px rgb(52 74 60 / 4%);
}

.select-shell select {
  max-width: 120px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #26302b;
  font: inherit;
  font-weight: 550;
  cursor: pointer;
}

.search-shell {
  min-width: 230px;
  gap: 8px;
}

.search-shell svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.search-shell input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #202824;
  font: inherit;
}

.search-shell input::placeholder {
  color: #9aa29e;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 0.9fr);
  gap: 20px;
}

.upload-card,
.score-card {
  min-height: 785px;
  padding: 22px;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 310px;
  padding: 26px;
  border: 1.5px dashed #acd5bd;
  border-radius: 18px;
  background: rgb(255 255 255 / 30%);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms var(--ease),
    background-color 160ms var(--ease),
    transform 160ms var(--ease);
}

.upload-dropzone:hover,
.upload-dropzone.is-dragging {
  border-color: #50bc83;
  background: rgb(241 252 246 / 78%);
}

.upload-dropzone.is-dragging {
  transform: scale(0.995);
}

.upload-cloud {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  color: #39b979;
}

.upload-cloud svg {
  width: 80px;
  height: 80px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-dropzone h2 {
  margin-top: 12px;
  font-size: 27px;
  font-weight: 750;
}

.upload-dropzone p {
  margin: 9px 0 0;
  color: #77817b;
  font-size: 15px;
}

.choose-file-button {
  min-width: 210px;
  min-height: 58px;
  margin-top: 22px;
  border-radius: 30px;
  font-size: 19px;
}

.choose-file-button span {
  margin-right: 10px;
  font-size: 29px;
  font-weight: 300;
  line-height: 0.8;
}

.uploaded-files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 2px 13px;
}

.uploaded-files-header h2 {
  font-size: 24px;
}

.uploaded-files-header h2 span {
  color: #777f7b;
  font-weight: 500;
}

.upload-sync-note {
  color: #7b847f;
  font-size: 12px;
}

.uploaded-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 356px;
  overflow-y: auto;
  padding-right: 3px;
}

.uploaded-file-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 94px 100px 110px;
  align-items: center;
  gap: 12px;
  min-height: 63px;
  padding: 8px 13px;
  border: 1px solid rgb(233 238 235 / 82%);
  border-radius: 13px;
  background: rgb(255 255 255 / 42%);
  transition:
    border-color 160ms var(--ease),
    background-color 160ms var(--ease);
}

.uploaded-file-row:hover,
.uploaded-file-row.is-selected {
  border-color: rgb(61 183 119 / 38%);
  background: rgb(248 254 250 / 80%);
}

.file-type-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.file-type-icon.is-ppt {
  background: #f28b32;
}

.file-type-icon.is-word {
  background: #3577dd;
}

.file-type-icon.is-excel {
  background: #1caf7b;
}

.file-type-icon.is-pdf {
  background: #ef3e43;
}

.file-type-icon.is-video {
  background: #8568dd;
}

.uploaded-file-name {
  min-width: 0;
}

.uploaded-file-name strong {
  display: block;
  overflow: hidden;
  color: #252d29;
  font-size: 16px;
  font-weight: 550;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uploaded-file-name small {
  display: block;
  margin-top: 3px;
  color: #8b938f;
  font-size: 11px;
}

.file-size,
.file-time {
  color: #767f7a;
  font-size: 13px;
  white-space: nowrap;
}

.file-state {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: #707a74;
  font-size: 13px;
  white-space: nowrap;
}

.file-state svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-state.is-scored {
  color: #3aaf73;
}

.file-state.is-processing {
  color: #6f7773;
}

.file-score {
  display: inline-grid;
  place-items: center;
  min-width: 45px;
  height: 30px;
  margin-left: 4px;
  border: 1px solid #b9e2cb;
  border-radius: 8px;
  background: rgb(242 252 246 / 72%);
  color: #2eaa6b;
  font-size: 14px;
  font-weight: 700;
}

.score-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.score-card-heading p {
  margin: 0 0 5px;
  color: #3f4843;
  font-size: 19px;
  font-weight: 650;
}

.score-card-heading h2 {
  max-width: 350px;
  overflow: hidden;
  font-size: 23px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 17px;
  background: #e7f8ed;
  color: #309f66;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.ai-chip svg {
  width: 17px;
  height: 17px;
  margin-right: 5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.score-overview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  min-height: 205px;
  margin-top: 17px;
}

.score-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 166px;
  height: 166px;
  border-radius: 50%;
  background: conic-gradient(#44bb7d calc(var(--score) * 1%), #e8efeb 0);
}

.score-ring::before {
  inset: 15px;
}

.score-ring strong,
.score-ring span,
.score-ring small {
  position: absolute;
  z-index: 1;
}

.score-ring strong {
  top: 47px;
  font-size: 38px;
  line-height: 1;
}

.score-ring > span {
  top: 85px;
  color: #67716b;
  font-size: 18px;
}

.score-ring small {
  top: 112px;
  display: grid;
  place-items: center;
  min-width: 59px;
  height: 28px;
  border-radius: 14px;
  background: #e5f7eb;
  color: #289e63;
  font-size: 13px;
  font-weight: 600;
}

.score-cat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.score-cat img {
  width: min(100%, 190px);
  height: auto;
  filter: drop-shadow(0 12px 18px rgb(89 100 74 / 9%));
}

.score-cat span {
  flex: none;
  margin-left: -15px;
  color: #3d5f4b;
  font-family: "KaiTi", "STKaiti", "Microsoft YaHei UI", sans-serif;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  transform: rotate(-6deg);
}

.score-dimensions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 2px;
}

.score-dimension {
  display: grid;
  grid-template-columns: 78px minmax(80px, 1fr) 38px;
  align-items: center;
  gap: 12px;
}

.score-dimension > span {
  color: #303834;
  font-size: 15px;
  font-weight: 550;
}

.score-dimension > strong {
  color: #333b37;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

.score-track {
  height: 17px;
  overflow: hidden;
  border-radius: 9px;
  background: #ebf0ed;
}

.score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #66cc97, #39b879);
  transition: width 420ms var(--ease);
}

.ai-comment-box {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 17px;
  border-radius: 14px;
  background: rgb(246 249 247 / 77%);
  color: #48514c;
}

.comment-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #e5f7eb;
  color: #2eaa6c;
}

.comment-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-comment-box strong {
  color: #313a35;
  font-size: 14px;
  font-weight: 650;
}

.ai-comment-box p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.score-actions {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.1fr;
  gap: 9px;
  margin-top: 18px;
}

.score-actions .primary-action,
.score-actions .secondary-action {
  min-height: 51px;
  padding: 0 14px;
  border-radius: 18px;
  font-size: 14px;
}

.muted-action {
  flex-direction: column;
  line-height: 1.2;
}

.muted-action small {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.metric-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  min-height: 170px;
  padding: 26px 20px;
  overflow: hidden;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  color: #fff;
  background: #35b574;
}

.metric-yellow .metric-icon {
  background: #ffbf36;
}

.metric-blue .metric-icon {
  background: #4e91f5;
}

.metric-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-card p {
  margin: 1px 0 0;
  color: #3b4540;
  font-size: 18px;
  font-weight: 650;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: #169d5d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 600;
  line-height: 1;
}

.metric-card strong small {
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 25px;
}

.metric-yellow strong {
  color: #f3a72b;
}

.metric-blue strong {
  color: #101a18;
}

.metric-card div > span {
  display: block;
  margin-top: 10px;
  color: #8a928e;
  font-size: 12px;
}

.metric-wave {
  position: absolute;
  right: 15px;
  bottom: 36px;
  width: 125px;
  height: 35px;
  fill: none;
  stroke: #4dbd85;
  stroke-width: 1.5;
}

.metric-yellow .metric-wave {
  stroke: #f4c356;
}

.metric-blue .metric-wave {
  stroke: #4c91f4;
}

.team-member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 18px;
}

.team-member-card {
  position: relative;
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) 88px minmax(62px, 0.44fr);
  align-items: center;
  gap: 12px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 18px;
  background: rgb(255 255 255 / 63%);
  box-shadow: 0 12px 32px rgb(53 78 62 / 5%);
  cursor: pointer;
  transition:
    border-color 160ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.team-member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgb(53 78 62 / 8%);
}

.team-member-card.is-selected {
  border-color: #4abc83;
  box-shadow:
    0 0 0 2px rgb(63 184 121 / 20%),
    0 16px 32px rgb(53 98 72 / 8%);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 2px solid rgb(255 255 255 / 76%);
  border-radius: 50%;
  background: linear-gradient(135deg, #deece4, #c9e9d7);
  color: #3d7a59;
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgb(48 80 61 / 9%);
}

.team-member-person {
  min-width: 0;
}

.team-member-person h3 {
  margin: 0;
  overflow: hidden;
  color: #242c28;
  font-size: 20px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-member-person p {
  margin: 4px 0 0;
  color: #737d77;
  font-size: 12px;
}

.team-member-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 15px;
  text-align: center;
}

.team-member-metrics strong {
  display: block;
  color: #303a34;
  font-size: 16px;
  line-height: 1.2;
}

.team-member-metrics span {
  display: block;
  margin-top: 3px;
  color: #8b938f;
  font-size: 10px;
}

.member-ratio {
  position: relative;
  display: grid;
  place-items: center;
  width: 61px;
  height: 61px;
  border-radius: 50%;
  background: conic-gradient(#45bb7f calc(var(--ratio) * 1%), #e9efeb 0);
}

.member-ratio::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 90%);
}

.member-ratio span {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 650;
}

.member-score {
  text-align: center;
}

.member-score strong {
  color: #1da363;
  font-size: 28px;
  line-height: 1;
}

.member-score span {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 20px;
  margin-top: 7px;
  border-radius: 10px;
  background: #3ab678;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

.member-score span.is-watch {
  background: #efaa39;
}

.member-score span.is-review {
  background: #f17b5f;
}

.team-detail-card {
  margin-top: 17px;
  padding: 20px 22px 17px;
}

.team-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.team-detail-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-large {
  width: 55px;
  height: 55px;
}

.team-detail-heading h2 {
  font-size: 22px;
}

.team-detail-note {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-detail-note img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 50%;
}

.team-detail-note span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: #e7f7ed;
  color: #2ca567;
  font-size: 13px;
  font-weight: 600;
}

.team-detail-note span svg {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-detail-note p {
  margin: 0 0 0 10px;
  color: #3f5147;
  font-family: "KaiTi", "STKaiti", "Microsoft YaHei UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  transform: rotate(-5deg);
}

.table-scroll {
  overflow-x: auto;
}

.report-detail-table {
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
  color: #404944;
  font-size: 13px;
}

.report-detail-table th,
.report-detail-table td {
  padding: 9px 13px;
  border-bottom: 1px solid rgb(235 239 236 / 70%);
  text-align: left;
  white-space: nowrap;
}

.report-detail-table th {
  background: rgb(245 247 245 / 82%);
  color: #3b4540;
  font-weight: 600;
}

.report-detail-table td:nth-child(3) {
  width: 42%;
  overflow: hidden;
  max-width: 470px;
  text-overflow: ellipsis;
}

.table-status {
  display: inline-grid;
  place-items: center;
  min-width: 50px;
  min-height: 21px;
  padding: 0 8px;
  border-radius: 10px;
  background: #e2f7ea;
  color: #2aa367;
  font-size: 10px;
}

.table-status.is-missing {
  background: #fff0ef;
  color: #eb645a;
}

.team-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 13px;
}

.team-detail-actions .primary-action,
.team-detail-actions .secondary-action {
  min-height: 49px;
  border-radius: 24px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(330px, 568px) minmax(0, 1fr);
  gap: 46px;
  min-height: 826px;
}

.review-queue-card {
  padding: 22px 18px 18px;
}

.review-queue-card > h2 {
  padding: 0 9px;
  font-size: 28px;
}

.review-queue-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.compact-segments {
  padding: 3px;
}

.compact-segments button {
  min-width: 61px;
  height: 35px;
  padding: 0 14px;
  font-size: 14px;
}

.review-search {
  flex: 1;
  min-width: 0;
  min-height: 41px;
  padding: 0 13px;
}

.review-search input {
  height: 37px;
  font-size: 13px;
}

.review-queue-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 728px;
  margin-top: 18px;
  overflow-y: auto;
  padding: 2px 2px 2px 0;
}

.review-queue-item {
  display: grid;
  grid-template-columns: 50px minmax(68px, 84px) minmax(0, 1fr) 44px 64px;
  align-items: center;
  gap: 10px;
  min-height: 88px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 17px;
  background: rgb(255 255 255 / 31%);
  cursor: pointer;
  transition:
    border-color 160ms var(--ease),
    background-color 160ms var(--ease),
    transform 160ms var(--ease);
}

.review-queue-item:hover,
.review-queue-item.is-selected {
  border-color: rgb(66 184 124 / 48%);
  background: rgb(247 253 249 / 83%);
}

.review-queue-item.is-selected {
  box-shadow:
    inset 0 0 0 1px rgb(68 185 123 / 22%),
    0 10px 26px rgb(55 128 83 / 7%);
}

.review-avatar,
.review-avatar-fallback {
  width: 50px;
  height: 50px;
  border: 2px solid rgb(255 255 255 / 82%);
  border-radius: 50%;
  background: linear-gradient(135deg, #e3eee7, #cee8da);
  object-fit: cover;
  object-position: center;
  box-shadow: 0 6px 16px rgb(48 80 61 / 9%);
}

.review-avatar-fallback {
  display: grid;
  place-items: center;
  color: #3d7a59;
  font-size: 18px;
  font-weight: 700;
}

.review-person {
  min-width: 0;
}

.review-person strong {
  display: block;
  overflow: hidden;
  color: #2b332f;
  font-size: 17px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-person span {
  display: block;
  margin-top: 5px;
  color: #8a928e;
  font-size: 12px;
  white-space: nowrap;
}

.review-file-meta {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.review-file-meta .file-type-icon {
  width: 32px;
  height: 39px;
  border-radius: 6px;
  font-size: 15px;
}

.review-file-name {
  min-width: 0;
}

.review-file-name strong {
  display: block;
  overflow: hidden;
  color: #353d39;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-file-name small {
  display: block;
  margin-top: 5px;
  color: #8b938f;
  font-size: 12px;
}

.review-ai-score {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 9px;
  background: rgb(226 247 233 / 82%);
  color: #2ba266;
  font-size: 16px;
  font-weight: 700;
}

.review-state {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 17px;
  background: #fff4dc;
  color: #bd8724;
  font-size: 12px;
  font-weight: 600;
}

.review-state.is-approved {
  background: #e6f7ec;
  color: #2da467;
}

.review-state.is-rejected {
  background: #ffe9e7;
  color: #e06159;
}

.review-detail-card {
  position: relative;
  min-width: 0;
  padding: 23px 22px 20px;
}

.review-detail-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 88px;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding-right: 8px;
}

.review-detail-heading > div:first-child {
  min-width: 0;
}

.review-title-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
}

.review-detail-heading h2 {
  overflow: hidden;
  font-size: 30px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-detail-heading p {
  margin: 0;
  color: #7c8580;
  font-size: 14px;
  white-space: nowrap;
}

.review-peek-cat {
  position: relative;
  top: -9px;
  right: -2px;
  width: 84px;
  height: 84px;
  border: 2px solid rgb(255 255 255 / 78%);
  object-fit: cover;
  object-position: center 47%;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgb(55 83 64 / 9%);
}

.review-content-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.93fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 6px;
}

.document-preview-panel {
  min-width: 0;
}

.document-preview {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 12px 12px 0 0;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 30%), transparent 42%),
    rgb(248 252 249 / 58%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 82%),
    0 16px 40px rgb(45 75 57 / 7%);
  -webkit-backdrop-filter: blur(22px) saturate(132%);
  backdrop-filter: blur(22px) saturate(132%);
}

.document-preview::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -56px;
  width: 175px;
  height: 175px;
  border-radius: 50%;
  background: rgb(183 237 201 / 35%);
  filter: blur(17px);
  pointer-events: none;
  z-index: 0;
}

.preview-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  background: rgb(248 252 249 / 64%);
  color: #5e6a63;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.preview-loading[hidden] {
  display: none;
}

.preview-loading-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 16px;
  background: rgb(255 255 255 / 56%);
  color: #39b879;
  box-shadow: 0 12px 28px rgb(45 87 62 / 8%);
}

.preview-loading-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview-loading strong {
  font-size: 15px;
  font-weight: 650;
}

.preview-loading small {
  color: #8b958f;
  font-size: 11px;
}

.actual-file-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.preview-source-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  max-width: calc(100% - 24px);
  padding: 0 11px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 14px;
  background: rgb(247 252 249 / 64%);
  box-shadow:
    0 8px 22px rgb(41 78 55 / 8%),
    inset 0 1px 0 rgb(255 255 255 / 70%);
  color: #3d6750;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(14px) saturate(126%);
  backdrop-filter: blur(14px) saturate(126%);
}

.document-native-preview,
.document-video-preview,
.document-image-preview {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(255 255 255 / 74%);
}

.document-native-preview {
  min-height: 470px;
}

.document-video-preview {
  object-fit: contain;
}

.document-image-preview {
  object-fit: contain;
  padding: 14px;
}

.document-image-preview.is-office-thumbnail {
  padding: 22px;
  background: rgb(255 255 255 / 70%);
}

.generated-file-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 470px;
  padding: 62px 27px 25px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 80%, rgb(184 236 201 / 46%), transparent 32%),
    linear-gradient(145deg, rgb(255 255 255 / 72%), rgb(246 251 248 / 42%));
}

.generated-file-cover::before {
  content: "";
  position: absolute;
  right: -82px;
  bottom: -92px;
  width: 260px;
  height: 260px;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 32%, rgb(255 255 255 / 58%), transparent 30%),
    rgb(70 184 121 / 11%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 50%);
}

.generated-file-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5f6b64;
  font-size: 12px;
  font-weight: 600;
}

.generated-file-topline em {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  height: 29px;
  margin-left: auto;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 15px;
  background: rgb(255 255 255 / 46%);
  color: #2ca56a;
  font-size: 13px;
  font-style: normal;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 74%);
}

.generated-format-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 44px;
  border-radius: 8px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.generated-format-icon.is-ppt {
  background: #f28b32;
}

.generated-format-icon.is-word {
  background: #3577dd;
}

.generated-format-icon.is-excel {
  background: #1caf7b;
}

.generated-format-icon.is-pdf {
  background: #ef3e43;
}

.generated-format-icon.is-video {
  background: #8568dd;
}

.generated-file-center {
  position: relative;
  z-index: 1;
  margin: auto 0;
}

.generated-file-watermark {
  display: block;
  margin-bottom: 15px;
  color: rgb(53 158 104 / 18%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
  font-weight: 700;
  line-height: 0.8;
}

.generated-file-center strong {
  display: -webkit-box;
  overflow: hidden;
  color: #25332b;
  font-size: 26px;
  font-weight: 760;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.generated-file-center p {
  margin: 14px 0 0;
  color: #758078;
  font-size: 12px;
}

.generated-file-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 68%);
  color: #87928a;
  font-size: 10px;
}

.generated-file-footer strong {
  color: #3e6650;
  font-size: 10px;
  font-weight: 700;
}

.preview-brand {
  color: #174c9d;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 22px;
  letter-spacing: 0;
}

.preview-brand span {
  margin-left: 4px;
  font-family: "Microsoft YaHei UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.document-preview h3 {
  margin: 50px 0 0;
  font-size: 25px;
  line-height: 1.3;
}

.document-preview > p {
  margin: 10px 0 0;
  color: #69736d;
  font-size: 13px;
}

.mini-chart {
  position: absolute;
  right: 54px;
  bottom: 116px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 150px;
  height: 98px;
  padding: 12px 14px;
  border-radius: 70px 70px 5px 5px;
  background: rgb(255 255 255 / 44%);
}

.mini-chart span {
  display: block;
  width: 19px;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: #79d29f;
}

.mini-chart span:nth-child(2) {
  background: #54c485;
}

.mini-chart span:nth-child(3) {
  background: #3fb876;
}

.mini-chart span:nth-child(4) {
  background: #2b9e5f;
}

.mini-chart i {
  position: absolute;
  right: 14px;
  bottom: 19px;
  left: 14px;
  border-bottom: 1px solid #cfdad3;
}

.document-preview ul {
  position: absolute;
  bottom: 52px;
  left: 25px;
  z-index: 2;
  margin: 0;
  padding: 0 0 0 17px;
  color: #324139;
  font-size: 12px;
  line-height: 2.1;
}

.document-preview li::marker {
  color: #4bbd82;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 52px;
  padding: 0 7px;
  border: 1px solid rgb(233 238 235 / 80%);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: rgb(255 255 255 / 58%);
}

.preview-pager {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: auto;
  color: #5e6862;
  font-size: 12px;
}

.preview-pager button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(237 242 239 / 75%);
  color: #5a645e;
  cursor: pointer;
}

.preview-pager button[hidden] {
  display: none;
}

.preview-pager svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.preview-toolbar .soft-button {
  min-height: 33px;
  padding: 0 10px;
  border-radius: 17px;
  font-size: 12px;
}

.preview-toolbar .soft-button svg {
  width: 15px;
  height: 15px;
  margin-right: 4px;
}

.review-score-panel {
  min-width: 0;
}

.review-score-overview {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 21px;
}

.review-score-ring {
  width: 145px;
  height: 145px;
}

.review-score-ring::before {
  inset: 13px;
}

.review-score-ring strong {
  top: 40px;
  font-size: 34px;
}

.review-score-ring > span {
  top: 75px;
  font-size: 16px;
}

.review-score-ring small {
  top: 98px;
  min-width: 63px;
  height: 26px;
  font-size: 12px;
}

.review-dimensions {
  gap: 18px;
}

.review-dimensions .score-dimension {
  grid-template-columns: 68px minmax(75px, 1fr) 34px;
  gap: 8px;
}

.review-comment-box {
  min-height: 140px;
  margin-top: 21px;
}

.leader-rating {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
}

.leader-rating > span,
.review-comment-input > span {
  color: #343c38;
  font-size: 15px;
  font-weight: 600;
}

.star-rating {
  display: flex;
  gap: 2px;
}

.star-rating button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #cdd5d0;
  cursor: pointer;
}

.star-rating button svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
}

.star-rating button.is-active {
  color: #ffc132;
  filter: drop-shadow(0 3px 4px rgb(222 166 22 / 12%));
}

.review-comment-input {
  position: relative;
  display: block;
  margin-top: 18px;
}

.review-comment-readonly {
  display: block;
  margin-top: 18px;
}

.review-comment-readonly > span {
  color: #343c38;
  font-size: 15px;
  font-weight: 600;
}

.review-comment-readonly p {
  min-height: 104px;
  margin: 8px 0 0;
  padding: 13px 14px;
  border: 1px solid rgb(228 235 230 / 88%);
  border-radius: 12px;
  background: rgb(255 255 255 / 55%);
  color: #29312d;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.workspace-app[data-role="leader"] .review-comment-readonly {
  display: none;
}

.review-comment-input textarea,
.dialog-field textarea {
  display: block;
  width: 100%;
  min-height: 104px;
  margin-top: 8px;
  padding: 13px 14px 25px;
  resize: vertical;
  border: 1px solid rgb(228 235 230 / 88%);
  border-radius: 12px;
  outline: none;
  background: rgb(255 255 255 / 55%);
  color: #29312d;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
}

.review-comment-input textarea:focus,
.dialog-field textarea:focus {
  border-color: #9ed8b8;
  box-shadow: var(--focus-ring);
}

.review-comment-input small {
  position: absolute;
  right: 13px;
  bottom: 9px;
  color: #a0a8a4;
  font-size: 11px;
}

.review-comment-input textarea {
  min-height: 200px;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.review-actions .primary-action {
  flex: 1.18;
  min-height: 54px;
  border-radius: 28px;
}

.review-actions .secondary-action {
  flex: 1;
  min-height: 54px;
  border-radius: 28px;
}

.danger-text-action {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #e26256;
}

.danger-text-action:hover {
  background: #fff0ef;
}

.reports-heading-row {
  align-items: flex-start;
}

.reports-heading-row .page-heading {
  padding-top: 1px;
}

.reports-heading-row .page-heading h1 {
  font-size: 38px;
}

.report-toolbar {
  align-items: center;
}

.report-tabs {
  min-width: 430px;
  border-radius: 27px;
}

.report-tabs button {
  flex: 1;
  height: 45px;
  border-radius: 23px;
  font-size: 18px;
}

.month-select {
  min-width: 142px;
  justify-content: space-between;
}

.month-select select {
  max-width: 100px;
  font-size: 16px;
}

.report-search {
  min-width: 292px;
}

.reports-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.77fr) minmax(0, 1.54fr);
  gap: 20px;
  min-height: calc(100dvh - 215px);
}

.report-list-card {
  display: flex;
  flex-direction: column;
  padding: 24px 18px 18px;
}

.report-list-card > h2 {
  padding: 0 7px;
  font-size: 25px;
}

.report-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 13px;
  overflow-y: auto;
  padding: 1px 1px 1px 0;
}

.report-list-item {
  display: grid;
  grid-template-columns: 76px 51px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #3d4641;
  cursor: pointer;
  transition:
    border-color 160ms var(--ease),
    background-color 160ms var(--ease);
}

.report-list-item:hover {
  background: rgb(255 255 255 / 45%);
}

.report-list-item.is-selected {
  border-color: rgb(72 188 131 / 56%);
  background: rgb(249 254 251 / 74%);
  box-shadow: inset 0 0 0 1px rgb(72 188 131 / 7%);
}

.report-list-date {
  color: #414944;
  font-size: 15px;
  font-weight: 550;
  white-space: nowrap;
}

.report-type-chip {
  display: inline-grid;
  place-items: center;
  min-height: 27px;
  padding: 0 8px;
  border-radius: 13px;
  background: #e3f7ea;
  color: #2da368;
  font-size: 12px;
  font-weight: 600;
}

.report-type-chip.is-weekly {
  background: #fff2dd;
  color: #c5962a;
}

.report-type-chip.is-monthly {
  background: #e4f3f1;
  color: #258e77;
}

.report-list-summary {
  overflow: hidden;
  color: #6f7873;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-list-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #5e6862;
  font-size: 11px;
  white-space: nowrap;
}

.report-list-status svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.report-list-status.is-submitted {
  color: #30a86b;
}

.report-list-status.is-missing {
  color: #e35d55;
}

.report-list-status.is-draft {
  color: #b78629;
}

.report-list-footer {
  margin: auto 0 0;
  padding: 14px 8px 0;
  border-top: 1px solid rgb(235 239 236 / 65%);
  color: #69736d;
  font-size: 14px;
}

.report-reader-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 26px 18px;
  overflow: hidden;
}

.report-reader-heading {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 78px;
  padding-right: 118px;
}

.report-reader-heading h2 {
  font-size: 28px;
  font-weight: 750;
}

.report-reader-heading p {
  margin: 8px 0 0;
  color: #7b847f;
  font-size: 13px;
}

.generated-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}

.generated-badge > svg {
  width: 28px;
  height: 28px;
  color: #ffc12f;
  fill: #ffc12f;
  stroke: #ffc12f;
  stroke-width: 1.3;
}

.generated-badge span {
  display: flex;
  flex-direction: column;
}

.generated-badge strong {
  color: #333d37;
  font-size: 14px;
  font-weight: 650;
}

.generated-badge small {
  margin-top: 2px;
  color: #8d9591;
  font-size: 10px;
}

.report-peek-cat {
  position: absolute;
  top: -25px;
  right: -4px;
  width: 103px;
  height: 103px;
  object-fit: cover;
  object-position: center 46%;
  border-radius: 50%;
}

.report-sections {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
  padding-right: 158px;
}

.report-section {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr);
  gap: 14px;
}

.report-section-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #3db77a;
  box-shadow: 0 8px 18px rgb(53 173 112 / 15%);
  color: #fff;
}

.report-section:nth-child(2) .report-section-icon {
  background: #6bd09d;
}

.report-section:nth-child(3) .report-section-icon {
  background: #36b97b;
}

.report-section:nth-child(4) .report-section-icon {
  background: #5ecb96;
}

.report-section-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-section h3 {
  margin: 1px 0 7px;
  color: #252d29;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.report-section-content {
  color: #333b37;
  font-size: 15px;
  line-height: 1.65;
}

.report-section-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-section-content li {
  position: relative;
  margin: 3px 0;
  padding-left: 13px;
}

.report-section-content li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #79827d;
}

.report-sections.is-editing .report-section-content {
  padding: 9px 11px;
  border: 1px solid #b5deca;
  border-radius: 8px;
  outline: none;
  background: rgb(255 255 255 / 58%);
  box-shadow: var(--focus-ring);
}

.reference-files {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reference-file {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #303833;
}

.reference-file .file-type-icon {
  width: 24px;
  height: 28px;
  border-radius: 4px;
  font-size: 10px;
}

.reference-file button {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2da66a;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.report-reader-cat {
  position: absolute;
  right: -38px;
  bottom: 92px;
  width: 220px;
  max-width: 24%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 18px 22px rgb(83 96 70 / 8%));
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgb(236 240 237 / 68%);
}

.report-actions .primary-action,
.report-actions .secondary-action {
  min-height: 48px;
  padding: 0 15px;
  border-radius: 24px;
  font-size: 13px;
}

.report-actions .primary-action {
  margin-left: auto;
  background: #54bd86;
}

.report-actions svg {
  width: 18px;
  height: 18px;
  margin-right: 5px;
}

.report-cycle-note {
  margin: 13px 0 0;
  color: #7e8782;
  font-size: 12px;
  line-height: 1.4;
}

.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  min-height: calc(100dvh - 235px);
}

.assistant-chat-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.assistant-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 78%;
}

.assistant-message > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 50%;
  background: #e5f7eb;
}

.assistant-message > span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assistant-message > div {
  padding: 12px 15px;
  border-radius: 5px 16px 16px;
  background: rgb(243 249 245 / 88%);
  color: #3d4741;
  font-size: 14px;
  line-height: 1.55;
}

.assistant-message strong {
  display: block;
  color: #252e29;
  font-size: 13px;
  font-weight: 650;
}

.assistant-message p {
  margin: 5px 0 0;
}

.assistant-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.assistant-message.is-user {
  align-self: flex-end;
}

.assistant-message.is-user > div {
  border-radius: 16px 5px 16px 16px;
  background: #e3f7ea;
}

.assistant-composer {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding: 6px;
  border: 1px solid rgb(227 235 230 / 90%);
  border-radius: 18px;
  background: rgb(255 255 255 / 70%);
}

.assistant-composer input {
  flex: 1;
  min-width: 0;
  height: 47px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #29312d;
  font: inherit;
}

.assistant-composer .primary-action {
  min-height: 47px;
  border-radius: 14px;
}

.assistant-side-card {
  position: relative;
  overflow: hidden;
  padding: 28px 22px 22px;
}

.assistant-side-card img {
  position: absolute;
  top: -20px;
  right: -18px;
  width: 200px;
  height: 200px;
  object-fit: contain;
  opacity: 0.95;
}

.assistant-side-card h2 {
  position: relative;
  z-index: 1;
  margin-top: 130px;
}

.assistant-side-card > button {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-height: 47px;
  margin-top: 9px;
  padding: 8px 12px;
  border: 1px solid rgb(230 236 232 / 82%);
  border-radius: 12px;
  background: rgb(255 255 255 / 65%);
  color: #4c5650;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.assistant-side-card > button:hover {
  border-color: #aadaaf;
  background: #f1fbf4;
}

.utility-card {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  min-height: 520px;
  padding: 30px;
}

.utility-illustration {
  display: grid;
  place-items: center;
}

.utility-illustration img {
  width: 300px;
  max-width: 100%;
}

.utility-copy h2 {
  margin-top: 18px;
  font-size: 29px;
}

.utility-copy p {
  max-width: 520px;
  margin: 12px 0 22px;
  color: #69736d;
  font-size: 15px;
  line-height: 1.65;
}

.mobile-nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  border: 0;
  background: rgb(28 39 32 / 25%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.app-dialog {
  width: min(540px, calc(100vw - 30px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--workspace-ink);
  box-shadow: 0 35px 90px rgb(24 45 31 / 24%);
}

.app-dialog::backdrop {
  background: rgb(30 42 34 / 33%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dialog-card {
  padding: 26px;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 50%), transparent 48%),
    rgb(249 252 249 / 96%);
}

.dialog-card-small {
  width: 100%;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 25px;
}

.dialog-heading p {
  margin: 6px 0 0;
  color: #747d78;
  font-size: 13px;
}

.dialog-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f3f1;
  color: #66706a;
  cursor: pointer;
}

.dialog-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.profile-editor {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-top: 24px;
}

.avatar-edit-button {
  position: relative;
  width: 112px;
  height: 112px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.avatar-edit-button img {
  width: 100%;
  height: 100%;
  border: 4px solid rgb(255 255 255 / 90%);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
  box-shadow: 0 12px 28px rgb(53 82 64 / 13%);
}

.avatar-edit-button span {
  position: absolute;
  right: 3px;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 3px solid #f5faf6;
  border-radius: 50%;
  background: #3db67a;
  color: #fff;
}

.avatar-edit-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-fields {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.dialog-field {
  display: block;
  margin-top: 16px;
}

.dialog-field > span {
  display: block;
  color: #3d4641;
  font-size: 13px;
  font-weight: 600;
}

.dialog-field input,
.dialog-field textarea {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  padding: 0 13px;
  border: 1px solid rgb(228 235 230 / 90%);
  border-radius: 11px;
  outline: 0;
  background: rgb(255 255 255 / 69%);
  color: #26302b;
  font: inherit;
}

.dialog-field textarea {
  height: auto;
  min-height: 120px;
  padding: 13px;
}

.dialog-field input:focus,
.dialog-field textarea:focus {
  border-color: #9ed8b8;
  box-shadow: var(--focus-ring);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 1500px) {
  .workspace-app {
    --workspace-sidebar: 294px;
  }

  .workspace-sidebar {
    padding-right: 28px;
    padding-left: 28px;
  }

  .workspace-content {
    padding-right: 42px;
    padding-left: 44px;
  }

  .upload-card,
  .score-card {
    min-height: 810px;
  }

  .review-layout {
    min-height: 840px;
  }
}

@media (max-width: 1720px) {
  .workspace-app {
    --workspace-sidebar: 248px;
  }

  .workspace-brand img {
    width: 194px;
  }

  .workspace-nav-item {
    min-height: 50px;
    padding: 0 15px;
    font-size: 18px;
  }

  .workspace-nav-item svg {
    width: 23px;
    height: 23px;
    margin-right: 15px;
  }

  .workspace-content {
    padding-right: 27px;
    padding-left: 29px;
  }

  .globalbar-actions {
    gap: 7px;
  }

  .profile-trigger {
    min-width: 162px;
  }

  .profile-copy strong {
    font-size: 16px;
  }

  .session-link {
    display: none;
  }

  .ai-daily-card {
    grid-template-columns: 255px minmax(0, 1fr) 205px;
  }

  .daily-cat-wrap img {
    width: 280px;
  }

  .daily-points li {
    grid-template-columns: 75px minmax(0, 1fr);
  }

  .team-member-card {
    grid-template-columns: 48px minmax(0, 1fr) 58px 58px;
    gap: 9px;
    padding: 14px;
  }

  .avatar {
    width: 46px;
    height: 46px;
  }

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

  .member-ratio {
    width: 54px;
    height: 54px;
  }

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

  .score-actions .muted-action {
    display: none;
  }

  .page-heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .review-layout {
    grid-template-columns: minmax(285px, 0.78fr) minmax(0, 1.6fr);
  }

  .review-content-grid {
    grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
    gap: 16px;
  }

  .review-score-overview {
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 14px;
  }

  .review-score-ring {
    width: 120px;
    height: 120px;
  }

  .review-score-ring strong {
    top: 31px;
    font-size: 29px;
  }

  .review-score-ring > span {
    top: 63px;
    font-size: 14px;
  }

  .review-score-ring small {
    top: 83px;
    height: 24px;
  }

  .review-dimensions .score-dimension {
    grid-template-columns: 59px minmax(55px, 1fr) 28px;
    gap: 6px;
  }

  .review-dimensions .score-dimension > span,
  .review-dimensions .score-dimension > strong {
    font-size: 12px;
  }

  .report-toolbar {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .report-tabs {
    min-width: 355px;
  }

  .report-search {
    min-width: 240px;
  }

  .report-list-item {
    grid-template-columns: 66px 43px minmax(0, 1fr) 64px;
    gap: 7px;
  }

  .report-actions {
    flex-wrap: wrap;
  }

  .report-actions .primary-action {
    margin-left: 0;
  }
}

@media (max-width: 1080px) {
  .workspace-app {
    --workspace-sidebar: 260px;
  }

  .workspace-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    transform: translateX(-104%);
    transition: transform 240ms var(--ease);
  }

  .workspace-app.is-nav-open .workspace-sidebar {
    transform: translateX(0);
  }

  .workspace-globalbar {
    right: 24px;
    left: 24px;
    justify-content: space-between;
  }

  .mobile-menu-button {
    display: grid;
    pointer-events: auto;
  }

  .workspace-content {
    padding: 91px 24px 24px;
  }

  .session-link {
    display: block;
  }

  .ai-daily-card {
    grid-template-columns: 210px minmax(0, 1fr) 190px;
  }

  .daily-cat-wrap img {
    left: -55px;
    width: 260px;
  }

  .daily-summary {
    padding-right: 12px;
  }

  .daily-summary h2 {
    font-size: 23px;
  }

  .daily-points {
    gap: 7px;
  }

  .daily-points li {
    font-size: 12px;
  }

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

  .review-layout {
    grid-template-columns: 1fr;
  }

  .review-queue-card {
    min-height: 0;
  }

  .review-queue-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 270px;
  }

  .reports-layout {
    grid-template-columns: 1fr;
  }

  .report-list-card {
    min-height: 380px;
  }

  .report-list {
    max-height: 305px;
  }

  .report-reader-card {
    min-height: 650px;
  }
}

@media (max-width: 820px) {
  .workspace-app {
    --workspace-sidebar: min(290px, 86vw);
  }

  .workspace-content {
    padding-right: 16px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: 16px;
  }

  .workspace-globalbar {
    top: 11px;
    right: 14px;
    left: 14px;
  }

  .globalbar-actions {
    margin-left: auto;
  }

  .notification-button {
    display: none;
  }

  .profile-trigger {
    min-width: 0;
    width: 52px;
    height: 52px;
    padding: 2px;
  }

  .profile-trigger > img {
    width: 46px;
    height: 46px;
  }

  .profile-copy,
  .profile-chevron {
    display: none;
  }

  .session-link {
    min-height: 44px;
    font-size: 12px;
  }

  .workbench-heading,
  .page-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .workbench-heading {
    margin-bottom: 16px;
  }

  .workbench-heading h1,
  .page-heading h1,
  .reports-heading-row .page-heading h1 {
    font-size: 31px;
  }

  .page-heading-actions,
  .report-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control button {
    flex: 1;
    min-width: 0;
  }

  .search-shell,
  .report-search {
    width: 100%;
    min-width: 0;
  }

  .select-shell {
    flex: 1;
  }

  .week-board {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .week-day {
    flex: 0 0 198px;
    scroll-snap-align: start;
  }

  .ai-daily-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .daily-cat-wrap {
    display: none;
  }

  .daily-summary {
    padding-left: 0;
    border-left: 0;
  }

  .daily-score {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0 0;
  }

  .daily-score > span {
    margin-top: 0;
  }

  .daily-actions {
    width: 100%;
    margin-top: 7px;
  }

  .daily-actions button {
    flex: 1;
  }

  .upload-layout {
    grid-template-columns: 1fr;
  }

  .upload-card,
  .score-card {
    min-height: 0;
  }

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

  .metric-card {
    min-height: 145px;
    padding: 19px 15px;
  }

  .metric-card p {
    font-size: 15px;
  }

  .metric-card strong {
    font-size: 45px;
  }

  .metric-wave {
    width: 85px;
  }

  .team-member-grid {
    grid-template-columns: 1fr;
  }

  .team-detail-note {
    display: none;
  }

  .review-queue-list {
    grid-template-columns: 1fr;
  }

  .review-content-grid {
    grid-template-columns: 1fr;
  }

  .document-preview {
    min-height: 410px;
  }

  .review-detail-heading {
    padding-right: 85px;
  }

  .review-peek-cat {
    width: 82px;
    height: 82px;
  }

  .report-reader-heading {
    padding-right: 81px;
  }

  .report-sections {
    padding-right: 0;
  }

  .report-reader-cat {
    display: none;
  }

  .report-tabs {
    min-width: 0;
  }

  .assistant-layout {
    grid-template-columns: 1fr;
  }

  .assistant-side-card {
    min-height: 280px;
  }

  .assistant-side-card img {
    width: 155px;
    height: 155px;
  }

  .assistant-side-card h2 {
    margin-top: 100px;
  }

  .utility-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .utility-illustration img {
    width: 220px;
  }

  .profile-editor {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .profile-fields {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .workspace-content {
    padding-top: 83px;
  }

  .workspace-brand span {
    font-size: 18px;
  }

  .primary-action,
  .secondary-action,
  .soft-button {
    font-size: 14px;
  }

  .workbench-heading h1,
  .page-heading h1,
  .reports-heading-row .page-heading h1 {
    font-size: 28px;
  }

  .page-heading p,
  .workbench-heading p {
    font-size: 14px;
  }

  .card-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .week-controls {
    width: 100%;
  }

  .week-controls strong {
    margin-left: auto;
  }

  .daily-summary-heading {
    display: block;
  }

  .document-emblem {
    margin-bottom: 10px;
  }

  .daily-points li {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .score-overview {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .score-ring {
    width: 132px;
    height: 132px;
  }

  .score-ring::before {
    inset: 12px;
  }

  .score-ring strong {
    top: 34px;
    font-size: 31px;
  }

  .score-ring > span {
    top: 68px;
    font-size: 15px;
  }

  .score-ring small {
    top: 91px;
    height: 24px;
  }

  .score-cat span {
    display: none;
  }

  .score-card-heading {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

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

  .uploaded-file-row {
    grid-template-columns: 40px minmax(0, 1fr) 100px;
  }

  .file-size,
  .file-time {
    display: none;
  }

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

  .metric-card {
    min-height: 130px;
  }

  .team-detail-card {
    padding-right: 13px;
    padding-left: 13px;
  }

  .report-detail-table th,
  .report-detail-table td {
    padding: 8px 9px;
    font-size: 12px;
  }

  .team-detail-actions {
    flex-direction: column;
  }

  .review-queue-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .review-queue-item {
    grid-template-columns: 44px minmax(0, 1fr) 58px;
  }

  .review-state {
    display: none;
  }

  .review-detail-card {
    padding: 19px 14px;
  }

  .review-detail-heading {
    min-height: 78px;
    padding-right: 0;
  }

  .review-peek-cat {
    display: none;
  }

  .review-score-overview {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .review-dimensions {
    width: 100%;
  }

  .review-comment-box {
    margin-top: 14px;
  }

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

  .danger-text-action {
    min-height: 38px;
  }

  .report-list-item {
    grid-template-columns: 62px 42px minmax(0, 1fr);
  }

  .report-list-status {
    display: none;
  }

  .report-reader-card {
    padding: 20px 15px 15px;
  }

  .report-reader-heading {
    min-height: 75px;
    padding-right: 0;
  }

  .generated-badge {
    display: none;
  }

  .report-peek-cat {
    width: 73px;
    height: 73px;
  }

  .report-section {
    grid-template-columns: 37px minmax(0, 1fr);
    gap: 10px;
  }

  .report-section-icon {
    width: 37px;
    height: 37px;
  }

  .report-section-icon svg {
    width: 19px;
    height: 19px;
  }

  .report-section h3 {
    font-size: 17px;
  }

  .report-section-content {
    font-size: 13px;
  }

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

  .report-actions .primary-action,
  .report-actions .secondary-action {
    min-width: 0;
    padding: 0 8px;
  }

  .assistant-message {
    max-width: 94%;
  }

  .dialog-card {
    padding: 21px 17px;
  }
}

/* Final glass surface overrides for every page */

.workspace-card,
.dialog-card {
  border-color: rgb(255 255 255 / 68%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 34%), transparent 42%),
    rgb(250 253 250 / 54%);
  box-shadow:
    0 20px 58px rgb(54 83 64 / 9%),
    inset 0 1px 0 rgb(255 255 255 / 86%),
    inset 1px 0 0 rgb(255 255 255 / 42%),
    inset 0 -1px 0 rgb(75 106 87 / 4%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
}

.dialog-card {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 42%), transparent 44%),
    rgb(250 253 250 / 70%);
  -webkit-backdrop-filter: blur(34px) saturate(144%);
  backdrop-filter: blur(34px) saturate(144%);
}

.segmented-control,
.select-shell,
.search-shell,
.soft-tip,
.upload-dropzone,
.uploaded-file-row,
.review-queue-item,
.team-member-card,
.report-list-item,
.week-day,
.ai-comment-box,
.review-comment-input textarea,
.dialog-field input,
.dialog-field textarea {
  border-color: rgb(255 255 255 / 62%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 32%), transparent 48%),
    rgb(255 255 255 / 46%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 76%),
    0 8px 22px rgb(50 79 61 / 4%);
}

.segmented-control,
.select-shell,
.search-shell,
.upload-dropzone,
.team-member-card,
.review-queue-item {
  -webkit-backdrop-filter: blur(16px) saturate(128%);
  backdrop-filter: blur(16px) saturate(128%);
}

.week-task {
  border-color: rgb(255 255 255 / 58%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 28%), transparent 54%),
    rgb(255 255 255 / 43%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%);
}

.review-queue-item:hover,
.review-queue-item.is-selected,
.uploaded-file-row:hover,
.uploaded-file-row.is-selected,
.report-list-item.is-selected {
  border-color: rgb(68 185 123 / 48%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 38%), transparent 48%),
    rgb(242 252 246 / 66%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 84%),
    0 10px 26px rgb(55 128 83 / 6%);
}

.review-comment-input textarea,
.dialog-field input,
.dialog-field textarea {
  -webkit-backdrop-filter: blur(14px) saturate(124%);
  backdrop-filter: blur(14px) saturate(124%);
}

.secondary-action,
.soft-button,
.history-button {
  border-color: rgb(255 255 255 / 64%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 38%), transparent 56%),
    rgb(255 255 255 / 48%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 80%),
    0 8px 20px rgb(49 77 60 / 5%);
  -webkit-backdrop-filter: blur(14px) saturate(126%);
  backdrop-filter: blur(14px) saturate(126%);
}

@media (max-width: 820px) {
  .workspace-card,
  .dialog-card,
  .segmented-control,
  .select-shell,
  .search-shell,
  .upload-dropzone,
  .team-member-card,
  .review-queue-item {
    -webkit-backdrop-filter: blur(18px) saturate(132%);
    backdrop-filter: blur(18px) saturate(132%);
  }
}

@media (forced-colors: active) {
  .workspace-sidebar,
  .workspace-card,
  .team-member-card,
  .profile-trigger,
  .segmented-control,
  .select-shell,
  .search-shell {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  .workspace-nav-item.is-active,
  .primary-action {
    border: 1px solid ButtonText;
    background: ButtonFace;
    color: ButtonText;
  }
}

/* Review reference alignment and matte-frosted surfaces */

.workspace-app {
  --frost-fill: rgb(249 252 249 / 58%);
  --frost-fill-strong: rgb(251 253 251 / 70%);
  --frost-fill-soft: rgb(255 255 255 / 42%);
  --frost-border: rgb(255 255 255 / 70%);
  --frost-edge:
    inset 0 1px 0 rgb(255 255 255 / 82%),
    inset 1px 0 0 rgb(255 255 255 / 38%),
    inset 0 -1px 0 rgb(67 92 77 / 4%);
  --frost-shadow:
    0 18px 48px rgb(53 82 64 / 8%),
    var(--frost-edge);
  --frost-blur: 24px;
  --frost-saturation: 112%;
}

.workspace-card,
.dialog-card {
  border-color: var(--frost-border);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 20%), transparent 46%),
    var(--frost-fill);
  box-shadow: var(--frost-shadow);
  -webkit-backdrop-filter: blur(var(--frost-blur)) saturate(var(--frost-saturation));
  backdrop-filter: blur(var(--frost-blur)) saturate(var(--frost-saturation));
}

.segmented-control,
.select-shell,
.search-shell,
.soft-tip,
.upload-dropzone,
.uploaded-file-row,
.review-queue-item,
.review-avatar-fallback,
.team-member-card,
.report-list-item,
.report-section,
.reference-file,
.week-day,
.week-task,
.ai-comment-box,
.assistant-message > div,
.assistant-composer,
.score-track,
.preview-toolbar,
.document-preview,
.review-comment-input textarea,
.dialog-field input,
.dialog-field textarea,
.profile-trigger,
.icon-action,
.mobile-menu-button {
  border-color: rgb(255 255 255 / 66%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 22%), transparent 52%),
    var(--frost-fill-soft);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 78%),
    0 8px 22px rgb(50 79 61 / 4%);
  -webkit-backdrop-filter: blur(16px) saturate(110%);
  backdrop-filter: blur(16px) saturate(110%);
}

.upload-dropzone {
  border-style: dashed;
}

.document-preview,
.preview-toolbar,
.dialog-card {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 24%), transparent 48%),
    var(--frost-fill-strong);
  -webkit-backdrop-filter: blur(28px) saturate(112%);
  backdrop-filter: blur(28px) saturate(112%);
}

.review-queue-item:hover,
.review-queue-item.is-selected,
.uploaded-file-row:hover,
.uploaded-file-row.is-selected,
.report-list-item.is-selected,
.team-member-card:hover,
.team-member-card.is-selected {
  border-color: rgb(61 182 118 / 48%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 25%), transparent 52%),
    rgb(240 251 244 / 64%);
}

.review-avatar,
.review-avatar-fallback {
  -webkit-backdrop-filter: blur(10px) saturate(108%);
  backdrop-filter: blur(10px) saturate(108%);
}

.review-detail-heading .ai-chip {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgb(255 255 255 / 68%);
  border-radius: 21px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 25%), transparent 55%),
    rgb(238 250 242 / 62%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 82%),
    0 8px 20px rgb(39 142 88 / 6%);
  -webkit-backdrop-filter: blur(14px) saturate(112%);
  backdrop-filter: blur(14px) saturate(112%);
}

.review-detail-heading .ai-chip svg {
  width: 22px;
  height: 22px;
}

.review-detail-heading .review-peek-cat {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@media (min-width: 1501px) {
  .workspace-app {
    --workspace-sidebar: 291px;
  }

  .workspace-content {
    padding: 82px 25px 24px 14px;
  }

  .review-page {
    width: min(100%, 1584px);
  }

  .review-layout {
    min-height: max(826px, calc(100dvh - 150px));
  }
}

@media (max-width: 1370px) {
  .review-title-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .review-detail-heading {
    grid-template-columns: minmax(0, 1fr) auto 76px;
  }

  .review-detail-heading p {
    white-space: normal;
  }
}

@media (max-width: 820px) {
  .workspace-card,
  .dialog-card,
  .segmented-control,
  .select-shell,
  .search-shell,
  .upload-dropzone,
  .team-member-card,
  .review-queue-item,
  .document-preview {
    -webkit-backdrop-filter: blur(18px) saturate(108%);
    backdrop-filter: blur(18px) saturate(108%);
  }

  .review-detail-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-right: 0;
  }

  .review-title-line {
    gap: 6px;
  }

  .review-peek-cat {
    grid-column: 2;
    grid-row: 1;
  }

  .review-detail-heading .ai-chip {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
}

@media (max-width: 560px) {
  .review-queue-item {
    grid-template-columns: 44px minmax(0, 1fr) 46px;
    grid-template-areas:
      "avatar person score"
      "file file file";
    row-gap: 8px;
  }

  .review-queue-item > .review-avatar,
  .review-queue-item > .review-avatar-fallback {
    grid-area: avatar;
    width: 44px;
    height: 44px;
  }

  .review-queue-item > .review-person {
    grid-area: person;
  }

  .review-queue-item > .review-file-meta {
    grid-area: file;
    padding-left: 2px;
  }

  .review-queue-item > .review-ai-score {
    grid-area: score;
  }

  .review-queue-item > .review-state {
    display: none;
  }

  .review-detail-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .review-title-line,
  .review-detail-heading .ai-chip {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .review-peek-cat {
    display: none;
  }

  .review-detail-heading h2 {
    white-space: normal;
  }
}

@media (forced-colors: active) {
  .workspace-card,
  .dialog-card,
  .segmented-control,
  .select-shell,
  .search-shell,
  .review-queue-item,
  .document-preview,
  .preview-toolbar,
  .review-comment-input textarea {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
  }
}

/* Final review composition and complete matte-glass rectangle coverage */

.workspace-app {
  --glass-rect-fill: rgb(250 253 250 / 64%);
  --glass-rect-fill-strong: rgb(252 254 252 / 76%);
  --glass-rect-fill-soft: rgb(255 255 255 / 48%);
  --glass-rect-border: rgb(255 255 255 / 72%);
  --glass-rect-blur: 22px;
  --glass-rect-shadow:
    0 14px 38px rgb(54 82 65 / 7%),
    inset 0 1px 0 rgb(255 255 255 / 84%),
    inset 1px 0 0 rgb(255 255 255 / 38%);
}

.workspace-card,
.dialog-card,
.review-queue-item,
.uploaded-file-row,
.team-member-card,
.report-list-item,
.report-section,
.reference-file,
.week-day,
.week-task,
.segmented-control,
.select-shell,
.search-shell,
.profile-trigger,
.icon-action,
.mobile-menu-button,
.soft-tip,
.upload-dropzone,
.ai-comment-box,
.assistant-message > div,
.assistant-composer,
.document-preview,
.preview-toolbar,
.review-comment-input textarea,
.dialog-field input,
.dialog-field textarea {
  border-color: var(--glass-rect-border);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 26%), transparent 52%),
    var(--glass-rect-fill-soft);
  box-shadow: var(--glass-rect-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(110%);
  backdrop-filter: blur(16px) saturate(110%);
}

.workspace-card,
.dialog-card {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 22%), transparent 46%),
    var(--glass-rect-fill);
  -webkit-backdrop-filter: blur(var(--glass-rect-blur)) saturate(108%);
  backdrop-filter: blur(var(--glass-rect-blur)) saturate(108%);
}

.document-preview,
.preview-toolbar,
.dialog-card {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 24%), transparent 48%),
    var(--glass-rect-fill-strong);
  -webkit-backdrop-filter: blur(26px) saturate(110%);
  backdrop-filter: blur(26px) saturate(110%);
}

.secondary-action,
.soft-button,
.history-button,
.preview-pager,
.star-rating button,
.danger-text-action {
  -webkit-backdrop-filter: blur(12px) saturate(108%);
  backdrop-filter: blur(12px) saturate(108%);
}

.secondary-action,
.soft-button,
.history-button {
  border-color: rgb(255 255 255 / 68%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 30%), transparent 56%),
    rgb(255 255 255 / 50%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 84%),
    0 8px 20px rgb(49 77 60 / 5%);
}

.review-page {
  width: min(100%, 1584px);
  max-width: 100%;
}

.review-layout,
.review-queue-card,
.review-queue-list,
.review-content-grid,
.document-preview-panel,
.review-score-panel,
.review-score-overview,
.review-dimensions,
.review-comment-input,
.review-actions {
  min-width: 0;
}

.review-layout {
  grid-template-columns: minmax(340px, 574px) minmax(0, 1fr);
  gap: 38px;
  min-height: 0;
}

.review-queue-card,
.review-detail-card {
  padding: 20px 18px 18px;
}

.review-queue-card > h2 {
  padding-left: 8px;
  font-size: 26px;
}

.review-queue-tools {
  margin-top: 14px;
}

.review-queue-list {
  gap: 5px;
  max-height: 710px;
  margin-top: 14px;
}

.review-queue-item {
  grid-template-columns: 48px minmax(66px, 82px) minmax(0, 1fr) 43px 62px;
  gap: 9px;
  min-height: 82px;
  padding: 7px 9px;
  border-radius: 17px;
}

.review-avatar,
.review-avatar-fallback {
  width: 48px;
  height: 48px;
}

.review-detail-heading {
  min-height: 58px;
  gap: 12px;
}

.review-detail-heading h2 {
  font-size: 27px;
}

.review-detail-heading p {
  font-size: 13px;
}

.review-peek-cat {
  top: -5px;
  width: 76px;
  height: 76px;
}

.review-content-grid {
  grid-template-columns: minmax(330px, 0.94fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 1px;
}

.document-preview {
  min-height: 414px;
  max-height: 414px;
}

.document-native-preview,
.generated-file-cover {
  min-height: 414px;
}

.generated-document-preview {
  height: 100%;
  min-height: 414px;
  overflow: hidden;
  padding: 34px 24px 20px;
  background:
    linear-gradient(90deg, rgb(50 120 80 / 5%) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgb(50 120 80 / 4%) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(145deg, rgb(255 255 255 / 84%), rgb(248 252 249 / 62%));
}

.generated-document-page {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 360px;
  padding: 21px 22px 17px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 84%);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 34%), transparent 52%),
    rgb(255 255 255 / 64%);
  box-shadow:
    0 16px 34px rgb(51 80 62 / 8%),
    inset 0 1px 0 rgb(255 255 255 / 88%);
  -webkit-backdrop-filter: blur(16px) saturate(106%);
  backdrop-filter: blur(16px) saturate(106%);
}

.generated-document-page::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -50px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgb(76 193 127 / 13%);
  filter: blur(2px);
  pointer-events: none;
}

.generated-doc-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #174c9d;
}

.generated-doc-brand > span {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 18px;
  letter-spacing: 0;
}

.generated-doc-brand small {
  color: #174c9d;
  font-size: 10px;
  font-weight: 700;
}

.generated-doc-brand em {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  margin-left: auto;
  padding: 0 9px;
  border: 1px solid rgb(255 255 255 / 74%);
  border-radius: 11px;
  background: rgb(241 249 244 / 66%);
  color: #43805f;
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.generated-doc-kicker {
  position: relative;
  z-index: 1;
  margin: 24px 0 4px;
  color: #6e8578;
  font-size: 10px;
  font-weight: 650;
}

.generated-document-page h3 {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #1f2b24;
  font-size: 23px;
  font-weight: 760;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.generated-doc-meta {
  position: relative;
  z-index: 1;
  margin: 7px 0 0;
  color: #809087;
  font-size: 10px;
}

.generated-doc-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  margin-top: 17px;
  overflow: hidden;
}

.generated-doc-content > p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #46544c;
  font-size: 11px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.generated-doc-content > p:first-child::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 7px 2px 0;
  border-radius: 50%;
  background: #39b879;
}

.generated-doc-slide {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid rgb(69 119 87 / 10%);
}

.generated-doc-slide > span {
  color: #50b982;
  font-size: 11px;
  font-weight: 750;
}

.generated-doc-slide strong {
  display: block;
  overflow: hidden;
  color: #2f3c34;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-doc-slide ul {
  position: static;
  bottom: auto;
  left: auto;
  margin: 5px 0 0;
  padding-left: 15px;
  color: #68766e;
  font-size: 10px;
  line-height: 1.55;
}

.generated-doc-slide li::marker {
  color: #48b77b;
}

.generated-sheet-preview {
  overflow: hidden;
  border: 1px solid rgb(67 143 100 / 16%);
  border-radius: 8px;
  background: rgb(255 255 255 / 42%);
}

.generated-sheet-preview table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 9px;
}

.generated-sheet-preview td {
  height: 27px;
  padding: 4px 7px;
  overflow: hidden;
  border-right: 1px solid rgb(67 143 100 / 12%);
  border-bottom: 1px solid rgb(67 143 100 / 12%);
  color: #536159;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-sheet-preview tr:first-child td {
  background: rgb(221 246 230 / 58%);
  color: #2d6848;
  font-weight: 700;
}

.generated-document-page footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgb(67 109 83 / 10%);
  color: #8b978f;
  font-size: 9px;
}

.generated-document-page footer strong {
  max-width: 48%;
  overflow: hidden;
  color: #4d6b59;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-toolbar {
  min-height: 46px;
}

.document-image-preview.is-office-thumbnail {
  padding: 15px;
}

.preview-source-chip {
  background: rgb(247 252 249 / 78%);
}

.review-score-overview {
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
}

.review-score-ring {
  width: 138px;
  height: 138px;
}

.review-score-ring::before {
  inset: 12px;
}

.review-score-ring strong {
  top: 37px;
  font-size: 32px;
}

.review-score-ring > span {
  top: 72px;
  font-size: 15px;
}

.review-score-ring small {
  top: 94px;
}

.review-dimensions {
  gap: 14px;
}

.review-comment-box {
  min-height: 122px;
  margin-top: 15px;
  padding: 17px 18px;
}

.leader-rating {
  margin-top: 18px;
}

.leader-rating > span,
.review-comment-input > span {
  font-size: 14px;
}

.star-rating button {
  width: 32px;
  height: 32px;
}

.star-rating button svg {
  width: 28px;
  height: 28px;
}

.review-comment-input {
  margin-top: 13px;
}

.review-comment-input textarea {
  min-height: 132px;
  max-height: 168px;
  margin-top: 7px;
}

.review-actions {
  margin-top: 18px;
}

.review-actions .primary-action,
.review-actions .secondary-action {
  min-height: 50px;
}

.danger-text-action {
  min-height: 50px;
  padding: 0 10px;
  border-radius: 14px;
  white-space: nowrap;
}

@media (min-width: 1501px) {
  .workspace-app {
    --workspace-sidebar: 291px;
  }

  .workspace-content {
    padding: 82px 25px 22px 14px;
  }

  .review-layout {
    min-height: max(840px, calc(100dvh - 143px));
  }

  .review-queue-list {
    max-height: 720px;
  }
}

@media (max-width: 1720px) {
  .review-layout {
    grid-template-columns: minmax(410px, 430px) minmax(0, 1fr);
    gap: 32px;
  }

  .review-content-grid {
    grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  }

  .document-preview,
  .document-native-preview,
  .generated-file-cover,
  .generated-document-preview {
    min-height: 390px;
    max-height: 390px;
  }

  .generated-document-preview {
    padding: 22px 18px 14px;
  }

  .generated-document-page {
    min-height: 350px;
    padding: 17px 17px 14px;
  }

  .generated-document-page h3 {
    font-size: 20px;
  }

  .review-score-overview {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
  }

  .review-score-ring {
    width: 116px;
    height: 116px;
  }

  .review-score-ring strong {
    top: 30px;
    font-size: 28px;
  }

  .review-score-ring > span {
    top: 61px;
    font-size: 13px;
  }

  .review-score-ring small {
    top: 79px;
    height: 23px;
    min-width: 56px;
    font-size: 10px;
  }

  .review-comment-box {
    min-height: 112px;
  }
}

@media (min-width: 821px) and (max-width: 1400px) {
  .review-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .review-queue-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 280px;
  }
}

@media (max-width: 1080px) {
  .review-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .review-queue-list {
    max-height: 280px;
  }

  .review-content-grid {
    grid-template-columns: minmax(290px, 0.9fr) minmax(0, 1.1fr);
  }

  .review-layout {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .workspace-card,
  .dialog-card,
  .segmented-control,
  .select-shell,
  .search-shell,
  .upload-dropzone,
  .team-member-card,
  .review-queue-item,
  .document-preview {
    -webkit-backdrop-filter: blur(18px) saturate(108%);
    backdrop-filter: blur(18px) saturate(108%);
  }

  .review-detail-card {
    padding: 18px 16px;
  }

  .review-content-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .document-preview,
  .document-native-preview,
  .generated-file-cover,
  .generated-document-preview {
    min-height: 390px;
    max-height: 390px;
  }

  .review-score-overview {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .review-score-ring {
    width: 128px;
    height: 128px;
  }

  .review-score-ring strong {
    top: 34px;
    font-size: 30px;
  }

  .review-score-ring > span {
    top: 67px;
    font-size: 14px;
  }

  .review-score-ring small {
    top: 87px;
  }
}

@media (max-width: 560px) {
  .review-detail-card {
    padding: 17px 13px;
  }

  .review-detail-heading {
    min-height: 0;
    padding-bottom: 8px;
  }

  .review-detail-heading h2 {
    font-size: 24px;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .review-detail-heading .ai-chip {
    min-height: 36px;
    padding: 0 12px;
  }

  .document-preview,
  .document-native-preview,
  .generated-file-cover,
  .generated-document-preview {
    min-height: 365px;
    max-height: 365px;
  }

  .generated-document-preview {
    padding: 16px 12px 12px;
  }

  .generated-document-page {
    min-height: 337px;
    padding: 15px 14px 12px;
  }

  .generated-doc-brand small {
    display: none;
  }

  .generated-doc-kicker {
    margin-top: 18px;
  }

  .generated-document-page h3 {
    font-size: 19px;
  }

  .generated-doc-content {
    margin-top: 12px;
  }

  .document-image-preview {
    object-fit: contain;
    padding: 8px;
  }

  .document-image-preview.is-office-thumbnail {
    padding: 10px;
  }

  .preview-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 5px;
    padding: 6px;
  }

  .preview-pager {
    width: 100%;
    margin-right: 0;
  }

  .preview-toolbar .soft-button {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }

  .review-score-overview {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 20px;
  }

  .review-layout,
  .review-queue-list,
  .review-content-grid,
  .review-score-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-queue-tools,
  .review-queue-list,
  .review-queue-item,
  .review-detail-card,
  .review-detail-heading,
  .review-title-line,
  .review-actions,
  .review-actions > button,
  .review-comment-input textarea {
    width: 100%;
    max-width: 100%;
  }

  .review-detail-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 10px;
  }

  .review-title-line {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-detail-heading .ai-chip {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .review-detail-heading p {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .review-dimensions {
    width: 100%;
  }

  .review-comment-box {
    min-height: 0;
    margin-top: 14px;
  }

  .leader-rating {
    justify-content: space-between;
    gap: 10px;
  }

  .review-comment-input textarea {
    min-height: 130px;
    max-height: 180px;
  }

  .review-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .review-actions .primary-action,
  .review-actions .secondary-action,
  .danger-text-action {
    min-height: 48px;
  }
}

@media (forced-colors: active) {
  .workspace-card,
  .dialog-card,
  .segmented-control,
  .select-shell,
  .search-shell,
  .review-queue-item,
  .uploaded-file-row,
  .team-member-card,
  .report-list-item,
  .document-preview,
  .preview-toolbar,
  .review-comment-input textarea,
  .generated-document-page {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
  }
}

/* AI 助手：对话成表 */
.assistant-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.assistant-page-heading h1 {
  margin: 0;
  color: #202723;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.assistant-page-heading p {
  margin: 5px 0 0;
  color: #6d7871;
  font-size: 14px;
}

.assistant-table-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.9fr);
  gap: 18px;
  height: calc(var(--workspace-ui-height, 100dvh) - 215px);
  min-height: 0;
}

.assistant-chat-card-table {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 20px 22px;
}

.assistant-chat-card-table .assistant-thread {
  flex: 1;
  min-height: 0;
  margin-top: 0;
  overflow: auto;
  padding-right: 4px;
}

.assistant-empty-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid rgb(230 238 233 / 82%);
  border-radius: 16px;
  background: rgb(255 255 255 / 52%);
}

.assistant-empty-hint[hidden] {
  display: none;
}

.assistant-empty-hint img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #e7f7ed;
  object-fit: contain;
}

.assistant-empty-hint strong {
  color: #2f3a33;
  font-size: 14px;
  font-weight: 650;
}

.assistant-empty-hint p {
  margin: 4px 0 0;
  color: #77827b;
  font-size: 12px;
  line-height: 1.5;
}

.assistant-table-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.assistant-table-card {
  min-width: 0;
  padding: 15px 17px 13px;
  overflow: hidden;
}

.assistant-table-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assistant-table-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #e5f7eb;
  color: #2f8f5b;
}

.assistant-table-icon.is-invoice {
  background: #fff3e2;
  color: #d18a2f;
}

.assistant-table-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.assistant-table-title h2 {
  margin: 0;
  color: #202723;
  font-size: 18px;
  font-weight: 650;
}

.assistant-table-title p {
  margin: 2px 0 0;
  color: #7b847e;
  font-size: 12px;
}

.assistant-table-cat {
  flex: none;
  width: 74px;
  height: 74px;
  margin: -10px -4px -10px auto;
  object-fit: contain;
  pointer-events: none;
}

.assistant-table-cat.is-invoice {
  width: 68px;
  height: 68px;
}

.assistant-table-export {
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
}

.assistant-table-scroll {
  margin-top: 10px;
  max-height: 220px;
  overflow: auto;
  border-radius: 12px;
}

.assistant-data-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  color: #3d4741;
  font-size: 11px;
}

#assistant-overtime-table {
  min-width: 604px;
}

#assistant-overtime-table th:nth-child(1),
#assistant-overtime-table td:nth-child(1) {
  width: 34px;
}

#assistant-overtime-table th:nth-child(2),
#assistant-overtime-table td:nth-child(2) {
  width: 56px;
}

#assistant-overtime-table th:nth-child(3),
#assistant-overtime-table td:nth-child(3) {
  width: 72px;
}

#assistant-overtime-table th:nth-child(4),
#assistant-overtime-table td:nth-child(4) {
  width: 62px;
}

#assistant-overtime-table th:nth-child(5),
#assistant-overtime-table td:nth-child(5) {
  width: 84px;
}

#assistant-overtime-table th:nth-child(6),
#assistant-overtime-table td:nth-child(6) {
  width: 46px;
}

#assistant-overtime-table th:nth-child(7),
#assistant-overtime-table td:nth-child(7) {
  width: 112px;
}

#assistant-overtime-table th:nth-child(8),
#assistant-overtime-table td:nth-child(8) {
  width: 62px;
}

#assistant-overtime-table th:nth-child(9),
#assistant-overtime-table td:nth-child(9) {
  width: 76px;
}

.assistant-reimbursement-table {
  min-width: 540px;
}

.assistant-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 5px;
  border-bottom: 1px solid rgb(226 236 229 / 86%);
  background: #f3f9f5;
  color: #5d6861;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}

.assistant-data-table td {
  padding: 7px 5px;
  border-bottom: 1px solid rgb(233 239 235 / 76%);
  overflow-wrap: anywhere;
  vertical-align: top;
}

#assistant-overtime-table td:nth-child(3),
#assistant-overtime-table td:nth-child(5),
#assistant-overtime-table td:nth-child(6) {
  white-space: nowrap;
}

.assistant-data-table tbody tr:hover {
  background: rgb(241 250 244 / 68%);
}

.assistant-data-table tfoot td {
  border-bottom: 0;
  background: #f7fbf8;
  color: #2f8b5b;
  font-weight: 650;
}

.assistant-data-table .assistant-cell-empty {
  padding: 20px 12px;
  color: #8b948e;
  text-align: center;
}

.assistant-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff4d8;
  color: #a87518;
  font-size: 11px;
  white-space: nowrap;
}

.assistant-status.is-confirmed {
  background: #e4f7eb;
  color: #2f8f5b;
}

.assistant-status.is-questioned {
  background: #ffe9e6;
  color: #c05a4a;
}

.assistant-entry-preview {
  margin-top: 10px;
  overflow: auto;
  border: 1px solid rgb(228 237 231 / 90%);
  border-radius: 12px;
  background: rgb(255 255 255 / 76%);
}

.assistant-entry-preview table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  font-size: 12px;
}

.assistant-entry-preview th,
.assistant-entry-preview td {
  padding: 6px 8px;
  border-bottom: 1px solid rgb(233 239 235 / 70%);
  text-align: left;
  white-space: nowrap;
}

.assistant-entry-preview th {
  color: #6b766f;
  font-weight: 600;
}

.assistant-entry-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.assistant-entry-actions button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgb(222 233 226 / 90%);
  border-radius: 999px;
  background: rgb(255 255 255 / 78%);
  color: #466050;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.assistant-entry-actions button.is-primary {
  border-color: transparent;
  background: #48b880;
  color: #fff;
}

/* 统计与确认 */
.stats-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.stats-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stats-heading-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e5f7eb;
  color: #2f8f5b;
}

.stats-heading-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats-heading h1 {
  margin: 0;
  color: #202723;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.stats-heading p {
  margin: 4px 0 0;
  color: #6d7871;
  font-size: 14px;
}

.stats-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.stats-tabs button {
  min-width: 92px;
}

.stats-range-label {
  color: #7b847e;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.stats-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stats-metric-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 17px 20px;
}

.stats-metric-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e5f7eb;
  color: #2f8f5b;
}

.stats-metric-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats-metric-card.is-alert .stats-metric-icon {
  background: #fff4dc;
  color: #d18a2f;
}

.stats-metric-card.is-users .stats-metric-icon {
  background: #eef4ff;
  color: #4c7cc7;
}

.stats-metric-card p {
  margin: 0;
  color: #6d7871;
  font-size: 13px;
}

.stats-metric-card strong {
  color: #1f7a4d;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.stats-metric-card small {
  margin-left: 2px;
  color: #6d7871;
  font-size: 13px;
}

.stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
  gap: 16px;
  align-items: start;
}

.stats-summary-card,
.stats-detail-card {
  min-width: 0;
  padding: 18px 20px;
}

.stats-card-head,
.stats-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stats-card-head h2,
.stats-detail-head h2 {
  margin: 0;
  color: #202723;
  font-size: 20px;
  font-weight: 650;
}

.stats-card-head span {
  margin-left: 8px;
  color: #7b847e;
  font-size: 12px;
}

.stats-card-head .primary-action {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.stats-table-scroll {
  overflow: auto;
}

.stats-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 13px;
}

.stats-table th {
  padding: 9px 8px;
  border-bottom: 1px solid rgb(226 236 229 / 86%);
  color: #5d6861;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.stats-table td {
  padding: 11px 8px;
  border-bottom: 1px solid rgb(233 239 235 / 76%);
  color: #3d4741;
  vertical-align: middle;
}

.stats-table tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}

.stats-table tbody tr:hover {
  background: #f3fbf6;
}

.stats-table tbody tr.is-selected {
  background: #e8f8ee;
}

.stats-table tfoot td {
  padding-top: 12px;
  border-bottom: 0;
  color: #2f8b5b;
  font-weight: 650;
}

.stats-anomaly-count {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff4d8;
  color: #a87518;
  font-size: 12px;
  white-space: nowrap;
}

.stats-anomaly-count.is-clean {
  background: #eef3f0;
  color: #77827b;
}

.stats-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #fff4d8;
  color: #a87518;
  font-size: 12px;
  white-space: nowrap;
}

.stats-status.is-confirmed {
  background: #e4f7eb;
  color: #2f8f5b;
}

.stats-status.is-questioned {
  background: #ffe9e6;
  color: #c05a4a;
}

.stats-detail-head p {
  margin: 3px 0 0;
  color: #7b847e;
  font-size: 12px;
}

.stats-ai-note {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff8e8;
  color: #8a6a24;
  font-size: 12px;
  line-height: 1.55;
}

.stats-ai-note.is-clean {
  background: #eaf8f0;
  color: #2f8f5b;
}

.stats-entry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.stats-entry-item {
  padding: 11px 12px;
  border: 1px solid rgb(231 238 233 / 90%);
  border-radius: 12px;
  background: rgb(255 255 255 / 56%);
}

.stats-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #5f6a63;
  font-size: 12px;
}

.stats-entry-head strong {
  color: #2f3a33;
  font-size: 13px;
  font-weight: 650;
}

.stats-entry-meta {
  margin-top: 4px;
  color: #7b847e;
  font-size: 12px;
}

.stats-entry-desc {
  margin: 6px 0 0;
  color: #3d4741;
  font-size: 13px;
  line-height: 1.45;
}

.stats-entry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.stats-entry-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

.stats-entry-actions button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgb(222 233 226 / 90%);
  border-radius: 999px;
  background: rgb(255 255 255 / 76%);
  color: #466050;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.stats-entry-actions button.is-primary {
  border-color: transparent;
  background: #48b880;
  color: #fff;
}

.stats-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.stats-detail-actions .primary-action {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.stats-detail-actions .soft-button {
  min-height: 38px;
  font-size: 12px;
}

.text-link-button {
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: #2f8f5b;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.stats-export-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 12px 18px;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 16px;
  background: rgb(255 255 255 / 52%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 76%);
}

.stats-export-copy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 960px;
  color: #707b74;
  font-size: 12px;
  line-height: 1.55;
}

.stats-export-copy svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats-reimbursement-empty .workspace-card {
  padding: 28px;
}

.literature-placeholder {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px;
}

.literature-placeholder h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.literature-placeholder p {
  margin: 0;
  color: #6d7871;
  font-size: 14px;
  line-height: 1.6;
}

.stats-reimbursement-empty h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.stats-reimbursement-empty p {
  margin: 0;
  color: #6d7871;
  font-size: 14px;
  line-height: 1.6;
}

.source-record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 4px 2px;
}

.source-record-item {
  padding: 10px 12px;
  border: 1px solid rgb(231 238 233 / 90%);
  border-radius: 12px;
  background: rgb(255 255 255 / 60%);
  color: #3d4741;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .assistant-table-layout {
    height: auto;
    min-height: calc(100dvh - 245px);
  }

  .assistant-chat-card-table {
    height: auto;
    min-height: calc(100dvh - 245px);
  }
}

@media (min-width: 821px) and (max-width: 1400px) {
  .workspace-app.is-scaled-workspace .review-layout {
    grid-template-columns: minmax(340px, 574px) minmax(0, 1fr);
    gap: 38px;
  }

  .workspace-app.is-scaled-workspace .review-queue-list {
    grid-template-columns: minmax(0, 1fr);
    max-height: 710px;
  }
}

@media (max-width: 1280px) {
  .workspace-app.is-scaled-workspace .assistant-table-layout {
    grid-template-columns: minmax(0, 1fr) minmax(520px, 0.9fr);
  }

  .workspace-app.is-scaled-workspace .stats-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr);
  }

  .workspace-app.is-scaled-workspace .stats-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1370px) {
  .workspace-app.is-scaled-workspace .review-title-line {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
  }

  .workspace-app.is-scaled-workspace .review-detail-heading p {
    white-space: nowrap;
  }
}

@media (max-width: 1280px) {
  .assistant-table-layout {
    grid-template-columns: 1fr;
  }

  .assistant-chat-card-table {
    min-height: 520px;
  }

  .stats-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .assistant-page-heading h1,
  .stats-heading h1 {
    font-size: 28px;
  }

  .stats-heading-row {
    align-items: flex-start;
  }

  .stats-toolbar {
    width: 100%;
  }

  .stats-metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-export-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-export-bar .primary-action {
    width: 100%;
  }

  .assistant-table-cat {
    width: 58px;
    height: 58px;
  }
}

/* 文献自动推送 */

.workspace-page[hidden] .daily-cat-wrap {
  display: none !important;
}

.literature-page {
  padding-bottom: 28px;
}

.literature-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.literature-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.literature-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.literature-title-mark {
  width: 4px;
  height: 42px;
  margin-top: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, #39be79, #228f55);
  flex: none;
}

.literature-title h1 {
  margin: 0;
  color: #10251a;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.literature-title p {
  margin: 7px 0 0;
  color: #748079;
  font-size: 13px;
  line-height: 1.6;
}

.literature-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(330px, 32vw);
  min-width: 220px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid rgb(224 235 228 / 88%);
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 86%),
    0 9px 24px rgb(54 83 64 / 5%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.literature-search svg {
  width: 17px;
  height: 17px;
  color: #7b8880;
  flex: none;
}

.literature-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #223a2c;
  font: inherit;
  font-size: 13px;
}

.literature-search input::placeholder {
  color: #9ba69f;
}

.literature-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.literature-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.literature-today-card,
.literature-history-card {
  padding: 18px 18px 16px;
  border-radius: 24px;
}

.literature-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.literature-card-head h2 {
  margin: 0;
  color: #15251c;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.literature-card-head span {
  color: #76837b;
  font-size: 12px;
  white-space: nowrap;
}

.literature-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 13px;
}

.literature-tabs button {
  min-height: 30px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgb(244 248 245 / 72%);
  color: #69776f;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.literature-tabs button:hover {
  border-color: rgb(65 180 119 / 32%);
  color: #238c53;
}

.literature-tabs button.is-active {
  background: #2fae6a;
  color: #fff;
  box-shadow: 0 8px 18px rgb(47 174 106 / 18%);
}

.literature-feed-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 90px;
}

.literature-feed-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 11px 10px;
  border: 1px solid rgb(231 239 234 / 92%);
  border-radius: 15px;
  background: rgb(255 255 255 / 50%);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.literature-feed-item:hover,
.literature-feed-item.is-selected {
  border-color: rgb(73 190 127 / 52%);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 50%), transparent 60%),
    #effaf3;
  box-shadow: 0 10px 24px rgb(53 142 91 / 7%);
}

.literature-source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  max-width: 48px;
  min-height: 24px;
  padding: 2px 5px;
  border: 1px solid rgb(231 237 233 / 92%);
  border-radius: 6px;
  background: #fff;
  color: #25352c;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.literature-feed-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.literature-feed-title-en {
  display: -webkit-box;
  overflow: hidden;
  color: #6d7a72;
  font-size: 9.5px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.literature-feed-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #17251d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.literature-feed-copy small {
  color: #8b968f;
  font-size: 9.5px;
  line-height: 1.4;
}

.literature-pushed-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e8f8ee;
  color: #23985a;
  font-size: 9px;
  white-space: nowrap;
}

.literature-pushed-badge svg {
  width: 11px;
  height: 11px;
}

.literature-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 18px 12px;
  color: #8d9891;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.literature-history-list {
  display: flex;
  flex-direction: column;
  max-height: 280px;
  overflow: auto;
  scrollbar-width: thin;
}

.literature-history-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid rgb(236 242 238 / 90%);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.literature-history-row:last-child {
  border-bottom: 0;
}

.literature-history-row:hover .literature-history-title {
  color: #1d9a5a;
}

.literature-history-date {
  color: #88938c;
  font-size: 10.5px;
}

.literature-history-title {
  overflow: hidden;
  color: #425249;
  font-size: 11.5px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.literature-history-read {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #7d8a82;
  font-size: 9.5px;
  white-space: nowrap;
}

.literature-history-read svg {
  width: 11px;
  height: 11px;
}

.literature-history-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #23985a;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.literature-history-more svg {
  width: 13px;
  height: 13px;
}

.literature-detail-card {
  min-width: 0;
  min-height: 660px;
  padding: 24px 26px 20px;
  border-radius: 24px;
}

.literature-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.literature-detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #24985b;
  font-size: 11px;
  font-weight: 700;
}

.literature-detail-kicker svg {
  width: 19px;
  height: 19px;
}

.literature-detail-title {
  margin: 0;
  color: #10251a;
  font-size: clamp(22px, 1.75vw, 28px);
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.literature-detail-en {
  margin: 6px 0 0;
  color: #8d9891;
  font-size: 12px;
  font-style: italic;
  line-height: 1.5;
}

.literature-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.literature-pill-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgb(229 237 232 / 92%);
  border-radius: 999px;
  background: rgb(255 255 255 / 62%);
  color: #31463a;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.literature-pill-button:hover {
  border-color: rgb(71 188 126 / 52%);
  background: #f0fbf4;
}

.literature-pill-button svg {
  width: 14px;
  height: 14px;
}

.literature-pill-button.is-favorite {
  border-color: rgb(71 188 126 / 58%);
  background: #e9f9ef;
  color: #238c53;
}

.literature-summary-card {
  margin-top: 22px;
  padding: 20px 22px 8px;
  border: 1px solid rgb(235 242 238 / 94%);
  border-radius: 19px;
  background: rgb(249 252 250 / 62%);
}

.literature-summary-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #17281e;
  font-size: 18px;
  font-weight: 800;
}

.literature-summary-head svg {
  width: 19px;
  height: 19px;
  color: #2fae6a;
}

.literature-summary-row {
  display: grid;
  grid-template-columns: 10px 118px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgb(237 243 239 / 88%);
}

.literature-summary-row:last-child {
  border-bottom: 0;
}

.literature-summary-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: #2fae6a;
  box-shadow: 0 0 0 3px rgb(47 174 106 / 12%);
}

.literature-summary-label {
  color: #35483c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.65;
}

.literature-summary-text {
  color: #5b6b61;
  font-size: 12.5px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.literature-detail-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.literature-export-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgb(231 239 234 / 92%);
  border-radius: 999px;
  background: rgb(255 255 255 / 68%);
  color: #304438;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}

.literature-export-button svg {
  width: 15px;
  height: 15px;
}

.literature-export-button.is-primary {
  border-color: transparent;
  background: #2fae6a;
  color: #fff;
  box-shadow: 0 10px 22px rgb(47 174 106 / 18%);
}

.literature-export-button:hover {
  filter: brightness(0.98);
}

.literature-detail-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #8b968f;
  font-size: 10.5px;
  line-height: 1.6;
}

.literature-detail-footer svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.literature-detail-empty {
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 30px;
  color: #8b968f;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.literature-detail-loading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.literature-skeleton {
  height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, #edf3ef, #f7faf8, #edf3ef);
  background-size: 200% 100%;
  animation: literature-shimmer 1.2s linear infinite;
}

.literature-skeleton.is-title {
  width: 68%;
  height: 28px;
}

.literature-skeleton.is-short {
  width: 44%;
}

@keyframes literature-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.literature-status-error {
  color: #a4612c;
}

.literature-footnote {
  margin: -2px 2px 0;
  color: #8b968f;
  font-size: 10.5px;
  line-height: 1.6;
}

.literature-reader-dialog {
  width: min(1120px, 96vw);
  max-width: 96vw;
}

.literature-reader-dialog .dialog-card {
  width: 100%;
  max-width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.literature-reader-meta {
  margin: 0 0 14px;
  color: #7b8880;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.literature-reader-body {
  color: #3f5147;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
}

.literature-reader-body a {
  color: #23985a;
  word-break: break-all;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .literature-layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .literature-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .literature-search {
    width: 100%;
  }

  .literature-layout {
    grid-template-columns: 1fr;
  }

  .literature-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .literature-detail-card {
    min-height: 480px;
  }

  .literature-detail-empty {
    min-height: 380px;
  }
}

@media (max-width: 680px) {
  .literature-sidebar {
    display: flex;
  }

  .literature-detail-card {
    padding: 18px 15px;
  }

  .literature-detail-head {
    flex-direction: column;
  }

  .literature-detail-actions {
    flex-wrap: wrap;
  }

  .literature-summary-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .literature-summary-text {
    grid-column: 2;
  }

  .literature-summary-label {
    grid-column: 2;
  }
}

@media (min-width: 1501px) {
  .review-comment-box {
    min-height: 100px;
  }

  .review-comment-input textarea {
    min-height: 112px;
    max-height: 160px;
  }

  .review-comment-readonly p {
    min-height: 88px;
  }
}

@media (min-width: 1501px) {
  .document-preview {
    min-height: 389px;
    max-height: 389px;
  }
}

@media (min-width: 1501px) {
  .review-layout {
    min-height: max(826px, calc(100dvh - 175px));
  }
}

.register-card.is-invite-only .register-form-stack,
.register-card.is-invite-only .terms-row,
.register-card.is-invite-only .terms-error,
.register-card.is-invite-only .register-submit {
  display: none;
}

.invite-only-notice {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid rgb(56 185 120 / 26%);
  border-radius: 18px;
  background: rgb(239 251 244 / 72%);
  color: #315843;
}

.invite-only-notice strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.invite-only-notice p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

.invite-page {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 32px 20px;
}

.invite-card {
  position: relative;
  width: min(560px, 94vw);
  padding: 34px 38px 28px;
  border-radius: 28px;
}

.invite-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #23633f;
  font-size: 14px;
}

.invite-brand strong {
  font-size: 25px;
  letter-spacing: 0.03em;
}

.invite-card h1 {
  margin: 22px 0 8px;
  font-size: 34px;
  line-height: 1.15;
}

.invite-copy {
  margin: 0;
  color: #6d7a71;
  font-size: 15px;
  line-height: 1.7;
}

.invite-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 13px 15px;
  border-radius: 15px;
  background: rgb(238 250 243 / 70%);
}

.invite-person > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4cbd80;
  color: #fff;
  font-weight: 700;
}

.invite-person strong,
.invite-person small {
  display: block;
}

.invite-person small {
  margin-top: 3px;
  color: #718077;
  font-size: 12px;
}

.invite-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.invite-form label {
  display: grid;
  gap: 7px;
  color: #2f3b34;
  font-size: 14px;
  font-weight: 600;
}

.invite-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dae5dd;
  border-radius: 12px;
  outline: none;
  background: rgb(255 255 255 / 80%);
  font: inherit;
}

.invite-form input:focus {
  border-color: #7dcfa1;
  box-shadow: 0 0 0 4px rgb(61 184 121 / 12%);
}

.invite-error {
  min-height: 18px;
  margin: 0;
  color: #d2584c;
  font-size: 13px;
}

.invite-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  color: #7b877f;
  font-size: 13px;
}

.invite-footer a {
  color: #2f9b61;
  text-decoration: none;
}

.register-card.is-invite-only {
  height: auto;
  min-height: 520px;
}

.register-card.is-invite-only .password-strength {
  display: none;
}

body.lan-test-mode .login-register-copy,
body.lan-test-mode [data-view-target="register"] {
  display: none !important;
}

.workbench-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.week-controls .text-link-button {
  white-space: nowrap;
}

.week-controls .round-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.makeup-upload-note {
  margin: 12px 0 0;
  color: #6f7b73;
  font-size: 12px;
  line-height: 1.6;
}

#makeup-upload-file {
  height: auto;
  padding: 10px 12px;
  background: rgb(255 255 255 / 72%);
}

@media (max-width: 700px) {
  .workbench-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

.report-scope-select {
  min-width: 158px;
}

.report-scope-select select {
  max-width: 146px;
}

.report-period-select {
  min-width: 172px;
}

.report-period-select select {
  max-width: 160px;
}

.report-toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.report-list-owner {
  display: inline-block;
  max-width: 100%;
  margin-right: 6px;
  color: #6d7a71;
  font-size: 12px;
}

.report-actions [hidden],
.report-toolbar [hidden] {
  display: none !important;
}

.leader-review-box {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 17px;
  border: 1px solid rgb(46 170 108 / 20%);
  border-radius: 14px;
  background: rgb(237 250 242 / 82%);
  color: #345443;
}

.leader-review-box[hidden] {
  display: none !important;
}

.leader-review-box .comment-icon {
  background: #dff5e8;
}

.leader-review-box strong small {
  margin-left: 6px;
  color: #2e9c66;
  font-size: 12px;
  font-weight: 600;
}

.leader-review-box p {
  margin: 7px 0 0;
  color: #405a4a;
  font-size: 14px;
  line-height: 1.7;
}

.leader-review-box > div > small {
  display: block;
  margin-top: 6px;
  color: #7a8c80;
  font-size: 12px;
}

.file-review-state {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6f7ed;
  color: #2b8d5c;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.file-review-state.is-rejected {
  background: #fdecec;
  color: #b64a4a;
}

.file-review-state.is-supplement {
  background: #fff4dd;
  color: #9a7021;
}

.stats-status.is-rejected,
.assistant-status.is-rejected {
  background: #ffe5e5;
  color: #b33f3f;
}

.stats-entry-actions button.is-danger,
.mini-action.is-danger {
  border-color: rgb(202 79 79 / 24%);
  color: #b33f3f;
  background: rgb(255 240 240 / 78%);
}

.stats-entry-actions button.is-danger:hover,
.mini-action.is-danger:hover {
  background: #ffe1e1;
}

.uploaded-file-thumb {
  flex: none;
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 11px;
  background: #eef5ef;
}

.batch-report-button {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
}

.upload-image-caption {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: #68766d;
  font-size: 12px;
}

.upload-image-caption input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 12px;
  background: rgb(255 255 255 / 72%);
  color: #26302b;
  font: inherit;
  outline: 0;
}

.upload-image-caption input:focus {
  border-color: rgb(46 160 98 / 48%);
  box-shadow: 0 0 0 3px rgb(46 160 98 / 10%);
}

.literature-add-tag {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px dashed rgb(57 143 91 / 48%);
  border-radius: 999px;
  background: rgb(240 251 244 / 78%);
  color: #2e8f5b;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.literature-guidance {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 11px 13px;
  border: 1px solid rgb(255 255 255 / 66%);
  border-radius: 14px;
  background: rgb(248 252 249 / 68%);
}

.literature-guidance label {
  display: grid;
  flex: 1;
  gap: 5px;
  color: #6b7c70;
  font-size: 12px;
}

.literature-guidance input {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgb(219 234 223 / 90%);
  border-radius: 9px;
  background: rgb(255 255 255 / 78%);
  color: #29362e;
  font: inherit;
  font-size: 13px;
  outline: 0;
}

.literature-guidance input:focus {
  border-color: rgb(46 160 98 / 48%);
}

.report-period-picker {
  display: flex;
  align-items: center;
}

.report-period-picker input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 14px;
  background: rgb(255 255 255 / 72%);
  color: #26302b;
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.report-period-picker input:focus {
  border-color: rgb(46 160 98 / 48%);
  box-shadow: 0 0 0 3px rgb(46 160 98 / 10%);
}

.report-week-range {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 14px;
  background: rgb(255 255 255 / 58%);
  color: #53645a;
  font-size: 13px;
  white-space: nowrap;
}

.team-board-layout {
  display: grid;
  grid-template-columns: minmax(430px, 1.05fr) minmax(0, 1.35fr);
  gap: 20px;
  align-items: start;
}

.team-table-card {
  padding: 22px;
}

.team-table-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.team-score-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.team-score-table th,
.team-score-table td {
  padding: 13px 9px;
  border-bottom: 1px solid rgb(224 234 227 / 82%);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.team-score-table th {
  color: #7a887e;
  font-weight: 600;
  white-space: nowrap;
}

.team-score-table td:first-child {
  font-weight: 650;
  color: #2d3d33;
}

.team-score-table tbody tr {
  cursor: pointer;
  transition: background 160ms ease;
}

.team-score-table tbody tr:hover,
.team-score-table tbody tr.is-selected {
  background: rgb(237 249 241 / 78%);
}

.team-score-table .team-score-total {
  color: #238958;
  font-weight: 700;
}

.team-score-table .team-score-missing {
  color: #b27b25;
  font-weight: 650;
}

.team-score-table .member-name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-score-table .member-name-cell .avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .team-board-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.team-board-layout .team-detail-card {
  margin-top: 0;
}

.team-table-card {
  min-width: 0;
}

.approval-shortcuts {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
}

.approval-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.approval-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e05d57;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.approval-badge[hidden] {
  display: none !important;
}

.literature-summary-text {
  font-size: 14.5px;
  line-height: 1.9;
}

.literature-summary-label {
  font-size: 13.5px;
}

.literature-summary-head {
  font-size: 19px;
}

.team-board-layout {
  margin-top: 26px;
  gap: 30px;
}

.team-board-layout {
  margin-top: 34px;
  gap: 32px;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ff5b66;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.notification-badge[hidden] {
  display: none !important;
}

.assistant-delete-button {
  padding: 4px 8px;
  border: 1px solid rgb(224 111 101 / 34%);
  border-radius: 8px;
  background: rgb(255 246 244 / 78%);
  color: #c75148;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.assistant-delete-button:hover {
  background: #fff0ed;
}

.assistant-delete-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.assistant-data-table th:last-child,
.assistant-data-table td:last-child {
  width: 58px;
  text-align: center;
  white-space: nowrap;
}
