.office-panel {
  min-height: 540px;
}

.office-panel .action-body {
  min-height: 480px;
}

.office-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.9rem;
  color: #51606b;
}

.office-section {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.office-section:first-child {
  margin-top: 0;
}

.office-label {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.office-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.office-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.office-toolbar__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.office-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.office-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 26, 35, 0.14);
  background: #fff;
  color: #41505b;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(12, 26, 35, 0.06);
  cursor: pointer;
  transition: all 0.15s ease;
}

.office-chip:hover,
.office-chip:focus-visible {
  border-color: rgba(47, 143, 131, 0.35);
  color: var(--sea);
  outline: none;
}

.office-chip.is-active {
  background: rgba(47, 143, 131, 0.12);
  border-color: rgba(47, 143, 131, 0.35);
  color: var(--sea);
}

.office-helper {
  font-size: 0.84rem;
  color: #66747f;
}

.office-helper--warning {
  color: #8a5a12;
}

.office-summary-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.office-summary-card {
  border-radius: 0.9rem;
  border: 1px solid rgba(12, 26, 35, 0.1);
  background: #fff;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 10px 24px rgba(12, 26, 35, 0.06);
}

.office-summary-card__label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #66747f;
  font-weight: 700;
}

.office-summary-card__value {
  margin-top: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.office-preview-shell {
  border-radius: 1rem;
  border: 1px solid rgba(15, 15, 17, 0.12);
  background: #fff;
  min-height: 420px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.office-preview-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

.office-preview-title {
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}

.office-preview-subtitle {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: #5e6d78;
}

.office-preview-table {
  border-radius: 0.9rem;
  border: 1px solid rgba(15, 15, 17, 0.12);
  overflow: auto;
  max-height: 420px;
  background: #fff;
}

.office-preview-table table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.office-preview-table th,
.office-preview-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(15, 15, 17, 0.08);
  vertical-align: top;
}

.office-preview-table th {
  position: sticky;
  top: 0;
  background: rgba(47, 143, 131, 0.08);
  color: var(--ink);
  font-weight: 700;
  z-index: 1;
}

.office-preview-table tr:last-child td {
  border-bottom: 0;
}

.office-empty {
  border-radius: 0.95rem;
  border: 1px dashed rgba(47, 143, 131, 0.24);
  background: rgba(247, 244, 238, 0.72);
  color: #5b6a76;
  padding: 1.1rem 1rem;
  font-size: 0.92rem;
}

.office-stage {
  position: relative;
  border-radius: 1rem;
  border: 1px solid rgba(15, 15, 17, 0.12);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(244, 247, 248, 0.92));
  min-height: 420px;
  height: 540px;
  overflow: auto;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.office-stage__inner {
  flex: none;
  transform-origin: top center;
}

.office-stage__canvas {
  display: block;
  max-width: none;
  border-radius: 0.95rem;
  box-shadow: 0 16px 36px rgba(12, 26, 35, 0.14);
  background: #fff;
}

.office-slide {
  position: relative;
  overflow: hidden;
  border-radius: 0.95rem;
  background: #fff;
  box-shadow: 0 16px 36px rgba(12, 26, 35, 0.14);
}

.office-slide__element {
  position: absolute;
  overflow: hidden;
}

.office-slide__element--text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.25;
}

.office-slide__element--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.office-slide__table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  background: #fff;
}

.office-slide__table td {
  border: 1px solid rgba(12, 26, 35, 0.14);
  padding: 0.35rem 0.45rem;
  vertical-align: top;
  color: var(--ink);
  font-size: 0.86rem;
}

.office-thumbnail-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.office-thumbnail {
  border-radius: 0.95rem;
  border: 1px solid rgba(12, 26, 35, 0.1);
  background: #fff;
  box-shadow: 0 10px 24px rgba(12, 26, 35, 0.06);
  padding: 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.office-thumbnail:hover,
.office-thumbnail:focus-visible {
  border-color: rgba(47, 143, 131, 0.35);
  box-shadow: 0 14px 28px rgba(12, 26, 35, 0.1);
  outline: none;
}

.office-thumbnail.is-active {
  border-color: rgba(47, 143, 131, 0.35);
  background: rgba(47, 143, 131, 0.06);
}

.office-thumbnail__frame {
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(12, 26, 35, 0.08);
}

.office-thumbnail__frame canvas,
.office-thumbnail__frame img {
  width: 100%;
  display: block;
}

.office-thumbnail__label {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.office-thumbnail__text {
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: #66747f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.office-note-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #51606b;
  font-size: 0.88rem;
  display: grid;
  gap: 0.35rem;
}

.office-note-list strong {
  color: var(--ink);
}

.office-range {
  display: grid;
  gap: 0.45rem;
}

.office-range input.form-control,
.office-range select.form-select {
  min-height: 44px;
}

.office-callout {
  border-radius: 0.95rem;
  border: 1px solid rgba(12, 26, 35, 0.1);
  background: rgba(247, 244, 238, 0.72);
  padding: 0.9rem 1rem;
}

.office-callout__title {
  font-weight: 700;
  color: var(--ink);
}

.office-callout__text {
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: #5d6c77;
}

@media (max-width: 991px) {
  .office-panel {
    min-height: auto;
  }

  .office-panel .action-body {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .office-stage {
    min-height: 320px;
    height: 60vh;
    padding: 0.75rem;
  }

  .office-preview-shell {
    min-height: auto;
  }

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