[hidden] { display: none !important; }
.desk-shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.desk-head { background: var(--green); color: #fff; padding: 14px 0; }
.desk-head .desk-shell, .desk-intro, .desk-form-head, .desk-preview-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.desk-head a:last-child, .desk-intro a { text-decoration: underline; font-size: .85rem; }
.desk-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.desk-main { padding-block: 35px 55px; }
.desk-intro { margin-bottom: 24px; }
.desk-intro h1, .gate h1 { font: 800 clamp(2rem, 5vw, 3.3rem)/1.1 var(--sans); margin: 0 0 7px; letter-spacing: -.045em; }
.desk-intro p:last-child, .gate p { color: var(--muted); }
.desk-layout { display: grid; grid-template-columns: minmax(215px, 265px) minmax(0, 1fr); gap: 18px; align-items: start; }
.desk-card, .gate { background: var(--white); padding: clamp(15px, 3vw, 24px); border: 1px solid var(--line); border-radius: 12px; }
.gate { max-width: 560px; margin: 35px auto; }
.desk-card h2 { font: 800 1.25rem/1.2 var(--sans); letter-spacing: -.02em; margin: 0; }
.desk-library, .desk-form { display: grid; gap: 16px; }
.desk-form-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.desk-card label { display: grid; gap: 5px; color: var(--ink); font-size: .87rem; font-weight: 750; }
.desk-card input, .desk-card textarea, .desk-card select { background: #fffdf8; border: 1px solid #c9c1b0; color: var(--ink); width: 100%; min-width: 0; border-radius: 6px; min-height: 44px; padding: 9px 11px; font-weight: 500; font-size: 1rem; }
.desk-card textarea { resize: vertical; }
.desk-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 13px; }
.desk-list { display: grid; gap: 8px; }
.desk-item { background: #f9f5eb; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 10px; text-align: left; display: grid; overflow-wrap: anywhere; }
.desk-item:hover, .desk-item[aria-pressed=true] { border-color: var(--rust); }
.desk-item span, .desk-message { color: var(--muted); font-size: .85rem; }
.desk-status { color: #5b3b21; background: #f0e7d8; padding: 4px 9px; border-radius: 15px; font-size: .76rem; font-weight: 800; }
.desk-status[data-published=true] { color: #21432d; background: #e0efdf; }
.desk-media { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 8px; margin: 0; min-width: 0; padding: 15px; }
.desk-media legend { font-weight: 800; padding-inline: 6px; }
.desk-media p { color: var(--muted); font-size: .85rem; margin: 0; }
.desk-cover, .desk-gallery img { width: 130px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.desk-gallery, .desk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.desk-gallery:empty, .desk-message:empty { display: none; }
.desk-gallery figure { margin: 0; display: grid; gap: 4px; }
.desk-gallery button { min-height: 32px; padding-block: 4px; }
.desk-message[data-error=true] { color: #9b3013; }
#desk-preview { width: min(680px, calc(100% - 30px)); max-height: 88vh; border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: var(--white); color: var(--ink); }
#desk-preview::backdrop { background: #10171099; }
#desk-preview article img { margin: 12px 0; border-radius: 8px; }
#desk-preview article { overflow-wrap: anywhere; }
#desk-preview h2 { margin: 16px 0 10px; }
@media (max-width: 680px) {
  .desk-layout { grid-template-columns: 1fr; }
  .desk-head .desk-shell { gap: 8px; }
  .desk-intro { align-items: start; flex-direction: column; }
}
