.design-proposals {
  box-sizing: border-box; width: min(1080px, calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right))); max-width: none;
  height: min(850px, calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom))); max-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: auto; padding: 0; border: 1px solid #ccd6df; border-radius: 18px;
  background: #f6f8fa; color: #21364a; box-shadow: 0 24px 80px #142b4855;
  font: 15px/1.5 system-ui, sans-serif; overflow: hidden;
}
.design-proposals[open] { display: flex; flex-direction: column; }
.design-proposals::backdrop { background: #18293c88; }
.design-proposals * { box-sizing: border-box; }
.design-proposals [hidden] { display: none !important; }
.design-proposals h2, .design-proposals h3, .design-proposals p { margin: 0; }
.design-proposals h2 { font-size: 24px; }
.proposal-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: white; border-bottom: 1px solid #dbe2e8; }
.proposal-scope, .proposal-date { color: #617184; font-size: 13px; }
.proposal-content { overflow: auto; overscroll-behavior: contain; padding: 24px; min-height: 0; }
.proposal-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.proposal-intro p { max-width: 580px; color: #526579; }
.design-proposals button { min-height: 44px; padding: 10px 14px; border: 1px solid #c9d3df; border-radius: 8px; background: white; color: #263e54; font: inherit; font-weight: 600; cursor: pointer; white-space: normal; }
.design-proposals button:hover { background: #edf3f8; }
.design-proposals button:focus-visible, .design-proposals input:focus-visible, .design-proposals textarea:focus-visible { outline: 3px solid #4e9ceb; outline-offset: 3px; }
.design-proposals .proposal-primary { color: white; background: #215c85; border-color: #215c85; }
.design-proposals .proposal-primary:hover { background: #174565; }
.design-proposals .proposal-delete { color: #a03333; }
.proposal-status:not(:empty) { margin-bottom: 18px; padding: 12px; background: #e3f0e8; border-radius: 8px; }
.proposal-status.is-error { color: #882626; background: #ffe9e7; }
.proposal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.proposal-card { min-width: 0; border: 1px solid #d7dfe7; border-radius: 12px; background: white; overflow: hidden; }
.design-proposals .proposal-preview { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: #edf1f5; }
.proposal-preview img { display: block; width: 100%; aspect-ratio: 8/5; object-fit: contain; }
.proposal-card-body { padding: 18px; display: grid; gap: 12px; }
.proposal-card h3 { font-size: 18px; overflow-wrap: anywhere; }
.proposal-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.proposal-card .proposal-notes { min-height: 3em; }
.proposal-card-actions, .proposal-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.proposal-date { display: block; }
.proposal-empty { grid-column: 1/-1; padding: 60px 30px; border: 1px dashed #bdcbd8; text-align: center; border-radius: 12px; }
.proposal-form { padding: 20px; margin: 0 0 24px; border: 1px solid #b6cbdc; border-radius: 12px; background: white; }
.proposal-form label { display: grid; gap: 6px; margin: 14px 0; font-weight: 600; }
.proposal-form input, .proposal-form textarea { width: 100%; min-width: 0; padding: 10px; border: 1px solid #b5c4d1; border-radius: 6px; font: 16px/1.4 system-ui, sans-serif; color: #21364a; background: white; }
.proposal-form small { color: #617184; font-weight: 400; }
.proposal-form > button { margin-right: 8px; }
.proposal-list:has(.proposal-large-preview), .proposal-list:has(.proposal-back) { display: flex; flex-direction: column; align-items: stretch; }
.proposal-back { align-self: flex-start; }
.proposal-large-preview { width: 100%; max-height: 440px; object-fit: contain; background: white; border: 1px solid #d7dfe7; border-radius: 12px; }
.proposal-detail-heading { overflow-wrap: anywhere; }
@media (max-width: 850px) {
  .design-proposals { width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)); height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
  .proposal-heading, .proposal-content { padding: 16px; }
  .proposal-intro { flex-direction: column; align-items: stretch; gap: 12px; }
  .proposal-card-actions { gap: 6px; }
  .proposal-card-actions button { flex: 1 1 auto; }
}
@media (max-width: 560px) { .proposal-list { grid-template-columns: 1fr; } }
