.monday-shell { max-width: 1320px; }
.monday-heading { margin: 28px 0 24px; }
.monday-heading h1 { margin: 3px 0 8px; }
.monday-safety { max-width: 820px; padding: 11px 13px; border-left: 3px solid #c47a3d; color: #65401f; background: #fff7ed; font-size: 13px; line-height: 1.5; }
.monday-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 10px; margin-bottom: 18px; }
.monday-metric { min-width: 0; padding: 14px; border: 1px solid #d9ded8; border-radius: 15px; background: #fff; }
.monday-metric strong, .monday-metric span { display: block; }
.monday-metric strong { color: var(--forest); font-size: 23px; }
.monday-metric span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.monday-toolbar { margin: 12px 0 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.monday-toolbar label { margin: 0; }
.monday-toolbar select { width: auto; min-width: 190px; }
.monday-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding-bottom: 45px; }
.monday-case { min-width: 0; padding: 17px; border: 1px solid #d9ded8; border-radius: 18px; background: #fff; box-shadow: 0 7px 22px rgba(18,47,43,.05); }
.monday-case-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.monday-case h2 { margin: 2px 0 4px; font-size: 22px; }
.monday-meta { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.monday-badges { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.monday-badge { padding: 5px 9px; border-radius: 999px; color: #29443f; background: #edf2ef; font-size: 11px; font-weight: 800; }
.monday-badge.review { color: #8a341f; background: #fde6de; }
.monday-badge.ready { color: #176142; background: #dcf4e8; }
.monday-badge.running { color: #604313; background: #fff0c9; }
.monday-case-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.monday-case-actions button { flex: 1 1 150px; }
.monday-rule-applied, .monday-review-reason { margin: 10px 0; padding: 10px 12px; border-radius: 11px; font-size: 12px; line-height: 1.45; }
.monday-rule-applied { color: #17573e; background: #e4f5ec; border: 1px solid #b8dfca; }
.monday-review-reason { color: #74321f; background: #fff0e9; border: 1px solid #efc5b7; }
.monday-rule-applied p, .monday-review-reason p { margin: 4px 0 0; }
.monday-progress { height: 7px; margin: 12px 0 5px; overflow: hidden; border-radius: 999px; background: #e6ebe7; }
.monday-progress span { height: 100%; display: block; background: #2b8c64; }
.monday-detail { margin-bottom: 20px; padding: clamp(14px, 3vw, 24px); border: 1px solid #9cafaa; border-radius: 20px; background: #fffdf8; box-shadow: var(--shadow); scroll-margin-top: 84px; }
.monday-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.monday-detail-head h2 { margin: 2px 0 6px; }
.monday-detail-grid { margin: 16px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.monday-detail-fact { min-width: 0; padding: 10px; border-radius: 11px; background: #eef1ec; }
.monday-detail-fact strong, .monday-detail-fact span { display: block; }
.monday-detail-fact strong { color: var(--forest); font-size: 12px; word-break: break-word; }
.monday-detail-fact span { margin-top: 3px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.monday-table-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid #d9ded8; border-radius: 13px; }
.monday-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 11px; }
.monday-table th { position: sticky; top: 0; z-index: 1; color: #fff; background: var(--forest); text-align: left; }
.monday-table th, .monday-table td { padding: 9px; border-bottom: 1px solid #e3e7e3; vertical-align: top; }
.monday-table tr:last-child td { border-bottom: 0; }
.monday-table tr.changed { background: #fffaf0; }
.monday-cell-value { max-width: 230px; word-break: break-word; white-space: pre-wrap; }
.monday-cell-live { color: #176142; font-weight: 750; }
.monday-table select, .monday-table input { min-height: 36px; padding: 6px 8px; border-radius: 8px; font-size: 11px; }
.monday-review-form { margin-top: 18px; padding-top: 17px; border-top: 1px solid #d9ded8; }
.monday-review-form h3 { margin-bottom: 11px; }
.monday-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.monday-review-grid .wide { grid-column: 1 / -1; }
.monday-review-form textarea { min-height: 84px; }
.monday-rule { margin-top: 12px; padding: 12px; border: 1px dashed #b5c2bd; border-radius: 12px; }
.monday-rule summary { cursor: pointer; color: var(--forest); font-size: 12px; font-weight: 800; }
.monday-rule-body { margin-top: 12px; display: grid; gap: 10px; }
.monday-review-actions { margin-top: 13px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.monday-hash { color: #7b8582; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; word-break: break-all; }
.monday-link-button { display: inline-flex; width: fit-content; margin-top: 10px; text-decoration: none; }
@media (max-width: 820px) {
  .monday-cases { grid-template-columns: 1fr; }
  .monday-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .monday-detail-head { display: block; }
  .monday-detail-head button { width: 100%; margin-top: 10px; }
  .monday-review-grid { grid-template-columns: 1fr; }
  .monday-review-grid .wide { grid-column: auto; }
}
