:root {
  --orange: #ff6a00;
  --orange-dark: #e95f00;
  --orange-soft: #fff0e4;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #1f2329;
  --muted: #6b7280;
  --weak: #9ca3af;
  --line: #e5e7eb;
  --green: #16a34a;
  --yellow: #f59e0b;
  --red: #dc2626;
  --blue: #2563eb;
  --shadow: 0 12px 30px rgba(31, 35, 41, 0.08), 0 2px 8px rgba(31, 35, 41, 0.05);
  --motion-fast: 120ms;
  --motion-base: 180ms;
  --motion-page: 240ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

@keyframes soft-page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes modal-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-panel-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

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

@keyframes drawer-slide-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

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

@keyframes dropdown-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 16px;
  text-align: center;
  background: var(--bg);
}

.boot-screen .brand {
  justify-content: center;
  padding: 0;
  height: auto;
}

.boot-screen h1,
.boot-screen p {
  margin: 0;
}

.boot-screen p {
  color: var(--muted);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 5;
}

.brand {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
}

.brand-mark {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #ff8a1f, #ff5a00);
  font-size: 13px;
  transform: rotate(180deg);
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
}

.nav {
  padding: 8px 10px;
  flex: 1;
  overflow: auto;
}

.nav-group {
  margin-bottom: 18px;
}

.nav-title {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 14px;
}

.nav-title span {
  color: var(--orange);
}

.nav-title small {
  margin-left: auto;
  color: var(--muted);
}

.nav-item {
  display: block;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  padding-left: 50px;
  color: var(--text);
  transition: background-color var(--motion-base) var(--ease-out), color var(--motion-base) var(--ease-out), transform var(--motion-fast) var(--ease-out);
}

.nav-item:hover {
  background: #fff7ed;
  color: var(--orange);
  transform: translateX(2px);
}

.nav-item.active {
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 700;
}

.collapse-btn {
  height: 40px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.main {
  margin-left: 230px;
  min-height: 100vh;
}

.topbar {
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 4;
}

.page-identity,
.top-actions,
.user-pill,
.meta-row,
.form-row,
.inline-actions,
.card-actions,
.toolbar,
.filters,
.toolbar-actions,
.section-head,
.report-head {
  display: flex;
  align-items: center;
}

.page-identity {
  gap: 14px;
  min-width: 0;
}

.page-identity h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.page-identity p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.avatar-lg,
.avatar-sm {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #ffe9b2, #d48710 52%, #7c3f00);
  color: white;
  font-weight: 700;
}

.avatar-lg {
  width: 48px;
  height: 48px;
}

.avatar-sm {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.top-actions {
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.search {
  width: clamp(260px, 30vw, 380px);
  flex: 0 1 380px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-sizing: border-box;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--weak);
  overflow: hidden;
}

.search span {
  flex: 0 0 auto;
}

.search input {
  appearance: none;
  background: transparent;
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  font-size: 14px;
}

.content {
  padding: 22px 24px 48px;
}

.content > * {
  animation: soft-page-enter var(--motion-page) var(--ease-out) both;
}

.toolbar {
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 90;
}

.filters,
.toolbar-actions {
  gap: 10px;
}

.owner-team-select {
  min-width: 140px;
}

.report-entry-menu {
  position: relative;
}

.report-entry-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.report-entry-menu summary::-webkit-details-marker {
  display: none;
}

.report-entry-menu summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 12px;
}

.report-entry-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 116px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.report-entry-menu[open] .report-entry-panel {
  animation: dropdown-panel-in var(--motion-fast) var(--ease-out) both;
}

.report-entry-panel button {
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: white;
  color: var(--text);
  text-align: left;
  transition: background-color var(--motion-fast) var(--ease-out), color var(--motion-fast) var(--ease-out);
}

.report-entry-panel button:hover {
  background: #fff2e6;
  color: var(--orange);
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--text);
}

select,
input {
  height: 38px;
  padding: 0 12px;
}

select {
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: border-color var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), background-color var(--motion-base) var(--ease-out);
}

select:hover:not(:disabled),
select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.12);
  outline: none;
}

select:disabled {
  color: var(--weak);
  background-color: #f6f7f9;
  cursor: not-allowed;
}

select[multiple] {
  height: auto;
  padding: 8px;
  background-image: none;
}

.custom-select {
  position: relative;
  display: inline-block;
  min-width: 128px;
  max-width: 100%;
  vertical-align: middle;
}

.custom-select.open {
  z-index: 140;
}

.native-select-proxy {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  inset: 0 auto auto 0;
}

.custom-select-trigger {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), background-color var(--motion-base) var(--ease-out);
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.12);
}

.custom-select-trigger:disabled {
  color: var(--weak);
  background: #f6f7f9;
  border-color: var(--line);
  box-shadow: none;
  cursor: not-allowed;
}

.custom-select-trigger [data-custom-select-label] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-arrow {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 13px;
  transform: translateY(-1px);
  transition: transform var(--motion-base) var(--ease-out), color var(--motion-base) var(--ease-out);
}

.custom-select.open .custom-select-arrow {
  color: var(--orange);
  transform: rotate(180deg) translateY(1px);
}

.custom-select-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(360px, calc(100vw - 40px));
  max-height: 270px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(31, 35, 41, 0.08);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(31, 35, 41, 0.16), 0 2px 8px rgba(31, 35, 41, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out), visibility var(--motion-fast) var(--ease-out);
}

.custom-select.open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  padding: 0 10px 0 8px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.custom-select-option:hover {
  background: #fff3eb;
  color: var(--orange);
}

.custom-select-option.active {
  background: var(--orange);
  color: white;
  font-weight: 700;
}

.custom-select-option:disabled {
  color: var(--weak);
  background: transparent;
  cursor: not-allowed;
}

.custom-select-check {
  width: 14px;
  color: currentColor;
  text-align: center;
  font-weight: 800;
}

.custom-select-option-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.filters .custom-select,
.toolbar-actions .custom-select {
  min-width: 140px;
}

.owner-team-select {
  min-width: 140px;
}

.inline-editor-meta .custom-select {
  min-width: 170px;
}

.inline-kr-editor .custom-select,
.permission-row .custom-select,
.drawer-field .custom-select,
.modal-form .custom-select,
.block-form .custom-select,
.template-editor-form .custom-select,
.template-preview-form .custom-select,
.goal-rule-form-card .custom-select,
.goal-period-row .custom-select,
.progress-target-row .custom-select {
  width: 100%;
  min-width: 0;
}

textarea {
  padding: 10px 12px;
  resize: vertical;
}

.primary-btn,
.outline-btn,
.ghost-btn,
.icon-btn,
.text-btn {
  border-radius: 7px;
  min-height: 34px;
  border: 0;
  transition: background-color var(--motion-base) var(--ease-out), border-color var(--motion-base) var(--ease-out), color var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), transform var(--motion-fast) var(--ease-out);
}

.primary-btn:active,
.outline-btn:active,
.ghost-btn:active,
.icon-btn:active,
.text-btn:active {
  transform: translateY(1px) scale(0.99);
}

.primary-btn {
  background: var(--orange);
  color: white;
  padding: 0 16px;
  font-weight: 700;
}

.primary-btn:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 14px rgba(255, 106, 0, 0.2);
}

.primary-btn.compact {
  min-height: 30px;
  padding: 0 12px;
}

.outline-btn {
  background: white;
  border: 1px solid var(--line);
  padding: 0 14px;
  color: var(--text);
}

.outline-btn:hover,
.icon-btn:hover {
  border-color: rgba(255, 106, 0, 0.36);
  color: var(--orange);
  box-shadow: 0 4px 12px rgba(31, 35, 41, 0.08);
}

.outline-btn.compact {
  min-height: 30px;
  padding: 0 10px;
}

.ghost-btn {
  background: #fff7ed;
  color: var(--orange);
  padding: 0 12px;
}

.ghost-btn:hover {
  background: #ffead9;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.12);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: white;
}

.text-btn {
  background: transparent;
  color: var(--orange);
  padding: 0;
}

.text-btn:hover {
  color: var(--orange-dark);
}

.text-btn.danger,
.icon-btn.danger {
  color: var(--red);
}

.is-hidden {
  display: none !important;
}

.user-pill {
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 18px;
  background: white;
}

.goal-grid,
.report-list,
.template-grid {
  display: grid;
  gap: 14px;
}

.goal-card,
.report-card,
.template-card,
.table-card,
.writer-panel,
.reference-panel,
.summary-panel,
.admin-panel,
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-out);
}

.goal-card:hover,
.report-card:hover,
.template-card:hover,
.stat-card:hover {
  border-color: rgba(255, 106, 0, 0.2);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.goal-card {
  padding: 18px;
}

.inline-goal-editor {
  background: white;
  border: 1px solid var(--orange);
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: visible;
}

.inline-objective-form {
  display: grid;
}

.inline-editor-core,
.inline-editor-meta,
.inline-description-field,
.inline-editor-footer {
  padding: 16px 24px;
}

.inline-editor-core {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: center;
}

.target-ring {
  width: 24px;
  height: 24px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px white;
  background: #fff7ed;
}

.inline-title-field input {
  width: 100%;
  height: 42px;
  border: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  outline: 0;
}

.inline-title-field input::placeholder {
  color: var(--weak);
  font-weight: 600;
}

.inline-editor-side {
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  gap: 10px;
  align-items: center;
  color: var(--weak);
  font-size: 12px;
}

.inline-editor-side input {
  text-align: center;
  background: #fafafa;
}

.inline-editor-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--weak);
  font-size: 13px;
}

.inline-editor-meta label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inline-editor-meta select {
  min-width: 170px;
  background: white;
}

.inline-description-field {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-top: 1px solid var(--line);
  color: var(--weak);
  font-size: 13px;
}

.inline-description-field textarea {
  min-height: 74px;
}

.inline-editor-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--orange-soft);
}

.goal-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.goal-card h2,
.section-head h2,
.template-card h3 {
  margin: 4px 0 8px;
}

.goal-card p,
.muted {
  color: var(--muted);
}

.progress-line {
  height: 8px;
  background: #f1f2f4;
  border-radius: 999px;
  overflow: hidden;
  margin: 14px 0 8px;
}

.progress-line.thin {
  height: 5px;
  margin: 8px 0;
}

.progress-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #ffb15d);
}

.meta-row {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.kr-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.kr-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.inline-kr-editor {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) 120px 90px 90px 76px auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffaf5;
}

.inline-kr-editor input,
.inline-kr-editor select {
  min-width: 0;
  background: white;
}

.kr-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  border-radius: 4px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.objective-manage-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fcfcfd;
}

.objective-tool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 0;
}

.objective-tool:hover {
  color: var(--orange);
}

.objective-tool.danger:hover {
  color: var(--red);
}

.objective-tool:disabled {
  color: var(--weak);
  cursor: not-allowed;
}

.goal-table-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(31, 35, 41, 0.04);
}

.goal-table-body {
  display: grid;
}

.goal-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 96px;
  align-items: stretch;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.goal-table-row > * {
  padding: 14px 18px;
}

.objective-row {
  min-height: 108px;
}

.goal-main-cell {
  min-width: 0;
}

.align-link,
.add-kr-row,
.permission-summary,
.icon-text {
  border: 0;
  background: transparent;
}

.align-link {
  color: var(--muted);
  font-size: 12px;
  padding: 0;
  margin-bottom: 8px;
}

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

.objective-align-line span {
  color: var(--weak);
  font-size: 12px;
}

.align-link:hover {
  color: var(--orange);
}

.objective-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.objective-title-line strong,
.kr-title-cell > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-ring.sm {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  box-shadow: inset 0 0 0 4px white;
}

.okr-weight,
.okr-type {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 5px;
  padding: 0 8px;
  background: #f3f4f6;
  color: var(--weak);
  font-size: 12px;
  font-weight: 600;
}

.okr-type {
  background: #fff4ec;
  color: var(--orange);
}

.goal-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: var(--weak);
  font-size: 13px;
}

.goal-meta-line label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.goal-meta-line select[multiple] {
  min-width: 190px;
  height: 38px;
}

.goal-metric-cell {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--weak);
  border-left: 1px solid #f1f2f4;
  font-size: 12px;
}

.goal-metric-cell b {
  min-width: 52px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #f1f2f4;
  color: var(--muted);
  font-size: 14px;
}

.kr-table-row {
  min-height: 52px;
}

.kr-title-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.latest-progress-block {
  padding: 16px 24px 20px;
  background: white;
}

.latest-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.latest-progress-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.latest-progress-head strong::before {
  content: "▣";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  color: white;
  background: #7b8794;
  font-size: 12px;
}

.latest-progress-head span,
.progress-social,
.muted-text {
  color: var(--weak);
  font-size: 12px;
}

.latest-progress-actions {
  display: flex;
  gap: 10px;
}

.latest-progress-block p {
  margin: 16px 0;
  color: var(--muted);
  line-height: 1.7;
}

.latest-progress-summary-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 8px;
  background: #f9fafb;
}

.progress-change-list {
  display: grid;
  gap: 8px;
}

.progress-change-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.progress-change-row p {
  margin: 0;
  color: var(--text);
}

.progress-change-row b {
  color: var(--blue);
  margin-right: 8px;
}

.progress-change-row strong {
  color: var(--text);
}

.progress-change-row span {
  padding: 5px 9px;
  border-radius: 5px;
  background: #eef0f3;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.latest-progress-description {
  color: var(--text);
}

.latest-progress-description p {
  margin: 0;
  color: var(--text);
}

.progress-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.goal-table-card.edit-mode {
  border-color: var(--orange);
  overflow: visible;
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.08);
}

.goal-table-card.edit-mode form {
  display: grid;
}

.edit-objective-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 116px;
  border-bottom: 1px solid var(--line);
}

.edit-objective-main,
.edit-side-head,
.edit-weight-box {
  padding: 16px 20px;
}

.edit-title-input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 0;
  font-weight: 700;
  outline: 0;
}

.edit-description-input {
  margin-top: 12px;
  width: 100%;
  min-height: 60px;
}

.edit-side-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  color: var(--weak);
  font-size: 12px;
}

.edit-weight-box {
  display: grid;
  place-items: center;
}

.edit-weight-box input {
  width: 72px;
  text-align: center;
}

.edit-kr-list {
  display: grid;
}

.edit-kr-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 120px 76px 32px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}

.edit-kr-row > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-kr-row input {
  text-align: center;
}

.edit-kr-row input[readonly] {
  color: var(--weak);
  background: #f6f7f9;
  cursor: not-allowed;
}

.edit-kr-row input[name^="newKrTitle:"] {
  text-align: left;
}

.kr-type-menu {
  position: relative;
  z-index: 4;
}

.kr-type-menu[open] {
  z-index: 12;
}

.kr-type-menu summary {
  list-style: none;
}

.kr-type-menu summary::-webkit-details-marker {
  display: none;
}

.kr-type-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.kr-type-menu[open] .kr-type-trigger,
.kr-type-trigger:hover {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.1);
}

.kr-type-arrow {
  color: #64748b;
  font-size: 12px;
  transform: rotate(180deg);
  transition: transform 0.16s ease;
}

.kr-type-menu[open] .kr-type-arrow {
  transform: rotate(0);
}

.kr-type-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 120px;
  padding: 6px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(31, 35, 41, 0.14);
}

.kr-type-option {
  display: grid;
  grid-template-columns: 18px 1fr 18px;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.kr-type-option:hover {
  background: #fff7ed;
  color: var(--orange);
}

.kr-type-option.active {
  color: var(--text);
}

.kr-type-check {
  color: var(--orange);
  font-size: 13px;
}

.kr-type-help {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid #9aa3af;
  border-radius: 50%;
  color: #6b7280;
  font-size: 10px;
}

.new-kr-row {
  background: #fff;
  box-shadow: inset 4px 0 0 #ff5a5f;
}

.add-kr-row {
  height: 46px;
  text-align: left;
  padding: 0 24px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.edit-permission-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--weak);
  font-size: 13px;
}

.permission-summary {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: white;
}

.edit-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--orange-soft);
}

.edit-footer-link {
  color: #6d72e8;
  font-size: 13px;
}

.exit-edit-btn {
  margin-left: auto;
}

.icon-text {
  color: var(--muted);
  min-height: 28px;
}

.icon-text:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.kr-delete-btn {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 16px;
}

.kr-delete-btn:hover {
  color: var(--red);
  background: #fee2e2;
}

.drawer-shell {
  position: fixed;
  inset: 0;
  z-index: 240;
  pointer-events: none;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(31, 35, 41, 0.36);
  pointer-events: auto;
  animation: modal-backdrop-in var(--motion-base) var(--ease-out) both;
}

.drawer-scrim.subtle {
  background: transparent;
}

.permission-drawer {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(620px, 100%);
  background: white;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(31, 35, 41, 0.14);
  pointer-events: auto;
  animation: drawer-slide-in var(--motion-page) var(--ease-out) both;
}

.alignment-drawer,
.objective-detail-drawer {
  width: min(560px, 100%);
}

.permission-drawer header,
.permission-drawer footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.permission-drawer h2,
.permission-drawer h3 {
  margin: 0;
}

.permission-drawer header p {
  margin: 4px 0 0;
  color: var(--weak);
  font-size: 13px;
}

.permission-drawer h2 {
  font-size: 18px;
}

.permission-drawer footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.drawer-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.permission-drawer .drawer-section:last-of-type {
  flex: 1;
  overflow: auto;
}

.recommend-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #fafafa;
}

.recommend-box h3 {
  grid-column: 1 / -1;
  font-size: 14px;
}

.recommend-box label,
.drawer-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.recommend-box span {
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 11px;
}

.permission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.drawer-field {
  align-items: flex-start;
  flex-direction: column;
  margin-bottom: 14px;
}

.drawer-field select,
.permission-group select[multiple] {
  width: 100%;
}

.permission-group {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.permission-group b {
  color: var(--muted);
  font-size: 13px;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 32px;
  gap: 10px;
  align-items: center;
  min-height: 38px;
}

.permission-row span {
  color: var(--text);
}

.alignment-target-section {
  flex: 1;
  overflow: auto;
}

.alignment-manager-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin-bottom: 14px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.alignment-manager-line p {
  margin: 2px 0 0;
  color: var(--weak);
  font-size: 12px;
}

.alignment-target-group {
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.alignment-target {
  display: grid;
  grid-template-columns: 18px 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.alignment-target:hover {
  background: #fff7ed;
}

.alignment-target strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alignment-target p {
  margin: 3px 0 0;
  color: var(--weak);
  font-size: 12px;
}

.alignment-kr-list {
  display: grid;
  gap: 6px;
  padding-left: 28px;
}

.alignment-kr-list .alignment-target {
  grid-template-columns: 18px 44px minmax(0, 1fr);
}

.drawer-title-actions,
.detail-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-title-actions .text-btn {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--orange);
  font-size: 13px;
}

.drawer-title-actions .text-btn:hover {
  background: #fff7ed;
}

.detail-objective-head {
  padding: 18px 24px 10px;
}

.detail-objective-head p {
  margin: 8px 0 0 34px;
  color: var(--weak);
  font-size: 13px;
}

.detail-tabs {
  display: flex;
  gap: 4px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.detail-tabs button {
  appearance: none;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  transition: color var(--motion-base) var(--ease-out), box-shadow var(--motion-base) var(--ease-out), background-color var(--motion-base) var(--ease-out);
}

.detail-tabs button:hover {
  color: var(--orange);
  background: linear-gradient(180deg, transparent, #fff7ed);
}

.detail-tabs button.active {
  color: var(--orange);
  box-shadow: inset 0 -2px 0 var(--orange);
}

.detail-tab-panel {
  flex: 1;
  overflow: auto;
  padding: 16px 24px 28px;
}

.detail-panel-head {
  margin-bottom: 14px;
}

.detail-panel-head .ghost-btn {
  min-height: 34px;
  border: 1px solid rgba(255, 106, 0, 0.18);
  border-radius: 6px;
  background: #fff7ed;
  color: var(--orange);
  font-weight: 600;
}

.detail-panel-head .ghost-btn:hover {
  border-color: rgba(255, 106, 0, 0.32);
  background: #ffefe2;
}

.detail-panel-head select {
  min-width: 130px;
}

.detail-progress-card,
.detail-alignment-item,
.detail-log-item {
  border-bottom: 1px solid var(--line);
}

.detail-progress-card {
  padding: 14px 0;
}

.detail-progress-meta,
.detail-log-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.detail-progress-meta {
  margin-bottom: 10px;
  color: var(--weak);
  font-size: 13px;
}

.detail-progress-meta strong {
  color: var(--text);
}

.target-dot {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  background: white;
}

.detail-alignment-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
}

.detail-alignment-item > span {
  width: fit-content;
  height: 24px;
  padding: 3px 8px;
  border-radius: 5px;
  color: var(--orange);
  background: var(--orange-soft);
  font-size: 12px;
}

.detail-alignment-item strong,
.detail-log-item strong {
  color: var(--text);
}

.detail-alignment-item p,
.detail-log-item p,
.detail-log-item time {
  margin: 4px 0 0;
  color: var(--weak);
  font-size: 12px;
}

.detail-log-list {
  display: grid;
}

.detail-log-item {
  padding: 12px 0;
}

.detail-empty {
  padding: 24px 0;
}

.objective-action-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.3fr);
  gap: 14px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  background: #fffaf5;
}

.objective-action-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.objective-action-panel textarea,
.objective-action-panel select[multiple] {
  min-height: 82px;
}

.objective-action-panel .form-row,
.objective-action-panel .panel-hint {
  grid-column: 1 / -1;
}

.objective-action-panel.compact-panel {
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
}

.panel-hint {
  margin: 0;
  color: var(--weak);
  font-size: 12px;
}

.kr-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.kr-head span,
.action-row small,
.report-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.status-pill,
.risk {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 12px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.active,
.status-pill.submitted {
  color: var(--green);
  background: #dcfce7;
}

.status-pill.draft {
  color: var(--yellow);
  background: #fef3c7;
}

.status-pill.deleted {
  color: var(--muted);
  background: #eef0f3;
}

.status-pill.missing {
  color: #ef4444;
  background: #fee2e2;
}

.status-pill.enabled {
  color: var(--green);
  background: #dcfce7;
}

.status-pill.disabled {
  color: var(--muted);
  background: #f3f4f6;
}

.status-pill.archived {
  color: var(--muted);
  background: #eef0f3;
}

.risk.normal {
  color: var(--green);
  background: #dcfce7;
}

.risk.watch {
  color: #b45309;
  background: #fef3c7;
}

.risk.at_risk {
  color: var(--yellow);
  background: #fff7ed;
}

.risk.blocked {
  color: var(--red);
  background: #fee2e2;
}

.action-list {
  display: grid;
  gap: 8px;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}

.inline-actions,
.card-actions {
  gap: 14px;
  margin-top: 12px;
}

.empty-state {
  min-height: 440px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  color: var(--weak);
}

.target-illus {
  width: 112px;
  height: 112px;
}

.target-illus img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-head.inner {
  padding: 16px;
  margin: 0;
}

.section-head h2 {
  font-size: 18px;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.table-card {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: #fafafa;
}

td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.write-layout,
.team-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

.writer-panel,
.reference-panel,
.summary-panel,
.admin-panel {
  padding: 16px;
}

.block-form,
.modal-form {
  display: grid;
  gap: 14px;
}

.block-form label,
.modal-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
}

.form-row {
  justify-content: flex-end;
  gap: 10px;
}

.reference-panel h3,
.summary-panel h3 {
  margin: 0 0 12px;
}

.reference-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
}

.reference-card p {
  color: var(--muted);
  font-size: 13px;
}

.report-card {
  padding: 16px;
}

.report-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.report-block {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.report-block p {
  color: var(--muted);
  line-height: 1.7;
}

.my-report-table-card {
  margin-top: 14px;
}

.my-report-table td:first-child {
  min-width: 260px;
}

.my-report-table td:last-child {
  width: 180px;
}

.report-detail-panel {
  display: grid;
  gap: 16px;
}

.report-detail-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.report-detail-panel h3 {
  margin: 0;
  font-size: 20px;
}

.report-detail-panel header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.report-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.report-detail-meta div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfd;
}

.report-detail-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.report-detail-meta dd {
  margin: 4px 0 0;
  color: var(--text);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card {
  padding: 14px;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  font-size: 26px;
  margin-top: 8px;
}

.person-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.person-row.inline {
  padding: 0;
  border-bottom: 0;
}

.person-row small {
  color: var(--muted);
}

.team-weekly-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.team-weekly-hero h2 {
  margin: 4px 0;
  font-size: 22px;
}

.team-weekly-hero p {
  margin: 0;
  color: var(--muted);
}

.team-weekly-toolbar {
  border-bottom: 0;
  margin-bottom: 14px;
}

.team-weekly-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.team-weekly-table td .risk {
  margin-right: 4px;
  margin-bottom: 4px;
}

.compact-head {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.missing-weekly-list {
  display: grid;
  gap: 10px;
}

.missing-card {
  border-color: #fee2e2;
  background: #fffafa;
}

.missing-card p,
.padded-muted {
  color: var(--muted);
}

.padded-muted {
  padding: 16px;
}

.risk-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.risk-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.risk-card small {
  color: var(--weak);
}

.summary-block {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.summary-block p {
  color: var(--muted);
  margin: 8px 0;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.source-list b {
  width: 100%;
}

.source-list span,
.chip-row span {
  padding: 4px 8px;
  background: #f3f4f6;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
}

.admin-layout {
  grid-template-columns: 180px minmax(0, 1fr);
}

.admin-tabs {
  display: grid;
  gap: 8px;
  align-content: start;
}

.admin-tabs button {
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: white;
  text-align: left;
  padding: 0 14px;
}

.admin-tabs button.active {
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 700;
}

.org-sync-head {
  align-items: flex-start;
  gap: 16px;
}

.org-sync-meta,
.org-sync-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.org-sync-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.source-pill.dingtalk {
  color: var(--orange);
  background: var(--orange-soft);
}

.source-pill.local {
  color: var(--muted);
  background: #f3f4f6;
}

.inline-form {
  display: flex;
  gap: 10px;
  padding: 16px;
}

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

.template-card {
  padding: 16px;
}

.template-admin-page {
  display: grid;
  gap: 14px;
}

.template-admin-filters {
  padding: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  gap: 10px;
}

.template-admin-filters input {
  min-width: 260px;
  flex: 1;
}

.template-admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.template-table-card {
  min-width: 0;
  overflow-x: auto;
}

.template-table {
  min-width: 820px;
}

.template-table td {
  vertical-align: top;
}

.template-table td strong,
.template-table td span,
.template-table td small {
  display: block;
}

.template-table td small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.goal-rule-admin-page .section-head p {
  max-width: 680px;
}

.goal-rule-table {
  min-width: 1040px;
}

.goal-rule-actions {
  max-width: 170px;
}

.goal-rule-form textarea {
  min-height: 96px;
  resize: vertical;
}

.goal-rule-editor-page {
  display: grid;
  gap: 14px;
}

.goal-rule-editor-form {
  display: grid;
  gap: 14px;
}

.goal-rule-editor-head,
.goal-rule-editor-footer,
.goal-rule-period-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.goal-rule-editor-head,
.goal-rule-form-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.goal-rule-editor-head h2,
.goal-rule-form-card h3 {
  margin: 0;
}

.goal-rule-editor-head p,
.goal-rule-period-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.goal-rule-form-card {
  display: grid;
  gap: 14px;
}

.goal-rule-form-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.goal-rule-form-card label > input,
.goal-rule-form-card label > select,
.goal-rule-form-card label > textarea {
  color: var(--text);
}

.goal-rule-editor-footer {
  position: sticky;
  bottom: 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7ed;
  justify-content: flex-start;
}

.goal-period-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.goal-period-head,
.goal-period-row {
  display: grid;
  grid-template-columns: 48px minmax(140px, 1fr) minmax(260px, 2fr) minmax(260px, 2fr);
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.goal-period-head {
  min-height: 42px;
  background: #f3f4f6;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.goal-period-row:last-child {
  border-bottom: 0;
}

.goal-period-row.selected {
  background: #f9fafb;
}

.goal-period-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
}

.goal-period-row > span {
  color: var(--muted);
}

.goal-period-row > span small {
  color: var(--weak);
}

.template-table tr.active-row td {
  background: #fff7ed;
}

.audience-scope {
  color: var(--orange);
  font-weight: 700;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-width: 210px;
}

.empty-cell {
  text-align: center;
  color: var(--muted);
  padding: 38px 16px;
}

.template-editor-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 420px;
  overflow: hidden;
}

.template-editor-empty,
.template-preview-panel,
.template-editor-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.template-editor-empty {
  place-items: start;
}

.template-editor-empty strong {
  font-size: 18px;
}

.template-editor-empty p,
.template-preview-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.template-editor-form header,
.template-preview-panel header,
.template-editor-form footer,
.template-preview-panel footer,
.template-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.template-editor-form h3,
.template-preview-panel h3 {
  margin: 4px 0 0;
  font-size: 18px;
}

.template-editor-form label,
.template-preview-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.template-editor-form label > input,
.template-editor-form label > select,
.template-editor-form label > textarea,
.template-preview-form input,
.template-preview-form select,
.template-preview-form textarea {
  color: var(--text);
}

.audience-panel {
  display: grid;
  gap: 8px;
  max-height: 160px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfd;
}

.check-line,
.switch-line {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: var(--text) !important;
}

.check-line input,
.switch-line input {
  width: auto;
  height: auto;
  padding: 0;
}

.check-line small {
  color: var(--muted);
}

.template-block-editor {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.template-block-head,
.template-block-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 132px 72px minmax(220px, 1.2fr) 112px;
  gap: 8px;
  align-items: center;
}

.template-block-head {
  color: var(--muted);
  font-size: 12px;
}

.template-block-row {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfd;
}

.template-block-row input,
.template-block-row select {
  min-width: 0;
}

.block-order-actions {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  gap: 4px;
}

.block-order-actions .icon-btn {
  width: 30px;
  height: 30px;
  min-height: 30px;
  font-size: 12px;
}

.template-preview-form {
  display: grid;
  gap: 14px;
}

.template-preview-form label {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfd;
}

.template-preview-form textarea {
  min-height: 96px;
}

.preview-reference {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.report-rich-field {
  display: grid;
  gap: 8px;
}

.report-choice-field {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.report-choice-field legend {
  color: var(--muted);
  font-size: 13px;
}

.report-progress-reference-block {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.report-progress-reference-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-progress-reference-head span {
  display: block;
  font-weight: 700;
}

.report-progress-reference-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.report-progress-empty {
  min-height: 74px;
  display: flex;
  align-items: center;
}

.report-progress-reference-list {
  display: grid;
  gap: 12px;
}

.report-objective-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.report-objective-table {
  width: 100%;
  margin: 12px 0 18px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.report-objective-table td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #f1f2f4;
  vertical-align: middle;
}

.report-objective-table tr:last-child td {
  border-bottom: 0;
}

.report-objective-table p {
  margin: 4px 0;
}

.report-objective-table td:last-child {
  width: 92px;
  text-align: right;
}

.report-objective-table em {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.report-objective-table .target-ring {
  margin-right: 8px;
  color: var(--orange);
}

.report-document-editor .report-objective-table,
.report-document-result .report-objective-table {
  font-size: 14px;
}

.report-objective-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.report-objective-card-head strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.report-objective-card-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.report-progress-metric {
  display: grid;
  gap: 6px;
  justify-items: end;
  color: var(--muted);
}

.report-progress-metric b,
.report-kr-progress {
  min-width: 54px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-bottom: 1px solid #94a3b8;
  background: #f3f4f6;
  color: var(--muted);
  font-weight: 700;
}

.report-kr-reference-list {
  display: grid;
  border-bottom: 1px solid var(--line);
}

.report-kr-reference-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 80px 70px;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 8px 18px;
  border-bottom: 1px solid #f1f2f4;
}

.report-kr-reference-row:last-child {
  border-bottom: 0;
}

.report-kr-reference-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-kr-reference-row em {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px;
  font-style: normal;
}

.report-latest-progress {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
}

.report-progress-update-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #f9fafb;
}

.report-progress-update-card p {
  margin: 0;
  color: var(--text);
}

.report-progress-update-card span {
  justify-self: end;
  padding: 4px 8px;
  border-radius: 5px;
  background: #eef0f3;
  color: var(--muted);
  font-size: 12px;
}

.report-reference-result {
  display: grid;
  gap: 10px;
}

.report-document-layout {
  max-width: 1120px;
  margin: 0 auto;
}

.report-document-panel {
  min-height: calc(100vh - 150px);
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.report-document-head {
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}

.report-document-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-back-btn {
  flex: 0 0 auto;
}

.report-document-panel .block-form {
  gap: 0;
}

.report-title-input {
  width: calc(100% - 56px);
  margin: 26px 28px 10px;
  border: 0;
  outline: 0;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

.report-title-input::placeholder {
  color: #a7adb7;
}

.report-author-line {
  margin: 0 28px;
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid #f0f1f3;
}

.report-insert-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 28px 4px;
}

.report-document-editor {
  padding: 0 28px 24px;
}

.report-document-editor .wang-rich-editor {
  border: 0;
  border-radius: 0;
}

.report-document-editor .wang-toolbar-row {
  position: sticky;
  top: 0;
  z-index: 3;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.report-document-editor .editor-toolbar,
.report-document-editor .wang-toolbar-row {
  background: #fff;
}

.report-document-editor .w-e-text-container {
  min-height: 560px !important;
  border: 0 !important;
}

.report-document-editor .w-e-scroll {
  min-height: 560px !important;
}

.report-document-editor .rich-editor-content {
  min-height: 560px;
}

.report-document-editor .w-e-text-container table,
.report-document-result table {
  width: 100%;
  margin: 14px 0 20px;
  border-collapse: separate !important;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.report-document-editor .w-e-text-container td,
.report-document-editor .w-e-text-container th,
.report-document-result td,
.report-document-result th {
  padding: 10px 14px !important;
  border-color: #eef0f3 !important;
  vertical-align: middle;
}

.report-document-editor .w-e-text-container table p,
.report-document-result table p {
  margin: 4px 0;
}

.report-document-editor h2,
.report-document-result h2 {
  margin: 34px 0 14px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
}

.report-document-editor h2:first-child,
.report-document-result h2:first-child {
  margin-top: 24px;
}

.report-target-placeholder {
  margin: 0 0 28px;
  color: var(--weak);
}

.report-document-panel .form-row {
  padding: 14px 28px 24px;
  border-top: 1px solid #f0f1f3;
}

.report-document-result {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

#modal-root:has(.report-objective-picker) .modal {
  width: min(780px, calc(100vw - 32px));
}

.report-objective-picker {
  display: grid;
  gap: 16px;
}

.picker-search-input {
  width: 100%;
}

.picker-user-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 210px 100px;
  gap: 12px;
  align-items: center;
}

.avatar-lg.sm {
  width: 42px;
  height: 42px;
}

.picker-user-line strong,
.picker-user-line span {
  display: block;
}

.picker-user-line span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.picker-objective-list {
  display: grid;
  max-height: 360px;
  overflow: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.picker-objective-item {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) 58px;
  gap: 12px !important;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #f1f2f4;
  color: var(--text) !important;
  cursor: pointer;
}

.picker-objective-item:last-child {
  border-bottom: 0;
}

.picker-objective-item input {
  margin-top: 4px;
}

.picker-objective-main strong {
  display: block;
  font-size: 16px;
}

.picker-objective-main small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 400;
}

.picker-kr-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.picker-kr-list div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.picker-kr-list p {
  margin: 0;
  color: var(--text);
  font-weight: 400;
}

.picker-progress {
  justify-self: end;
  color: var(--muted);
  font-weight: 700;
}

.picker-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.picker-footer b {
  color: var(--orange);
}

.picker-actions {
  display: flex;
  gap: 8px;
}

.picker-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
}

#modal-root:has(.objective-progress-modal-form) .modal {
  width: min(1100px, 100%);
}

.objective-progress-modal-form {
  gap: 0;
  padding: 0;
}

.compact-modal-summary {
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

.modal-progress-target-list {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.compact-rich-progress {
  border: 1px solid var(--line);
  border-top: 0;
  padding: 16px;
}

.chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: grid;
  place-items: center;
  z-index: 320;
  padding: 20px;
  animation: modal-backdrop-in var(--motion-base) var(--ease-out) both;
}

.modal {
  width: min(620px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  transform-origin: center;
  animation: modal-panel-in var(--motion-page) var(--ease-soft) both;
}

.modal header {
  height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal h2 {
  margin: 0;
  font-size: 18px;
}

.modal-body {
  padding: 18px;
}

.modal-hint {
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.progress-editor-page {
  display: grid;
  gap: 14px;
}

.progress-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.progress-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
  align-items: start;
}

.progress-editor-panel,
.progress-reference-sidebar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.progress-objective-summary,
.progress-target-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 120px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.progress-objective-summary > div {
  min-width: 0;
}

.progress-objective-summary strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.progress-objective-summary p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.progress-objective-summary label,
.progress-target-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.progress-target-list {
  display: grid;
}

.progress-target-row {
  grid-template-columns: 54px minmax(0, 1fr) 120px 120px;
  min-height: 58px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.progress-target-row.depth-1 {
  padding-left: 42px;
  background: #fcfcfd;
}

.progress-target-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 24px;
  border-radius: 4px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
}

.rich-progress-editor {
  padding: 18px;
}

.rich-progress-editor > label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.wang-rich-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.wang-toolbar-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #fcfcfd;
}

.editor-toolbar {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 42px;
  padding: 6px 8px;
  border: 0;
  background: #fcfcfd;
}

.editor-toolbar select,
.editor-toolbar button {
  min-width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.editor-toolbar select {
  min-width: 58px;
  padding: 0 6px;
  border-right: 1px solid var(--line);
}

.editor-toolbar button {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.editor-toolbar button:hover,
.editor-toolbar select:hover {
  background: #eef2f7;
  color: var(--text);
}

.wang-extra-attach {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-right: 8px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.wang-extra-attach:hover {
  color: var(--orange);
  background: #fff7ed;
}

.rich-editor-content {
  width: 100%;
  min-height: 168px;
  border: 0;
  border-radius: 0;
  outline: 0;
  line-height: 1.7;
  background: white;
  overflow: auto;
}

.rich-editor-content:focus {
  box-shadow: inset 0 0 0 1px #2563eb;
}

.wang-rich-editor .w-e-text-container {
  min-height: 250px !important;
}

.modal-rich-field .w-e-text-container {
  min-height: 220px !important;
}

.rich-editor-content:empty::before {
  content: attr(data-placeholder);
  color: var(--weak);
}

.rich-editor-content table,
.rich-content-preview table {
  width: 100%;
  margin: 10px 0;
  border-collapse: collapse;
}

.rich-editor-content td,
.rich-editor-content th,
.rich-content-preview td,
.rich-content-preview th {
  min-width: 80px;
  padding: 8px;
  border: 1px solid var(--line);
}

.rich-editor-content img,
.rich-content-preview img {
  max-width: 100%;
  border-radius: 6px;
}

.rich-editor-content blockquote,
.rich-content-preview blockquote {
  margin: 10px 0;
  padding-left: 12px;
  border-left: 3px solid var(--orange);
  color: var(--muted);
}

.rich-content-preview {
  color: var(--muted);
  line-height: 1.7;
}

.rich-content-preview p {
  margin: 8px 0;
}

.visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.attachment-list span {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 12px;
}

.modal-rich-field {
  display: grid;
  gap: 8px;
}

.modal-rich-field > span {
  font-weight: 700;
}

.progress-attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.progress-attachment-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.progress-submit-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: white;
}

.progress-reference-sidebar {
  min-height: 590px;
}

.progress-reference-sidebar header {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.progress-reference-sidebar h3 {
  margin: 0;
  font-size: 16px;
}

.reference-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.reference-tabs span {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.reference-tabs .active {
  color: var(--orange);
  font-weight: 700;
}

.ai-reference-card {
  margin: 14px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.ai-reference-card p {
  color: var(--muted);
  line-height: 1.6;
}

.progress-reference-sidebar .reference-card {
  margin: 14px;
}

.progress-reference-sidebar .reference-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.empty-reference {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--weak);
}

@media (max-width: 980px) {
  .sidebar {
    width: 200px;
  }

  .main {
    margin-left: 200px;
  }

  .topbar,
  .toolbar,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .search {
    width: 100%;
  }

  .write-layout,
  .team-layout,
  .admin-layout,
  .progress-editor-layout {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .template-grid {
    grid-template-columns: 1fr 1fr;
  }

  .inline-editor-core,
  .inline-description-field,
  .inline-kr-editor,
  .objective-action-panel,
  .objective-action-panel.compact-panel,
  .goal-table-row,
  .edit-objective-grid,
  .edit-kr-row,
  .progress-objective-summary,
  .progress-target-row {
    grid-template-columns: 1fr;
  }

  .target-ring {
    display: none;
  }

  .inline-editor-side {
    grid-template-columns: 1fr 1fr 80px;
  }

  .goal-metric-cell {
    place-items: start;
    border-left: 0;
    border-top: 1px solid #f1f2f4;
  }

  .edit-footer,
  .progress-submit-bar,
  .latest-progress-head,
  .progress-attachment-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .exit-edit-btn {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
  }

  .main {
    margin-left: 0;
  }

  .nav {
    display: flex;
    overflow: auto;
  }

  .nav-group {
    min-width: 190px;
  }

  .stat-grid,
  .template-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .inline-editor-core,
  .inline-editor-meta,
  .inline-description-field,
  .inline-editor-footer {
    padding: 14px;
  }

  .inline-editor-meta,
  .inline-editor-meta label,
  .inline-editor-footer,
  .recommend-box,
  .permission-row,
  .reference-tabs,
  .template-admin-filters,
  .template-editor-form header,
  .template-preview-panel header,
  .template-editor-form footer,
  .template-preview-panel footer {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .inline-editor-meta select {
    width: 100%;
  }

  .template-block-head {
    display: none;
  }

  .template-block-row {
    grid-template-columns: 1fr;
  }

  .block-order-actions {
    grid-template-columns: repeat(3, 34px);
  }
}

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