.plain-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.plain-fieldset:disabled {
  opacity: 0.7;
}
.form-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
}
.profile-info > .btn {
  margin-top: 16px;
  width: 100%;
}
.profile-info .detail-item label {
  display: block;
}
.file-structure {
  font:
    12px/1.8 ui-monospace,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.toolbar input {
  max-width: 420px;
  width: 100%;
}
.toolbar select {
  max-width: 220px;
}
.btn {
  cursor: pointer;
}
.money-value {
  font-size: clamp(20px, 2.2vw, 32px);
}
.finance-filter-bar .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}
.finance-filter-bar .form-field {
  margin-bottom: 0;
  flex: 1;
  min-width: 120px;
}
.finance-filter-bar .form-field input,
.finance-filter-bar .form-field select {
  max-width: 100%;
  width: 100%;
}
.messages-layout {
  height: auto;
}
.conversation-main {
  max-height: none;
}
.message-stream {
  min-height: 240px;
  max-height: 55vh;
  overflow-y: auto;
}
.composer .form-field {
  margin-bottom: 10px;
}
.composer .form-row {
  gap: 10px;
}
.composer textarea {
  min-height: 65px;
}
.composer input[type="file"] {
  font-size: 11px;
  max-width: 100%;
}
.task-card .btn {
  font-size: 10px;
  margin-top: 8px;
  min-height: 30px;
  padding: 5px 9px;
}
.review-panel .btn {
  margin-top: 16px;
}
.version-tabs {
  margin-bottom: 18px;
}
.route-error {
  padding: 45px;
  max-width: 900px;
  margin: auto;
}
.route-error p {
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.card > .empty {
  padding: 30px;
}
.data-table td {
  overflow-wrap: anywhere;
}
.auth-form-wrap .btn {
  margin-top: 10px;
}
.notification-item {
  text-align: left;
}
.sidebar nav {
  overflow-y: auto;
}
.table-name small {
  display: block;
}
.initial-loading {
  min-height: 65vh;
}
.profile-info {
  align-self: start;
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.messages-layout .form-row > * {
  min-width: 0;
}
.modal-body .form-field textarea {
  resize: vertical;
}
.file-structure {
  tab-size: 4;
}
.footer-note {
  padding: 24px 38px;
}
.topbar-actions {
  gap: 8px;
}
.topbar-actions .btn {
  font-size: 11px;
  padding: 8px 10px;
}
.mobile-menu {
  display: none;
}
.btn:disabled {
  cursor: wait;
}
.project-card p {
  overflow-wrap: anywhere;
}
.review-player {
  width: 100%;
}
.mini-row {
  gap: 16px;
}
.mini-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 980px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-info {
    display: block;
  }
  .topbar {
    height: auto;
    min-height: 70px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }
  .topbar-actions {
    flex-wrap: wrap;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .mobile-menu {
    display: inline-flex;
  }
  .topbar-actions {
    gap: 5px;
  }
  .topbar-actions .btn {
    font-size: 10px;
    padding: 6px 8px;
  }
  .topbar .breadcrumbs {
    font-size: 11px;
  }
  .conversation-list {
    max-height: 140px;
  }
  .messages-layout {
    display: block;
  }
  .conversation-main {
    height: auto;
    min-height: 650px;
  }
  .profile-grid > div,
  .profile-info {
    min-width: 0;
  }
  .composer .form-row {
    display: block;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .page-heading > .flex {
    max-width: 170px;
  }
  .modal-overlay {
    padding: 10px;
  }
  .notification-panel {
    right: 10px;
  }
  .money-value {
    font-size: 20px;
  }
  .footer-note {
    padding: 20px;
  }
  .route-error {
    padding: 25px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekday {
  padding: 12px 4px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  background: #f5f7ef;
}
.calendar-day {
  border: 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: white;
  padding: 10px;
  min-height: 100px;
  text-align: left;
  overflow: hidden;
  min-width: 0;
}
.calendar-day.outside {
  background: #f8f9f5;
  color: #92998a;
}
.calendar-day.selected {
  background: #ecf4d9;
  box-shadow: inset 0 0 0 2px #819e44;
}
.calendar-today {
  border-radius: 50%;
  background: #35412b;
  color: white;
  padding: 4px;
}
.calendar-day-events {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  font-size: 10px;
}
.calendar-day-events span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-event-count {
  display: none;
}
.calendar-event {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.calendar-event p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.calendar-event > div {
  min-width: 0;
}
.calendar-event .flex {
  flex-wrap: wrap;
  align-content: start;
}
.shared-tasks {
  min-width: 0;
}
.shared-kanban {
  align-items: start;
}
.shared-kanban .kanban-column {
  min-height: 240px;
}
.kanban-column.drag-over {
  outline: 2px dashed #819e44;
  background: #e4edcf;
}
.task-card[draggable="true"] {
  cursor: grab;
}
.task-card.priority-high {
  border-top: 3px solid #c17b64;
}
.task-card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 10px;
}
.task-card-tags span {
  background: #f0f4e7;
  padding: 4px 6px;
  border-radius: 4px;
}
.task-title {
  border: 0;
  background: none;
  padding: 12px 0;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.6;
  width: 100%;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.task-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.shared-kanban .task-meta {
  flex-wrap: wrap;
  gap: 6px;
}
.overdue-label {
  color: #b35240;
}
.shared-kanban .btn {
  margin-top: 10px;
}
.task-check {
  display: flex;
  align-items: start;
  gap: 10px;
  margin: 12px 0;
  font-weight: 400;
  line-height: 1.6;
}
.task-check input {
  margin-top: 3px;
  flex-shrink: 0;
}
.task-check .checked {
  text-decoration: line-through;
  color: var(--muted);
}
.task-details .preserve-lines {
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .calendar-day {
    min-height: 62px;
    padding: 7px 3px;
    font-size: 12px;
  }
  .calendar-day-events {
    display: none;
  }
  .calendar-event-count {
    display: block;
    font-size: 8px;
    margin-top: 9px;
    overflow-wrap: anywhere;
  }
  .calendar-event {
    flex-direction: column;
  }
  .shared-kanban {
    grid-template-columns: repeat(4, 260px);
    max-width: 100%;
  }
  .shared-tasks .toolbar input,
  .shared-tasks .toolbar select {
    width: 100%;
    min-width: 0;
  }
}
