/* Draft library keeps content and its primary action together. */
#drafts-page{padding-bottom:24px}
.draft-page-header{align-items:center;flex-direction:row}
.draft-title-row{display:flex;align-items:center;gap:12px;margin:9px 0 10px}
.draft-title-row h1{margin:0;font-size:29px;letter-spacing:-.8px}
.draft-total{display:inline-grid;place-items:center;min-width:28px;height:26px;padding:0 8px;border:1px solid #d9e5da;border-radius:8px;background:#eaf2e9;font-size:13px;font-weight:600;color:#416f50}
.draft-page-header>button{padding:11px 16px;background:#fff}
.draft-library{margin-top:30px}
.draft-account-bar{display:flex;align-items:flex-start;gap:16px;margin-bottom:22px}
.draft-account-label{flex-shrink:0;padding-top:10px;font-size:12px;color:#728374}
.draft-accounts{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.draft-account-filter{display:flex;align-items:center;gap:10px;max-width:100%;min-height:36px;padding:8px 12px;border:1px solid #dce5db;border-radius:8px;background:#fff;color:#61775f;font-size:12px}
.draft-account-filter>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.draft-account-filter>small{flex-shrink:0;font-size:10px;padding:1px 5px;border-radius:4px;background:#eef3ea;color:#6e8669}
.draft-account-filter[aria-pressed=true]{border-color:#8eaf94;background:#eaf2e9;color:#2b6547;font-weight:600}
.draft-account-filter:hover{border-color:#8eaf94}
.draft-groups{display:grid;gap:26px}
.draft-account-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 13px;min-width:0;overflow-wrap:anywhere}
.draft-account-heading h2{font-size:15px;font-weight:600;margin:0;color:#365e43}
.draft-account-heading>span{font-size:11px;color:#7e8d7d}
.draft-account-heading>small{font-size:11px;color:#7e8d7d;border-left:1px solid #dce5db;padding-left:10px}
.draft-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px}
.draft-search-field{position:relative;display:flex;align-items:center;flex:1;max-width:470px}
.draft-search-field svg{position:absolute;left:14px;width:18px;height:18px;fill:none;stroke:#809184;stroke-width:1.7;pointer-events:none;z-index:1}
#draft-search{margin:0;width:100%;height:43px;padding:10px 38px 10px 42px;background:#fff;border-color:#dce5db;border-radius:9px;font-size:13px;-webkit-appearance:none;appearance:none}
.draft-search-field input::-webkit-search-cancel-button{-webkit-appearance:none}
.draft-search-field>button{position:absolute;right:9px;width:27px;height:27px;border:0;background:transparent;border-radius:5px;font-size:21px;color:#718373}
.draft-search-field>button:hover{background:#edf3eb}
.draft-sort-label{display:flex;align-items:center;gap:10px;flex-shrink:0;margin:0;font-size:12px;font-weight:400;color:#728374}
.draft-sort-label select{width:auto;min-width:118px;height:43px;margin:0;background:#fff;border-radius:9px;padding:8px 12px}
.draft-list-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0 18px}
.draft-filters{display:flex;gap:5px;background:#eaf0e8;border-radius:9px;padding:4px}
.draft-filters button{display:flex;align-items:center;gap:7px;min-height:33px;padding:6px 13px;border:1px solid transparent;border-radius:6px;background:transparent;font-size:12px;color:#6b7d6c}
.draft-filters button[aria-pressed=true]{background:#fff;border-color:#dce6d8;color:#2b6547;box-shadow:0 1px 3px #284f3610;font-weight:600}
.draft-filters span{font-size:10px;color:#84947e;font-weight:400}
#draft-count{font-size:12px;color:#7e8d7d}
#draft-message:empty{display:none}
.draft-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,440px),1fr));gap:20px;align-items:start}
.draft-card{min-width:0;background:#fff;border:1px solid #dfe7dc;border-radius:13px;box-shadow:0 3px 12px #26483203;padding:18px 20px 0;transition:border-color .15s,box-shadow .15s}
.draft-card:hover{border-color:#c4d5c3;box-shadow:0 5px 18px #26483208}
.draft-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:28px;margin-bottom:15px}
.draft-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:#7c8c78}
.draft-kind{font-weight:600;color:#43634d}
.draft-source{border-left:1px solid #dce4d7;padding-left:8px}
.draft-pending{border-radius:4px;padding:4px 7px;background:#f8f3e8;color:#967843;font-size:10px}
.draft-menu{position:relative;flex-shrink:0}
.draft-menu>summary{list-style:none;display:grid;place-items:center;width:30px;height:28px;color:#74836e;letter-spacing:2px;border-radius:6px;cursor:pointer;font-size:10px}
.draft-menu>summary::-webkit-details-marker{display:none}
.draft-menu>summary:hover,.draft-menu[open]>summary{background:#eff4eb;color:#355c42}
.draft-menu-actions{position:absolute;right:0;top:34px;z-index:3;display:grid;min-width:145px;padding:5px;border:1px solid #dce5d7;border-radius:8px;background:#fff;box-shadow:0 8px 24px #183b2820}
.draft-menu-actions button{border:0;background:#fff;padding:10px 12px;text-align:left;border-radius:5px;white-space:nowrap;color:#44684e;font-size:12px}
.draft-menu-actions button:hover{background:#f0f5ed}
.draft-menu-actions .draft-delete{border-top:1px solid #edf0e9;border-radius:0;color:#a55744}
.draft-menu-actions .draft-delete:hover{background:#fcf3ef}
.draft-card-body{display:grid;grid-template-columns:148px minmax(0,1fr);gap:18px;min-height:210px;padding-bottom:18px}
.draft-media{height:176px;min-width:0;border:1px solid #e7ece3;border-radius:8px;background:#f7f9f4;overflow:hidden}
.draft-media button{position:relative;display:block;width:100%;height:100%;border:0;padding:0;background:#f8faf6;cursor:zoom-in;min-width:0;min-height:0}
.draft-media img{width:100%;height:100%;object-fit:contain;display:block}
.draft-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:3px;padding:3px}
.draft-image-grid:has(>button:nth-child(3)){grid-template-rows:repeat(2,minmax(0,1fr))}
.draft-more-images{position:absolute;inset:0;display:grid;place-items:center;background:#18372499;color:white;font-size:20px;font-weight:600;pointer-events:none}
.draft-image-error{display:block;font-size:10px;line-height:1.7;color:#84917c;padding:7px}
.draft-no-media{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border-style:dashed;background:#fafcf8;color:#9bac95}
.draft-no-media>span{font-size:30px;font-weight:300}
.draft-no-media small{font-size:11px}
.draft-media video{width:100%;height:100%;display:block;object-fit:contain;background:#24392d}
.draft-copy{min-width:0;display:flex;align-items:flex-start;flex-direction:column;padding-top:1px}
.draft-caption{font-size:13px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden;color:#334c3b}
.draft-caption.expanded{display:block;-webkit-line-clamp:unset;max-height:none;overflow:visible}
.draft-expand{border:0;padding:5px 0 0;background:transparent;color:#3f7953;font-size:11px;text-underline-offset:3px}
.draft-expand:hover{text-decoration:underline}
.draft-word-count{display:block;margin-top:auto;padding-top:8px;font-size:10px;color:#8f9d87}
.draft-blank-title{font-size:14px;font-weight:550;color:#72826c;margin:9px 0 7px}
.draft-blank-note{font-size:12px;line-height:1.9;color:#8c9985;margin:0}
.draft-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-top:1px solid #edf1e9}
.draft-meta{display:flex;align-items:center;gap:8px;min-width:0}
.draft-avatar{flex-shrink:0;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#ecf2e8;color:#5b7958;font-size:12px}
.draft-meta>div{min-width:0;display:grid;gap:4px}
.draft-meta>div>span{font-size:11px;color:#61775d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.draft-meta time{font-size:10px;color:#9aa58f;white-space:nowrap}
.draft-edit{flex-shrink:0;min-height:35px;padding:8px 12px;border:1px solid #2d7153;border-radius:7px;background:#2d7153;color:#fff;font-size:12px;white-space:nowrap}
.draft-edit:hover{background:#245b43}
.draft-library-note{font-size:11px;line-height:1.8;color:#94a18c;margin:20px 0 0}
.draft-empty{grid-column:1/-1;display:flex;align-items:center;flex-direction:column;justify-content:center;padding:65px 20px;background:#fff;border:1px dashed #d4e0ce;border-radius:13px;text-align:center}
.draft-empty-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:17px;background:#eff5e9;color:#88a27d;font-size:31px;margin-bottom:15px}
.draft-empty h2{font-size:17px;font-weight:550;margin:0 0 10px;color:#4a6c47}
.draft-empty p{font-size:12px;color:#8b9a81;line-height:1.8;margin:0 0 20px}
.draft-empty button{width:auto;margin:0;background:#f2f7ed}
#drafts-page :is(button,summary,input,select):focus-visible{outline:2px solid #74a580;outline-offset:3px}
@media(min-width:1101px){#drafts-page{scrollbar-gutter:stable;padding-right:4px}}
@media(max-width:650px){
  .draft-title-row h1{font-size:25px}
  .draft-page-header{gap:16px;align-items:flex-start}
  .draft-page-header>button{font-size:11px;padding:9px 10px}
  .draft-page-header p{font-size:12px;line-height:1.8}
  .draft-library{margin-top:24px}
  .draft-account-bar{flex-direction:column;gap:9px;margin-bottom:18px}
  .draft-account-label{padding-top:0;font-size:11px}
  .draft-accounts{width:100%;gap:6px}
  .draft-account-filter{font-size:11px;gap:7px;padding:7px 10px}
  .draft-account-heading h2{font-size:14px}
  .draft-toolbar{gap:10px;align-items:stretch}
  .draft-search-field{min-width:0}
  #draft-search{font-size:12px;height:41px;padding-left:36px}
  .draft-search-field svg{left:11px;width:16px;height:16px}
  .draft-sort-label{font-size:0;gap:0}
  .draft-sort-label select{min-width:104px;max-width:113px;height:41px;font-size:12px;padding:8px}
  .draft-list-bar{gap:10px;margin:16px 0}
  .draft-filters{gap:1px;padding:3px}
  .draft-filters button{font-size:11px;gap:5px;padding:6px 9px}
  #draft-count{font-size:10px;text-align:right}
  .draft-grid{grid-template-columns:minmax(0,1fr);gap:15px}
  .draft-card{padding:15px 15px 0;border-radius:11px}
  .draft-card-head{margin-bottom:12px}
  .draft-card-body{grid-template-columns:96px minmax(0,1fr);gap:13px;min-height:170px;padding-bottom:15px}
  .draft-media{height:144px}
  .draft-caption{font-size:12px;line-height:1.85;-webkit-line-clamp:5}
  .draft-blank-title{font-size:13px;margin-top:5px}
  .draft-blank-note{font-size:11px}
  .draft-meta>div>span{font-size:10px}
  .draft-meta time{font-size:9px}
  .draft-edit{font-size:11px;padding:8px 10px}
  .draft-card-footer{padding:13px 0;gap:10px}
  .draft-library-note{font-size:10px}
  .draft-empty{padding:48px 18px}
}
@media(prefers-reduced-motion:reduce){.draft-card{transition:none}}
