.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.15s;
}
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--ghost { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.btn--danger { background: var(--color-danger); color: #fff; }
.btn--danger:hover { background: #c91c37; }
.btn--block { width: 100%; }
.btn--sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
.btn--disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-group { margin-bottom: 1rem; }

.form-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.875rem;
  background: var(--color-bg-elevated);
  margin-bottom: 0.75rem;
}

.col-reorder-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.col-reorder-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  cursor: grab;
}

.col-reorder-item:last-child {
  border-bottom: none;
}

.col-reorder-item--fixed {
  cursor: default;
  background: #f6f7fb;
  color: var(--color-text-secondary);
}

.col-reorder-item--pending {
  background: color-mix(in srgb, var(--color-primary) 6%, #fff);
}

.col-reorder-item__handle {
  color: #676879;
  font-size: 0.875rem;
  user-select: none;
}

.col-reorder-item__handle--muted {
  opacity: 0.5;
}

.col-reorder-item__title {
  flex: 1;
  font-weight: 600;
  font-size: 0.875rem;
}

.col-reorder-item__type {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.col-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.col-section-head__title {
  margin: 0 0 0.25rem;
}

.col-section-head__hint {
  margin: 0;
}

.col-add-inline {
  margin-bottom: 0.75rem;
  padding: 0.85rem 1rem;
  background: #f6f7fb;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.col-add-inline__select {
  margin-bottom: 0.65rem;
}

.col-add-inline__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.col-reorder-item__remove {
  border: none;
  background: none;
  color: #e2445c;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.35rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.col-reorder-item__remove:hover {
  background: rgba(226, 68, 92, 0.1);
}
.form-label { display: block; margin-bottom: 0.35rem; font-size: 0.875rem; font-weight: 600; }
.input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
}
.input--error { border-color: var(--color-danger); }
.form-error { color: var(--color-danger); font-size: 0.8125rem; margin-top: 0.25rem; }
.form-hint { font-size: 0.8125rem; color: var(--color-text-muted); margin: 0.25rem 0 0; }

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: #323338;
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32), 0 2px 8px rgba(0, 0, 0, 0.2);
  border-top: 4px solid var(--color-primary);
  pointer-events: auto;
  animation: toast-slide-up 0.28s ease-out;
}
.toast--leaving {
  animation: toast-slide-down 0.28s ease-in forwards;
}
.toast--success { border-top-color: var(--color-success); }
.toast--error { border-top-color: var(--color-danger); }
.toast--warning { border-top-color: var(--color-warning); }
.toast__title { font-weight: 700; margin: 0 0 0.25rem; font-size: 0.875rem; color: #fff; }
.toast__message { margin: 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.92); }
.toast__close {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  flex-shrink: 0;
}
.toast__close:hover { color: #fff; }

@keyframes toast-slide-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toast-slide-down {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(1.25rem);
  }
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 30, 0.4);
  z-index: 500;
  animation: drawer-fade-in 0.2s ease;
}

.drawer {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  width: min(440px, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  z-index: 501;
  display: flex;
  flex-direction: column;
  animation: drawer-slide-in 0.25s ease;
}

.drawer__header {
  padding: 1.1rem 1.25rem 1rem;
  border-bottom: 1px solid #e6e9ef;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-shrink: 0;
}

.drawer__header-main {
  min-width: 0;
  flex: 1;
}

.drawer__group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.drawer__group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.drawer__group-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #676879;
}

.drawer__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #323338;
  line-height: 1.35;
  word-break: break-word;
}

.drawer__parent {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #676879;
}

.drawer__parent span {
  font-weight: 600;
  color: #323338;
}

.drawer__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #676879;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.drawer__close:hover {
  background: #f5f6f8;
  color: #323338;
}

.drawer__preview {
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid #e6e9ef;
  background: #f8f9fb;
  flex-shrink: 0;
}

.drawer__preview--open {
  padding-bottom: 1rem;
}

.drawer-preview-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.35rem 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #676879;
  transition: color 0.12s;
}

.drawer-preview-toggle:hover {
  color: #323338;
}

.drawer-preview-toggle__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.drawer-preview-toggle__chev {
  flex-shrink: 0;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.drawer-preview-toggle__chev--open {
  transform: rotate(90deg);
}

.drawer__section-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #676879;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.drawer-preview-grid {
  margin: 0.65rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-preview-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.8125rem;
}

.drawer-preview-row dt {
  margin: 0;
  color: #676879;
  font-weight: 600;
}

.drawer-preview-row dd {
  margin: 0;
  color: #323338;
  font-weight: 500;
  min-width: 0;
}

.drawer-preview-row--name dd {
  font-weight: 700;
}

.drawer-preview-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.drawer-preview-person {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.drawer-preview-avatar {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.drawer-preview-value--ltr {
  direction: ltr;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.drawer__updates {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer__updates-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem 0.5rem;
  flex-shrink: 0;
}

.drawer__updates-head .drawer__section-label {
  margin: 0;
}

.drawer__updates-count {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #676879;
  background: #e6e9ef;
  border-radius: 10px;
  padding: 0.1rem 0.45rem;
  min-width: 1.25rem;
  text-align: center;
}

.drawer__feed {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 1.25rem 1rem;
}

.drawer__feed-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #676879;
  font-size: 0.875rem;
}

.drawer__feed-empty-icon {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: #eef0f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239699a6' stroke-width='1.75'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E") center / 1.35rem no-repeat;
}

.drawer__feed-empty-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #9699a6;
}

.update-card {
  display: flex;
  gap: 0.65rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eef0f5;
}

.update-card:last-child {
  border-bottom: none;
}

.update-card__avatar {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.update-card__body {
  flex: 1;
  min-width: 0;
}

.update-card__head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.update-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: auto;
}

.update-card__action {
  border: none;
  background: transparent;
  color: #676879;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  cursor: pointer;
}

.update-card__action:hover:not(:disabled) {
  background: #f0f1f5;
  color: #323338;
}

.update-card__action--danger:hover:not(:disabled) {
  background: #fff0f2;
  color: #e44258;
}

.update-card__action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.update-card__edit {
  margin-top: 0.15rem;
}

.update-card__edit-input {
  width: 100%;
  border: 1px solid #d0d4e4;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font-size: 0.875rem;
  font-family: inherit;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
}

.update-card__edit-input:focus {
  outline: none;
  border-color: var(--color-primary, #5034ff);
  box-shadow: 0 0 0 3px rgba(80, 52, 255, 0.12);
}

.update-card__edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.status-labels-editor {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e6e9ef;
}

.status-labels-editor__title {
  margin-bottom: 0.25rem;
}

.status-labels-editor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.status-labels-editor__head .status-labels-editor__title {
  margin: 0;
}

.status-labels-editor__track {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.status-labels-editor__track input {
  margin: 0;
  accent-color: var(--color-primary, #5034ff);
}

.status-labels-editor__hint {
  margin: 0 0 0.65rem;
}

.status-labels-editor__list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.status-labels-editor__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-labels-editor__row .form-group {
  flex: 1;
  margin: 0;
  min-width: 0;
}

.status-labels-editor__color {
  width: 2rem;
  height: 2rem;
  padding: 0.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  background: #fff;
}

.status-labels-editor__blank-label {
  flex: 1;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 0.5rem 0;
}

.status-labels-editor__remove {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.status-labels-editor__remove:hover {
  background: #f5f6f8;
  color: #e2445c;
}

.status-labels-editor__closes {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.status-labels-editor__closes input {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  accent-color: var(--color-primary, #5034ff);
}

.group-settings-discussion {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e6e9ef;
}

.group-settings-discussion__hint {
  margin: 0 0 0.75rem;
}

.archive-rule {
  margin-top: 0.85rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
  background: #fafbfc;
}

.archive-rule__lead {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #323338;
  line-height: 1.45;
}

.archive-rule .form-label {
  margin-top: 0.45rem;
}

.archive-rule .form-select,
.archive-rule .form-group {
  margin-bottom: 0.35rem;
}

.archive-rule__timer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.archive-rule__time {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 4.5rem;
  font-size: 0.75rem;
  color: #676879;
}

.archive-rule__time .input {
  width: 4.75rem;
}

.archive-rule__clear {
  margin-top: 0.5rem;
  border: none;
  background: none;
  color: #e2445c;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.archive-rule__clear:hover {
  text-decoration: underline;
}

.settings-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.settings-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-toggle__track {
  position: relative;
  flex-shrink: 0;
  width: 2.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #d0d4e4;
  transition: background 0.15s;
}

.settings-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s;
  transform: translateX(-1rem);
}

.settings-toggle__input:checked + .settings-toggle__track {
  background: var(--color-primary, #5034ff);
}

.settings-toggle__input:checked + .settings-toggle__track::after {
  transform: translateX(-1rem);
}

[dir='rtl'] .settings-toggle__input:checked + .settings-toggle__track::after {
  transform: translateX(0rem);
}

.settings-toggle__text {
  font-size: 0.875rem;
  color: #323338;
}

.update-card__author {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #323338;
}

.update-card__time {
  font-size: 0.75rem;
  color: #9699a6;
}

.update-card__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #323338;
  white-space: pre-wrap;
  word-break: break-word;
}

.drawer__composer {
  position: relative;
  flex-shrink: 0;
  padding: 0.85rem 1.25rem 1.1rem;
  border-top: 1px solid #e6e9ef;
  background: #fff;
}

.update-compose__edit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: #f0edff;
  color: var(--color-primary, #5034ff);
  font-size: 0.8125rem;
  font-weight: 700;
}

.update-compose__edit-cancel {
  border: none;
  background: transparent;
  color: #676879;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.update-compose__edit-cancel:hover {
  background: rgba(80, 52, 255, 0.1);
  color: var(--color-primary, #5034ff);
}

.update-card--editing {
  outline: 2px solid rgba(80, 52, 255, 0.35);
  outline-offset: 2px;
  border-radius: 8px;
}

.drawer__composer--drag::after {
  content: 'رها کنید تا پیوست شود';
  position: absolute;
  inset: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-primary, #5034ff);
  border-radius: 10px;
  background: rgba(80, 52, 255, 0.07);
  color: var(--color-primary, #5034ff);
  font-size: 0.8125rem;
  font-weight: 700;
  pointer-events: none;
  z-index: 2;
}

.update-compose__row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.update-compose__editor {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.update-compose__voice-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #d0d4e4;
  border-radius: 50%;
  background: #fff;
  color: #676879;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.12s;
}

.update-compose__voice-btn:hover:not(:disabled) {
  background: #f5f6f8;
  color: var(--color-primary, #5034ff);
  border-color: #c5c7d0;
}

.update-compose__voice-btn--recording {
  color: #e44258;
  border-color: #f5b8c0;
  background: #fff5f6;
  animation: update-voice-pulse 1.2s ease-in-out infinite;
}

.update-compose__voice-btn--disabled,
.update-compose__voice-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@keyframes update-voice-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.update-compose__text-wrap {
  position: relative;
}

.update-compose__text-wrap--drag .update-compose__input {
  border-color: var(--color-primary, #5034ff);
  box-shadow: 0 0 0 3px rgba(80, 52, 255, 0.12);
}

.update-compose__input {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid #d0d4e4;
  border-radius: 8px;
  padding: 0.55rem 0.65rem 2.15rem;
  font-size: 0.875rem;
  font-family: inherit;
  line-height: 1.45;
  resize: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.update-compose__input:focus {
  outline: none;
  border-color: var(--color-primary, #5034ff);
  box-shadow: 0 0 0 3px rgba(80, 52, 255, 0.12);
}

.update-compose__media-in {
  position: absolute;
  inset-inline-end: 0.4rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #9699a6;
  cursor: pointer;
  transition: color 0.12s, background 0.12s;
}

.update-compose__media-in:hover {
  color: var(--color-primary, #5034ff);
  background: rgba(80, 52, 255, 0.08);
}

.update-compose__voice-rec,
.update-compose__voice-draft {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #d0d4e4;
  border-radius: 8px;
  background: #f8f9fb;
  box-sizing: border-box;
}

.update-compose__voice-audio {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.update-compose__voice-rec {
  border-color: #f5b8c0;
  background: linear-gradient(to left, #fff8f9, #fff);
}

.update-compose__rec-stop {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 50%;
  background: #e44258;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.update-compose__rec-stop-icon {
  width: 0.55rem;
  height: 0.55rem;
  background: #fff;
  border-radius: 2px;
}

.update-compose__wave {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 2rem;
  overflow: hidden;
}

.update-compose__wave-bar {
  width: 3px;
  height: 0.35rem;
  border-radius: 2px;
  background: var(--color-primary, #5034ff);
  animation: update-wave 0.9s ease-in-out infinite;
}

@keyframes update-wave {
  0%, 100% { height: 0.35rem; opacity: 0.45; }
  50% { height: 1.4rem; opacity: 1; }
}

.update-compose__voice-draft-wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 1.75rem;
  overflow: hidden;
}

.update-compose__voice-draft-bar {
  flex: 1;
  max-width: 3px;
  height: calc(0.35rem + (var(--h, 50) * 1%));
  min-height: 0.25rem;
  border-radius: 2px;
  background: #c5c7d0;
}

.update-compose__voice-draft-bar:nth-child(3n) { height: 0.9rem; }
.update-compose__voice-draft-bar:nth-child(3n+1) { height: 1.25rem; }
.update-compose__voice-draft-bar:nth-child(3n+2) { height: 0.55rem; }
.update-compose__voice-draft-bar:nth-child(5n) { height: 1.5rem; }
.update-compose__voice-draft-bar:nth-child(7n) { height: 0.4rem; }

.update-compose__voice-draft-bar--played {
  background: var(--color-primary, #5034ff);
}

.update-compose__voice-play-wrap {
  position: relative;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
}

.update-compose__voice-play {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: var(--color-primary, #5034ff);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.update-compose__voice-play:disabled {
  opacity: 0.7;
  cursor: wait;
}

.update-compose__voice-ring {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  color: var(--color-primary, #5034ff);
  animation: update-ring-spin 0.9s linear infinite;
}

@keyframes update-ring-spin {
  to { transform: rotate(360deg); }
}

.update-compose__voice-delete {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #9699a6;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.update-compose__voice-delete:hover:not(:disabled) {
  color: #e44258;
  background: #fff0f2;
}

.update-compose__rec-time {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #676879;
}

.update-compose__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.update-compose__hint {
  font-size: 0.75rem;
  color: #9699a6;
}

.update-compose__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.update-compose__lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #d0d4e4;
  border-radius: 6px;
  background: #fff;
  color: #676879;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, opacity 0.12s;
}

.update-compose__lock:hover:not(:disabled) {
  background: #fff8e6;
  color: #b8860b;
  border-color: #e6c200;
}

.update-compose__lock:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.update-compose__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.update-compose__attach {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d0d4e4;
  background: #f5f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.update-compose__attach--loading {
  background: #eef0f5;
}

.update-compose__attach-spinner {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #d0d4e4;
  border-top-color: var(--color-primary, #5034ff);
  border-radius: 50%;
  animation: update-ring-spin 0.7s linear infinite;
}

.update-compose__attach-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-compose__attach-label {
  font-size: 0.75rem;
  color: #676879;
  font-weight: 600;
}

.update-compose__attach-remove {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  width: 1.25rem;
  height: 1.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.update-compose__encrypt {
  margin-bottom: 0.65rem;
  padding: 0.65rem;
  border: 1px solid #e6d9a8;
  border-radius: 8px;
  background: #fffdf5;
}

.update-compose__encrypt-title {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #323338;
}

.update-compose__encrypt-input {
  width: 100%;
  margin-bottom: 0.4rem;
  border: 1px solid #d0d4e4;
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  font-size: 0.875rem;
  box-sizing: border-box;
}

.input--secret {
  -webkit-text-security: disc;
  text-security: disc;
}

.update-compose__decoy,
.update-card__decoy {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.update-compose__encrypt-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.update-card--encrypted {
  background: linear-gradient(to left, #fffdf8, #fff);
  border-radius: 6px;
  padding-inline: 0.35rem;
}

.update-card__lock-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #b8860b;
  background: #fff8e0;
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
}

.update-card__creator-pass {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: #676879;
}

.update-card__creator-pass code {
  font-family: inherit;
  font-weight: 700;
  color: #323338;
  background: #f5f6f8;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.update-card__locked {
  padding: 0.5rem 0.65rem;
  background: #f8f9fb;
  border: 1px dashed #d0d4e4;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: #676879;
}

.update-card__locked p {
  margin: 0 0 0.5rem;
}

.update-card__unlock-btn {
  border: none;
  background: var(--color-primary, #5034ff);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
}

.update-card__unlock-input {
  width: 100%;
  border: 1px solid #d0d4e4;
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  box-sizing: border-box;
}

.update-card__unlock-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.update-card__attachments {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.update-card__media {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #e6e9ef;
}

.update-card__media--image {
  max-height: 220px;
  object-fit: cover;
}

.update-card__media--audio {
  display: block;
  width: 100%;
  min-width: 220px;
}

@keyframes drawer-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawer-slide-in {
  from { transform: translateX(1.5rem); opacity: 0.9; }
  to { transform: translateX(0); opacity: 1; }
}
