/* Larger screens (761px and up): a full-screen thought view and side-by-side settings. Phones use mobile.css. */
@media(min-width:761px){
  /* Thought view: the story on the left, details and actions on the right. */
  .detail-dialog{inset:0;width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:#fcfcf8}
  .detail-dialog::backdrop{background:#fcfcf8}
  .detail-top{position:sticky;top:0;z-index:2;padding:14px max(32px,calc((100% - 1240px)/2 + 32px));background:#fcfcf8e8;backdrop-filter:blur(8px);border-bottom:1px solid #eef0e8}
  .detail-world{font-size:13px;gap:9px}
  .detail-world svg{width:17px;height:17px}
  .detail-top .close-dialog{width:40px;height:40px}
  .detail-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:clamp(32px,4.5vw,72px);align-items:start;max-width:1240px;margin:0 auto;padding:40px 32px 64px}
  .detail-title{font-size:clamp(28px,2.4vw,36px)!important;line-height:1.3;letter-spacing:-1px;margin:0 0 14px}
  .detail-main .section-help{font-size:12px!important}
  .detail-status{margin-bottom:22px}
  .importance-tag{font-size:11px;padding:4px 8px}
  .detail-description{font-size:15px;line-height:1.85;min-height:150px;padding:16px 18px;border-radius:12px;margin-bottom:8px}
  .detail-notes{margin-top:32px;padding-top:28px}
  .detail-section h3{font-size:13px;margin-bottom:16px}
  .note-form textarea{font-size:14px;line-height:1.7;min-height:110px;padding:14px 16px}
  .note-form button{font-size:12px;padding:10px 16px}
  .note-item{margin-top:24px;padding-left:18px}
  .note-item time{font-size:11px}
  .note-item p{font-size:14px;line-height:1.85}
  .no-notes{font-size:13px!important}
  .oblivion-notice{margin:6px 0 16px}
  .oblivion-notice strong,.oblivion-notice p{font-size:13px}
  .archive-notice{font-size:13px}
  .detail-aside{padding:26px 26px 22px;border-radius:18px;background:#f5f6ef}
  .detail-aside .detail-section{border-top-color:#e6e9dd}
  .detail-fields{gap:16px 14px}
  .detail-fields label{font-size:11px;gap:7px}
  .detail-fields select,.detail-fields input{font-size:13px;padding:10px;border-radius:8px;background:#fffefa}
  .detail-aside .section-help{font-size:11px!important;line-height:1.7}
  .progress-check{font-size:12px}
  .progress-control output{font-size:12px;width:38px}
  .connection-chip{font-size:12px;padding:9px 11px;background:#fffefa}
  .connect-select{font-size:12px;padding:10px;background:#fffefa}
  .detail-bottom{margin-top:26px}
  .rest-button{font-size:12px;padding:13px;background:#fffefa}
  .detail-bottom p{font-size:11px;margin:8px 0 14px}
}
@media(min-width:761px) and (max-width:1000px){
  .detail-layout{grid-template-columns:minmax(0,1fr);max-width:720px}
}
/* The oblivion and Archive lists use the full width; their introduction keeps a readable measure. */
@media(min-width:761px){
  .oblivion-list{max-width:none}
}
/* Settings: header across the top, the two cards side by side. */
@media(min-width:1200px){
  .settings-view{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:28px;align-content:start;align-items:start;padding-inline:max(40px,calc((100% - 1320px)/2))}
  .settings-view>:not(.settings-card){grid-column:1/-1}
  .settings-view>#settings-back{justify-self:start}
  .settings-card{max-width:none}
  .reset-settings{grid-column:1/-1}
}
@media(min-width:761px){
  /* Title and context grow with their text instead of reserving empty rows. */
  .detail-title,.detail-description{field-sizing:content}
  .detail-status .urgency{font-size:11px;padding:4px 8px}
}
