/* v0.6.1 hint prototype visual refinement */
.hint-inline-btn,
.hint-main-btn,
.hint-paper-btn,
.hint-selected-item-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:6px 10px;
  border:1px solid #BFB6AF;
  border-radius:7px;
  background:#fff;
  color:#3D3834;
  font-weight:700;
  line-height:1.2;
}
.hint-inline-btn { margin-left:auto; font-size:13px; }
.hint-inline-btn svg,
.hint-main-btn svg,
.hint-paper-btn svg,
.hint-modal-title svg,
.hint-selected-title svg {
  width:18px;
  height:18px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.domain-head { display:flex; align-items:center; gap:8px; }
.hint-org-panel {
  margin:0 0 16px;
  padding:12px;
  border:1px solid #D8D0CA;
  background:#FFFDFC;
}
.hint-selected-title {
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:9px;
  font-weight:700;
}
.hint-selected-list { display:flex; flex-wrap:wrap; gap:7px; }
.hint-selected-item-btn { text-align:left; font-size:14px; }
.hint-paper-btn { white-space:nowrap; }
.hint-modal-backdrop {
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(34,31,28,.42);
}
.hint-modal {
  width:min(100%,680px);
  max-height:min(84vh,760px);
  overflow:auto;
  background:#fff;
  border:1px solid #CFC7C1;
  box-shadow:0 18px 50px rgba(0,0,0,.22);
}
.hint-modal-head {
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  background:#fff;
  border-bottom:1px solid #DDD6D0;
}
.hint-modal-title {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-size:19px;
  font-weight:700;
}
.hint-modal-close {
  width:36px;
  height:36px;
  border:0;
  background:transparent;
  color:#443D38;
  font-size:25px;
  line-height:1;
}
.hint-modal-body { padding:16px; }
.hint-lead { margin:0 0 14px; line-height:1.7; }
.hint-section {
  margin:0 0 14px;
  border:1px solid #D8DDE2;
  background:#fff;
}
/* requested: only the heading row gets color */
.hint-section-head {
  padding:9px 11px;
  font-weight:700;
  border-bottom:1px solid #D8DDE2;
}
.hint-section-head.primary { background:#EAF2F9; }
.hint-section-head.secondary { background:#EEF6EC; }
.hint-section-body { padding:10px 13px 12px; background:#fff; }
.hint-section-body ul { margin:0; padding-left:1.4em; }
.hint-section-body li { margin:4px 0; line-height:1.65; }
.hint-note {
  margin-top:12px;
  padding:10px 12px;
  background:#F8F6F4;
  border-left:3px solid #8A817A;
  font-size:13px;
  line-height:1.65;
}
.hint-summary-group { margin-bottom:14px; }
.hint-summary-group-title {
  margin:0 0 7px;
  font-weight:700;
  color:#4A433E;
}
.hint-summary-list { display:grid; gap:7px; }
.hint-summary-list .hint-selected-item-btn { width:100%; justify-content:space-between; }
.hint-chevron { font-size:18px; font-weight:400; }
@media (max-width:760px) {
  .hint-modal-backdrop { align-items:flex-end; padding:0; }
  .hint-modal { width:100%; max-height:88vh; }
  .hint-modal-head { padding:12px 14px; }
  .hint-modal-title { font-size:17px; }
  .hint-modal-body { padding:14px; }
  .hint-inline-btn { font-size:12px; padding:6px 8px; }
}
@media print {
  .hint-inline-btn,.hint-org-panel,.hint-paper-btn,.hint-modal-backdrop { display:none!important; }
}

/* v0.6.2 requested layout adjustments */
.paper-toolbar {
  justify-content: flex-start;
}
.hint-paper-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hint-paper-actions .button.primary {
  order: 2;
}
.hint-paper-actions .hint-paper-btn {
  order: 1;
}
@media (max-width:760px) {
  .hint-paper-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

/* v0.6.5 organization hint placement + summary group headings */
.hint-selected-title-row{display:flex;align-items:center;gap:10px;margin-bottom:9px;}
.hint-selected-title-row .hint-selected-title{margin-bottom:0;}
.hint-selected-title-row .hint-main-btn{margin-left:auto;white-space:nowrap;}
.hint-selected-display-list{display:grid;gap:6px;}
.hint-selected-display-item{padding:7px 9px;border:1px solid #D8D0CA;background:#fff;font-size:14px;line-height:1.4;}
.hint-summary-group-title{margin:0 0 7px;padding:9px 11px;background:#EAF2F9;border:1px solid #D8DDE2;color:#3D3834;}
@media(max-width:760px){.hint-selected-title-row{align-items:flex-start;flex-wrap:wrap}.hint-selected-title-row .hint-main-btn{margin-left:0}}
