/* Content pages (admin/content.js): draft bar, record list + editor, history, publish page, admin log.
   Storybook skin of theme.css / kit.css. Every control is at least 40 px tall; no sideways scroll at 390 px. */
.content-page{min-width:0;color:#5c493d}
.content-page *,.content-diff,.content-import,.content-template-list{min-width:0}
.content-page section,.content-diff section{margin-bottom:0}
.content-page p{color:#735738}
.content-page label,.content-modes label,.content-template label,.content-when-field label{margin:0;font-size:13px;font-weight:400}

/* buttons */
.content-page button,.content-import button,.content-template-list button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:8px 14px;border-radius:7px;font-size:13px;line-height:1.3;cursor:pointer;white-space:normal;text-align:center}
.content-page button .icon{width:18px;height:18px}
.content-page button.content-mini,.content-template-list button.content-mini{padding:6px 10px;font-size:12.5px}
.content-page button.content-danger{border:1px solid #c98a78;background:linear-gradient(#fff4ef,#f6d9cf);color:#9a3f2b;box-shadow:none}
.content-page button.content-danger:hover:not(:disabled){background:#f6d9cf}
.content-page button:disabled{cursor:default;opacity:.45}
.content-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}

/* inputs */
.content-input{display:block;width:100%;max-width:100%;box-sizing:border-box;min-height:40px;margin:0;padding:8px 10px;border:1px solid #dfcbb4;border-radius:7px;background:#fffdf9;color:#5c493d;font:inherit;font-size:14px}
.content-input:focus-visible{outline:3px solid #cba06b;outline-offset:1px}
.content-label{display:block;margin:0 0 4px;color:#735738;font-size:13px;font-weight:700}
:is(.kit-dialog,.content-page) input.content-radio,:is(.kit-dialog,.content-page) input.content-check{display:inline-block;flex:none;width:20px;height:20px;min-height:0;margin:2px 0 0;padding:0;accent-color:#4f923e;cursor:pointer}
.content-muted{margin:0;color:#6b5643;font-size:12px;line-height:1.5}
.content-empty{margin:0;padding:18px 12px;border:1px dashed #d4bc95;border-radius:8px;color:#6b5643;font-size:12.5px;text-align:center;list-style:none}
.content-link{display:inline-flex;align-items:center;gap:6px;min-height:40px;color:#3a6f9c;font-size:13px;text-decoration:underline;text-underline-offset:2px}
.content-link .icon{width:18px;height:18px}

/* heading */
.content-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px 16px}
.content-head>div:first-child{flex:1 1 280px}
.content-head p{margin:5px 0 0;color:#6e5845;font-size:12px}
.content-tools{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}

/* draft bar */
.content-draftbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 12px;padding:12px 14px;border:1px solid #d8c4a4;border-radius:9px;background:#fffaf0}
.content-draftbar[data-state=changed]{border-color:#e2b86b;background:linear-gradient(110deg,#fff6e1,#fffaf0);box-shadow:inset 4px 0 0 #e2a84b}
.content-draftbar[data-state=clean]{border-color:#b5d3a2;background:linear-gradient(110deg,#f3f8ea,#fffcf4);box-shadow:inset 4px 0 0 #6aac55}
.content-draft-text{flex:1 1 260px}
.content-draft-state{margin:0}
.content-draft-count{color:#4a3828;font-size:15px}
.content-draft-meta{margin:3px 0 0;color:#6b5643;font-size:12px;overflow-wrap:anywhere}
.content-scheduled{display:flex;flex-direction:column;gap:4px;margin:8px 0 0;padding:0;list-style:none}
.content-scheduled li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;color:#3a6f9c;font-size:12.5px;overflow-wrap:anywhere}
.content-scheduled li>span{flex:1 1 180px}
.content-scheduled .icon{width:18px;height:18px}

/* history */
.content-history{margin:0 0 12px;padding:12px 14px;border:1px solid #e6d3b6;border-radius:9px;background:#fffcf6}
.content-history-top h3{margin:0;color:#5a4128;font-size:16px}
.content-history-top{margin-bottom:10px}
.content-history-list{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.content-history-entry{padding:10px 12px;border:1px solid #ecddc8;border-radius:8px;background:#fffdf8}
.content-history-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;color:#4a3828}
.content-history-meta{margin:2px 0 0;color:#6b5643;font-size:12px}
.content-history-note{margin:2px 0 0;color:#5c493d;font-size:12.5px;overflow-wrap:anywhere}
.content-history-entry .content-actions{margin-top:8px}
.content-history-view{margin-top:10px;padding:10px;border-top:1px dashed #d4bc95}
.content-history-records{display:flex;flex-direction:column;gap:4px;margin:8px 0 0;padding:0;list-style:none}
.content-history-records li{display:flex;flex-direction:column;padding:6px 8px;border-radius:6px;background:#f8f0e2}
.content-single-view{display:grid;grid-template-columns:minmax(90px,30%) minmax(0,1fr);gap:6px 12px;margin:0;font-size:12.5px}
.content-single-view dt{color:#6b5643;font-weight:700}.content-single-view dd{margin:0;overflow-wrap:anywhere}

/* list + editor */
.content-body{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);gap:14px;align-items:start}
.content-body.is-single{grid-template-columns:minmax(0,1fr)}
.content-list,.content-editor{padding:12px;border:1px solid #e6d3b6;border-radius:9px;background:#fffcf6e6}
.content-list-tools{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}
.content-search{flex:1 1 180px}
.content-filter{display:flex;flex-direction:column;gap:2px;flex:0 1 130px}
.content-filter>span{color:#8c6d4f;font-size:12px;font-weight:700}
.content-page button.content-add{flex:1 1 100%}
.content-count{margin:8px 0 6px;color:#6b5643;font-size:12px}
.content-local-note{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 8px;padding:8px 10px;border:1px solid #b9d0e3;border-radius:8px;background:#f1f6fb;color:#3a6f9c;font-size:12.5px}
.content-records{display:flex;flex-direction:column;gap:6px;margin:0;padding:2px;list-style:none}
.content-page button.content-record{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:3px;width:100%;padding:9px 12px;border:1px solid #e6d3b6;border-radius:8px;background:#fffdf8;box-shadow:none;color:#5a4128;text-align:left}
.content-page button.content-record:hover{background:#fff2d5}
.content-page button.content-record[aria-current=true]{border-color:#4f923e;background:#eef5e2;box-shadow:inset 4px 0 0 #4f923e}
.content-record-title{color:#4a3828;font-size:13.5px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.content-record-sub{color:#6b5643;font-size:11.5px;line-height:1.4;overflow-wrap:anywhere}
.content-badges{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.content-badge{display:inline-flex;align-items:center;padding:1px 9px;border:1px solid #d8cba7;border-radius:999px;background:#f2ebd6;color:#7d6a45;font-size:11px;font-weight:700;line-height:1.6;white-space:nowrap}
.content-badge.is-new{border-color:#8fc27a;background:#e6f3dc;color:#2f6b23}
.content-badge.is-changed{border-color:#e2b86b;background:#fff1d1;color:#8a5a12}
.content-badge.is-off{border-color:#cdc3b6;background:#efebe5;color:#6e655b}
.content-badge.is-local{border-color:#9dbfdc;background:#e8f1f9;color:#2f5f87}
.content-badge.is-current{border-color:#9cc485;background:#eef6e6;color:#3f7a31}
.content-removed{margin:10px 0 0;padding:8px 10px;border:1px dashed #c98a78;border-radius:8px;background:#fdf1ec;color:#8a3725;font-size:12px;overflow-wrap:anywhere}
.content-editor-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.content-editor-head h3{margin:0;color:#4a3828;font-size:17px}
.content-editor-head h3:focus{outline:none}.content-editor-head h3:focus-visible{outline:3px solid #ae8c48;outline-offset:2px}
.content-editor-state{color:#b4682a;font-size:12.5px;font-weight:700}
.content-editor-meta{margin:4px 0 12px;color:#6b5643;font-size:12px;overflow-wrap:anywhere}
.content-restore{margin:0 0 12px;padding:10px 12px;border:1px solid #9dbfdc;border-radius:8px;background:#eef5fb}
.content-restore p{margin:0 0 8px;color:#2f5f87;font-size:13px}
.content-page button.content-restore-button{background:linear-gradient(#6aa6d6,#3f7fb3);border-color:#3a74a4}
.content-editor-actions{margin-top:16px;padding-top:12px;border-top:1px dashed #d4bc95}
.content-editor-empty{padding:36px 12px;text-align:center}
.content-editor-empty p{margin:0 0 12px;color:#6b5643;font-size:13px}
.content-editor-empty .content-actions{justify-content:center}

/* diff, problems, templates, import (inside the kit dialog) */
.content-diff{display:flex;flex-direction:column;gap:6px;color:#5c493d;font-size:13px}
.content-diff-summary{margin:0;color:#4a3828;font-size:14px;font-weight:700}
.content-diff-group h3{margin:6px 0 4px;color:#735738;font-size:13.5px}
.content-diff ul,.content-problems{margin:0;padding-left:18px;font-size:13px;line-height:1.55}
.content-diff-list>li{margin:0 0 6px;overflow-wrap:anywhere}
.content-diff ul.content-diff-fields{margin:3px 0 0;padding:0;list-style:none;font-size:12.5px}
.content-diff-fields li{overflow-wrap:anywhere}
.content-diff-field{color:#6b5643;font-weight:700}
.content-diff-before{color:#9a3f2b;text-decoration:line-through}
.content-diff-after{color:#2f6b23;font-weight:600}
.content-problems{color:#8a3725}.content-problems li{overflow-wrap:anywhere}
.content-template-list{display:flex;flex-direction:column;gap:6px}
.content-template{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #e6d3b6;border-radius:8px;background:#fffdf8}
.content-template label{display:flex;flex:1 1 auto;align-items:flex-start;gap:10px;cursor:pointer}
.content-template label>span,.content-modes label>span,.content-pending-row label>span{display:flex;flex-direction:column;gap:1px;min-width:0;overflow-wrap:anywhere}
.content-template small,.content-modes small,.content-pending-row small{color:#6b5643;font-size:12px}
.content-import{display:flex;flex-direction:column;gap:10px}
.content-modes{display:flex;flex-direction:column;gap:2px;margin:0;padding:8px 12px 10px;border:1px solid #e6d3b6;border-radius:8px;min-inline-size:0}
.content-modes legend{padding:0 4px;color:#735738;font-size:13px;font-weight:700}
.content-modes label{display:flex;align-items:flex-start;gap:10px;min-height:40px;padding:6px 0;cursor:pointer}
.content-when-field{display:flex;flex-direction:column;gap:2px;margin:4px 0}
.content-when{margin:4px 0 0;color:#44622f;font-size:12px}

/* publish page */
.content-publish-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
.content-box{margin:0 0 12px;padding:12px 14px;border:1px solid #e6d3b6;border-radius:9px;background:#fffcf6e6;min-inline-size:0}
.content-publish-form .content-box{margin:0}
.content-box>legend{padding:0 4px;color:#5a4128;font-size:15px;font-weight:700}
.content-box>h3{margin:0 0 8px;color:#5a4128;font-size:15px}
.content-box .content-actions{margin-top:12px}
.content-box .content-modes{margin-top:12px}
.content-box-tools{display:flex;justify-content:flex-end}
.content-pending{display:flex;flex-direction:column}
.content-pending-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px;padding:6px 0;border-bottom:1px dashed #e6d3b6}
.content-pending-row:last-child{border-bottom:0}
.content-pending-row label{display:flex;flex:1 1 220px;align-items:flex-start;gap:10px;min-height:40px;padding:4px 0;cursor:pointer}
.content-page button.content-submit{min-width:180px}
.content-jobs,.content-overview{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.content-job{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px dashed #e6d3b6}
.content-job:last-child,.content-overview li:last-child{border-bottom:0}
.content-job>.icon{width:22px;height:22px;color:#3a6f9c}
.content-job>div{display:flex;flex:1 1 auto;flex-direction:column;gap:1px;overflow-wrap:anywhere}
.content-job small,.content-overview small{color:#6b5643;font-size:12px;overflow-wrap:anywhere}
.content-overview li{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;padding:6px 0;border-bottom:1px dashed #e6d3b6}
.content-overview li>small{flex-basis:100%}

/* admin log */
.content-log-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:0 0 6px;padding:12px 14px;border:1px solid #e6d3b6;border-radius:9px;background:#fffcf6e6}
.content-log-filters .content-field{display:flex;flex:1 1 200px;flex-direction:column}
.content-log-list{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.content-log-entry{padding:10px 12px;border:1px solid #ecddc8;border-radius:8px;background:#fffdf8}
.content-log-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 10px}
.content-log-head time{color:#6b5643;font-size:12px}
.content-log-summary{margin:6px 0 2px;color:#4a3828!important;font-size:13.5px;overflow-wrap:anywhere}
.content-log-summary:focus{outline:none}.content-log-summary:focus-visible{outline:3px solid #ae8c48;outline-offset:2px}
.content-log-meta{margin:0;color:#6b5643!important;font-size:12px;overflow-wrap:anywhere}
.content-log-details{margin-top:6px;font-size:12px}
.content-log-details summary{min-height:32px;padding:6px 0;color:#3a6f9c;cursor:pointer}
.content-log-details pre{max-height:240px;margin:4px 0 0;padding:8px;overflow:auto;border-radius:6px;background:#f6efe2;color:#5c493d;font-size:11.5px;white-space:pre-wrap;overflow-wrap:anywhere}
.content-page button.content-more{margin-top:10px;width:100%}

@media(min-width:961px){.content-records{max-height:66vh;overflow:auto}}
@media(max-width:960px){
  .content-body,.content-publish-form{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
  .content-input{font-size:16px}
  .content-tools{justify-content:flex-start;width:100%}
  .content-tools>button{flex:1 1 auto}
  .content-draftbar{flex-direction:column;align-items:stretch;padding:12px}
  .content-draft-text{flex:none}
  .content-actions>button{flex:1 1 auto}
  .content-list,.content-editor,.content-box,.content-history,.content-log-filters{padding:10px}
  .content-filter{flex:1 1 120px}
  .content-page button.content-submit{min-width:0;width:100%}
  .content-single-view{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.content-page *,.content-diff *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}


/* Item 120: the draft bar of the older content pages (admin/content-bar.js), their draft badges and the
   maps section of #content-publish. Wraps at 390 px; buttons stay at least 40 px tall. */
.content-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0 0 14px;padding:12px 14px;border-left:5px solid #9ab07a}
.content-bar.has-draft{border-left-color:#d49a3a;background:linear-gradient(#fffaf0,#fbefd8)}
.content-bar-status{display:flex;flex-direction:column;gap:3px;flex:1 1 260px;min-width:0}
.content-bar-title{font-size:14.5px;color:#5c493d}
.content-bar-detail,.content-bar-extra{color:#7a6048;font-size:12.5px;overflow-wrap:anywhere}
.content-bar-warning{margin:4px 0 0;color:#9a3f2b;font-size:12.5px}
.content-bar-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.content-bar-actions button,.content-bar-version-tools button{min-height:40px;padding:8px 12px;font-size:13px}
.content-bar-link{font-size:12.5px;color:#6a5236;text-decoration:underline;padding:8px 2px}
.content-bar-history{flex:1 1 100%;min-width:0}
.content-bar-versions{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.content-bar-version{padding:8px 10px;border:1px solid #e3d3b5;border-radius:8px;background:#fffdf7;min-width:0}
.content-bar-version.is-live{border-color:#9ab07a;background:#f4f8ec}
.content-bar-version-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.content-bar-version small,.content-bar-note{display:block;color:#7a6048;font-size:12.5px;overflow-wrap:anywhere;margin:2px 0 0}
.content-bar-version-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.content-bar-chip{display:inline-block;padding:2px 8px;border-radius:999px;background:#efe3cb;color:#6a5236;font-size:12px}
.content-bar-chip.is-live{background:#dfeccc;color:#3f5b22}
.content-bar-muted{color:#8a7058;font-size:12.5px}
.content-bar-dialog,.content-bar-diff{display:grid;gap:6px;min-width:0}
.content-bar-diff h4{margin:6px 0 0;font-size:14px}
.content-bar-diff-head{font-size:13px}
.content-bar-diff-list,.content-bar-problems{margin:0;padding-left:20px;overflow-wrap:anywhere}
.content-bar-diff-list small{color:#8a7058}
.item-chip.item-chip-draft{background:#fbe4bd;color:#7a4b10;border-color:#e2b46c}
.items-draft-removed{grid-column:1/-1;color:#9a3f2b}
.shop-card-draft{display:block;color:#7a4b10;font-weight:600}
.shop-stock-note{display:block;color:#7a4b10;font-size:12px}
.content-warning{display:block;color:#9a3f2b}
.content-later-why{display:block;margin-top:4px;color:#9a3f2b}
.content-maps{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.content-map{padding:10px 12px;border:1px solid #e3d3b5;border-radius:8px;background:#fffdf7;min-width:0}
.content-map-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.content-map-head small{color:#7a6048}
.content-map-versions{margin:8px 0 0;padding-left:20px;display:grid;gap:6px}
.content-map-versions li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;overflow-wrap:anywhere}
.content-map-versions li.is-live span{font-weight:600}
.content-map-versions small{color:#7a6048}
@media (max-width:520px){.content-bar{padding:10px}.content-bar-actions{width:100%}.content-bar-actions button{flex:1 1 auto}}