/*
 * Plan sets at a desk (src/plansets.js): the add row and its progress, the
 * page grid with a dot for how sure each reading is, the table that puts
 * pages on the map, and the blink compare. Linked with desktop.css at every
 * width; every rule waits for html.wide as desktop.css's do, and every
 * colour is a token.
 */
/* Its blocks 6 px apart, as the other fine screens at a desk (found in use, item 49). */
html.wide #screen-plansets:not([hidden]) { display: flex; flex-direction: column; gap: 6px; }
html.wide #screen-plansets .ps-field { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
html.wide #screen-plansets .ps-field .lbl { margin: 0; }
html.wide #ps-new { align-items: flex-end; gap: 14px; }
html.wide #ps-work { display: flex; flex-direction: column; gap: 4px; }
html.wide #ps-work[hidden] { display: none; }
html.wide #ps-progress { width: 100%; height: 10px; accent-color: var(--accent); }
html.wide #ps-set:not([hidden]) { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
html.wide #screen-plansets .ps-head { flex-wrap: wrap; gap: 12px; align-items: flex-end; }
html.wide #ps-name { min-width: 340px; font-weight: 650; }

/* The pages, a card each: the thumbnail, how sure, and the four fields a person may put right. */
html.wide #screen-plansets .ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
html.wide #screen-plansets .ps-page { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
html.wide #screen-plansets .ps-page img { width: 100%; aspect-ratio: 17 / 11; object-fit: contain; border-radius: 6px; background: var(--bg); }
html.wide #screen-plansets .ps-page input { min-height: 32px; padding: 4px 8px; font-size: 14px; }
html.wide #screen-plansets .ps-top { display: flex; align-items: center; gap: 8px; }
html.wide #screen-plansets .ps-n { flex: 1; min-width: 0; font-size: 13px; color: var(--dim); }
html.wide #screen-plansets .ps-on { font-size: 12px; color: var(--ok); font-weight: 650; }
html.wide #screen-plansets .ps-right.on { color: var(--ok); border-color: var(--ok); }
html.wide #screen-plansets .ps-dot { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; }
html.wide #screen-plansets .ps-dot.conf-green { background: var(--ok); }
html.wide #screen-plansets .ps-dot.conf-amber { background: var(--warn); }
html.wide #screen-plansets .ps-dot.conf-red { background: var(--danger); }
html.wide #screen-plansets .warn.small { padding: 4px 8px; font-size: 12px; }

/* Onto the map: a row a page. */
html.wide #screen-plansets .ps-plan:empty { display: none; }
html.wide #screen-plansets .ps-plan { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
html.wide #screen-plansets .ps-plan-table { width: 100%; border-collapse: collapse; font-size: 14px; }
html.wide #screen-plansets .ps-plan-table :is(th, td) { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
html.wide #screen-plansets .ps-plan-table th { font-size: 13px; color: var(--dim); font-weight: 650; }
html.wide #screen-plansets .ps-plan-table select { min-height: 32px; font-size: 14px; }
html.wide #screen-plansets .ps-other { margin-left: 6px; }

/* A sheet over the one it replaced, blinking. */
html.wide #ps-compare:not([hidden]) { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
html.wide #screen-plansets .ps-stage { position: relative; align-self: flex-start; max-width: 100%; }
html.wide #screen-plansets .ps-stage canvas { display: block; max-width: 100%; height: auto; border-radius: 6px; }
html.wide #screen-plansets .ps-stage .ps-blink-b { position: absolute; left: 0; top: 0; }
html.wide #screen-plansets .ps-blink-says { flex: 1; font-weight: 650; margin: 0; }

/* A page's mark on the desk's card: what it is for, a plan page's layer, its structure; small chips for a mouse, a finger's on a touch screen. */
html.wide #screen-plansets .ps-page .ps-mark .chips { gap: 4px; }
html.wide:not(.touch) #screen-plansets .ps-page .ps-mark .chip { min-height: 30px; padding: 3px 8px; font-size: 12px; }
html.wide #screen-plansets .ps-page :is(.ps-structure-open, .ps-strike, .ps-unstrike, .ps-strike-go, .ps-strike-by) { font-size: 12px; }
/* The index the AI read off the cover: its rows in two columns at a desk. */
html.wide #screen-plansets .ps-index-rows { columns: 2; column-gap: 24px; margin: 4px 0 8px; padding-left: 20px; font-size: 13px; }
