/* ==========================================================================
   Xphias LLC Guest Speaker Manager
   04-components.css
   Reusable components: cards, section bars, asset grid, badges, modals, forms.
   ========================================================================== */

.opt-title {
  font-size: 12px;
  font-weight: bold;
  color: var(--white);
  line-height: 1.3;
}
.opt-desc {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
}

.section-bar-light { background: var(--col1-head) !important; color: var(--col1-text) !important; }
.section-bar-blue { background: var(--col2-head) !important; color: var(--col2-text) !important; }

.section-bar-beige {
  background: var(--navy2) !important;
  border: 1px solid var(--c-border) !important;
  color: #e2d5ba !important;
  border-left: 4px solid #c9a84c !important;
  border-top: 1px solid rgba(201, 168, 76, 0.3) !important;
  border-right: 1px solid rgba(201, 168, 76, 0.2) !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2) !important;
  padding: 5px 12px;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 4px;
}
body.head-inline .section-bar-beige {
  background: transparent !important;
  border-left: 4px solid #c9a84c !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  color: #e2d5ba !important;
  padding-left: 10px;
  margin-bottom: 12px;
}
body.head-underline .section-bar-beige {
  background: transparent !important;
  border-bottom: 2px solid #c9a84c !important;
  border-left: none !important;
  border-top: none !important;
  border-right: none !important;
  color: #e2d5ba !important;
  padding-left: 0;
  padding-bottom: 4px;
  margin-bottom: 12px;
}
.admin-subcontent-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
}
@media (max-width: 1050px) {
  .admin-subcontent-grid {
    grid-template-columns: 1fr;
  }
}

body.head-inline .section-bar-light, body.head-inline .section-bar-blue { background: transparent !important; border-left: 4px solid var(--cyan) !important; color: var(--brand) !important; padding-left: 10px; margin-bottom: 12px; }
body.head-underline .section-bar-light, body.head-underline .section-bar-blue { background: transparent !important; border-bottom: 2px solid var(--cyan) !important; color: var(--brand) !important; padding-left: 0; padding-bottom: 4px; margin-bottom: 12px; }
body.style-rounded .module-card, body.style-rounded .card { border-radius: 12px !important; background: rgba(0,0,0,0.25) !important; border: 1px solid var(--c-border) !important; padding: 10px !important; margin-bottom: 12px !important; }
body.style-wireframe .module-card, body.style-wireframe .card { border-radius: 0 !important; background: transparent !important; border: 1px solid var(--c-border) !important; padding: 6px !important; margin-bottom: 10px !important; }
body.density-relaxed .document-grid, body.density-relaxed .app-grid { gap: 40px !important; }

.roster-card{background:var(--navy2);border:1px solid var(--c-border);border-radius:6px;overflow:hidden;transition:border-color .2s,box-shadow .2s;display:flex;flex-direction:column}
.roster-card:hover{border-color:rgba(0,180,216,0.4);box-shadow:0 2px 8px rgba(0,0,0,0.3)}
.roster-card.active{border-color:var(--cyan);border-left:3px solid var(--brand)}
.roster-card-header{padding:10px 12px;cursor:pointer;display:flex;justify-content:space-between;align-items:flex-start;background:rgba(255,255,255,0.02)}
.roster-card-header:hover{background:rgba(255,255,255,0.05)}
.roster-actions{display:flex;gap:4px;margin-left:8px;flex:0 0 auto}
.roster-actions button{background:none;border:none;cursor:pointer;font-size:12px;padding:3px 4px;border-radius:3px;opacity:0.8;transition:opacity .2s}
.roster-actions button:hover{opacity:1;background:rgba(255,255,255,0.1)}
.roster-occurrences{padding:6px 8px 8px;border-top:1px solid rgba(255,255,255,0.05);display:flex;flex-direction:column;gap:5px;background:rgba(0,0,0,0.2)}
/* This used to sit on var(--inp-bg) -- the colour of a FORM FIELD, which on
   the Xphias theme is white. Brand, muted and cyan text were then being
   drawn on white at around 2:1. It is a panel, so it takes a panel colour. */
.roster-occ-item{padding:6px 8px;background:var(--navy2);border:1px solid var(--c-border);border-radius:4px;cursor:pointer;transition:.15s}
.roster-occ-item:hover{border-color:var(--cyan);background:rgba(0,180,216,0.08)}
.roster-occ-item.active-occ{border-color:var(--cyan);background:rgba(0,180,216,0.15);border-left:3px solid var(--cyan)}
.roster-occ-badge{font-size:9px;font-weight:bold;color:var(--brand);display:inline-flex;align-items:center;gap:4px}
.badge-cyan{color:var(--cyan)!important}
.btn-icon-xs{background:transparent;border:none;color:var(--muted);cursor:pointer;font-size:10px;padding:2px 4px;border-radius:2px}
.btn-icon-xs:hover{color:var(--red);background:rgba(239,68,68,0.2)}
.main-wrap{flex:1;overflow-y:auto;padding:clamp(14px, 2.5vw, 24px) clamp(16px, 3vw, 40px);display:flex;flex-direction:column}

.c-hdr{background:var(--c-bg);border:1px solid var(--c-border);padding:24px;border-radius:6px;margin-bottom:24px;display:flex;justify-content:space-between;align-items:flex-end}
.c-search{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.c-search input{padding:10px 14px;background:var(--inp-bg);border:1px solid var(--c-border);color:var(--inp-text);border-radius:4px;width:250px}
.card{background:var(--c-bg);border:1px solid var(--c-border);border-radius:6px;margin-bottom:24px;box-shadow:0 4px 20px rgba(0,0,0,.3)}
.card-header{background:var(--navy2);padding:12px 18px;border-bottom:1px solid var(--c-border);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.card-body{padding:18px}
.m-table{width:100%;border-collapse:collapse;font-size:calc(12px * var(--fs))}
.m-table td{padding:8px 10px;border-bottom:1px solid rgba(255,255,255,.06);vertical-align:top}
.m-label{color:var(--cyan);font-weight:700;width:130px;text-transform:uppercase;font-size:calc(10px * var(--fs))}

.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}
.asset-item{background:var(--navy2);border:1px solid var(--c-border);border-radius:6px;display:flex;flex-direction:column;overflow:hidden}

.ros-cd-prominent {
  margin-top: 6px !important;
  padding: 6px 8px !important;
  background: rgba(0, 180, 216, 0.12) !important;
  border: 1px solid var(--cyan) !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  transition: all 0.3s ease !important;
}
.ros-cd-prominent .c-t {
  /* Was 10px. The floor is 12pt and this is inside the document. */
  font-size: var(--pp-body) !important;
  font-family: monospace, 'Courier New', Courier !important;
  font-weight: bold !important;
  letter-spacing: 0.5px !important;
  color: var(--cyan) !important;
}
.ros-cd-prominent .cd-bar {
  width: 100% !important;
  height: 5px !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 3px !important;
  overflow: hidden !important;
  margin-top: 3px !important;
}
.ros-cd-prominent .cd-fill {
  height: 100% !important;
  border-radius: 3px !important;
  transition: width 1s linear, background-color 0.4s ease !important;
}

.asset-preview{width:100%;height:160px;background:#0b1120;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
.asset-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top center;z-index:2}
#dg-logo .asset-preview,.asset-preview-logo{background:radial-gradient(circle,#1e293b 0%,#0b1120 100%)}
#dg-logo .asset-preview img,.asset-preview-logo img{object-fit:contain!important;object-position:center!important;padding:10px}
#dg-port .asset-preview,.asset-preview-port{height:200px;background:#0b1120}
#dg-port .asset-preview img,.asset-preview-port img{object-fit:cover!important;object-position:top center!important}
#dg-vid .asset-preview img{object-fit:cover!important;object-position:top center!important}
/* NO FRAME ROUND A PICTURE.

   These carried a rounded corner and a drop shadow, and they sit inside a
   module card that adds six pixels of its own padding over a lighter
   background -- so every cover graphic came with a mat and a border round
   it, like a photograph in a cheap frame. A picture on a production document
   is the artwork, not an exhibit. The cards they sit in give their padding
   and their background back below, so the image meets its own edge. */
#pp-im-p{width:100%;max-height:520px;object-fit:contain;object-position:top center;display:block;margin-bottom:20px}
#pp-im-b{width:100%;max-height:360px;object-fit:cover;object-position:top center;display:block}
#pp-im-d{width:100%;max-width:100%;object-fit:contain;object-position:center;display:block}

/* The two cards that hold nothing but a picture give up their padding and
   their background, so there is no mat between the frame and the image.
   They keep their hover, because they are still the way in to the editor. */
/* The sizing that used to be written on the <img> tags themselves lives here
   now. Inline styles beat a stylesheet, so while they were on the tags the
   shadow and the rounded corner could not be taken off from anywhere -- which
   is exactly what happened the first time this was tried. */
#pp-im-p, #pp-im-b, #pp-im-d { box-shadow: none; border-radius: 0; border: 0; }

/* And the two cards that hold nothing but a picture give up their padding and
   their background, so there is no mat between the frame and the image.
   The !important answers the theme rules above (style-rounded sets 10px of
   padding and a background on every module card), which are about cards with
   words in them. They keep their hover: still the way in to the editor. */
#card-imp, #card-imb {
  padding: 0 !important;
  background: transparent !important;
  border-color: transparent !important;
}
#card-imp:hover, #card-imb:hover {
  background: transparent !important;
  border-color: var(--brand) !important;
}
.asset-badge{font-size:10px;font-weight:800;padding:2px 6px;border-radius:4px;text-transform:uppercase;margin-bottom:8px;display:inline-block}
.asset-badge.sermon{background:rgba(239,68,68,.15);color:var(--red);border:1px solid var(--red)}
.asset-badge.b-roll{background:rgba(0,180,216,.15);color:var(--cyan);border:1px solid var(--cyan)}
.asset-badge.logo{background:rgba(201,168,76,.15);color:var(--brand);border:1px solid var(--brand)}

.module-card{position:relative;border:1px solid transparent;border-radius:4px;transition:.2s;margin-bottom:8px;background:rgba(30,41,59,0.8);padding:6px;cursor:pointer}
/* THE HOVER BADGE IS GONE, BECAUSE IT WAS ALWAYS THE SECOND ONE.

   Every module card on the note either carries its own Edit button in the
   bar at its head -- Maintenance Schedule, Run of Show, Admin Resources,
   Tech Note, Cover Graphics -- or has one in the section bar directly above
   it, as the six crew departments do. So this badge, which floated in at the
   top right on hover, was never the only way in: it was a SECOND "✏️ Edit"
   a centimetre from the first, and on Admin Resources the two sat one above
   the other and read as a mistake.

   The card still says it can be pressed: hovering lifts its border and its
   background, which is the ordinary way a thing says so, and every card
   keeps its own onclick. */
.module-card:hover{border-color:var(--brand);background:var(--navy2);box-shadow:0 4px 12px rgba(0,0,0,.4)}
.empty-module{background:transparent!important;border:1px dashed var(--muted)!important;min-height:40px;display:flex;align-items:center;justify-content:center;text-align:center;box-shadow:none!important}
.empty-module > div{display:none!important}
.empty-module::before{content:attr(data-module-name) ' (Click to add)';font-size:10pt;color:var(--muted);text-transform:uppercase;font-weight:bold}
.section-bar-light{background:#cbd5e1;color:#0f172a;padding:5px 8px;font-size:11pt;font-weight:800;text-transform:uppercase;margin:15px 0 8px 0}
.section-bar-blue{background:#2563eb;color:#fff;padding:5px 8px;font-size:11pt;font-weight:800;text-transform:uppercase;display:block;margin-bottom:8px}
.locked-field{font-size:11pt;padding:2px 0;color:#fff;font-weight:bold;word-break:break-word}
.crew-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;padding:4px}
.crew-role{font-size:10pt;font-weight:700;color:#fff;text-transform:uppercase}
/* .res-table, .magenta-text and .sched-row were styled here for markup that
   no longer exists anywhere in the app -- no script writes those class names
   and neither does default.php. Rules for elements that cannot be built are
   worse than merely unused: they are read as evidence that a screen exists. */
.sermon-badge{background:var(--navy);border:1px solid var(--c-border);padding:4px 10px;border-radius:4px;font-size:10pt;display:inline-flex;align-items:center;gap:6px;margin:4px 4px 0 0}
.sermon-badge span{color:var(--cyan);font-size:9pt;text-transform:uppercase;font-weight:bold}

.modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.85);backdrop-filter:blur(5px);z-index:9999;justify-content:center;align-items:center}
.modal-overlay.show{display:flex}
.modal-box{background:var(--navy);border:1px solid var(--brand);border-radius:8px;width:850px;max-width:95vw;max-height:92vh;display:flex;flex-direction:column}
.modal-header{padding:16px 24px;border-bottom:1px solid var(--c-border);display:flex;justify-content:space-between;background:var(--navy2);flex-wrap:wrap;gap:8px;align-items:center}
.modal-body{padding:clamp(14px, 2vw, 24px);overflow-y:auto;flex:1;-webkit-overflow-scrolling:touch}
.modal-footer{padding:14px 24px;border-top:1px solid var(--c-border);display:flex;justify-content:flex-end;gap:10px;background:var(--navy2);flex-wrap:wrap}
.fg{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.fg label{font-size:10px;font-weight:700;color:var(--cyan);text-transform:uppercase}
/* Text colour follows the theme's own input colour. It used to be hardwired
   to white, which on the Xphias brown theme -- where the input background is
   white -- made every box you typed into look empty. */
.fg input,.fg textarea,.fg select{padding:10px;background:var(--inp-bg);border:1px solid var(--c-border);color:var(--inp-text);border-radius:4px;outline:none;font-family:inherit;width:100%;max-width:100%;box-sizing:border-box}
.fg input::placeholder,.fg textarea::placeholder{color:var(--inp-text);opacity:.45}
.array-row{display:flex;gap:12px;background:rgba(0,0,0,.2);padding:12px;border-radius:4px;border:1px solid var(--c-border);margin-bottom:8px}
.array-fields{flex:1;display:flex;gap:12px;flex-wrap:wrap}

/* .h-menu was the drop-down in the title bar, replaced by the Options
   drawer. Nothing has written that class name since; the only mentions left
   were in the print and export sheets, hiding something that was not there. */
.chart-box{background:var(--navy2);border:1px solid var(--c-border);border-radius:8px;padding:15px;margin-bottom:20px}

body.printing-analytics {
  background: #ffffff !important;
  color: #0f172a !important;
}
body.printing-analytics #editor-screen,
body.printing-analytics #landing-screen,
body.printing-analytics #side-panel,
body.printing-analytics #side-panel-overlay,
body.printing-analytics #roster-dock-btn,
body.printing-analytics #options-dock-btn,
body.printing-analytics #options-panel,
body.printing-analytics #options-panel-overlay,
body.printing-analytics .toolbar {
  display: none !important;
}
body.printing-analytics #ao {
  display: block !important;
  position: static !important;
  background: #ffffff !important;
  color: #0f172a !important;
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0.2in !important;
}
body.printing-analytics #ao .modal-box {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  box-shadow: none !important;
  border: none !important;
  background: #ffffff !important;
  color: #0f172a !important;
}
body.printing-analytics #ao button,
body.printing-analytics #ao input,
body.printing-analytics #ao select,
body.printing-analytics #ao .ao-nav-tabs {
  display: none !important;
}
body.printing-analytics #ao .chart-box {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  break-inside: avoid !important;
  box-shadow: none !important;
}
/* THE PANES HAVE TO LET GO.
   #an-main, #an-crew and #an-users are scrolling panels on screen: fixed
   height, overflow hidden, the rest of the list below the fold. Printed,
   a scrolling panel prints the part you can see and throws the rest away.
   Every one of them is opened out so the paper gets the whole report.

   display is deliberately NOT touched here. #an-main, #an-crew and
   #an-users carry display:none inline when they are the tab you are not
   looking at, and a blanket display:block would drag all three onto the
   paper at once -- you print the screen you are looking at. Height,
   overflow and flex are enough to let the open one out. */
body.printing-analytics #ao .modal-body,
body.printing-analytics #ao #an-main,
body.printing-analytics #ao #an-crew,
body.printing-analytics #ao #an-users,
body.printing-analytics #ao #an-tbl,
body.printing-analytics #ao .crew-tbl-wrap {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  flex: none !important;
  padding: 0 !important;
}
/* A chart is a picture and a picture that breaks across two sheets is two
   half pictures. The table rows may break; the charts may not. */
body.printing-analytics #ao canvas {
  break-inside: avoid !important;
  max-width: 100% !important;
}
body.printing-analytics #ao tr,
body.printing-analytics #ao thead {
  break-inside: avoid !important;
}
body.printing-analytics #ao thead {
  display: table-header-group !important;   /* column headings on every sheet */
}

/* ==========================================================================
   ALL APPEARANCES, ON PAPER

   The same idea as printing-analytics above, pointed at the general-purpose
   dialog (#mo) instead of the Analytics one. Everything behind the dialog
   goes; the dialog stops being a floating box and becomes the document; the
   search box, the two drop-downs and the buttons go, because a piece of
   paper has nothing to search and nothing to press.

   THE SHEET KEEPS THE THEME.

   This used to turn itself into white paper with black type -- sensible for
   a printer, wrong for what this is actually used for, which is a PDF kept
   and read on a screen beside the rest of the app. A record that arrives
   looking like nothing else in the system does not read as part of it.

   So the dialog prints as it looks: the navy ground, the cyan headings, the
   gold dates. print-color-adjust: exact is what makes a browser honour a
   background at all -- without it the ground is dropped and the white type
   lands on white.

   --navy, NOT --bg. --bg is a gradient, and a gradient as a background
   resolves to a TRANSPARENT background-colour with a picture over it, which
   on paper means a white page wherever the picture does not reach -- the
   page margins, and every sheet after the first. --navy is the theme's flat
   dark, it follows whichever theme is on, and it is opaque.
   ========================================================================== */
body.printing-allapp {
  background: var(--navy, #0f172a) !important;
  color: #ffffff !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}
body.printing-allapp #editor-screen,
body.printing-allapp #landing-screen,
body.printing-allapp #side-panel,
body.printing-allapp #side-panel-overlay,
body.printing-allapp #roster-dock-btn,
body.printing-allapp #options-dock-btn,
body.printing-allapp #options-panel,
body.printing-allapp #options-panel-overlay,
body.printing-allapp #ao,
body.printing-allapp .toolbar {
  display: none !important;
}
body.printing-allapp #mo {
  display: block !important;
  position: static !important;
  background: var(--navy, #0f172a) !important;
  color: #ffffff !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0.2in !important;
}
body.printing-allapp #mo .modal-box,
body.printing-allapp #mo .modal-body,
body.printing-allapp #mo .aa-wrap,
body.printing-allapp #mo .aa-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  background: var(--navy, #0f172a) !important;
  color: #ffffff !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}
body.printing-allapp #mo button,
body.printing-allapp #mo input,
body.printing-allapp #mo select,
body.printing-allapp #mo .aa-controls,
body.printing-allapp #mo .modal-footer {
  display: none !important;
}
/* The heading stays. It is what the sheet is called. */
body.printing-allapp #mo .aa-print-stamp { display: block !important; }
/* A sticky heading row is a screen idea. On paper it is repeated instead,
   at the top of every sheet, which is what sticky was standing in for. */
body.printing-allapp #mo .aa-table thead {
  position: static !important;
  display: table-header-group !important;
}
body.printing-allapp #mo .aa-table tr {
  break-inside: avoid !important;
}

/* ==========================================================================
   CREW ROSTER -- table view, hover card, editor and detail view
   Built to match Pastoral Record > Appearances so the two read the same way.
   ========================================================================== */

/* The container that used to be .crew-grid on the Pre-Production Note. */
.crew-table-host{padding:0}

.crew-tbl-wrap{
  background:var(--navy);
  border:1px solid var(--c-border);
  border-radius:6px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,.3);
  max-height:260px;
  overflow-y:auto;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch
}
.crew-tbl{
  width:100%;text-align:left;border-collapse:collapse;font-size:10.5px;
  table-layout:fixed
}
/* Fixed proportions per column count. The department cards sit in the narrow
   left column of the Pre-Production Note, so content is wrapped rather than
   allowed to push the table wider than its card. */
.crew-tbl th,.crew-tbl td{overflow-wrap:break-word;word-break:normal;hyphens:auto}

/* The combined name column exists only for the printed sheet. */
.c-name-print{display:none}

/* Four columns: the everyday case, nobody remote. */
/* 24px was two pixels short of "01" at this size, so every row number in
   a four-column crew table was clipped. Measured, not guessed: the cell
   reported scrollWidth 26 against clientWidth 24. */
.crew-tbl.cols-4 .c-num{width:30px}
.crew-tbl.cols-4 .c-last{width:32%}
.crew-tbl.cols-4 .c-first{width:25%}

/* Five columns: somebody in this department is Remote. Everything tightens
   by a step to make room for the STATUS column. */
.crew-tbl.cols-5 .c-num{width:8%}
.crew-tbl.cols-5 .c-last{width:28%}
.crew-tbl.cols-5 .c-first{width:22%}
.crew-tbl.cols-5 .c-role{width:24%}
.crew-tbl.cols-5 .c-status{width:18%}
.crew-tbl.cols-5 .crew-num{font-size:7.5px}
.crew-tbl.cols-5 .crew-last,
.crew-tbl.cols-5 .crew-first{font-size:8.5px}
.crew-tbl.cols-5 .crew-role-cell{font-size:8.5px}
.crew-tbl.cols-5 th{padding:5px 3px;font-size:7px}
.crew-tbl.cols-5 td{padding:5px 3px}
.crew-tbl.cols-5 .crew-remote-pill{font-size:6.5px;padding:1px 3px;letter-spacing:0}
.crew-tbl.cols-5 .crew-key-pill{font-size:6.5px;padding:0 3px;margin-left:3px}
.crew-tbl th{padding:6px 5px;font-weight:700;line-height:1.15}
.crew-tbl td{padding:5px 5px;vertical-align:top;line-height:1.3}
.crew-tbl tbody tr{border-bottom:1px solid rgba(255,255,255,.05);transition:background .15s}
.crew-tbl tbody tr:last-child{border-bottom:none}

.crew-row{cursor:pointer}
.crew-row:hover{background:rgba(0,180,216,.12)}

.crew-num{color:var(--muted);font-family:monospace;white-space:nowrap;font-size:9px;padding-right:2px!important}
.crew-last{color:var(--gold);font-weight:700;font-size:9.5px}
.crew-first{color:var(--white);font-weight:500;font-size:9.5px}
.crew-role-cell{color:var(--cyan);font-weight:500;font-size:9px}
.crew-status{font-size:9px}

.crew-remote-pill{
  display:inline-block;font-size:7.5px;font-weight:700;letter-spacing:.3px;
  background:rgba(0,180,216,.18);color:var(--cyan);
  border:1px solid rgba(0,180,216,.5);border-radius:3px;padding:1px 4px
}
.crew-key-pill{
  display:inline-block;font-size:7.5px;font-weight:700;letter-spacing:.3px;
  background:rgba(201,168,76,.18);color:var(--brand);
  border:1px solid rgba(201,168,76,.5);border-radius:3px;padding:0 4px;margin-left:4px
}

/* ---- the hover card ---------------------------------------------------- */
#crew-hovercard{
  position:fixed;z-index:12000;pointer-events:none;
  min-width:220px;max-width:320px;
  background:rgba(8,15,30,.98);
  border:1.5px solid var(--brand);border-radius:8px;
  box-shadow:0 10px 34px rgba(0,0,0,.65);
  padding:0;opacity:0;visibility:hidden;transform:translateY(4px);
  transition:opacity .12s ease,transform .12s ease
}
#crew-hovercard.show{opacity:1;visibility:visible;transform:translateY(0)}
#crew-hovercard .chc-head{
  padding:9px 12px;border-bottom:1px solid rgba(255,255,255,.12);
  background:rgba(201,168,76,.08);border-radius:6px 6px 0 0
}
#crew-hovercard .chc-name{font-size:12.5px;font-weight:700;color:var(--white);line-height:1.2}
#crew-hovercard .chc-sub{font-size:10px;color:var(--cyan);margin-top:3px}
#crew-hovercard .chc-body{padding:8px 12px;display:flex;flex-direction:column;gap:5px}
#crew-hovercard .chc-line{display:flex;align-items:baseline;gap:7px;font-size:10.5px}
#crew-hovercard .chc-ico{width:14px;flex:0 0 14px;text-align:center}
#crew-hovercard .chc-lbl{color:var(--muted);flex:0 0 40px;text-transform:uppercase;font-size:8.5px;letter-spacing:.4px}
#crew-hovercard .chc-val{color:var(--white);word-break:break-word}
#crew-hovercard .chc-empty{font-size:10px;color:var(--muted);font-style:italic}
#crew-hovercard .chc-foot{
  padding:6px 12px;border-top:1px solid rgba(255,255,255,.1);
  font-size:9px;color:var(--brand);text-transform:uppercase;letter-spacing:.5px
}

/* ---- the detail view --------------------------------------------------- */
.crew-detail{display:flex;flex-direction:column;gap:2px}
.crew-detail .cd-head{
  display:flex;justify-content:space-between;align-items:flex-start;gap:14px;
  padding:12px 14px;margin-bottom:10px;
  background:rgba(201,168,76,.08);
  border:1px solid rgba(201,168,76,.35);border-radius:6px
}
.crew-detail .cd-name{font-size:17px;font-weight:700;color:var(--white);line-height:1.2}
.crew-detail .cd-sub{font-size:11px;color:var(--cyan);margin-top:4px}
.crew-detail .cd-status{
  display:inline-block;font-size:9.5px;font-weight:700;text-transform:uppercase;
  letter-spacing:.5px;border:1px solid;border-radius:4px;padding:3px 8px;white-space:nowrap
}
.crew-detail .cd-section-bar{
  font-size:9.5px;font-weight:700;color:var(--brand);text-transform:uppercase;
  letter-spacing:.6px;margin:12px 0 7px;padding-bottom:4px;
  border-bottom:1px solid rgba(255,255,255,.1)
}
.crew-detail .cd-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:9px}
.crew-detail .cd-field{
  background:var(--navy);border:1px solid var(--c-border);border-radius:5px;padding:7px 10px
}
.crew-detail .cd-label{
  font-size:8.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:3px
}
.crew-detail .cd-value{font-size:11.5px;color:var(--white);word-break:break-word}
.crew-detail .cd-notes{
  background:var(--navy);border:1px solid var(--c-border);border-radius:5px;
  padding:9px 11px;font-size:11px;color:var(--white);line-height:1.55
}

/* ---- the department editor --------------------------------------------- */
.crew-edit-hint{
  background:rgba(0,180,216,.08);border:1px solid rgba(0,180,216,.35);
  border-radius:6px;padding:9px 12px;font-size:10.5px;color:var(--cyan);
  line-height:1.5;margin-bottom:12px
}
.crew-edit-row{
  background:rgba(15,23,42,.6);border:1px solid var(--c-border);
  border-radius:6px;padding:10px 12px
}
.crew-edit-head{display:flex;align-items:center;gap:9px;margin-bottom:8px}
.crew-edit-num{
  font-family:monospace;font-size:11px;color:var(--brand);font-weight:700;
  background:rgba(201,168,76,.12);border-radius:3px;padding:2px 6px
}
.crew-edit-dept{
  font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.6px;flex:1
}
.crew-edit-grid{display:grid;gap:9px}
.crew-edit-grid--main{grid-template-columns:1fr 1fr 1.3fr .9fr}
.crew-edit-grid--more{grid-template-columns:repeat(2,1fr);margin-top:9px}
.crew-more{margin-top:9px;border-top:1px dashed rgba(255,255,255,.12);padding-top:8px}
.crew-more > summary{
  cursor:pointer;font-size:10px;color:var(--brand);text-transform:uppercase;
  letter-spacing:.5px;list-style:none;user-select:none;padding:2px 0
}
.crew-more > summary::-webkit-details-marker{display:none}
.crew-more > summary::before{content:'▸ ';display:inline-block;transition:transform .15s}
.crew-more[open] > summary::before{content:'▾ '}
.crew-more-tag{
  font-size:8px;color:var(--muted);background:rgba(148,163,184,.14);
  border-radius:3px;padding:1px 5px;margin-left:6px;letter-spacing:.3px
}
.fg-hint{font-size:8.5px;color:var(--muted);font-weight:400;text-transform:none;letter-spacing:0}
.crew-key-toggle{
  background:rgba(201,168,76,.06);border:1px solid rgba(201,168,76,.25);
  border-radius:5px;padding:8px 10px
}

@media (max-width:900px){
  .crew-edit-grid--main{grid-template-columns:1fr 1fr}
  .crew-edit-grid--more{grid-template-columns:1fr}
}

/* --------------------------------------------------------------------------
   Crew tables scale with the space they are given.
   A department card is about 220px wide in the standard three-column layout,
   which is why the type is set small. But the same card is 540px wide on
   event day (when the Tech Note steps aside) and wider still in the
   2-Column Executive layout -- and 9px type in a 540px column looks like a
   mistake. A container query lets the table read its OWN width rather than
   the window's, so it grows in exactly the places that have room.
   Browsers without container-query support simply keep the compact size.
   -------------------------------------------------------------------------- */
.crew-table-host { container-type: inline-size; }

@container (min-width: 330px) {
  .crew-tbl { font-size: 12px; }
  .crew-tbl thead tr { font-size: 9px; }
  .crew-tbl th { padding: 7px 8px; }
  .crew-tbl td { padding: 6px 8px; }
  .crew-tbl .crew-num        { font-size: 10px; }
  .crew-tbl .crew-last,
  .crew-tbl .crew-first      { font-size: 11.5px; }
  .crew-tbl .crew-role-cell  { font-size: 11px; }
  .crew-tbl .crew-remote-pill,
  .crew-tbl .crew-key-pill   { font-size: 9px; padding: 1px 5px; }
  .crew-tbl-wrap { max-height: 320px; }
}

@container (min-width: 520px) {
  .crew-tbl { font-size: 13px; }
  .crew-tbl .crew-last,
  .crew-tbl .crew-first     { font-size: 12.5px; }
  .crew-tbl .crew-role-cell { font-size: 12px; }
  .crew-tbl-wrap { max-height: 380px; }
}

/* ==========================================================================
   FORMAT, COLOUR & LAYOUT MANAGER
   Same language as the crew record and the event-day alert: section bars in
   brand gold, panel cards on the navy surface, cyan for values.
   ========================================================================== */
.fcl { display: flex; flex-direction: column; gap: 2px; }

.fcl-bar {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 10px; font-weight: 800; color: var(--brand);
  text-transform: uppercase; letter-spacing: .09em;
  margin: 16px 0 9px; padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.fcl-bar:first-child { margin-top: 2px; }
.fcl-bar-icon { font-size: 13px; }
.fcl-bar-sub {
  margin-left: auto; font-size: 9px; font-weight: 500; color: var(--muted);
  text-transform: none; letter-spacing: 0;
}

.fcl-panel {
  background: var(--navy); border: 1px solid var(--c-border);
  border-radius: 8px; padding: 4px 14px;
}
.fcl-panel-tight { padding: 14px; margin-top: 10px; }

.fcl-row {
  display: grid; grid-template-columns: minmax(150px, 1fr) minmax(220px, 1.5fr);
  gap: 14px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.fcl-row:last-child { border-bottom: none; }
.fcl-label { font-size: 11.5px; font-weight: 700; color: var(--white); }
.fcl-hint  { font-size: 9.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.fcl-row-control select,
.fcl select {
  width: 100%; font-size: 11px; padding: 8px 10px;
  background: var(--inp-bg); color: var(--inp-text);
  border: 1px solid var(--c-border); border-radius: 4px;
  font-family: inherit; outline: none;
}
.fcl-row-control select option, .fcl select option {
  background: var(--inp-bg); color: var(--inp-text);
}

/* ---- the theme swatch grid -------------------------------------------- */
.fcl-swatches {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px;
}
.fcl-swatch {
  position: relative; text-align: left; cursor: pointer;
  background: var(--navy2); border: 1.5px solid var(--c-border);
  border-radius: 8px; padding: 9px 10px 10px; color: inherit;
  font-family: inherit; transition: border-color .15s, transform .12s, box-shadow .15s;
  display: flex; flex-direction: column; gap: 3px;
}
.fcl-swatch:hover { border-color: var(--brand); transform: translateY(-1px); }
.fcl-swatch.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 6px 18px rgba(0,0,0,.45);
}
.fcl-swatch-strip {
  display: flex; height: 26px; border-radius: 5px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); margin-bottom: 5px;
}
.fcl-swatch-strip > span { flex: 1; display: block; }
.fcl-swatch-plus {
  display: flex !important; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); color: var(--muted); font-size: 14px; font-weight: 700;
}
.fcl-swatch-name { font-size: 11.5px; font-weight: 700; color: var(--white); }
.fcl-swatch-note { font-size: 9px; color: var(--muted); line-height: 1.4; }
.fcl-swatch-tick {
  position: absolute; top: -7px; right: -7px;
  border: 2px solid var(--navy);
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--brand); color: #000; font-size: 10px; font-weight: 800;
  display: none; align-items: center; justify-content: center;
}
.fcl-swatch.is-selected .fcl-swatch-tick { display: flex; }

/* ---- the colour pickers ------------------------------------------------ */
.fcl-pickers {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px; margin-bottom: 12px;
}
.fcl-picker { display: flex; flex-direction: column; gap: 5px; }
.fcl-picker > span {
  font-size: 9px; font-weight: 700; color: var(--cyan);
  text-transform: uppercase; letter-spacing: .07em;
}
.fcl-picker input[type="color"] {
  width: 100%; height: 36px; padding: 2px; cursor: pointer;
  background: var(--inp-bg); border: 1px solid var(--c-border); border-radius: 5px;
}
.fcl-picker input[type="color"]:disabled { cursor: not-allowed; opacity: .4; }

.fcl-check {
  display: flex; gap: 9px; align-items: flex-start; cursor: pointer;
  background: color-mix(in srgb, var(--cyan) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 38%, transparent);
  border-radius: 6px; padding: 9px 11px; font-size: 10.5px;
  color: var(--white); line-height: 1.5; margin-bottom: 11px;
}
.fcl-check input { width: 15px; height: 15px; margin-top: 1px; accent-color: var(--cyan); cursor: pointer; }
.fcl-check strong { color: var(--cyan); }

.fcl-preview-line { margin-bottom: 11px; }
.fcl-text-sample {
  display: block; border: 1px solid var(--c-border); border-radius: 6px;
  padding: 13px 14px; font-size: 13px; font-weight: 600; text-align: center;
}
/* The swatch grid sits on the dialog surface, so give it one too. */
.fcl-swatches { margin-bottom: 2px; }

.fcl-verdicts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 11px; }
.fcl-verdicts > div { display: flex; gap: 10px; align-items: baseline; font-size: 10px; }
.fcl-vlabel {
  flex: 0 0 110px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; font-size: 8.5px; font-weight: 700;
}
.fcl-verdict { font-family: monospace; font-size: 10px; }
.fcl-verdict.good { color: var(--green, #2d9e6b); }
.fcl-verdict.warn { color: var(--brand); }
.fcl-verdict.bad  { color: var(--red, #ef4444); font-weight: 700; }
.fcl-nudge { color: var(--muted); font-family: var(--font); font-style: italic; }

/* This box used to be written in a fixed near-white. On a light background
   it was the very fault this panel exists to prevent. It follows the theme
   text colour now, like everything else. */
.fcl-note {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent);
  border-radius: 6px; padding: 10px 12px; font-size: 10px;
  color: var(--white); line-height: 1.55;
}
.fcl-note strong { color: var(--brand); }

/* --------------------------------------------------------------------------
   WHOSE SETTING IS IT

   One line under each section heading on Format, Colour & Layout saying
   whether the section changes this machine or every machine. Two colours,
   because the distinction is the whole point: the device lines are quiet
   (they are the ordinary case) and the global ones carry the cyan accent so
   the two exceptions stand out while scrolling.

   It sits tight under the bar above it -- negative margin rather than a gap,
   so it reads as part of the heading rather than as the first row of the
   panel. See js/74-fclscope.js.
   -------------------------------------------------------------------------- */
.fcl-scope {
  font-size: 10px; line-height: 1.5; font-weight: bold;
  margin: -6px 0 10px; padding: 5px 10px;
  border-radius: 5px; border: 1px solid transparent;
}
.fcl-scope-device {
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 9%, transparent);
  border-color: color-mix(in srgb, var(--muted) 24%, transparent);
}
.fcl-scope-global {
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
  border-color: color-mix(in srgb, var(--cyan) 38%, transparent);
}

/* Who set a global last, inside the panel it governs. Deliberately plain:
   it is a fact to be looked up, not a thing to be noticed. */
.fcl-scope-who {
  font-size: 10px; color: var(--muted); margin-bottom: 8px;
}

/* The same note, at the head of the Alert & Cover Management screen rather
   than under a section heading. That screen has no bar above it for the
   note to tuck under, so the negative margin that makes it read as part of
   a heading would here pull it into the modal's own title. See
   js/82-acscope.js. */
.ac-scope-note .fcl-scope { margin-top: 0; }
.ac-scope-note { margin-bottom: 4px; }

/* The locked-workspace warning on a global section. The brand note above
   with a warmer border, so it reads as a condition rather than as advice. */
.fcl-note-lock {
  margin-bottom: 10px;
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

@media (max-width: 640px) {
  .fcl-row { grid-template-columns: 1fr; gap: 6px; }
  .fcl-swatches { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* A badge that carries its own solid brand background needs its own text
   colour too. Without this, the inner spans inherited the cyan meant for a
   badge on the dark panel, and read at about 1.1:1 on gold. */
.sermon-badge--solid,
.sermon-badge--solid span {
  color: var(--col1-text, #0f172a) !important;
}
body:not(.head-block) .sermon-badge--solid,
body:not(.head-block) .sermon-badge--solid span { color: #111318 !important; }

/* ==========================================================================
   THE SPEAKER PORTRAIT ON A DASHBOARD CARD
   Drawn only when the profile actually has a picture. There is no
   placeholder: no portrait simply means no portrait, and the text takes the
   full width of the card as it always did.
   ========================================================================== */
.feed-body { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.feed-body-text { flex: 1; min-width: 0; }

/* ==========================================================================
   THE PORTRAIT RING
   A countdown drawn around the speaker's face. It FILLS as the event nears.

   Layout note: .xp-pring is the sized box. The SVG fills it edge to edge and
   the portrait sits inside, inset by the stroke width, so the face is never
   clipped by its own indicator.

   The track is the portrait's ORIGINAL cyan outline, softened. That is what
   you see before anything has been painted, and what the colour band then
   travels over -- which is exactly how the crew described it. The portrait
   inside a ring drops its own solid border, because the ring is that border
   now.
   ========================================================================== */
.xp-pring {
  position: relative;
  flex: 0 0 auto;
  display: inline-block;
  line-height: 0;
}
.xp-pring-svg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* The original outline, waiting to be painted over. Sitting on a dark
   circle of its own so it stays a distinct ring on the lighter themes --
   Xphias LLC Studio's burnt orange in particular, where a bare translucent
   cyan washed out to a smudge. */
.xp-pring-track {
  fill: none;
  stroke: var(--cyan, #00b4d8);
  stroke-width: 8;
  opacity: .30;
}

/* The colour band. Its shape comes from the mask, which is the only thing
   that moves; no transition is set on it because the mask is redrawn every
   second and a half-second ease would make the ring visibly lag the clock
   beside it. */
/* THE RING, IN ONE COLOUR.

   Two things move, and both move smoothly:

     the FILL   stroke-dashoffset, retimed once a second by the tick. The
                transition is 1s LINEAR and the tick is 1s, so each step
                hands over to the next exactly as it lands: the band creeps
                round continuously rather than stepping.
     the COLOUR when the ring crosses six hours or one hour it changes
                colour. Eased over .8s so it reads as a change rather than a
                glitch -- that is the moment somebody should look up.

   `will-change` is deliberately absent: a dashboard can hold twelve of
   these and promoting twelve layers to the GPU for a once-a-second
   attribute costs more than it saves on the older iPads in the booth.

   The gradient band, its mask and the breathing head marker were removed in
   v3.35.0 along with the colour wheel that fed them -- see
   js/03c-portraitring.js. */
.xp-pring-solid {
  transition: stroke-dashoffset 1s linear, stroke .8s ease;
}

/* ON AIR. The one ring that should catch the eye across the room: a full
   circle that breathes. OPACITY ONLY, and not for tidiness -- Safari
   repaints a filtered or resized SVG element by its filter region rather
   than its geometry, and an earlier version that animated stroke-width
   under a drop-shadow left a stray orange smear sitting an inch below the
   portrait it belonged to. Opacity needs no re-rasterising, so there is
   nothing to leave behind. */
.xp-pring.is-live .xp-pring-solid {
  animation: xpRingBreathe 2.4s ease-in-out infinite;
}
@keyframes xpRingBreathe {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .xp-pring.is-live .xp-pring-solid { animation: none; opacity: 1; }
}

.xp-pring.is-dim .xp-pring-track { opacity: .16; }

.xp-pring .speaker-portrait {
  position: relative;
  display: block;
  margin: 6px;              /* the stroke's own width, so nothing overlaps */
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}

/* HOW LONG IS LEFT, IN FIGURES.

   The class is still .xp-pring-pct and it no longer holds a percentage: it
   holds the TIME REMAINING -- "2h 14m", "47m", "3d" -- because the ring
   already says the proportion and saying it twice told nobody anything.
   The name is kept because it is written into the print sheet, the PDF
   export sheet and the archive rules, and a rename across four files to
   gain three letters is a change with no reader.

   It sits INSIDE the circle, over the lower edge of the portrait, rather
   than under it: a figure below the ring would make every card taller by a
   line, and one beside it would make them all wider. The dark pill behind
   it is what keeps it readable over a photograph, which could be any
   colour at all right where the text lands.

   THE CLOCK, AS MUSTARD SEED SHOWS IT (1.90.3). "2d 4h", "3:14:09",
   "14:09", then LIVE and DONE -- counting down once a second. Eight
   characters at the widest, so one format serves every size of face.

   The colour is written on the element by js/03c-portraitring.js and
   changes with the ring, so it is not set here. */
.xp-pring-pct {
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .2px;
  font-variant-numeric: tabular-nums;   /* 9% and 88% do not jiggle */
  padding: 2px 5px;
  border-radius: 8px;
  background: rgba(2, 6, 23, .82);
  white-space: nowrap;
}
/* A ring on a small portrait has less room, so the figure shrinks with it
   rather than covering the face. Matched by the inline width the draw
   writes, which is the only thing in the markup that says how big this ring
   is. The 72px and 64px sizes are here too: they carry "83% · 2h", which at
   9px would have run to their edges. */
.xp-pring[style*="width:72px"] .xp-pring-pct,
.xp-pring[style*="width:64px"] .xp-pring-pct,
.xp-pring[style*="width:56px"] .xp-pring-pct,
.xp-pring[style*="width:48px"] .xp-pring-pct,
.xp-pring[style*="width:44px"] .xp-pring-pct,
.xp-pring[style*="width:40px"] .xp-pring-pct {
  font-size: 7.5px;
  padding: 1px 4px;
  bottom: 0;
}

/* AND IT NEVER REACHES THE EDGES. The pill is centred on a circle, so a
   string wider than the circle would hang out of both sides of the face and
   over whatever the card has beside it. This is the backstop: it can never
   be wider than the ring it belongs to, whatever ends up in it. */
.xp-pring .xp-pring-pct {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}
/* Dimmed means the engagement is done with; the figure goes quiet too
   rather than sitting there at 100% shouting. */
.xp-pring.is-dim .xp-pring-pct { opacity: .5; }

/* THE NOTE'S HEADER: face to the LEFT of the first name and organization.

   .pp-head-id is a row of its own so the portrait and the words stay on the
   same line. The outer header row wraps (it has to -- the logos drop below
   on a narrow column), and without this inner row the speaker's name, set at
   up to 32pt, would push the portrait onto a line of its own the moment the
   column got tight. min-width:0 is what lets the name wrap inside its own
   box rather than shoving the picture out of the way. */
.pp-head-id {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 200px;
  min-width: 0;
}
.pp-head-words { flex: 1 1 auto; min-width: 0; }

/* The speaker's name, now that it shares its line with a portrait.

   It was set at clamp(22pt, 3.5vw, 32pt), sized off the VIEWPORT -- which
   says nothing useful about the width of a narrow first column, and left
   "Williams" splitting across two lines as "William / s". The range below is
   gentler, and word-break is deliberately NOT set: a name may wrap between
   its words as often as it likes, and must never be cut through the middle
   of one. overflow-wrap is kept only as a last resort for a string with no
   spaces in it at all. */
/* 2.6vw put a 35px name inside a 240px box and ran "Rev. Dr. Tisha Dixon
   Williams" to five lines. Column one is about a sixth of the window, so the
   name is sized to a small share of it, with a floor and a ceiling. Plain
   clamp on purpose -- container queries are not on the older iPads this runs
   on. */
.pp-head-words h1 {
  font-size: clamp(12pt, 1.3vw, 20pt) !important;
  line-height: 1.15;
  overflow-wrap: break-word;
  hyphens: none;
}
.pp-head-words h2 { font-size: clamp(9pt, .85vw, 13pt) !important; line-height: 1.25; }

.pp-portrait-host {
  flex: 0 0 auto;
  align-self: flex-start;
}

.speaker-portrait {
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  /* Slightly ABOVE centre, not hard to the top. A headshot puts the face in
     the upper half of the frame: crop dead centre and you take the chin,
     crop to the top and you take the forehead. 32% down leaves head room
     and keeps the eyes inside the circle. */
  object-position: 50% 32%;
  border: 2.5px solid var(--cyan);
  box-shadow: 0 3px 12px rgba(0,0,0,.45);
  background: var(--navy);
}

/* ==========================================================================
   OPTIONS ▸ DASHBOARD CARDS
   ========================================================================== */
.dc-wrap { max-height: 460px; }
.dc-table td { vertical-align: middle; }

.dc-thumb-cell { padding: 5px 6px !important; }
.dc-thumb {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; object-position: 50% 32%;
  border: 2px solid var(--cyan); background: var(--navy);
  display: block;
}
.dc-thumb-empty, .dc-thumb-missing {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; font-family: monospace;
}
.dc-thumb-empty   { border-style: dashed; border-color: var(--c-border); color: var(--muted); }
.dc-thumb-missing { border-color: var(--red); color: var(--red); }

.dc-num  { color: var(--muted); font-family: monospace; font-size: 9px; }
.dc-name { color: var(--white); font-weight: 700; font-size: 11px; }
.dc-sub  { color: var(--muted); font-weight: 400; font-size: 9px; margin-top: 2px; }

.dc-src {
  display: inline-block; font-size: 8px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; border-radius: 3px; padding: 2px 6px; border: 1px solid;
}
.dc-src-chosen { color: var(--brand); border-color: var(--brand);
                 background: color-mix(in srgb, var(--brand) 14%, transparent); }
.dc-src-auto   { color: var(--cyan);  border-color: var(--cyan);
                 background: color-mix(in srgb, var(--cyan) 14%, transparent); }
.dc-src-none   { color: var(--muted); border-color: var(--c-border); }

.dc-control select,
.dc-control .dc-path {
  width: 100%; font-size: 10px; padding: 5px 7px;
  background: var(--inp-bg); color: var(--inp-text);
  border: 1px solid var(--c-border); border-radius: 4px;
  font-family: inherit; outline: none;
}
.dc-control select option, .dc-control select optgroup {
  background: var(--inp-bg); color: var(--inp-text);
}
.dc-control .dc-path { margin-top: 0; font-family: monospace; font-size: 9px; }
.dc-control select:disabled, .dc-control .dc-path:disabled { opacity: .5; cursor: not-allowed; }

/* Browse sits beside the path box, because they are two ways of saying the
   same thing: which picture goes on this card. */
.dc-browse-row {
  display: flex; gap: 6px; align-items: center; margin-top: 5px;
}
.dc-browse-row .dc-path { flex: 1 1 auto; min-width: 0; }

.xp-browse-btn {
  padding: 6px 9px; font-size: 9px; white-space: nowrap;
  flex: 0 0 auto; letter-spacing: .2px;
}
.xp-browse-btn:disabled { opacity: .45; cursor: not-allowed; }

/* The line that answers back after you browse. Empty until it has something
   to say, so it takes up no room the rest of the time. */
.dc-msg { font-size: 11px; line-height: 1.5; border-radius: 6px; }
.dc-msg:empty { display: none; }
.dc-msg-ok, .dc-msg-bad {
  display: block; padding: 10px 12px; margin-bottom: 12px;
  border-left: 3px solid currentColor;
}
.dc-msg-ok  { background: rgba(34,197,94,.12);  color: var(--green, #22c55e); }
.dc-msg-bad { background: rgba(239,68,68,.12);  color: var(--red, #ef4444); }
.dc-msg code { font-family: monospace; font-size: 10px; opacity: .9; }
.dc-msg strong { color: inherit; }

.dc-budget-ok   { color: var(--green, #22c55e); }
.dc-budget-warn { color: var(--gold, #d4af37); }
.dc-budget-bad  { color: var(--red, #ef4444); font-weight: bold; }

/* The same answer-back line, in the asset editors. */
.xp-pick-msg { font-size: 10px; line-height: 1.5; margin-top: 6px; }
.xp-pick-msg:empty { display: none; }
.xp-pick-ok, .xp-pick-bad {
  display: block; padding: 7px 9px; border-radius: 5px;
  border-left: 3px solid currentColor;
}
.xp-pick-ok  { background: rgba(34,197,94,.12); color: var(--green, #22c55e); }
.xp-pick-bad { background: rgba(239,68,68,.12); color: var(--red, #ef4444); }
.xp-pick-msg code { font-family: monospace; font-size: 9.5px; }


/* A picture whose shape would crop a head off. */
.dc-thumb-shape {
  border-color: var(--brand); color: var(--brand);
  border-style: dashed;
}

/* ==========================================================================
   PICTURE HEALTH
   ========================================================================== */
.ah-summary {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.ah-stat {
  flex: 1 1 110px; padding: 9px 11px; border-radius: 7px;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--c-border, #2b3a55);
  border-left: 3px solid var(--muted, #94a3b8);
}
.ah-stat b { display: block; font-size: 19px; line-height: 1.1; color: var(--text, #e2e8f0); }
.ah-stat span { font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted, #94a3b8); }
.ah-stat-ok   { border-left-color: var(--green, #22c55e); }
.ah-stat-link { border-left-color: var(--cyan, #00b4d8); }
.ah-stat-risk { border-left-color: var(--gold, #d4af37); }
.ah-stat-bad  { border-left-color: var(--red, #ef4444); }

.ah-progress { font-size: 10.5px; color: var(--muted, #94a3b8); align-self: center; }

.ah-wrap { max-height: 46vh; overflow: auto; }
.ah-table td { vertical-align: top; font-size: 11px; }
.ah-num { color: var(--muted, #94a3b8); font-family: monospace; font-size: 10px; }
.ah-sub { font-size: 9.5px; color: var(--muted, #94a3b8); margin-top: 2px; line-height: 1.45; }
.ah-host { font-family: monospace; word-break: break-all; }
.ah-fix { font-size: 10px; line-height: 1.55; }
.ah-fix code {
  font-family: monospace; font-size: 9.5px;
  background: rgba(0, 0, 0, .3); padding: 1px 4px; border-radius: 3px;
}

.ah-pill {
  display: inline-block; padding: 2px 7px; border-radius: 3px;
  font-size: 9px; font-weight: 700; letter-spacing: .4px; white-space: nowrap;
  border: 1px solid currentColor;
}
.ah-ok        { color: var(--green, #22c55e); background: rgba(34,197,94,.12); }
.ah-link      { color: var(--cyan, #00b4d8); background: rgba(0,180,216,.12); }
.ah-risk      { color: var(--gold, #d4af37); background: rgba(212,175,55,.12); }
.ah-broken    { color: var(--red, #ef4444);  background: rgba(239,68,68,.15); }
.ah-slow      { color: var(--gold, #d4af37); background: rgba(212,175,55,.10); }
.ah-unchecked { color: var(--muted, #94a3b8); background: transparent; }

/* ==========================================================================
   THE WORKSPACE LOCK
   --------------------------------------------------------------------------
   The single mode switch in the app, at the top of Format, Colour & Layout.
   It reads as a control rather than a label: a lock, a state, and a switch
   that plainly has two positions.
   ========================================================================== */
.fcl-lock {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; margin-bottom: 10px;
  border-radius: 8px; cursor: pointer;
  background: var(--navy2); border: 1.5px solid var(--c-border);
  transition: border-color .18s ease, background .18s ease;
  user-select: none;
}
.fcl-lock:hover { background: rgba(255,255,255,.035); }
.fcl-lock:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.fcl-lock.locked   { border-color: var(--red, #ef4444); }
.fcl-lock.unlocked { border-color: var(--green, #22c55e); }

.fcl-lock-icon { font-size: 24px; line-height: 1; flex: 0 0 auto; }
.fcl-lock-text { flex: 1; min-width: 0; }
.fcl-lock-title {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 13px; font-weight: 800; color: var(--white, #fff);
}
.fcl-lock-badge {
  font-size: 9px; font-weight: 800; letter-spacing: .7px;
  padding: 2px 8px; border-radius: 3px; border: 1px solid currentColor;
}
.fcl-lock.locked   .fcl-lock-badge { color: var(--red, #ef4444);   background: rgba(239,68,68,.15); }
.fcl-lock.unlocked .fcl-lock-badge { color: var(--green, #22c55e); background: rgba(34,197,94,.15); }
.fcl-lock-desc { font-size: 10.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* A switch with two visible positions, so which way is which is never in
   doubt at a glance. */
.fcl-lock-switch {
  flex: 0 0 auto; width: 46px; height: 24px; border-radius: 12px;
  background: rgba(0,0,0,.4); border: 1px solid var(--c-border);
  position: relative; transition: background .18s ease;
}
.fcl-lock-switch span {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red, #ef4444);
  transition: transform .2s cubic-bezier(.4,0,.2,1), background .18s ease;
}
.fcl-lock.unlocked .fcl-lock-switch span {
  transform: translateX(22px); background: var(--green, #22c55e);
}
@media (prefers-reduced-motion: reduce) {
  .fcl-lock, .fcl-lock-switch, .fcl-lock-switch span { transition: none; }
}

/* The same line on every screen that opens in Read-Only. One wording, one
   look, so it reads as a property of the workspace rather than a complaint
   from whichever dialog you happen to be in. */
.ro-notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; margin-bottom: 14px; border-radius: 7px;
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .35);
  border-left: 3px solid var(--red, #ef4444);
  font-size: 11.5px; line-height: 1.55; color: var(--text);
}
.ro-notice-icon { font-size: 15px; line-height: 1.3; flex: 0 0 auto; }
.ro-notice strong { color: #fca5a5; font-weight: 700; }

/* ==========================================================================
   DASHBOARD PAGING, AGED CARDS, THE ARCHIVE AND THE LOCK           v3.25.0
   ========================================================================== */

.feed-head-right { display: flex; align-items: center; gap: 12px; font-weight: normal; }
.feed-head-hint  { font-size: 10px; color: var(--muted); }
.feed-viewall-btn {
  padding: 4px 12px;
  font-size: 10px;
  white-space: nowrap;
}

/* A speaker whose every appearance is more than 30 days past. Quieter, not
   hidden: it has sunk to the back of the order and the card should look
   like it belongs back there, without becoming unreadable. */
.feed-item-aged { opacity: .78; }
.feed-item-aged:hover { opacity: 1; }


/* The page strip. Laid out so the count sits at the right on a wide screen
   and drops under the buttons on a phone rather than squeezing them. */
.feed-pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
  width: 100%;
  max-width: 1250px;
}
.feed-page-step {
  background: var(--navy2);
  border: 1px solid var(--c-border);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.feed-page-step:hover:not(:disabled) { border-color: var(--cyan); background: var(--navy); }
.feed-page-step:disabled { opacity: .35; cursor: default; }
.feed-page-nums { display: flex; gap: 4px; flex-wrap: wrap; }
.feed-page-num {
  min-width: 30px;
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: monospace;
  cursor: pointer;
  transition: all .2s ease;
}
.feed-page-num:hover { border-color: var(--cyan); color: var(--white); }
.feed-page-num.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #000;
  font-weight: bold;
}
.feed-page-count { margin-left: auto; font-size: 10px; color: var(--muted); font-family: monospace; }

/* The little lock marks on a roster occurrence. */
.occ-lock { font-size: 10px; opacity: .85; }
.occ-lock-open { opacity: .6; }

.archive-card { border-left: 3px solid var(--cyan, #00b4d8); }

/* The dialog that explains why an appearance will not let you edit it. */
.lock-explain { font-size: 12px; line-height: 1.6; color: var(--white); }
.lock-explain-icon { font-size: 30px; text-align: center; margin-bottom: 10px; }
.lock-explain p { margin: 0 0 10px; }
.lock-explain-note {
  border-left: 3px solid var(--brand);
  padding-left: 10px;
  color: var(--muted);
}

/* The banner across the top of a locked note. */
.eng-lock-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(201, 168, 76, .12);
  border: 1px solid var(--brand);
  border-radius: 5px;
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--white);
}
.eng-lock-banner .elb-icon { font-size: 17px; flex: 0 0 auto; }
.eng-lock-banner .elb-btn {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 11px;
  font-size: 10px;
  white-space: nowrap;
}

/* ---- All Appearances ---------------------------------------------------- */
.aa-wrap { display: flex; flex-direction: column; gap: 10px; }
/* The stamp is written only when Print is pressed and is only ever seen on
   paper, so it takes no room on screen. */
.aa-print-stamp { display: none; }
.aa-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.aa-search {
  flex: 1 1 240px;
  min-width: 0;
  padding: 8px 10px;
  background: var(--inp-bg);
  border: 1px solid var(--c-border);
  color: var(--inp-text);
  border-radius: 4px;
  font-size: 12px;
}
.aa-select {
  padding: 8px 10px;
  background: var(--inp-bg);
  border: 1px solid var(--c-border);
  color: var(--inp-text);
  border-radius: 4px;
  font-size: 11px;
}
.aa-table-wrap {
  background: var(--navy);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  max-height: 56vh;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.aa-table { width: 100%; text-align: left; border-collapse: collapse; font-size: 11px; }
.aa-table thead { position: sticky; top: 0; background: var(--navy2); z-index: 3; }
.aa-table thead tr {
  color: var(--cyan);
  font-size: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.aa-table th { padding: 7px 8px; white-space: nowrap; }
.aa-table td { padding: 6px 8px; }
.aa-row {
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: background .15s;
}
.aa-row:hover { background: rgba(255, 255, 255, .05); }
.aa-row.is-active { background: rgba(0, 180, 216, .15); border-left: 3px solid var(--cyan); }
.aa-row.is-locked   { opacity: .82; }
.aa-row.is-archived { opacity: .62; }
.aa-num     { color: var(--muted); font-family: monospace; }
.aa-date    { color: var(--gold); font-weight: bold; white-space: nowrap; }
.aa-time    { font-size: 9px; color: var(--muted); margin-left: 4px; }
.aa-speaker { color: var(--white); font-weight: 600; }
.aa-org     { display: block; font-size: 9px; color: var(--muted); font-weight: normal; }
.aa-event   { color: var(--white); font-weight: 500; }
.aa-title   { color: var(--cyan); font-weight: bold; }
.aa-muted   { color: var(--muted); }
.aa-active-pill {
  font-size: 8px; background: var(--cyan); color: #000;
  padding: 1px 4px; border-radius: 3px; font-weight: bold; margin-left: 5px;
}
.aa-pill {
  font-size: 9px; padding: 2px 6px; border-radius: 3px;
  white-space: nowrap; font-weight: bold;
}
.aa-pill-cur  { color: var(--green, #34b077); background: rgba(52, 176, 119, .15); }
.aa-pill-lock { color: var(--brand); background: rgba(201, 168, 76, .15); }
.aa-pill-open { color: var(--cyan);  background: rgba(0, 180, 216, .15); }
.aa-pill-arch { color: var(--muted); background: rgba(148, 163, 184, .15); }
.aa-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 12px; }
.aa-foot  { font-size: 10px; color: var(--muted); font-family: monospace; }

@media (max-width: 640px) {
  .feed-head-hint { display: none; }
  .feed-page-count { margin-left: 0; width: 100%; }
}

/* The sheet ID, device id and revision in Cloud Sync. Present, but pitched
   just above the panel behind them so they do not compete with anything.
   colour-mix falls back to the plain muted colour on a browser that does not
   have it, which is the right failure: readable rather than invisible. */
.sync-faint {
  margin: 0;
  font-size: 8.5px;
  line-height: 1.5;
  letter-spacing: .2px;
  color: var(--muted);
  color: color-mix(in srgb, var(--white, #f8fafc) 22%, var(--navy2, #1e293b));
  transition: color .25s ease;
}
.sync-faint code {
  font-size: 8.5px;
  background: transparent;
  color: inherit;
  padding: 0;
  user-select: all;          /* one tap selects the whole id to copy */
}
/* Look straight at it and it comes up to readable. */
.sync-faint:hover,
.sync-faint:focus-within { color: var(--muted); }

/* The date chips on a dashboard card. Eight at most, then a "+N more". */
.feed-date-pill {
  font-size: 9px;
  color: var(--muted);
  background: rgba(0, 0, 0, .3);
  padding: 2px 5px;
  border-radius: 3px;
  border: 1px solid var(--c-border);
  white-space: nowrap;
}
.feed-date-more {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 180, 216, .12);
  cursor: pointer;
  font-weight: bold;
}
.feed-date-more:hover { background: rgba(0, 180, 216, .25); }

/* How long a deleted appearance has left in the archive. */
.arch-countdown {
  font-size: 9px;
  color: var(--brand);
  margin-top: 3px;
  font-family: monospace;
}
.arch-countdown.is-soon { color: var(--red); font-weight: bold; }
.arch-kept { font-size: 9px; color: var(--muted); margin-top: 3px; opacity: .8; }

/* Speaker headings in the grouped All Appearances view. */
.aa-group td {
  background: var(--navy2);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding: 7px 8px !important;
}
.aa-group-name  { color: var(--cyan); font-weight: bold; font-size: 11.5px; }
.aa-group-org   { color: var(--muted); font-size: 9px; margin-left: 8px; }
.aa-group-count { color: var(--muted); font-size: 9px; float: right; font-family: monospace; }

/* ==========================================================================
   THE DECEMBER REMINDER                                           v3.27.0
   Three tones. It is the only thing on the dashboard that changes colour
   with the calendar, which is the point — a card that looks the same on the
   2nd and the 30th is not a reminder, it is wallpaper.
   ========================================================================== */
.ye-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 1250px;
  margin: 0 0 18px;
  padding: 13px 16px;
  border-radius: 6px;
  border: 1px solid var(--c-border);
  background: var(--navy2);
  font-size: 12px;
  line-height: 1.55;
  color: var(--white);
}
.ye-icon  { font-size: 22px; flex: 0 0 auto; }
.ye-words { flex: 1 1 auto; min-width: 0; }
.ye-btn   { flex: 0 0 auto; padding: 6px 14px; font-size: 11px; white-space: nowrap; }

.ye-calm   { border-color: var(--cyan);  background: rgba(0, 180, 216, .10); }
.ye-firm   { border-color: var(--brand); background: rgba(201, 168, 76, .12); }
.ye-urgent { border-color: var(--red);   background: rgba(239, 68, 68, .14); }
.ye-done   { border-color: var(--green); background: rgba(52, 176, 119, .10); }

/* Pulsing only at the very end, and only if motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .ye-urgent .ye-icon { animation: yePulse 1.6s ease-in-out infinite; }
}
@keyframes yePulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

.ye-meter {
  flex: 0 0 120px;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .35);
  overflow: hidden;
}
.ye-meter-fill { height: 100%; background: currentColor; opacity: .8; transition: width .6s ease; }
.ye-calm   .ye-meter-fill { background: var(--cyan); }
.ye-firm   .ye-meter-fill { background: var(--brand); }
.ye-urgent .ye-meter-fill { background: var(--red); }

/* ---- the full alert ---------------------------------------------------- */
.ye-alert { font-size: 12px; line-height: 1.65; color: var(--white); }
.ye-alert-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.ye-ring {
  flex: 0 0 auto;
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 4px solid var(--brand);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
}
.ye-alert-urgent .ye-ring { border-color: var(--red); }
.ye-alert-calm   .ye-ring { border-color: var(--cyan); }
.ye-ring-num { font-size: 27px; font-weight: 900; line-height: 1; font-family: monospace; }
.ye-ring-cap { font-size: 8px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-top: 3px; }
.ye-alert-title { margin: 0 0 6px; font-size: 16px; color: var(--brand); }
.ye-alert-urgent .ye-alert-title { color: var(--red); }
.ye-alert-sub { margin: 0; color: var(--muted); font-size: 11px; }

.ye-breakdown, .ye-steps {
  background: var(--navy); border: 1px solid var(--c-border);
  border-radius: 5px; padding: 11px 14px; margin-bottom: 12px;
}
.ye-breakdown h4, .ye-steps h4 {
  margin: 0 0 7px; font-size: 9px; text-transform: uppercase;
  letter-spacing: .6px; color: var(--cyan);
}
.ye-breakdown ul, .ye-steps ol { margin: 0; padding-left: 18px; }
.ye-breakdown li, .ye-steps li { margin-bottom: 4px; }

.ye-safety {
  display: flex; gap: 10px;
  background: rgba(0, 180, 216, .08);
  border: 1px solid var(--cyan);
  border-radius: 5px; padding: 11px 14px;
  font-size: 11px;
}
.ye-safety-icon { font-size: 17px; flex: 0 0 auto; }
.ye-safety code { font-size: 10px; }

/* ---- the Archive Room -------------------------------------------------- */
.ar-wrap { display: flex; flex-direction: column; gap: 10px; }
.ar-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.ar-warn {
  display: flex; align-items: center; gap: 11px;
  background: rgba(239, 68, 68, .12);
  border: 1px solid var(--red);
  border-radius: 5px; padding: 10px 13px;
  font-size: 11px; line-height: 1.5;
}
.ar-warn span { font-size: 18px; flex: 0 0 auto; }
.ar-warn div { flex: 1 1 auto; }
.ar-warn-btn { flex: 0 0 auto; padding: 5px 12px; font-size: 10px; white-space: nowrap; }
.ar-row-btn { padding: 3px 8px; font-size: 9px; white-space: nowrap; }
.aa-row.is-doomed { background: rgba(239, 68, 68, .07); }
.aa-pill-doom { color: var(--red); background: rgba(239, 68, 68, .16); }

@media (max-width: 640px) {
  .ye-banner { flex-wrap: wrap; }
  .ye-meter { flex-basis: 100%; }
  .ye-alert-head { flex-direction: column; text-align: center; }
}


/* ==========================================================================
   v3.28.0 — THE REDLINED LAYOUT

   Everything below answers one complaint: the pieces of the header were
   strewn across two rows at four different heights, and nothing lined up
   with anything. One grid, one top edge.
   ========================================================================== */

/* ---- The mode badge, now in the title bar ------------------------------ */
/* It used to sit in the workspace header, which only exists on two screens.
   Whether the workspace is locked is the first thing anyone needs to know,
   so it lives beside the app name where it is always visible. */
.tb-mode {
  margin-left: 18px;
  align-self: center;
  white-space: nowrap;
}
@media (max-width: 900px) { .tb-mode { margin-left: 8px; font-size: 8pt; } }


/* ---- The workspace header grid ----------------------------------------- */
.ws-head-eyebrow {
  /* .c-hdr aligns its children to the end; the eyebrow is a full-width strip
     and belongs hard against the left edge with everything else. */
  align-self: stretch;
  width: 100%;
  font-size: 10px;
  color: var(--cyan);
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

/* Portrait | identity | logos | document. The middle column is the only one
   allowed to grow, so the three fixed columns keep their size and the name
   block absorbs the rest of the width. */
.ws-head-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 22px;
  width: 100%;
}

/* Centred against the identity block beside it, both ways. Top-aligned it
   sat level with the badge and left a hole under the picture. */
.ws-head-portrait { align-self: center; justify-self: center; line-height: 0; }

.ws-head-left { min-width: 0; align-self: start; }

.ws-head-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  align-self: start;
  padding-top: 4px;
}
.ws-head-logos img { max-height: 74px; max-width: 120px; object-fit: contain; }

/* The right-hand stack. Everything in it is right-aligned to a single edge,
   which is what "alignment is crucial" meant: the credit line, the document
   card, the cloud badge, Save and the asset count all end at the same x. */
.ws-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  align-self: start;
  min-width: 260px;
  text-align: right;
}

.ws-credit {
  font-size: 9pt;
  color: var(--white);
  font-weight: 500;
  letter-spacing: .3px;
  white-space: nowrap;
}

.ws-meta-card { width: 100%; margin: 0 !important; text-align: left; }
.ws-meta-card h4 { margin-top: 0; }

.ws-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

/* Was clipping off the right edge of the panel because it sat in the flow
   with no box of its own. */
.ws-assets {
  /* Was 10px, which is smaller than anything else on the panel and the one
     number on it people actually go looking for. */
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
  padding-right: 2px;
}
.ws-assets span { font-weight: 900; }

.ws-doc-badge { margin-top: 0 !important; }

/* The masthead logos and the Production Document card describe a note. They
   appear only when a note is on screen, and the grid closes up otherwise
   rather than holding two gaps open. */
body:not(.on-note-screen) .ws-head-logos,
body:not(.on-note-screen) .ws-meta-card { display: none; }

@media (max-width: 1100px) {
  .ws-head-grid { grid-template-columns: auto minmax(0, 1fr); }
  .ws-head-logos { grid-column: 1 / -1; justify-content: flex-start; }
  .ws-head-right { grid-column: 1 / -1; align-items: flex-start; text-align: left; min-width: 0; }
  .ws-head-actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .ws-head-grid { grid-template-columns: minmax(0, 1fr); }
  .ws-head-portrait { justify-self: center; }
}


/* ---- Column one's header card ------------------------------------------ */
/* CREW POSITIONS on one line, the logos on the next, both hard left. The
   card used to carry the portrait, the name and the organisation as well --
   all three already stated in the document header a couple of inches above
   -- and ran to 300-odd pixels, which pushed DIRECTORS well below the top of
   the column beside it. */
/* THE PADDING MOVED OFF THE CARD AND ONTO WHAT IS IN IT.

   The title has to run the full width of the card to read as a title bar
   rather than a grey box floating inside one, and bleeding it out with
   negative margins means knowing the card's padding -- which is set in three
   places and came out at 10px rather than the 14 this file asks for, so the
   bar overhung the card by 8px on each side. With the padding on the
   children instead there is no arithmetic to get wrong: the bar simply
   fills its parent. */
/* `body .pp-head-card.module-card`, and !important, because the LAYOUT
   THEMES set module-card padding with !important of their own
   (body.style-rounded puts 10px on every card). A plain `.pp-head-card`
   rule loses to that however late in the file it sits, which is why the
   title bar overhung the card by eight pixels on each side the first time:
   the arithmetic was right for the 14px this file asks for and the card was
   actually wearing the theme's 10. Matching the theme's specificity and
   coming after it is what settles it. */
body .pp-head-card.module-card {
  text-align: left;
  padding: 0 !important;
  overflow: hidden;
}

.pp-head-crew {
  margin: 0;
  font-size: 10pt;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: inherit;
  opacity: .85;
}

/* .pp-head-logos and #pp-l1/#pp-l2 were the SECOND copy of the church logos
   -- the same two pictures the masthead carries, a couple of inches below
   them. Removed in 1.61.0 at the owner's word: "redundant to have the logos
   on screen twice". The masthead pair is now fed directly from the record;
   see js/11-render.js and js/28-layout-head.js. Nothing replaced them here:
   PRE-PRODUCTION DOCUMENT came down from the workspace header and took the
   space. */

/* The document's own title, as a bar across the top of the card. */
.pp-head-card .ws-doc-badge {
  margin: 0 !important;
  border-radius: 3px 3px 0 0;
  padding: 6px 12px;
}
.pp-head-card .pp-head-crew { padding: 10px 12px 11px; }

.pp-internal {
  text-align: left;
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 4px 0;
}


/* ---- Column three: its own controls ------------------------------------ */
/* The HIDE and EDIT buttons on the left, the title block on the right, both
   starting at the same top edge. The title used to float above the panel at
   no particular height with no controls at all. */
.col3-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
/* FOUR BUTTONS WRAP; THREE NEVER HAD TO.

   This was flex with no wrap and flex:0 0 auto, which was fine while it held
   two buttons and overflowed the page sideways the moment it held four. On a
   phone the row now folds onto a second line rather than pushing the whole
   note off the right-hand edge. */
.col3-head-ctl {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  padding-top: 2px;
}
.col3-head-words { flex: 1 1 auto; min-width: 0; text-align: right; }
.col3-head-words p { margin: 0; font-size: 9pt; color: var(--muted); }
.col3-head-words h2 { margin: 2px 0; font-size: 13pt; letter-spacing: 1px; }
.col3-head-words h3 { margin: 4px 0 0 0; font-size: var(--pp-body); color: var(--cyan); }

.col3-btn {
  padding: 4px 10px !important;
  font-size: var(--pp-body) !important;
  white-space: nowrap;
}

.tn-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9pt;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px 0;
}
.tn-bar-ctl { display: flex; gap: 6px; flex: 0 0 auto; }

/* A pencil and nothing else. The bar it sits on already says which section
   it is, so the word "Edit" beside it was saying what the icon says. */
.col3-pencil { padding: 2px 8px !important; font-size: 12px !important; line-height: 1.4; }

/* The two chips that fold the last two columns away, and the three beside
   them. Four buttons have to fit where two used to, so the padding comes in:
   the row still wraps when it must, but it does not wrap at every width. */
.col3-head-ctl .col3-btn { padding: 4px 7px !important; }
.col3-sub-btn { letter-spacing: .1px; }

/* HIDE, pressed. Column three folds away and refreshLayoutTracks() hands its
   width to the other two, exactly as the event-day layout does. */
body.col3-hidden .col3 { display: none !important; }

/* The way back, shown only while the column is away. */
.col3-restore { display: none; justify-content: flex-end; margin: 0 0 10px 0; }
body.col3-hidden .col3-restore { display: flex; }
body.event-day-lean .col3-restore { display: none !important; }
body.technote-hidden #card-tn { display: none !important; }

/* THE FOURTH COLUMN -- the cover graphics -- with the same pair of buttons.
   It is shown by default and puts itself away only on a production day,
   along with the rest of column three. */
.col4-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; width: 100%; }
body.col4-hidden #card-imp { display: none !important; }
/* Its track collapses to the width of its own bar, so SHOW sits exactly
   where HIDE was and the Tech Note takes the rest of the room. */
body.col4-hidden #col3-inner,
body.col4-hidden .col3-inner { grid-template-columns: minmax(0, 1fr) auto !important; }
/* Collapsed, the bar is the SHOW button and nothing else. With its label and
   its Edit button still in it the bar was 255px wide -- almost exactly the
   width of the column it had just put away, so hiding the cover bought the
   Tech Note nothing at all. */
/* Folded away, the whole bar goes with it. It used to have to stay, because
   the SHOW button was on it and there would have been nothing left to press;
   the toggle is in the head of the column now, so the track can collapse to
   nothing instead of to the width of a bar. */
body.col4-hidden .col4-lbl,
body.col4-hidden .col4-edit-btn,
body.col4-hidden .col4-wrap > .tn-bar { display: none; }
body.col4-hidden #col3-inner,
body.col4-hidden .col3-inner { grid-template-columns: minmax(0, 1fr) 0 !important; gap: 0 !important; }

/* The same for the Tech Note: its bar is only a label once the toggle has
   left it, so there is nothing to keep when the note is away. */
body.technote-hidden .col3-notes > .tn-bar { display: none; }

/* Neither button is a document control, so neither prints. */
@media print {
  .col3-head-ctl, .tn-bar-ctl, .tb-mode, .ws-head-actions, .ws-assets,
  .col3-restore { display: none !important; }
}


/* ==========================================================================
   v3.29.0 — ONE TYPE SCALE DOWN THE MIDDLE, AND SCROLLBARS ONLY IF NEEDED

   Every section in the middle column set its own font size inline, so the
   crew roster, the run of show, admin and supplemental were all slightly
   different sizes on the same page. One scale here, and one place to change
   it.

   The scrollbars were worse. Each section was capped at a fixed height with
   overflow-y:auto, which meant a section with eleven rows was a little
   scrolling box -- and in a generated PDF a scrolling box prints whatever
   happened to be showing and silently drops the rest. Sections now grow to
   fit and only scroll when they are genuinely enormous, and they never
   scroll in print.
   ========================================================================== */
:root {
  /* THE SCALE: A 10pt FLOOR, A 16pt CEILING.

     It was 12pt at the bottom. That is a comfortable size to read and a
     punishing one for the crew roster, where five columns of names and
     roles have to sit inside one column of a three-column document -- at
     12pt they could only fit by wrapping every other surname onto a second
     line, which is worse to read than a smaller type that stays on one.

     So the floor is now 10pt, and the crew tables use it. Everything else
     stays at 12pt: the floor is a minimum, not a target.

     pt rather than px on purpose: this document's other life is on paper,
     and a point is a point on paper whatever the screen is doing. */
  --pp-floor: 10pt;     /* the smallest type anywhere on screen     */
  --pp-body: 12pt;      /* everything you read                      */
  --pp-head: 12pt;      /* column headings -- the floor applies     */
  --pp-crew: 10pt;      /* the crew roster, which has five columns  */
  --pp-title: 16pt;     /* section bars and card titles, always bold */
  --pp-scroll-max: 70vh;
}

.col1 .pp-table,
.col2 .pp-table,
.col3 .pp-table,
.pp-table { font-size: var(--pp-body); }

.pp-table thead tr { font-size: var(--pp-head); }
.pp-table td, .pp-table th { font-size: inherit; }

/* THE CREW ROSTER: 10pt, AND NOT ONE CELL WRAPS.

   Five columns -- #, last name, first name, role, status -- inside one
   column of a three-column document. Wrapping is what happens when the type
   is too big for the space, and a call sheet where "McCullough" is broken
   across two lines is harder to read at a glance than the same name a shade
   smaller on one. So the type drops to the 10pt floor and every cell is
   held on a single line; a name with nowhere left to go is trimmed with an
   ellipsis and the full one is in the hover card and the person's record.

   ROLE is the column that gives, because it is the longest and the most
   guessable from context; the names are never trimmed before it is. */
.col1 .crew-grid,
.col1 .crew-grid table,
.crew-grid table { font-size: var(--pp-crew); }
.col1 .crew-grid thead tr,
.crew-grid thead tr { font-size: var(--pp-crew); }

.crew-grid table { table-layout: fixed; width: 100%; }
.crew-grid th,
.crew-grid td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* On paper there is no hover card to fall back on, so let a long role run
   to its full width rather than losing the end of it. */
@media print {
  .crew-grid table { table-layout: auto; }
  .crew-grid th, .crew-grid td { text-overflow: clip; }
}

/* Grow to fit; scroll only past the point where a section is unreasonable. */
.pp-scroll {
  max-height: var(--pp-scroll-max);
  overflow-y: auto;
}
/* Nothing scrolls on paper -- it would print one screenful and drop the rest. */
@media print {
  .pp-scroll { max-height: none !important; overflow: visible !important; }
}

/* ---- The Run of Show's sortable headings ------------------------------- */
.ros-th { cursor: pointer; user-select: none; transition: color .15s; }
.ros-th:hover { color: var(--white); }
.ros-sort-mark { font-size: .85em; opacity: .9; }
/* The time-frame never wraps to a second line. */
.ros-tf { white-space: nowrap; }
@media print {
  .ros-th { cursor: default; }
  .ros-sort-mark { display: none; }
}

/* ---- Supplemental under embargo ---------------------------------------- */
/* The badge that stands where the View and Download buttons would be. Those
   buttons are not rendered at all while a row is held, so there is nothing
   in the page to right-click. */
.su-embargo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
  color: var(--brand);
  background: rgba(201, 168, 76, .12);
  border: 1px solid var(--brand);
}
.su-note {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  white-space: pre-wrap;
}

/* ---- The NEW mark ------------------------------------------------------ */
/* Breathing, not blinking. A hard flash on a page somebody is reading under
   pressure is an irritation; a slow fade is noticed on the way past and
   ignorable once it has been. */
.xp-new-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: .82em;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  vertical-align: middle;
  color: #fff;
  background: var(--red, #ef4444);
  animation: xpNewFade 2.6s ease-in-out infinite;
}
@keyframes xpNewFade {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}
/* Steady for anyone who has asked the system to stop moving things. */
@media (prefers-reduced-motion: reduce) {
  .xp-new-badge { animation: none; opacity: 1; }
}
/* On paper it is just a label -- nothing fades on a printed page. */
@media print {
  .xp-new-badge { animation: none; opacity: 1; background: #b91c1c; }
}

/* ==========================================================================
   THE VIDEO BOX

   Centred, 16:9, and it never grows past the window it is in. aspect-ratio
   does the work on anything current; the padding-box fallback underneath is
   for the older iPads, where aspect-ratio is not understood.
   ========================================================================== */
.xp-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 9, 18, .92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.xp-video-box {
  width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.xp-video-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.xp-video-titles { min-width: 0; }
.xp-video-titles strong {
  display: block;
  font-size: 13pt;
  color: var(--white, #fff);
  line-height: 1.3;
}
.xp-video-titles span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted, #94a3b8);
}
.xp-video-x { flex: 0 0 auto; font-size: 18px; width: 32px; height: 32px; }

/* The stage itself. Height is capped so a wide window cannot push the
   controls off the bottom of a short one. */
.xp-video-stage {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 140px);
  margin: 0 auto;
}
/* Without aspect-ratio: the old padding trick, same proportion. */
@supports not (aspect-ratio: 16 / 9) {
  .xp-video-stage { height: 0; padding-bottom: 56.25%; }
}
/* A card rather than a picture: let it be as tall as it needs. */
.xp-video-stage.is-plain {
  aspect-ratio: auto;
  height: auto;
  padding-bottom: 0;
  background: var(--navy2, #0d1527);
}

.xp-video-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}
.xp-video-stage.is-plain .xp-video-frame { position: static; }

.xp-video-plain {
  padding: 34px 26px;
  text-align: center;
  color: var(--white, #fff);
}
.xp-video-plain-ico { font-size: 34px; margin-bottom: 12px; }
.xp-video-plain-t { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.xp-video-plain p {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted, #94a3b8);
  max-width: 44ch;
  margin: 0 auto 16px;
}
.xp-video-plain code {
  display: block;
  font-size: 10px;
  color: var(--muted, #94a3b8);
  margin-bottom: 16px;
  word-break: break-all;
}
.xp-video-plain .btn { padding: 9px 18px; font-size: 12px; text-decoration: none; }

@media (max-width: 640px) {
  .xp-video-overlay { padding: 10px; }
  .xp-video-titles strong { font-size: 11pt; }
}
@media print { .xp-video-overlay { display: none !important; } }

/* ---- The Tech Note's video --------------------------------------------- */
.tn-video-block {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  background: rgba(0, 180, 216, .05);
}
.tn-video-head {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--cyan);
  margin-bottom: 10px;
}
.tn-video-head span {
  margin-left: 8px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  text-transform: none;
}
.tn-video-msg {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.tn-video-msg.is-ok   { color: var(--green); }
.tn-video-msg.is-warn { color: var(--brand); }
.tn-video-msg code { font-size: 10px; }

.tn-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 10pt;
  font-weight: 700;
  border-radius: 4px;
}
/* On paper a button is useless, so the link is printed instead. */
.tn-video-print { display: none; }
@media print {
  .tn-video-btn { display: none !important; }
  .tn-video-print {
    display: block;
    margin-top: 8px;
    font-size: 8.5pt;
    color: #334155;
    word-break: break-all;
  }
}

/* ==========================================================================
   THE PRINT PREVIEW
   ========================================================================== */
.pdfp-overlay {
  position: fixed;
  inset: 0;
  z-index: 999997;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 9, 18, .93);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pdfp-box {
  width: min(1000px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pdfp-head, .pdfp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}
.pdfp-titles strong { display: block; font-size: 12pt; color: var(--white, #fff); }
.pdfp-titles span { display: block; margin-top: 2px; font-size: 10px; color: var(--muted, #94a3b8); }
.pdfp-x { font-size: 18px; width: 32px; height: 32px; }

/* The page itself, on a grey surround so the paper edge is visible. */
.pdfp-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #3a4252;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
}
.pdfp-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #fff;
}
.pdfp-wait {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #e2e8f0;
  background: #3a4252;
  z-index: 2;
  padding: 20px;
  text-align: center;
}
.pdfp-hint { font-size: 10px; color: var(--muted, #94a3b8); max-width: 46ch; }
.pdfp-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pdfp-btns .btn { padding: 9px 18px; font-size: 11px; font-weight: 700; }

@media (max-width: 700px) {
  .pdfp-overlay { padding: 8px; }
  .pdfp-hint { display: none; }
  .pdfp-btns { width: 100%; }
  .pdfp-btns .btn { flex: 1; }
}
/* It is never itself part of a printed page. */
@media print { .pdfp-overlay { display: none !important; } }

/* ---- A countdown that is counting UP ----------------------------------- */
/* Set by tick() while an event is between its start and its end. The cyan
   pulse says live at a glance; the figure beside it is the elapsed time. */
.cd-wrap.is-live .c-t { letter-spacing: .3px; }
.cd-wrap.is-live {
  animation: xpLivePulse 2.2s ease-in-out infinite;
}
@keyframes xpLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
  50%      { box-shadow: 0 0 0 3px rgba(0, 180, 216, .18); }
}
@media (prefers-reduced-motion: reduce) { .cd-wrap.is-live { animation: none; } }
@media print { .cd-wrap.is-live { animation: none; box-shadow: none; } }

/* ==========================================================================
   THE SPEAKER CARD ON THE WELCOME BOX
   ========================================================================== */
.welcome-speaker {
  margin: 26px auto 0;
  padding: 18px 20px 16px;
  max-width: 340px;
  text-align: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .10);
}
/* Live: the same cyan the rest of the app uses to mean on air. */
.welcome-speaker.is-live {
  border-color: var(--cyan, #00b4d8);
  background: rgba(0, 180, 216, .08);
}

.ws-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted, #94a3b8);
  margin-bottom: 12px;
}
.welcome-speaker.is-live .ws-kicker { color: var(--cyan, #00b4d8); }

.ws-face {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  line-height: 0;
}

.ws-name {
  font-size: 13pt;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.25;
}
.ws-org {
  margin-top: 2px;
  font-size: 10pt;
  color: var(--muted, #94a3b8);
}
.ws-when {
  margin-top: 8px;
  font-size: 10pt;
  font-weight: 600;
  color: var(--brand, #c9a84c);
}

/* The countdown, centred under the rest. */
.ws-count {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.ws-count .c-t {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  color: var(--cyan, #00b4d8);
}

@media (max-width: 460px) {
  .welcome-speaker { margin-top: 20px; padding: 14px 14px 12px; }
  .ws-name { font-size: 12pt; }
}


/* ==========================================================================
   v3.31.0 — THE 12pt FLOOR AND THE 16pt CEILING

   Applied to the production document only: the thing that is printed, and
   the thing the crew read on the day. The toolbar, the dashboard and the
   dialogs keep their own sizes, because a 12pt floor on a row of toolbar
   buttons would push half of them off the edge of an iPad.

   !important throughout, and not reluctantly: these sizes are written inline
   on generated markup in a dozen places, and an inline style beats a class.
   The alternative was editing several hundred inline declarations by hand
   and finding the two that were missed a month later.
   ========================================================================== */
.document-grid,
.document-grid .c-t,
.document-grid .feed-date-more,
.document-grid p,
.document-grid div,
.document-grid span,
.document-grid li,
.document-grid a,
.document-grid td,
.document-grid th,
.document-grid dt,
.document-grid dd,
.document-grid label,
.document-grid input,
.document-grid select,
.document-grid textarea,
.document-grid button,
.document-grid strong,
.document-grid em,
.document-grid small,
.document-grid code {
  font-size: var(--pp-body) !important;
  line-height: 1.45;
}

/* The ceiling: section bars, card titles and the note's own headings. Always
   bold, because 16pt regular beside 12pt regular reads as an accident. */
.document-grid h1,
.document-grid h2,
.document-grid h3,
.document-grid h4,
.document-grid .section-bar-light,
.document-grid .section-bar-light span,
.document-grid .section-bar-blue,
.document-grid .section-bar-blue span,
.document-grid .pp-head-crew,
.col3-head-words h2 {
  font-size: var(--pp-title) !important;
  font-weight: 700 !important;
  line-height: 1.25;
}

/* The controls in a section bar are not headings -- they are buttons that
   happen to sit in one, and at 16pt bold they would be half the bar. */
.document-grid .section-bar-light button,
.document-grid .section-bar-blue button,
.document-grid .col3-btn,
.document-grid .tn-bar-ctl button,
.document-grid .col3-head-ctl button {
  font-size: var(--pp-body) !important;
  font-weight: 600 !important;
}

/* A badge is a mark, not a sentence. Held at the floor so it stays legible
   without swelling the row it sits in. */
.document-grid .xp-new-badge,
.document-grid .feed-date-pill,
.document-grid .su-embargo {
  font-size: var(--pp-body) !important;
}

/* On paper the same two sizes, stated in the same units, so what is set is
   what is printed. */
@media print {
  .document-grid { --pp-body: 12pt; --pp-title: 16pt; --pp-crew: 10pt; }
}

/* ---- Column one needs room for 12pt ------------------------------------ */
/* The crew table is four columns wide, and at 12pt in a 262px column the
   browser had no choice but to break "McCullough" across two lines. A track
   sized in fr still honours its content's minimum, so this widens column one
   and the other two share what is left -- rather than re-tuning every one of
   the nine layout presets by hand.

   The single-column breakpoint below already sets width:100% on all three,
   so a phone is unaffected. */
.col1 { min-width: 340px; }
@media (max-width: 1023px) {
  .col1 { min-width: 0; }
}
/* Names and roles wrap between words or not at all -- never through the
   middle of a surname. */
.crew-tbl th, .crew-tbl td { overflow-wrap: normal; word-break: normal; hyphens: none; }

/* ---- The crew roster at the 10pt floor, inside the document ------------ */
/* The .document-grid block above sets every cell to --pp-body with
   !important, which would drag the crew tables back up to 12pt. These are
   the same weight of rule, written after it and with one more class, so the
   crew tables keep the floor while nothing else moves. */
.document-grid .crew-grid,
.document-grid .crew-grid table,
.document-grid .crew-grid th,
.document-grid .crew-grid td,
.document-grid .crew-grid span,
.document-grid .crew-grid div,
.document-grid .crew-tbl,
.document-grid .crew-tbl th,
.document-grid .crew-tbl td,
.document-grid .crew-tbl span {
  font-size: var(--pp-crew) !important;
}
/* The department heading above each table is a heading, not a cell. */
.document-grid .crew-grid .crew-role,
.document-grid .pp-head-crew {
  font-size: var(--pp-body) !important;
}
/* And nothing in a crew table wraps, inline styles included. */
.document-grid .crew-tbl th,
.document-grid .crew-tbl td,
.document-grid .crew-grid th,
.document-grid .crew-grid td {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media print {
  .document-grid { --pp-crew: 10pt; }
  .document-grid .crew-tbl th, .document-grid .crew-tbl td,
  .document-grid .crew-grid th, .document-grid .crew-grid td {
    text-overflow: clip;
  }
}

/* ==========================================================================
   ACCOUNTS — the sign-in panel and the User Management screen
   ========================================================================== */
.xp-auth { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.xp-auth .fg { margin: 0; }

.xp-auth-msg { font-size: 11px; color: var(--muted); min-height: 15px; }
.xp-auth-msg.is-bad { color: var(--red); font-weight: 600; }

.xp-auth-note {
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
  padding: 9px 11px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .03);
  border-left: 3px solid var(--c-border);
}
.xp-auth-note strong { color: var(--white); }
.xp-auth-plain { border-left-color: var(--cyan); }
.xp-auth-keep  { border-left-color: var(--brand); color: var(--brand); }
.xp-auth-keep strong { color: var(--brand); }

.xp-auth-warn {
  font-size: 11px;
  line-height: 1.55;
  color: var(--red);
  padding: 9px 11px;
  border-radius: 5px;
  background: rgba(239, 68, 68, .10);
  border: 1px solid var(--red);
  margin-bottom: 4px;
}

/* ---- The accounts list ------------------------------------------------- */
.xp-um { display: flex; flex-direction: column; gap: 14px; }
.xp-um-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.xp-um-hint { font-size: 10px; color: var(--muted); }

.xp-um-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.xp-um-table thead tr {
  color: var(--cyan);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.xp-um-table th { padding: 7px 8px; text-align: left; }
.xp-um-table td { padding: 9px 8px; vertical-align: middle; }

.xp-um-row {
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  cursor: pointer;
  transition: background .15s;
}
.xp-um-row:hover { background: rgba(255, 255, 255, .05); }
.xp-um-name { display: block; font-weight: 700; color: var(--white); }
.xp-um-name em { font-weight: 400; color: var(--muted); font-style: normal; }
.xp-um-mail { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }
.xp-um-go { text-align: right; color: var(--muted); font-size: 16px; }

.xp-um-role {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.xp-um-role.role-admin   { color: var(--brand); }
.xp-um-role.role-manager { color: var(--cyan); }
.xp-um-role.role-viewer  { color: var(--muted); }

.xp-um-state { font-size: 10px; font-weight: 600; }
.xp-um-row.is-active   .xp-um-state { color: var(--green); }
.xp-um-row.is-locked   .xp-um-state { color: var(--red); }
.xp-um-row.is-expired  .xp-um-state { color: var(--red); }
.xp-um-row.is-expiring .xp-um-state { color: var(--brand); }
.xp-um-row.is-nopass   .xp-um-state { color: var(--brand); }
.xp-um-row.is-deleted  { opacity: .5; }
/* Archived is a retired account, not a broken one. Quieter than the rest of
   the list and in the archive's own colour, but still perfectly readable --
   it is filed, not hidden. */
.xp-um-row.is-archived { opacity: .68; }
.xp-um-row.is-archived:hover { opacity: 1; }
.xp-um-row.is-archived .xp-um-state { color: var(--muted); }

.xp-um-truth { border-left-color: var(--brand); }

.xp-eu-flags { display: flex; flex-direction: column; gap: 8px; }
.xp-eu-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--white);
  cursor: pointer;
}

/* ---- User accounts in Analytics ---------------------------------------- */
.ua-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.ua-tile {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--navy2);
  border: 1px solid var(--c-border);
  text-align: center;
}
.ua-tile.is-gold { border-color: var(--brand); }
.ua-tile.is-cyan { border-color: var(--cyan); }
.ua-tile.is-red  { border-color: var(--red); }
.ua-n { font-size: 24px; font-weight: 800; color: var(--white); line-height: 1; }
.ua-tile.is-gold .ua-n { color: var(--brand); }
.ua-tile.is-cyan .ua-n { color: var(--cyan); }
.ua-tile.is-red  .ua-n { color: var(--red); }
.ua-l {
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted);
}

.ua-wrap {
  background: var(--navy);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.ua-table { width: 100%; }
.ua-table thead tr { background: var(--navy2); }
.ua-row { cursor: pointer; }
.ua-row:hover { background: rgba(255, 255, 255, .05); }

/* ---- Reordering the Options menu ----------------------------------------
   GONE in 1.88.0. An administrator could drag the Options rows into a
   personal order; it cost a stylesheet block, a 209-line script, a
   permission, a hint bar and a Reset button to let one person move one menu
   around, so it was taken out rather than kept. The menu is now in the order
   it is written in default.php, for everybody.
   ------------------------------------------------------------------------ */

/* A reminder somebody can see but not act on says so on its face. */
.ye-note-role {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--brand);
  background: rgba(201, 168, 76, .10);
  border-left: 3px solid var(--brand);
}
.ye-note-role strong { color: var(--brand); }

/* ---- Messages & Video, spanning the Curate grid ------------------------ */
/* A direct child of .app-grid so it can span all three tracks. Nested in a
   column wrapper it could not: an item only spans the grid it belongs to. */
.curate-wide { grid-column: 1 / -1; }

/* Six across, which is one full row -- so the seventh item is the first
   that would push the page down, and that is where the scrolling starts. */
.curate-wide .asset-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.curate-wide .asset-grid.is-scrolling {
  /* Two rows visible, the rest scrolled. A little over one row so the top of
     row two is showing -- a list cut off exactly at a row boundary looks
     finished, and nobody scrolls a list that looks finished. */
  max-height: 27rem;
  overflow-y: auto;
  padding-right: 6px;
}
@media (max-width: 1400px) {
  .curate-wide .asset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .curate-wide .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .curate-wide .asset-grid.is-scrolling { max-height: 32rem; }
}
/* Nothing scrolls on paper. */
@media print {
  .curate-wide .asset-grid.is-scrolling { max-height: none !important; overflow: visible !important; }
}

/* ---- Speaker's Record ▸ Appearances ------------------------------------ */
/* No vertical cap: the table is as tall as it needs to be, and the card
   around it grows with it. A sticky header keeps the column names in view
   while the PAGE scrolls, which is the behaviour a 240px box was standing
   in for. */
.pr-appearances { max-height: none; overflow-y: visible; }
.pr-appearances thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--navy2);
}
@media print {
  .pr-appearances { overflow: visible !important; }
  .pr-appearances thead th { position: static; }
}

/* Sortable headings in Speaker's Record ▸ Appearances. */
.pr-th { transition: color .15s; }
.pr-th:hover { color: var(--white); }
.pr-sort-mark { font-size: .85em; opacity: .9; }
@media print { .pr-th { cursor: default; } .pr-sort-mark { display: none; } }

/* Who is signed in, on the welcome box. */
.welcome-whoami {
  margin-top: 16px;
  font-size: 10pt;
  color: var(--muted, #94a3b8);
  line-height: 1.5;
}
.welcome-whoami strong { color: #f1f5f9; }
.welcome-whoami.is-out { color: var(--brand, #c9a84c); }

/* The Crew Archive & Trash manager. */
.cb-wrap { display: flex; flex-direction: column; gap: 14px; }
.cb-tabs { display: flex; gap: 8px; }
.cb-rule { border-left-color: var(--cyan); }
.cb-table { width: 100%; }
.cb-row { border-bottom: 1px solid rgba(255, 255, 255, .05); }
.cb-row:hover { background: rgba(255, 255, 255, .04); }
.cb-left { font-size: 10px; font-weight: 700; color: var(--cyan); }
.cb-row.is-urgent .cb-left { color: var(--red); }


/* ==========================================================================
   THE CURRENT SPEAKING ENGAGEMENT BOX

   It was flex:1 with a 200px minimum, so it took every pixel the row had --
   a box the width of the screen holding "10/4/2026 - Worship Service". A
   select sizes itself to its longest option when you let it, so it is let
   to: width auto, 0.2em of air either side of the text, and room after it
   for the browser's own arrow. It still gives way on a narrow screen rather
   than pushing the row off the edge.
   ========================================================================== */
.eng-selector-fit {
  width: auto;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 6px 1.6em 6px 0.2em;
  text-overflow: ellipsis;
}


/* ==========================================================================
   THE SIGN IN / LOG OUT BUTTON

   Cyan while it is a way IN, amber while it is a way OUT -- the same
   distinction the mode badge makes, so the two read together rather than
   competing. It is never disabled and never hidden: signing in is the one
   thing every reader of this app is allowed to do.
   ========================================================================== */
.xp-auth-btn {
  border-color: var(--cyan);
  color: var(--cyan);
  white-space: nowrap;
}
.xp-auth-btn:hover {
  background: var(--cyan);
  color: #000;
}
.xp-auth-btn.is-out {
  border-color: var(--brand);
  color: var(--brand);
}
.xp-auth-btn.is-out:hover {
  background: var(--brand);
  color: #000;
}
/* Read-only hides most buttons in the title bar. Not this one -- it is the
   way out of read-only for anybody who has an account. */
body.read-only-system .xp-auth-btn {
  display: flex !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}


/* ==========================================================================
   ANALYTICS & HISTORY: THE BRANDING TRAVELS WITH THE REPORT

   On screen this is a quiet three-line mark beside the heading, in the same
   order and the same theme colours as the title bar. In print it becomes
   the masthead: the name at full size, a rule under it, and a stamp saying
   which report this is and when it was run.

   A printed sheet of somebody's speaking history with no name on it is a
   sheet somebody has to ask about, and by then it has been photocopied.
   ========================================================================== */
.ao-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  padding-right: 14px;
  border-right: 1px solid var(--c-border);
}
.ao-brand-name {
  font-size: 13pt; font-weight: 800; letter-spacing: .5px;
  color: var(--brand);
}
.ao-brand-what { font-size: 7pt; color: var(--cyan); letter-spacing: .2px; }
.ao-brand-who  { font-size: 6pt; color: var(--muted); letter-spacing: .3px; }

/* The stamp is written by prtAnPDF() and only ever seen on paper. */
.ao-print-stamp { display: none; }

@media (max-width: 900px) {
  .ao-brand { border-right: none; padding-right: 0; }
  .ao-brand-what, .ao-brand-who { display: none; }
}


/* ==========================================================================
   EVERY DIALOG CARRIES THE APP'S NAME AND ITS CREDIT

   A dialog fills the screen. Once one is open there is nothing else visible
   to say what you are looking at -- which matters on a shared booth machine
   where somebody may have walked up to an app they have never seen.

   The mark is small and above the dialog's own heading, in the same order
   and the same theme colours as the title bar, so it reads as the app
   rather than competing with the screen you opened.

   The credit sits at the LEFT of the footer, opposite the buttons. It is
   outside #mf on purpose -- oMod() replaces that element's whole contents
   on every dialog, so anything inside it would be wiped by the next screen
   that opened.
   ========================================================================== */
.mod-head-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.mod-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1;
}
.mod-brand-name {
  font-size: 9pt;
  font-weight: 800;
  letter-spacing: .6px;
  color: var(--brand);
}
.mod-brand-what {
  font-size: 6pt;
  letter-spacing: .3px;
  color: var(--cyan);
  text-transform: uppercase;
}
.modal-header h2 { min-width: 0; }

.modal-foot-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--c-border);
  background: var(--navy2);
}
/* The footer inside the wrapper keeps its padding and its right alignment;
   the wrapper owns the border so there is only ever one line. */
.modal-foot-wrap .modal-footer {
  border-top: none;
  background: transparent;
  flex: 1 1 auto;
}
.modal-credit {
  font-size: 7pt;
  letter-spacing: .3px;
  color: var(--muted);
  padding: 0 0 0 24px;
  white-space: nowrap;
  flex: 0 0 auto;
}
/* The year sits with the buttons rather than with the credit, so the two
   ends of the footer read as "who made it" and "whose it is". It is the
   same <span class="dynamic-year"> the page footer uses, so the one
   function that stamps the year keeps every copy in step -- nothing in
   this app has a year typed into it. */
.modal-year {
  font-size: 7pt;
  letter-spacing: .3px;
  color: var(--muted);
  margin-right: auto;
  white-space: nowrap;
  align-self: center;
}
.ao-foot { padding: 8px 0; }
.ao-foot .modal-credit { padding-left: 24px; }

/* On a phone the credit goes under the buttons rather than squeezing them. */
@media (max-width: 620px) {
  .modal-foot-wrap { flex-direction: column-reverse; align-items: stretch; }
  .modal-credit { padding: 0 24px 10px; text-align: center; white-space: normal; }
  .mod-brand-what { display: none; }
}

/* On paper the dialog's own masthead says all of this already. */
@media print {
  .modal-credit, .mod-brand { display: none !important; }
}


/* ==========================================================================
   THE EVENT CALENDAR AS A DIALOG

   It used to be a bare panel painted over the whole window. It is a dialog
   now, with the same chrome as every other screen -- and, importantly, the
   same way out: a ✕ in the corner, a Done button, and Escape.

   It is the widest dialog in the app because a month grid needs the room;
   everything else about it is the standard modal box.
   ========================================================================== */
.cal-modal-box {
  /* 1540 wide, asked for as "100px wider but no taller".

     THE HEIGHT IS NO LONGER FORCED, AND THAT IS THE FIX.

     It was height: 94vh, which is not a maximum -- it is an instruction. On
     a 1200px screen that made the dialog 1128px tall for a month grid that
     needs about 560: the calendar sat at the top and some four hundred
     pixels of empty box sat underneath it. Reported as "the Event Calendar
     modal height is way too high".

     It is `auto` with a 94vh ceiling now, so the dialog is the height of a
     month and no more, and still cannot grow past the screen. Six-row
     months, the year view and the day view are all taller than five-row
     months, and each now gets exactly what it needs. "Proportionately
     resized" means this: the proportion comes from the content.

     min-height keeps a short month -- February starting on a Sunday, with
     nothing booked -- from drawing a dialog so shallow it looks broken. */
  width: 1540px;
  max-width: 96vw;
  height: auto;
  min-height: min(520px, 90vh);
  max-height: 94vh;
}
.cal-modal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  /* The ceiling above can be reached -- a year view on a laptop, a month on
     a phone -- and when it is, the month scrolls inside the dialog rather
     than the dialog growing off the screen. */
  overflow-y: auto;
}
/* The calendar's own inner column used to centre itself inside a full-width
   overlay. Inside a dialog the box does that, so the column simply fills it. */
.cal-modal-body > div { min-width: 0; }

@media (max-width: 760px) {
  .cal-modal-box { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh;
                   border-radius: 0; border-left: none; border-right: none; }
  .cal-modal-body { padding: 12px; }
}


/* ---- The print preview, wearing the standard dialog chrome -------------- */
/* It was a bare box floating on a dark wash. Same shell as the rest now:
   a bordered box, a header with the CURATOR mark, and the credit and the
   year in the footer. The stage in the middle is unchanged -- that part was
   already right. */
.pdfp-box.modal-box {
  width: min(1040px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  gap: 0;
  background: var(--navy);
  border: 1px solid var(--brand);
  border-radius: 8px;
  overflow: hidden;
}
.pdfp-head.modal-header {
  padding: 12px 20px;
  align-items: flex-start;
}
.pdfp-box .pdfp-stage {
  margin: 12px 20px;
  border-radius: 6px;
}
.pdfp-foot-wrap .pdfp-foot.modal-footer {
  padding: 12px 20px;
  justify-content: flex-end;
}
.pdfp-foot-wrap .pdfp-hint {
  font-size: 10px;
  color: var(--muted);
  margin-right: auto;
  flex: 1 1 200px;
  min-width: 0;
}
.pdfp-btns { display: flex; gap: 10px; flex-wrap: wrap; }


/* ==========================================================================
   CONTACT & REPRESENTATION

   Two halves with different jobs.

   THE EDITOR is rows you add to: a label and an address for a website, a
   network, a handle and an address for a social account. The remove button
   sits at the end of its own row rather than in a toolbar, because "which
   one am I deleting" should never be a question.

   THE CARD is right-justified, as asked. A column of links with a straight
   right edge reads as a list of destinations; the same links ragged read as
   a paragraph somebody forgot to finish.
   ========================================================================== */

/* ---- the editor -------------------------------------------------------- */
.cx-editor { display: flex; flex-direction: column; gap: 16px; }

.cx-block {
  background: rgba(0, 0, 0, .2);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 12px 14px;
}
.cx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.cx-add { padding: 3px 9px; font-size: 9px; white-space: nowrap; }

.cx-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 28px;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.cx-row-3 { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.4fr) 28px; }
.cx-row input {
  padding: 8px;
  background: var(--inp-bg);
  border: 1px solid var(--c-border);
  color: var(--inp-text);
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.cx-empty, .cx-hint {
  font-size: 10px;
  color: var(--muted);
  padding: 2px 0;
}
.cx-hint { margin-top: 6px; line-height: 1.5; }

.cx-ea {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.cx-ea .fg { margin-bottom: 0; }

/* The whole block folds away in Add a Speaker. Somebody adding a speaker at
   ten on a Saturday night needs a name and a date; the rest can wait, and
   an eight-field form in the way of that is how people stop using an app. */
.cx-details {
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, .15);
}
.cx-details > summary {
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  list-style: revert;
}
.cx-details > summary span { color: var(--muted); font-weight: 400; }
.cx-details[open] > summary { margin-bottom: 12px; }

/* A phone keeps the rows but stacks the fields, rather than three inputs
   fighting over 90 pixels each. */
@media (max-width: 620px) {
  .cx-row, .cx-row-3 { grid-template-columns: minmax(0, 1fr) 28px; }
  .cx-row > button { grid-row: span 2; }
}

/* ---- the card on the Curate screen -------------------------------------- */
/* 14px, at the owner's word: "way too small". This card is read at arm's
   length off a laptop on a Sunday morning, and it was set two sizes below
   everything around it -- the only part of the Curate screen you had to lean
   in for. The labels and the "nothing on file" line come up with it, because
   a 14px value under a 9px label is not a size, it is a mistake. */
.cxv { text-align: right; font-size: 14px; line-height: 1.6; }
.cxv-group + .cxv-group {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.cxv-head {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold, #c9a84c);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
  text-align: right;
}
.cxv-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
/* The network name is the label, so it sits away from the value it labels. */
.cxv-net {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-right: auto;
  flex: 0 0 auto;
}
.cxv-line a {
  color: var(--cyan);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.cxv-line a:hover { text-decoration: underline; }
.cxv-name { font-weight: 700; color: var(--white, #fff); }
.cxv-none { color: var(--muted); font-size: 13px; text-align: right; line-height: 1.6; }

/* The websites group reads from the left: a web address is a long string the
   eye has to start at the beginning of, and flush right it begins at a
   different place on every line. See js/40-contacts.js for the class. */
.cxv-group-web,
.cxv-group-web .cxv-head,
.cxv-group-web .cxv-line { text-align: left; justify-content: flex-start; }

/* On paper a link is text, so show where it actually goes. */
@media print {
  .cxv-line a { color: #0f172a !important; text-decoration: none !important; }
  .cxv-line a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    color: #64748b;
    word-break: break-all;
  }
}


/* ==========================================================================
   SORTABLE HEADINGS, EVERYWHERE

   The mark is the affordance: ↕ on a column you can sort, ▲ or ▼ on the one
   you are sorted by. Without it a clickable heading looks exactly like a
   heading, and nobody clicks it.

   Deliberately quiet at rest — a table of five columns should not have five
   things competing with the data underneath them.
   ========================================================================== */
th.xp-sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color .15s;
}
th.xp-sortable:hover { color: var(--white, #fff); }
th.xp-sortable:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}
.xp-sort-mark {
  display: inline-block;
  margin-left: 4px;
  font-size: .85em;
  opacity: .35;
  transition: opacity .15s;
}
th.xp-sortable:hover .xp-sort-mark { opacity: .8; }
th.xp-sortable.is-sorted { color: var(--cyan); }
th.xp-sortable.is-sorted .xp-sort-mark { opacity: 1; }

/* On paper the arrow is a smudge, and nobody sorts a printed page. */
@media print {
  .xp-sort-mark { display: none !important; }
}


/* ==========================================================================
   ROLE PERMISSIONS

   A grid: one row per right, one column per role. It reads left to right --
   "editing the note: viewer no, manager no, custodian no, admin yes" -- and
   that is the sentence somebody is trying to check when they open it.

   Locked cells are drawn, not hidden. A missing checkbox raises "where is
   it?"; a locked one with a reason beside it answers the question before it
   is asked.
   ========================================================================== */
.xp-perm-intro {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.xp-perm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.xp-perm-table thead th {
  position: sticky;
  top: 0;
  background: var(--navy2);
  z-index: 3;
  padding: 8px;
  text-align: center;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--cyan);
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  white-space: nowrap;
}
.xp-perm-table th.xp-perm-what { text-align: left; width: 46%; }
.xp-perm-col { min-width: 84px; }

.xp-perm-group td {
  padding: 12px 8px 5px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gold, #c9a84c);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.xp-perm-row td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  vertical-align: top;
}
.xp-perm-row:hover td { background: rgba(255, 255, 255, .03); }
.xp-perm-label { display: block; color: var(--white, #fff); }
.xp-perm-note {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2px;
}
.xp-perm-cell { text-align: center; }

/* The box. Bigger than a default checkbox because this is read at arm's
   length on a tablet, and a 13-pixel tick in a 4-by-19 grid is a squint. */
.xp-perm-box { display: inline-flex; cursor: pointer; }
.xp-perm-box input { width: 17px; height: 17px; cursor: pointer; accent-color: var(--cyan); }
.xp-perm-box.is-locked { cursor: not-allowed; opacity: .5; }
.xp-perm-box.is-locked input { cursor: not-allowed; }
.xp-perm-row.is-fixed td { background: rgba(255, 255, 255, .025); }

.xp-perm-fixed-tag,
.xp-perm-changed-tag {
  display: block;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .3px;
  margin-top: 2px;
  text-transform: uppercase;
}
.xp-perm-fixed-tag { color: var(--muted); }
.xp-perm-changed-tag { color: var(--brand, #c9a84c); }

/* Said once, when it matters, rather than cascading silently. */
.xp-perm-say {
  display: none;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--brand, #c9a84c);
  background: rgba(201, 168, 76, .12);
  border: 1px solid var(--brand, #c9a84c);
  border-radius: 5px;
  padding: 9px 12px;
  margin-bottom: 12px;
}
.xp-perm-say.is-on { display: block; }

.xp-perm-foot-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

/* ---- The role summary on the accounts screen ---------------------------- */
.xp-um-roles {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.xp-um-role-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 10.5px;
}
.xp-um-role-blurb { color: var(--muted); flex: 1 1 200px; min-width: 0; }
.xp-um-role-count,
.xp-um-role-people {
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
}
.xp-um-role-line .xp-perm-changed-tag { display: inline; margin: 0; }

@media (max-width: 680px) {
  .xp-perm-table th.xp-perm-what { width: auto; }
  .xp-perm-note { display: none; }
  .xp-perm-col { min-width: 52px; font-size: 8px; }
}


/* ==========================================================================
   YEAR VIEW  —  TWELVE MONTHS AND A CIRCLE PER ENGAGEMENT

   Drawn by js/44-calyear.js. The point of this screen is shape rather than
   detail: where the year is busy, where it is empty, what is coming. So the
   dates are small, the circles are what the eye lands on, and the detail is
   a hover away rather than crammed into a 26px box.

   The colours are the theme's own tokens, so the year follows every palette
   the app ships with, and they say WHEN rather than who:
     today   the red
     soon    the brand colour, within the week
     later   cyan, still to come
     past    a muted slate, already happened
   ========================================================================== */
.cy-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding: 0 2px 10px 2px;
}
.cy-total { font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: .3px; }
.cy-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.cy-key {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--muted); font-weight: 600;
}

/* auto-fit rather than a fixed twelve-across: the same rule gives four rows
   of three on a laptop, two of six on a wide monitor and one column on a
   phone, without a breakpoint for each. */
.cy-year {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-content: start;
}

.cy-month {
  background: var(--navy2);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 9px 9px 10px 9px;
}
/* A month with nothing in it is still drawn -- an empty August is a fact
   worth seeing -- but it steps back so the busy months come forward. */
.cy-month.is-empty { opacity: .62; }

.cy-month-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 6px;
}
.cy-month-name {
  font-size: 11.5px; font-weight: 800; color: var(--cyan);
  letter-spacing: .6px; text-transform: uppercase;
}
.cy-month-count {
  font-size: 10px; font-weight: 800; color: #000;
  background: var(--brand); border-radius: 10px; padding: 1px 7px;
}
.cy-month-none { font-size: 10px; color: var(--muted); }

.cy-dow, .cy-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cy-dow {
  gap: 2px; margin-bottom: 3px;
}
.cy-dow span {
  text-align: center; font-size: 8.5px; font-weight: 700;
  color: var(--muted); letter-spacing: .3px;
}
.cy-grid { gap: 2px; }
.cy-pad { min-height: 26px; }

.cy-day {
  min-height: 26px;
  border-radius: 4px;
  padding: 2px 0 3px 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(0, 0, 0, .18);
}
.cy-num { font-size: 9px; color: var(--muted); line-height: 1; font-weight: 600; }
.cy-day.has-ev { background: rgba(255, 255, 255, .055); cursor: pointer; }
.cy-day.has-ev .cy-num { color: var(--white); font-weight: 800; }
.cy-day.has-ev:hover,
.cy-day.has-ev:focus-visible {
  background: rgba(255, 255, 255, .13);
  outline: 1px solid var(--brand);
  outline-offset: 0;
}
.cy-day.is-today { outline: 1.5px solid var(--red, #ef4444); }

.cy-dots { display: flex; align-items: center; justify-content: center; gap: 2px; line-height: 0; }
.cy-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
}
.cy-today { background: var(--red, #ef4444); }
.cy-soon  { background: var(--brand); }
.cy-later { background: var(--cyan); }
.cy-past  { background: #64748b; }
.cy-more {
  font-size: 7.5px; font-style: normal; font-weight: 800;
  color: var(--brand); line-height: 1; margin-left: 1px;
}

/* On a phone the year is one column and the boxes can afford to breathe. */
@media (max-width: 560px) {
  .cy-year { grid-template-columns: 1fr; }
  .cy-day, .cy-pad { min-height: 34px; }
  .cy-num { font-size: 11px; }
  .cy-dot { width: 7px; height: 7px; }
}


/* ==========================================================================
   THE HOVER SUMMARY  —  ONE CARD, EVERY CALENDAR VIEW

   Appended to <body> rather than to a cell, so it is never clipped by a
   scrolling month grid and never inherits a cell's colours. pointer-events
   are off: the card must never sit between the pointer and the date it is
   describing, or hovering a date would immediately un-hover it.
   ========================================================================== */
.cal-hover-card {
  position: fixed;
  z-index: 10500;
  pointer-events: none;
  max-width: 320px;
  max-height: 70vh;
  overflow: hidden;
  background: var(--navy2, #0f172a);
  border: 1.5px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .65);
  padding: 10px 12px;
  font-size: 11px;
  color: var(--white, #fff);
  line-height: 1.35;
}
.chc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid var(--c-border); padding-bottom: 6px; margin-bottom: 7px;
}
.chc-date { font-size: 12px; font-weight: 800; color: var(--brand); }
.chc-when {
  font-size: 8.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 10px; color: #000;
}
.chc-today { background: var(--red, #ef4444); color: #fff; }
.chc-soon  { background: var(--brand); }
.chc-later { background: var(--cyan); }
.chc-past  { background: #64748b; color: #fff; }

.chc-none { color: var(--muted); font-style: italic; }
.chc-ev + .chc-ev {
  border-top: 1px dashed var(--c-border); margin-top: 8px; padding-top: 8px;
}
.chc-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chc-time { font-family: monospace; font-size: 10.5px; font-weight: 800; color: var(--cyan); }
.chc-pill {
  font-size: 8px; font-weight: 800; padding: 1px 5px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .3px;
}
.chc-arch { background: rgba(100, 116, 139, .3); color: #cbd5e1; }
.chc-lock { background: rgba(201, 168, 76, .2); color: var(--brand); }
.chc-rec  { background: rgba(0, 180, 216, .18); color: var(--cyan); }
.chc-speaker { font-size: 12.5px; font-weight: 800; color: #fff; margin-top: 3px; }
.chc-org, .chc-venue { font-size: 10px; color: var(--muted); }
.chc-event { font-size: 10.5px; color: #cbd5e1; margin-top: 1px; }
.chc-title { font-size: 11px; color: var(--brand); font-weight: 700; margin-top: 2px; }
.chc-scripture { font-size: 10px; color: var(--cyan); }
.chc-foot {
  margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--c-border);
  font-size: 9px; color: var(--muted); font-style: italic; text-align: center;
}

/* A hover card is a pointer idea. On a touch screen there is no pointer,
   the tap opens the event directly, and a card that appeared under a finger
   would only be in the way. */
@media (hover: none) {
  .cal-hover-card { display: none !important; }
}


/* ==========================================================================
   ARRIVING ON THE DASHBOARD

   Three seconds of fade at the top before the page glides down to the first
   speaker outside the pinned families. The JavaScript in js/19-feed.js puts
   .dash-arrive-fade on for exactly those three seconds and takes it off
   before it starts moving, so the fade and the scroll never overlap.

   The fade is on opacity alone. Anything that moved -- a slide, a zoom --
   would be a second motion on top of the scroll that follows it, and the
   whole point of the pause is that nothing is moving yet.
   ========================================================================== */
@keyframes dashArriveFade {
  from { opacity: 0; }
  60%  { opacity: 1; }
  to   { opacity: 1; }
}
.dash-arrive-fade {
  animation: dashArriveFade 3s ease-out both;
}

/* WHERE IT LANDED. A ring that fades up and away, so the card the page
   chose is obvious for a moment and then stops asking for attention. */
@keyframes feedArrived {
  0%   { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
  25%  { box-shadow: 0 0 0 3px rgba(201, 168, 76, .85); }
  70%  { box-shadow: 0 0 0 3px rgba(201, 168, 76, .55); }
  100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
}
.feed-item.feed-arrived {
  animation: feedArrived 2.4s ease-out both;
  border-color: var(--brand);
}

/* A setting about being made unwell by movement, not a preference about
   polish. The JavaScript already skips the glide; this makes sure no part
   of the arrival animates either. */
@media (prefers-reduced-motion: reduce) {
  .dash-arrive-fade,
  .feed-item.feed-arrived { animation: none !important; }
}


/* ==========================================================================
   SPEAKER'S CURATED RESOURCES  —  ROOM TO BREATHE

   WHAT WAS WRONG

   The asset cards sat in a grid whose columns could shrink to 120px, and
   inside each card VIEW and DOWNLOAD were two `flex: 1` boxes sharing that
   width. Fifty-odd pixels each — and the word DOWNLOAD, bold, is wider than
   that. A flex item does not stop at its content, so the second button
   simply ran over the first. That is the overlap: not a positioning bug, a
   column that was never wide enough for the words in it.

   WHAT IT DOES NOW

   1. The columns start at 150px rather than 120px, which is the width the
      two words actually need side by side.
   2. Each button asks for the room its own word takes (`flex: 1 1 auto`
      with a min-width), and the row is allowed to WRAP. So when a card is
      genuinely narrow the buttons go one above the other — stacked and
      readable — instead of on top of one another.
   3. Everything the cards used to carry as inline style is here instead,
      which is why the markup in js/11-render.js got shorter rather than
      longer. The hover is a CSS hover now as well, so it cannot be left
      stuck on by a redraw that happens mid-mouse-over.
   ========================================================================== */
.cur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
.cur-grid-more { margin-top: 8px; }

.cur-card {
  background: rgba(15, 23, 42, .65);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 4px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  transition: border-color .15s, background .15s;
}
.cur-card:hover {
  border-color: var(--cyan);
  background: rgba(30, 41, 59, .8);
}

.cur-btns {
  display: flex;
  flex-wrap: wrap;          /* the whole point: they stack, they never stack ON each other */
  gap: 5px;
  width: 100%;
  min-width: 0;
}
.cur-btn {
  flex: 1 1 auto;
  min-width: 62px;          /* DOWNLOAD, bold, at this size */
  padding: 4px 6px;
  font-size: 8.5px;
  min-height: 24px;
  text-decoration: none;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  letter-spacing: .3px;
  white-space: nowrap;
}
.cur-btn-view { border-color: var(--cyan); color: var(--cyan); }
.cur-btn-dl   { background: var(--brand); color: #000; }

.cur-nolink {
  font-size: 8.5px;
  color: var(--muted);
  text-align: center;
  width: 100%;
  padding: 4px 0;
}

/* The left-hand dossier column was a fixed 210px, which is where the squeeze
   started: everything else had to fit in what was left. It is a range now,
   so on a narrow workspace the dossier gives ground to the assets instead of
   the assets giving ground to the buttons. */
.admin-subcontent-grid {
  grid-template-columns: minmax(196px, 232px) 1fr;
}
@media (max-width: 900px) {
  .admin-subcontent-grid { grid-template-columns: 1fr; }
  .cur-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}


/* ==========================================================================
   THE TELEPROMPTER IS WIDER THAN AN ORDINARY DIALOG

   Reading aloud from a narrow column of 38px type means a line break every
   four words, which is exactly where a reader stumbles. The reader gets most
   of the window — but capped, because a single line of text stretched across
   a wide monitor is just as hard to follow, for the opposite reason.
   ========================================================================== */
#mo.tp-mode .modal-box {
  width: 92vw !important;
  max-width: 1500px !important;
}


/* ==========================================================================
   THE EVENT TYPE PICKER

   A text box with a datalist, plus six chips for the types that ship. The
   chips are there because six taps is faster than six letters, and the box
   is there because the seventh type has to be possible without asking
   anybody. See js/45-eventtypes.js for why it is not a <select>.
   ========================================================================== */
.xp-et-fg label { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.xp-et-hint {
  font-size: 9px; font-weight: 500; color: var(--muted);
  text-transform: none; letter-spacing: 0;
}
.xp-et-input { width: 100%; }
.xp-et-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.xp-et-chip {
  font-size: 10px; font-weight: 700; padding: 5px 10px; border-radius: 13px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--c-border);
  color: var(--white);
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.xp-et-chip:hover { border-color: var(--cyan); color: var(--cyan); }
.xp-et-chip.is-on {
  background: var(--brand); border-color: var(--brand); color: #000;
}


/* ==========================================================================
   THE DASHBOARD, IN SECTIONS

   Two columns of sections on a wide screen, one on a narrow one. Inside each
   section the cards sit two across, so four of them fill the visible area
   before the section starts to scroll — which is the rule: no scrollbar
   appears until there is genuinely something below the fold.

   The heights are in card-units rather than pixels so that changing the card
   never leaves a section showing three and a half of them.
   ========================================================================== */
/* TWO COLUMNS THAT PACK, RATHER THAN TWO COLUMNS OF ROWS.

   This was a two-column GRID, and a grid lays out in rows: the first and
   third sections went in the left column, the second and fourth in the
   right, and every row was as tall as the taller of its two sections. A
   short section on the right sat above a band of empty navy as deep as
   whatever happened to be beside it on the left, and the next section down
   that column could not start until the row ended. Four event types made
   the right-hand column look like it had been pushed apart on purpose.

   Multi-column packs instead: each section is as tall as its own contents
   and the next one starts directly underneath. The rule down the middle
   comes free with it (column-rule), which also removes the absolutely
   positioned line that had to be nudged by hand every time the gap changed.

   break-inside: avoid keeps a section whole -- a heading at the foot of one
   column with its cards at the head of the other is worse than any gap. */
.dash-sections {
  /* ONE PLACE FOR THE TWO MEASUREMENTS THE PAGE IS BUILT ON.

     --dash-card-gap is the space between two cards inside a section.
     --dash-gutter is the space between the lead block and the rail beside
     it, with the dividing rule drawn down the middle of it.

     They are tokens because the wide layout in css/10-responsive.css has to
     do arithmetic with both of them to make a card in the rail exactly the
     same width as a card in the lead block. A number typed twice is a
     number that goes out of step, and when these two go out of step the
     cards on one side of the page come out wider than the cards on the
     other, which is what "aligned proportionately" was about. */
  --dash-card-gap: 12px;
  --dash-gutter: 24px;

  display: block;
  column-count: 2;
  column-gap: 36px;
  column-rule: 1px solid rgba(0, 180, 216, .45);
  width: 100%;
}

/* THE RAIL IS NOT A BOX UNTIL IT HAS TO BE.

   `display: contents` makes this wrapper vanish from the layout, so every
   section inside it is laid out as though it were a direct child of
   .dash-sections -- which is what every narrow-screen rule here already
   expects. The wide layout turns it into a real column; nothing else has to
   know it exists. */
.dash-rail { display: contents; }
/* Descendant, not child: a section inside the rail is one level deeper and
   needs the same treatment. */
.dash-sections .dash-sec {
  break-inside: avoid;
  page-break-inside: avoid;   /* older engines */
  margin: 0 0 20px;
}
.dash-sections .dash-sec:last-child { margin-bottom: 0; }
.dash-rail > .dash-sec:last-child { margin-bottom: 0; }

/* A LONE SECTION TAKES THE WHOLE WIDTH.
   Before any event types are set, every card lands in one section, and the
   two-column shape left half the page empty with a rule down the middle of
   nothing. One section, one column, no rule. */
.dash-sections.is-single { column-count: 1; column-rule: none; }
.dash-sections.is-single .dash-sec-body { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .dash-sections.is-single .dash-sec-body { grid-template-columns: 1fr 1fr; }
}

.dash-sec { min-width: 0; }
.dash-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
  border-bottom: 1.5px solid var(--c-border); padding-bottom: 6px;
}
.dash-sec-title {
  margin: 0; font-size: 15px; font-weight: 800; color: var(--white);
  letter-spacing: .3px; text-decoration: underline;
  text-underline-offset: 4px; text-decoration-color: var(--c-border);
}
.dash-sec-count {
  font-size: 10px; font-weight: 900; color: #000; background: var(--brand);
  border-radius: 10px; padding: 2px 8px; flex: 0 0 auto;
}

/* THE CARDS STAY A GRID, AND HERE IS WHY.

   They were tried as multi-column too, for the same packing reason the
   sections got it -- and it broke the one rule this section has: ten cards
   visible, then a scrollbar. A multi-column box with a height does not run
   out of room downwards, it makes another column sideways, so every card
   stayed visible and the scroller never appeared. The measured cut in
   js/46-dashsections.js had nothing to bite on.

   So: grid, with align-items: start so no card is inflated to match its
   neighbour. A tall card still leaves a gap beside it; a gap is better than
   a scroller that does not work. */
.dash-sec-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--dash-card-gap, 12px);
  align-content: start;
  /* A CARD IS AS TALL AS WHAT IS ON IT.

     Grid stretches every cell to the tallest in its row by default, so one
     speaker with five dates on it pulled the card beside it to the same
     height — and that card then held a block of empty navy under its last
     line. Down the right-hand column, where the longer records happened to
     land, every second card was padded out with nothing, which is what
     "too spaced out" was. Each card keeps its own height now; the row is as
     tall as it needs to be and no card is inflated to match its neighbour. */
  align-items: start;
}
.dash-sec-more {
  font-size: 9.5px; color: var(--muted); text-align: right;
  margin-top: 5px; font-style: italic;
}

/* THE WAY TO THE REST OF THE SECTION.

   A section shows four speakers and sends the rest to View All, so the line
   that says there are more is also the thing that opens them -- a real
   button rather than a sentence, because an italic note that happens to be
   clickable is a note nobody clicks.

   Full width and quiet until it is pointed at: it has to be findable without
   competing with the cards above it, which are the actual content. */
button.dash-sec-more-btn {
  display: block; width: 100%;
  font-family: var(--font);
  font-style: normal; font-weight: bold;
  text-align: center; letter-spacing: 0.2px;
  padding: 6px 10px; margin-top: 6px;
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent);
  border-radius: 5px; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
button.dash-sec-more-btn:hover,
button.dash-sec-more-btn:focus-visible {
  background: color-mix(in srgb, var(--cyan) 18%, transparent);
  border-color: var(--cyan);
}

.dash-sections .feed-item { margin-bottom: 0; }
.feed-name {
  color: var(--cyan); font-size: 12px; font-weight: bold; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feed-pills { margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; }

/* AN ORANGE DATE IS A RE-SHOOT. Said with the colour AND the underline, so
   it is not colour alone doing the work. */
.feed-date-pill.is-reshoot {
  color: var(--brand) !important;
  border-color: var(--brand) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- what the borders mean --------------------------------------------- */
/* Orange: the next one to happen in this section. */
.feed-item.is-next-card {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 1px var(--brand), 0 4px 16px rgba(201, 168, 76, .18);
}
/* Red, breathing: it is happening now. The card is the only thing on the
   page that moves, so a glance across the room finds it. */
@keyframes dashLivePulse {
  0%, 100% { border-color: rgba(239, 68, 68, .45);
             box-shadow: 0 0 0 1px rgba(239, 68, 68, .25); }
  50%      { border-color: rgba(239, 68, 68, 1);
             box-shadow: 0 0 0 2px rgba(239, 68, 68, .6), 0 0 22px rgba(239, 68, 68, .35); }
}
.feed-item.is-live-card {
  border-color: var(--red, #ef4444) !important;
  animation: dashLivePulse 2.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .feed-item.is-live-card { animation: none; border-color: var(--red, #ef4444) !important; }
}

/* One column of sections, and one card across, once there is not room for
   two of either. */
@media (max-width: 1100px) {
  .dash-sections { column-count: 1; column-rule: none; }
  .dash-sec + .dash-sec { border-top: 1px solid var(--c-border); padding-top: 16px; }
  /* The first section in the rail follows the lead block on screen but is
     not its DOM sibling, so `+` cannot reach it. Named directly, or it is
     the one join in the stack with no line across it. */
  .dash-rail > .dash-sec:first-child {
    border-top: 1px solid var(--c-border); padding-top: 16px;
  }
}
@media (max-width: 640px) {
  .dash-sec-body { grid-template-columns: 1fr; }
}


/* ---- The Trash screen --------------------------------------------------- */
.tr-wrap { display: flex; flex-direction: column; gap: 12px; }
.tr-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(239, 68, 68, .08);
  border: 1.5px solid rgba(239, 68, 68, .35);
  border-radius: 6px; padding: 10px 12px;
  font-size: 11px; line-height: 1.45; color: #cbd5e1;
}
.tr-note span { font-size: 17px; }
.tr-head {
  font-size: 10px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--cyan); margin: 10px 0 4px; padding-bottom: 4px;
  border-bottom: 1px solid var(--c-border);
}
.tr-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--navy2); border: 1px solid var(--c-border);
  border-radius: 6px; padding: 9px 11px; margin-bottom: 7px;
}
.tr-face { flex: 0 0 auto; line-height: 0; }
.tr-face .speaker-portrait {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--c-border); box-shadow: none; filter: saturate(.6);
}
.tr-card-text { flex: 1; min-width: 0; }
.tr-name { font-size: 12.5px; font-weight: 800; color: #fff; }
.tr-sub  { font-size: 10.5px; color: var(--gold); margin-top: 1px; }
.tr-meta { font-size: 10px; color: var(--muted); margin-top: 2px; }
.tr-restore {
  flex: 0 0 auto; padding: 5px 10px; font-size: 10px;
  border-color: var(--green); color: var(--green);
}
.tr-empty {
  text-align: center; padding: 34px 12px; color: var(--muted); font-size: 11.5px;
  line-height: 1.6;
}
.tr-empty-icon { font-size: 30px; margin-bottom: 8px; }

/* ---- Speaker Deletion Management: the parts added in v3.41.0 -----------

   A search box, a filter, a working-days-left pill per row, and a second
   button that lets one row go without emptying the whole bin. The pill is
   the point of the screen: "how long have I got" is the question anybody
   opening a bin is actually asking. */
.tr-controls {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.tr-search {
  flex: 1 1 260px; min-width: 180px;
  background: var(--inp-bg); border: 1px solid var(--c-border); color: #fff;
  border-radius: 6px; padding: 8px 11px; font-size: 11.5px;
}
.tr-select {
  background: var(--inp-bg); border: 1px solid var(--c-border); color: #fff;
  border-radius: 6px; padding: 8px 10px; font-size: 11.5px;
}
.tr-count { font-size: 10px; color: var(--muted); margin-left: auto; }

.tr-life {
  flex: 0 0 auto; font-size: 9.5px; font-weight: 800; letter-spacing: .3px;
  color: var(--cyan); background: rgba(0, 180, 216, .10);
  border: 1px solid rgba(0, 180, 216, .35);
  border-radius: 999px; padding: 4px 9px; white-space: nowrap;
}
.tr-life.is-urgent {
  color: #f59e0b; background: rgba(245, 158, 11, .12);
  border-color: rgba(245, 158, 11, .45);
}
.tr-card.is-urgent { border-color: rgba(245, 158, 11, .45); }

.tr-acts { flex: 0 0 auto; display: flex; gap: 6px; align-items: center; }
.tr-purge {
  padding: 5px 10px; font-size: 10px;
}
.tr-noright { font-size: 9.5px; color: var(--muted); font-style: italic; }


/* ---- Speakers put away, at the top of the Archive Room ------------------ */
.ar-people { margin-bottom: 14px; }
.ar-people-head {
  font-size: 10px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--cyan); padding-bottom: 4px; margin-bottom: 7px;
  border-bottom: 1px solid var(--c-border);
}
.ar-person {
  display: flex; align-items: center; gap: 12px;
  background: var(--navy2); border: 1px solid var(--c-border);
  border-radius: 6px; padding: 9px 11px; margin-bottom: 7px;
}
.ar-person-face { flex: 0 0 auto; line-height: 0; }
.ar-person-face .speaker-portrait {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--c-border); box-shadow: none; filter: saturate(.75);
}
.ar-person-text { flex: 1; min-width: 0; }
.ar-person-name { font-size: 12.5px; font-weight: 800; color: #fff; }
.ar-person-sub  { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.ar-person-meta { font-size: 10px; color: var(--gold); margin-top: 2px; }
.ar-person-btn {
  flex: 0 0 auto; padding: 5px 10px; font-size: 10px;
  border-color: var(--green); color: var(--green);
}
/* No ring, no figure, anywhere on this screen. */
.ar-person .xp-pring-svg, .ar-person .xp-pring-pct { display: none !important; }

/* ==========================================================================
   DROPPING A CARD INTO ANOTHER KIND OF EVENT

   A card dragged out of one section and into another is retyped rather than
   reordered, so the section being aimed at has to say so while the card is
   in the air. The whole section lights, not the card underneath it, because
   the card underneath is not what is being aimed at — the section is.
   ========================================================================== */
.dash-sec.is-drop-target {
  outline: 2px dashed var(--brand);
  outline-offset: 6px;
  border-radius: 8px;
  background: rgba(201, 168, 76, .07);
}
.dash-sec.is-drop-target .dash-sec-title { color: var(--brand); }
.dash-sec.is-drop-target .dash-sec-head::after {
  content: "drop to file it here";
  font-size: 10px; font-weight: 700; letter-spacing: .4px;
  color: var(--brand); text-transform: uppercase; opacity: .9;
}

/* ==========================================================================
   WIDER THAN THE STANDARD DIALOG

   The shared box is 850px, which is right for a form and too narrow for a
   table. Two screens ask for 200px more: All Appearances (seven columns of
   dates, titles and scripture) and User Management (accounts beside a
   summary of the four roles). The class is put on the overlay by whichever
   screen wants it and cleared by oMod() on the next open, so nothing
   inherits somebody else's width.
   ========================================================================== */
#mo.mo-w1050 .modal-box { width: 1050px; }
#mo.mo-w1150 .modal-box { width: 1150px; }
#mo.mo-w1250 .modal-box { width: 1250px; }
/* User Management borrows the wide theatre box and then asks for 200px more,
   because it prints a table of accounts beside a summary of the four roles. */
#mo.help-modal-mode.mo-um-wide .modal-box { width: 1740px !important; }

/* ==========================================================================
   THE 12-HOUR CLOCK CONTROL

   Three lists that read the same way on every machine, because none of it is
   borrowed from the machine. See js/51-time12.js for why the browser's own
   time box could never have been made to obey.
   ========================================================================== */
.xp-t12 { display: inline-flex; align-items: center; gap: 4px; width: 100%; }
.xp-t12 select {
  background: var(--inp-bg); border: 1px solid var(--c-border); color: #fff;
  border-radius: 4px; padding: 9px 6px; font-size: 12px; font-weight: 600;
  cursor: pointer; min-height: 38px;
}
.xp-t12-h  { flex: 0 0 62px; text-align: center; }
.xp-t12-m  { flex: 0 0 62px; text-align: center; }
.xp-t12-ap { flex: 0 0 72px; text-align: center; }
.xp-t12-sep { color: var(--muted); font-weight: 800; }
.xp-t12 select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }

/* A dropdown that can be added to. The last two entries — a rule and
   "+ Add a new one…" — are a door rather than a value, so they are set
   apart from the answers above them. */
.xp-picklist {
  width: 100%;
  background: var(--inp-bg); border: 1px solid var(--c-border); color: #fff;
  border-radius: 4px; padding: 9px 10px; font-size: 12px; cursor: pointer;
  min-height: 38px;
}
.xp-picklist option[value="__xp_add__"] { color: var(--brand); font-weight: 700; }
.xp-picklist option[disabled] { color: var(--c-border); }

/* ==========================================================================
   ANALYTICS & HISTORY AS A HUB

   The same shape as the Help screen — a list down the left, the screen on
   the right — because nine sections do not fit across a strip any more than
   seventeen walkthroughs did. The nav styles are shared with Help
   (css/06-tutorial.css); what is here is only what this screen adds.
   ========================================================================== */
.hub-layout { height: 100%; align-items: stretch; }
.hub-nav { max-height: none; }
.hub-stage-wrap { display: flex; flex-direction: column; min-height: 0; }
#hub-stage { flex: 1; min-height: 0; }

.hub-adopted-foot {
  display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--c-border);
}
.hub-empty {
  text-align: center; padding: 40px 16px; color: var(--muted); font-size: 12px;
}

.hub-controls, .eq-controls, .ps-controls {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px;
}
.hub-search, .eq-search, .ps-search {
  flex: 1 1 240px; min-width: 170px;
  background: var(--inp-bg); border: 1px solid var(--c-border); color: #fff;
  border-radius: 6px; padding: 8px 11px; font-size: 11.5px;
}
.hub-select, .ps-select {
  background: var(--inp-bg); border: 1px solid var(--c-border); color: #fff;
  border-radius: 6px; padding: 8px 10px; font-size: 11.5px;
}
.hub-count, .eq-count, .ps-count {
  font-size: 10px; color: var(--muted); margin-left: auto;
}
.hub-btn { padding: 7px 12px; font-size: 10px; }

/* ---- the roster pane ---------------------------------------------------- */
.hub-table { width: 100%; }
.hub-table th { font-size: 9.5px; letter-spacing: .6px; }
.hub-th-pic { width: 46px; }
.hub-th-n { width: 92px; text-align: center; }
.hub-td-pic { width: 46px; }
.hub-td-pic .speaker-portrait {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--c-border);
}
.hub-row { cursor: pointer; }
.hub-row:hover { background: rgba(255, 255, 255, .04); }
.hub-name { font-weight: 700; color: var(--cyan); }
.hub-n { text-align: center; font-variant-numeric: tabular-nums; }
.hub-none { color: var(--c-border); }
/* NOT display:flex. This is a <td>, and a table cell told to be a flex box
   stops being a table cell -- it leaves the row, so its pills drifted down
   the table and pulled the portraits out of step with the names beside them.
   Inline pills wrap just as well and the cell stays in its row. */
.hub-kinds { line-height: 1.9; }
.hub-kind {
  display: inline-block; margin: 1px 4px 1px 0;
  font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgba(0, 180, 216, .10); border: 1px solid rgba(0, 180, 216, .3);
  color: var(--cyan); white-space: nowrap;
}

/* ==========================================================================
   THE EQUIPMENT ROSTER
   ========================================================================== */
.eq-wrap { display: flex; flex-direction: column; gap: 12px; }
.eq-note, .ps-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(0, 180, 216, .07);
  border: 1.5px solid rgba(0, 180, 216, .3);
  border-radius: 6px; padding: 10px 12px;
  font-size: 11px; line-height: 1.45; color: #cbd5e1;
}
.eq-note span, .ps-note span { font-size: 17px; }
.eq-table { width: 100%; }
.eq-th-pic { width: 54px; }
.eq-th-qty { width: 64px; text-align: center; }
.eq-th-act { width: 150px; }
.eq-td-pic { width: 54px; }
.eq-pic {
  width: 42px; height: 42px; border-radius: 5px; object-fit: cover;
  border: 1px solid var(--c-border); display: block;
}
.eq-pic-none {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .04); font-size: 18px;
}
.eq-item { font-weight: 700; color: #fff; }
.eq-qty { text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.eq-status-sel { min-width: 130px; max-width: 190px; }
.eq-table td:nth-child(4) { width: 200px; }
/* Same trap as .hub-kinds above: this is a <td>, so it stays a table cell
   and its two buttons sit inline inside it. */
.eq-td-act { white-space: nowrap; }
.eq-td-act .eq-btn + .eq-btn { margin-left: 6px; }
.eq-btn { padding: 5px 9px; font-size: 10px; }
.eq-empty, .ps-empty {
  text-align: center; padding: 34px 12px; color: var(--muted);
  font-size: 11.5px; line-height: 1.6;
}
.eq-empty-icon, .ps-empty-icon { font-size: 30px; margin-bottom: 8px; }

.eq-edit { display: flex; flex-direction: column; gap: 12px; }
.eq-edit-row { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; }
.eq-pic-row { display: flex; gap: 8px; align-items: center; }
.eq-pic-row input { flex: 1; }
.eq-pic-preview { margin-top: 10px; }
.eq-pic-preview img {
  max-width: 220px; max-height: 150px; border-radius: 6px;
  border: 1px solid var(--c-border); display: block;
}
.eq-pic-say {
  font-size: 10.5px; color: var(--muted); margin-top: 7px; line-height: 1.5;
}
.eq-pic-say code {
  background: rgba(0, 0, 0, .35); padding: 1px 5px; border-radius: 3px;
  color: var(--cyan);
}

/* ==========================================================================
   POPULAR SCRIPTURE

   The count is a figure, and only a figure. There was a bar under it once,
   scaled against the most-used passage; the rules for it are gone with the
   markup in js/54-scripture.js, because the table is already sorted by that
   count and the bar only drew the order of the rows a second time.
   ========================================================================== */
.ps-wrap { display: flex; flex-direction: column; gap: 12px; }
.ps-table { width: 100%; }
.ps-th-n { width: 110px; }
.ps-th-when { width: 110px; }
.ps-n { vertical-align: middle; text-align: center; }
.ps-n-fig {
  display: block; font-size: 18px; font-weight: 900; color: var(--brand);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.ps-key {
  vertical-align: middle; font-weight: 800; color: #fff; font-size: 13px;
}
.ps-first td { border-top: 1px solid var(--c-border); }
.ps-cont .ps-speaker { padding-left: 4px; }
.ps-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--cyan); font-size: 11.5px; font-weight: 600; text-align: left;
  font-family: inherit;
}
.ps-link:hover { text-decoration: underline; }
.ps-title { font-size: 11.5px; }
.ps-none { color: var(--c-border); }
.ps-when { font-size: 11px; color: var(--muted); white-space: nowrap; }
/* The line at the top of the note's Equipment section, pointing at the
   roster the Item box is drawing from. */
.eq-mod-note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(0, 180, 216, .07);
  border: 1px solid rgba(0, 180, 216, .3);
  border-radius: 6px; padding: 9px 12px; margin-bottom: 12px;
  font-size: 11px; color: #cbd5e1; line-height: 1.45;
}
.eq-mod-btn { margin-left: auto; padding: 5px 10px; font-size: 10px; white-space: nowrap; }

/* ==========================================================================
   THE SPEAKER'S FACE ON A CALENDAR PILL

   Same ring as the Dashboard, pinned to this pill's own appearance. It sits
   to the right of the words and takes a fixed width, so a long message title
   shortens itself with an ellipsis rather than squeezing the face.
   ========================================================================== */
.cal-pill-row { display: flex; align-items: center; gap: 7px; }
.cal-pill-main { flex: 1 1 auto; min-width: 0; }
.cal-pill-face { flex: 0 0 auto; line-height: 0; }
/* The percentage reads over the portrait, and on a gold pill the muted grey
   it inherits elsewhere is unreadable -- give it the pill's own dark ink. */
.cal-pill-face .xp-pring-pct { background: rgba(0, 0, 0, .72); }

@media (max-width: 760px), (max-height: 500px) {
  /* A month on a phone has seven columns of about forty pixels. A face does
     not fit beside the words there, and the words are what matter. */
  .cal-pill-face { display: none; }
}


/* ==========================================================================
   BACKUP & RESTORE  —  the one screen that used to be two Options rows
   See js/66-backuproom.js. Export on the left, Restore on the right, and
   the figures for what is actually in the database across the top, so the
   backup is not something you have to take on trust.
   ========================================================================== */
.br-wrap { padding: 2px; }

.br-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.br-stat {
  background: var(--navy2);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
}
.br-stat-n {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
  white-space: nowrap;
}
.br-stat-l {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-top: 3px;
}
.br-saved {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 14px;
}

.br-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.br-card {
  background: var(--navy);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.br-export  { border-left: 4px solid var(--brand); }
.br-restore { border-left: 4px solid var(--red); }

.br-head { display: flex; gap: 12px; align-items: flex-start; }
.br-ic {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--c-border);
  border-radius: 8px;
}
.br-head h3 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--white);
}
.br-head p { margin: 3px 0 0; font-size: 11px; color: var(--muted); line-height: 1.4; }

.br-points { margin: 0; padding-left: 18px; font-size: 11px; color: #cbd5e1; line-height: 1.6; }
.br-points li { margin-bottom: 2px; }

.br-warn {
  background: rgba(239, 68, 68, .12);
  border: 1px solid rgba(239, 68, 68, .45);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #fecaca;
}
.br-warn strong { color: #fff; }

.br-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #e2e8f0;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}
.br-agree input { margin-top: 1px; flex-shrink: 0; }

.br-go { width: 100%; font-weight: bold; padding: 10px 12px; }
.br-go:disabled { opacity: .45; cursor: not-allowed; }

.br-foot { font-size: 9.5px; color: var(--muted); line-height: 1.45; }

.br-locked-msg {
  background: rgba(148, 163, 184, .12);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

/* On a phone the two halves stack, and the five figures go to two rows --
   five across a 390px screen is five numbers nobody can read. */
@media (max-width: 760px) {
  .br-cols { grid-template-columns: 1fr; }
  .br-stats { grid-template-columns: repeat(2, 1fr); }
}


/* ==========================================================================
   THE CALENDAR DAY VIEW ▸ ASSIGNED PRODUCTION CREW
   --------------------------------------------------------------------------
   The same bones as 📌 Speaker's Record ▸ 📅 Appearances, which is what was
   asked for: a rounded card, a heading row in small cyan capitals, thin
   separators, gold for the column you scan by.

   Nothing here makes the headings sort. js/41-sorttables.js sorts the rows
   of any table on the page and wires this one up when it is drawn, which is
   why there is no click handler and no sort state in the calendar code.
   ========================================================================== */
.cdc-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin: 2px 0 6px;
}
.cdc-title {
  font-size: 11px; font-weight: 800; color: var(--white);
  text-transform: uppercase; letter-spacing: .6px;
}
.cdc-count { font-size: 10px; color: var(--muted); white-space: nowrap; }

.cdc-wrap {
  background: var(--navy); border: 1px solid var(--c-border);
  border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.cdc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cdc-table { width: 100%; text-align: left; border-collapse: collapse; font-size: 11px; }

.cdc-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--navy2); color: var(--cyan);
  font-size: 9px; text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  padding: 7px 8px; white-space: nowrap;
}
.cdc-tr { border-bottom: 1px solid rgba(255, 255, 255, .05); }
.cdc-tr:last-child { border-bottom: none; }
.cdc-tr td { padding: 6px 8px; vertical-align: top; }

.cdc-num  { color: var(--muted); font-family: monospace; }
.cdc-dept { color: var(--gold); font-weight: bold; white-space: nowrap; }
.cdc-name { color: var(--white); font-weight: 500; }
.cdc-role { color: var(--cyan); }
.cdc-call { font-family: monospace; color: #cbd5e1; white-space: nowrap; }
.cdc-dim  { color: var(--muted); }

/* A call time inherited from the service rather than given to the person.

   The words "(service call)" are in the MARKUP, not in a ::after here, and
   that is deliberate: generated content cannot be copied, does not reliably
   reach a screen reader, and does not always survive the print path. It is
   information -- the difference between a time somebody was given and a time
   they inherited -- so it belongs in the page. */
.cdc-inherit { color: var(--muted); }
.cdc-inherit-note { font-size: 8.5px; opacity: .75; }

/* The department head reads first and says so. */
.cdc-key {
  font-size: 8px; font-weight: 900; color: #000; background: var(--brand);
  border-radius: 3px; padding: 1px 4px; vertical-align: 1px;
}

/* Somebody who is not covering the service is quieter, not hidden -- the gap
   is the thing you most need to see on the morning. */
.cdc-tr.cdc-missing .cdc-name,
.cdc-tr.cdc-excused .cdc-name { color: var(--muted); text-decoration: line-through; }

.cdc-pill {
  display: inline-block; font-size: 9px; font-weight: bold;
  padding: 2px 7px; border-radius: 3px; white-space: nowrap;
}
.cdc-pill-covered { background: rgba(34, 197, 94, .18); color: #86efac; }
.cdc-pill-missing { background: rgba(239, 68, 68, .18); color: #fca5a5; }
.cdc-pill-excused { background: rgba(148, 163, 184, .18); color: var(--muted); }

.cdc-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 14px; color: var(--muted); font-size: 11px; text-align: center;
  border-style: dashed;
}
.cdc-empty > :first-child { font-size: 22px; }

@media print {
  .cdc-table thead th { position: static; }
  .cdc-scroll { overflow: visible !important; }
}

/* ==========================================================================
   HOW WIDE THE NOTES AND COVER COLUMN IS

   There used to be a great deal more here: fixed pixel widths for columns one
   and two, a floor under column three, a stacked arrangement that put the
   notes and cover underneath. All of it was removed, because all of it was
   solving a problem that did not exist.

   The shipped layout is `3.8fr 3.8fr 2.4fr`. Columns one and two were ALREADY
   equal to each other and ALREADY divided whatever was left. Pinning them to
   a pixel width made them narrower, not wider, and the !important needed to
   do it also broke folding the notes away.

   What is left is one line: the third column's share, when it has been
   changed from the 2.4 the app ships with. Everything else is the app's own.
   ========================================================================== */
body.ac-col3-share .document-grid{
  grid-template-columns: 3.8fr 3.8fr var(--ac-col3-share, 2.4fr) !important;
}

/* ---------- Alert & Cover Management ---------- */
.ac-wrap{ display:flex; flex-direction:column; gap:2px; }
.ac-sec{
  font-size:12px; font-weight:800; letter-spacing:.6px; text-transform:uppercase;
  color:var(--muted); margin:16px 0 6px 0; padding-bottom:5px;
  border-bottom:1px solid var(--line, rgba(148,163,184,.25));
}
.ac-sec:first-child{ margin-top:0; }
.ac-row{
  display:flex; gap:18px; align-items:flex-start; justify-content:space-between;
  padding:9px 0; border-bottom:1px solid rgba(148,163,184,.12);
}
.ac-row:last-child{ border-bottom:0; }
.ac-row-t{ min-width:0; flex:1 1 auto; }
.ac-lab{ font-weight:700; font-size:14px; }
.ac-note{ font-size:12px; color:var(--muted); line-height:1.4; margin-top:2px; }
.ac-note-wide{ margin:2px 0 8px 0; }
.ac-ctl{ flex:0 0 auto; min-width:210px; text-align:right; }
.ac-ctl .inp{ width:100%; }
.ac-calc{ font-size:11.5px; color:var(--muted); margin-top:4px; text-align:right; }
.ac-warn{ color:#f59e0b; font-weight:700; }
.ac-foot{
  margin-top:14px; padding-top:10px; border-top:1px solid rgba(148,163,184,.2);
  font-size:12px; color:var(--muted); line-height:1.45;
}
@media (max-width: 680px){
  .ac-row{ flex-direction:column; gap:6px; }
  .ac-ctl{ min-width:0; width:100%; text-align:left; }
  .ac-calc{ text-align:left; }
}

/* THE SUPER ADMIN (js/99b-superadmin.js) — 1.90.7 */
.xp-um-role.role-super { color: var(--gold, #e8b931); font-weight: 700; }
.xp-um-role.role-super::before { content: '🛡️ '; }
.xp-super-fixed { opacity: .75; cursor: not-allowed; }
.xp-super-note { color: var(--gold, #e8b931); }
