.workday-panel {
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--danger);
  border-radius: 17px;
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
}
.workday-panel.is-open { border-left-color: var(--success); }
.workday-main { display: flex; align-items: flex-start; gap: 14px; padding-right: 250px; min-height: 68px; }
.workday-state-icon {
  width: 46px; height: 46px; display: grid; place-items: center; flex: none;
  border-radius: 14px; background: #fde7e7; color: var(--danger); font-size: 18px; font-weight: 900;
}
.workday-panel.is-open .workday-state-icon { background: #def5e9; color: var(--success); }
.workday-state-copy h2 { margin: 3px 0 5px; font-size: 21px; }
.workday-state-copy > p { margin: 0; color: var(--muted); font-size: 12px; }
.workday-history { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 9px; font-size: 11px; color: var(--muted); }
.workday-history strong { color: var(--text); }
.workday-actions { position: absolute; right: 18px; top: 18px; display: flex; justify-content: flex-end; max-width: 320px; }
.workday-actions form { margin: 0; }
.workday-open-button:disabled { cursor: not-allowed; opacity: .45; }
.workday-danger-action { position: relative; }
.workday-danger-action > summary { list-style: none; }
.workday-danger-action > summary::-webkit-details-marker { display: none; }
.workday-danger-action > form {
  position: absolute; right: 0; top: 42px; z-index: 12; width: 365px; padding: 14px;
  display: grid; gap: 11px; background: #fff; border: 1px solid #efb3b3;
  border-radius: 13px; box-shadow: 0 18px 55px rgba(20, 32, 58, .2);
}
.workday-danger-action p { margin: 0; color: var(--text); font-size: 12px; }
.workday-danger-action p span { color: var(--muted); }
.workday-danger-action .check { align-items: flex-start; font-size: 12px; }
.workday-preview {
  display: grid; grid-template-columns: minmax(250px, 1fr) minmax(330px, .9fr);
  align-items: end; gap: 18px; margin-top: 15px; padding: 14px;
  border: 1px solid #cdd9f4; border-radius: 13px; background: #f7f9ff;
}
.workday-preview h3 { margin: 2px 0 4px; font-size: 16px; }
.workday-preview p { margin: 0; color: var(--muted); font-size: 11px; }
.workday-preview form { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: end; gap: 9px; }
.workday-preview label { margin: 0; font-size: 11px; color: var(--muted); }
.workday-preview select { width: 100%; margin-top: 4px; }
.workday-readiness { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 15px; }
.workday-readiness-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.workday-readiness-head h3 { margin: 2px 0 0; font-size: 16px; }
.workday-company-list { display: grid; gap: 6px; }
.workday-company {
  display: grid; grid-template-columns: 30px minmax(170px, 1.35fr) minmax(130px, .8fr) minmax(140px, .8fr) minmax(90px, .5fr);
  align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; background: #fbfcfe;
}
.workday-company.blocked { border-color: #efc4c4; background: #fffafa; }
.workday-company-mark { width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; background: #def5e9; color: var(--success); font-weight: 900; }
.workday-company.blocked .workday-company-mark { background: #fde7e7; color: var(--danger); }
.workday-company > div > span, .workday-company > div > strong { display: block; }
.workday-company > div > span { font-size: 10px; color: var(--muted); }
.workday-company > div > strong { font-size: 12px; margin-top: 2px; }
.workday-company-name strong { font-size: 13px !important; }
.workday-company-problem { grid-column: 2 / -1; color: #9c2525; font-size: 11px; }
.workday-blocker { padding: 10px 12px; margin-bottom: 8px; border-radius: 9px; background: #fff0f0; color: #9c2525; font-size: 12px; }
.workday-footnote { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
@media (max-width: 1200px) {
  .workday-main { padding-right: 0; }
  .workday-actions { position: static; margin-top: 14px; justify-content: flex-start; max-width: none; }
  .workday-company { grid-template-columns: 30px minmax(170px, 1fr) repeat(2, minmax(120px, .7fr)); }
  .workday-company > div:nth-of-type(4) { display: none; }
}
@media (max-width: 800px) {
  .workday-panel { padding: 15px; }
  .workday-main { gap: 10px; }
  .workday-state-icon { width: 38px; height: 38px; border-radius: 11px; }
  .workday-state-copy h2 { font-size: 18px; }
  .workday-actions, .workday-actions form, .workday-open-button, .workday-danger-action, .workday-danger-action > summary { width: 100%; }
  .workday-danger-action > form { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .workday-preview, .workday-preview form { grid-template-columns: 1fr; }
  .workday-preview .btn { width: 100%; }
  .workday-readiness-head { align-items: flex-start; }
  .workday-company { grid-template-columns: 30px 1fr; }
  .workday-company > div:not(.workday-company-name):not(.workday-company-problem), .workday-company-problem { grid-column: 2; }
}
