/* ABSURDBANK_CSS_END */
/* ASTRABANK_CSS_START */
.astra-item {
  /* Owner 2026-09-20: equal columns so the center arrow (midpoint) is on one vertical line across
     all rows; halves wrap at spaces (no mid-word cuts) instead of ellipsizing and shoving the arrow. */
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: start;
  gap: 0 4px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 3px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(185, 180, 173, 0.42);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.astra-item:hover { border-color: rgba(120,145,195,0.65); background: rgba(255,255,255,0.75); }
.astra-item .si-left  { color:hsl(215,55%,40%); font-size:14px; font-weight:600; font-family:var(--mono); text-align:right; padding-right:6px; white-space:normal; overflow:visible; text-overflow:clip; word-break:keep-all; overflow-wrap:break-word; hyphens:none; min-width:0; align-self:start; }
.astra-item .si-right { color:hsl(28,60%,38%); font-size:14px; font-weight:600; font-family:var(--mono); text-align:left; padding-left:6px; white-space:normal; overflow:visible; text-overflow:clip; word-break:keep-all; overflow-wrap:break-word; hyphens:none; min-width:0; align-self:end; }
.astra-item .si-arr   { color:rgba(120,114,108,0.5); font-size:16px; line-height:1; padding:0 2px; user-select:none; align-self:center; white-space:nowrap; }
/* Collapsible like the other left-side panels (owner 2026-09-20): the old inline + !important
   max-height:30vh forced the body permanently open, so the lcw-header toggle did nothing visible.
   Now the body collapses to 0 (base .lcw-body) when the panel is closed and opens to 30vh when it
   has .open, id-scoped so it beats the generic .left-col-win.open .lcw-body 70vh rule. */
#astrabank-panel .lcw-body { padding: 0; }
#astrabank-panel.open .lcw-body { max-height: 30vh; overflow-y: auto; scrollbar-width: thin; padding: 4px 6px; }
#astrabank-panel .lcw-header { border-bottom:1px solid rgba(180,140,40,0.2); }
#astrabank-panel.open .lcw-header { border-bottom-color:rgba(180,140,40,0.35); }
/* ASTRABANK_CSS_END */
#astrabank-panel { flex-shrink: 1; min-height: 60px; overflow: hidden; }

/* Mojo M -- left Wordbank (borrowed-seam suggestions), owner 2026-09-27. Same left-col-win width as the
   other left panels; its body scrolls like the Astrabank body. .wb-restale dims it while the deferred
   (post-Dojo-paint) render is pending, so a stale frame is visibly in-flight, never mistaken for final. */
#mojo-panel { flex-shrink: 1; min-height: 60px; overflow: hidden; }
#mojo-panel.open .lcw-body { max-height: 30vh; overflow-y: auto; scrollbar-width: thin; padding: 4px 6px; }
#mojo-entry-list.wb-restale { opacity: 0.5; transition: opacity 0.12s; }

.suggest-pair-badge {
  font-size: 9px;
  color: rgba(160,110,255,0.8);
  margin-left: 2px;
  flex-shrink: 0;
}

/* Bulk add drawer */
#bulk-drawer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: rgba(235, 232, 228, 0.40);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.22s ease-out;
}

#bulk-drawer.open {
  max-height: 420px;
  overflow-y: auto;
}

.bulk-inner {
  padding: 12px;
}

#bulk-textarea {
  width: 100%;
  height: 110px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(175,170,163,0.50);
  color: var(--txt);
  padding: 8px 10px;
  border-radius: 5px;
  font: 12px/1.55 var(--mono);
  resize: vertical;
  tab-size: 2;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

#bulk-textarea:focus { outline: none; border-color: var(--blue); }

.bulk-hint {
  font-size: 10px;
  color: var(--faint);
  margin: 5px 0 9px;
  line-height: 1.6;
}

.bulk-hint code {
  color: var(--dim);
  background: rgba(200,196,190,0.30);
  padding: 1px 4px;
  border-radius: 3px;
}

#bulk-results {
  margin-top: 10px;
}

.bulk-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(185,180,173,0.30);
  font-size: 11px;
}

.bulk-row:last-child { border-bottom: none; }

.bulk-num {
  color: var(--faint);
  min-width: 22px;
  text-align: right;
  flex-shrink: 0;
}

.bulk-pair {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-pair .bl { color: var(--blue); }
.bulk-pair .br { color: var(--amber); }
.bulk-pair .ba { color: var(--faint); font-size: 9px; }

.bulk-badge {
  font-size: 9px;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 2px;
  flex-shrink: 0;
}

.bulk-badge.ok    { background: rgba(46,122,80,0.12);  border: 1px solid rgba(46,122,80,0.35);  color: var(--green); }
.bulk-badge.skip  { background: rgba(154,110,24,0.12); border: 1px solid rgba(154,110,24,0.35); color: var(--amber); }
.bulk-badge.error { background: rgba(184,48,48,0.12);  border: 1px solid rgba(184,48,48,0.35);  color: var(--red); }

.bulk-summary {
  font-size: 11px;
  padding: 7px 0 2px;
  color: var(--dim);
}

/* Export / Import bar */
.io-bar {
  display: flex;
  gap: 5px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(240, 237, 233, 0.40);
  flex-shrink: 0;
  align-items: center;
}

.io-bar .io-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 2px;
}

/* Hidden file input */
#import-file-input { display: none; }

/* Confirm overlay */
#import-confirm {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

#import-confirm.visible {
  display: flex;
}

#project-confirm {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

#project-confirm.visible {
  display: flex;
}

#generic-confirm {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

#generic-confirm.visible {
  display: flex;
}

.confirm-box {
  background: var(--glass-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--glass-border);
  border-radius: var(--win-radius);
  box-shadow: var(--glass-shadow);
  padding: 22px 24px;
  max-width: 360px;
  width: 100%;
}

.confirm-box h2 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.confirm-box p {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 16px;
}

.confirm-box p strong { color: var(--txt); }

.confirm-box .confirm-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.import-preview {
  font-size: 11px;
  color: var(--dim);
  background: rgba(240,237,233,0.45);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 10px;
  margin-bottom: 14px;
  line-height: 1.6;
}

/* Inline edit form */
.entry-edit-form {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  display: none;
}

.entry-card.editing .entry-edit-form { display: block; }
.entry-card.editing { cursor: default; }

.edit-row {
  display: flex;
  gap: 5px;
  margin-bottom: 6px;
}

.edit-row input, .edit-row textarea {
  flex: 1;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(175,170,163,0.50);
  color: var(--txt);
  padding: 4px 8px;
  border-radius: 5px;
  font: 11px/1.3 var(--mono);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.edit-row input:focus, .edit-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.edit-row textarea { height: 38px; resize: none; }

.edit-field-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 3px;
}

/* Inseparable-bind (U+00A0) authoring affordance */
.edit-bind-row { margin-top: -2px; margin-bottom: 6px; }
.bind-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--dim);
  cursor: pointer;
  user-select: none;
}
.bind-toggle input { margin: 0; cursor: pointer; }
.bind-mark { font-size: 9px; opacity: 0.6; cursor: help; }

.edit-save-row {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  align-items: center;
}

.edit-err {
  font-size: 10px;
  color: var(--red);
  margin-left: 6px;
}

/* Placeholder panel */
#ph-list {
  margin-top: 6px;
}

.ph-empty {
  font-size: 11px;
  color: var(--faint);
  font-style: italic;
}

.ph-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(185,180,173,0.40);
  margin-bottom: 4px;
  font-size: 11px;
}

.ph-item.ph-filled {
  border-color: rgba(46,122,80,0.38);
  background: rgba(46,122,80,0.08);
}

.ph-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  flex-shrink: 0;
}

.ph-badge.ph-left   { background: rgba(53,116,196,0.12); color: var(--blue); }
.ph-badge.ph-right  { background: rgba(154,110,24,0.12);  color: var(--amber); }
.ph-pos             { color: var(--faint); font-size: 10px; }
.ph-status          { color: var(--green); font-size: 10px; margin-left: auto; }
.ph-status.unfilled { color: var(--faint); }

