/* HGS Maps start screen (web_start.js). Uses the page's colour variables when they exist. */
.hgss { max-width: 760px; margin: 0 auto; color: var(--text, #1c2733); font-size: 15px; }
.hgss[hidden], .hgss [hidden] { display: none !important; }
.hgss * { box-sizing: border-box; }
.hgss-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.hgss-tile { min-height: 64px; padding: 10px 14px; text-align: left; font: inherit; cursor: pointer; background: #fff;
  border: 2px solid var(--line, #d5dae1); border-radius: 8px; color: inherit; display: flex; flex-direction: column; gap: 3px; }
.hgss-tile b { font-size: 1.05em; }
.hgss-tile small { color: var(--muted, #5b6673); font-size: .85em; }
.hgss-tile[aria-pressed="true"] { border-color: var(--blue, #1f5fa8); background: #eef4fb; }
.hgss-tile:hover { border-color: var(--blue, #1f5fa8); }
.hgss button:focus-visible, .hgss input:focus-visible, .hgss select:focus-visible, .hgss .hgss-drop:focus-visible {
  outline: 3px solid #f5a623; outline-offset: 2px; }
.hgss-card { background: #fff; border: 1px solid var(--line, #d5dae1); border-radius: 8px; padding: 14px; }
.hgss-card h3 { margin: 14px 0 6px; font-size: 1em; }
.hgss-head { display: flex; justify-content: space-between; align-items: center; }
.hgss-head h3 { margin: 0; }
.hgss-muted, .hgss-hint { color: var(--muted, #5b6673); font-size: .85em; }
.hgss-hint { display: block; margin-top: 3px; }
.hgss-msg { min-height: 1.4em; margin: 0 0 8px; padding: 0; font-size: .95em; }
.hgss-msg.hgss-bad, .hgss-msg.hgss-ok { padding: 8px 10px; border-radius: 6px; }
.hgss-bad { color: var(--red, #b3261e); background: var(--red-bg, #fdecea); }
.hgss-ok { color: var(--green, #2e7d32); background: var(--green-bg, #e8f5e9); }
.hgss button { font: inherit; }
.hgss-small, .hgss-x { min-height: 44px; min-width: 44px; padding: 0 12px; background: #fff; border: 1px solid var(--line, #d5dae1);
  border-radius: 6px; cursor: pointer; color: inherit; }
.hgss-x { font-size: 1.3em; line-height: 1; padding: 0; }
.hgss-recent-row { display: flex; gap: 6px; margin: 6px 0; }
.hgss-recent-go, .hgss-proj { min-height: 44px; width: 100%; text-align: left; padding: 8px 12px; background: #fff; cursor: pointer;
  border: 1px solid var(--line, #d5dae1); border-radius: 6px; color: inherit; }
.hgss-recent-go:hover, .hgss-proj:hover { border-color: var(--blue, #1f5fa8); background: #f5f9fd; }
.hgss-recent-go { flex: 1; font-weight: 600; }
.hgss-card input[type="search"], .hgss-card input[type="text"], .hgss-card select { width: 100%; min-height: 44px; padding: 8px 10px;
  font: inherit; border: 1px solid var(--line, #d5dae1); border-radius: 6px; background: #fff; color: inherit; }
.hgss-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; }
.hgss-proj { display: flex; flex-direction: column; gap: 2px; }
.hgss-proj-name { font-weight: 600; }
.hgss-proj-meta { color: var(--muted, #5b6673); font-size: .85em; }
.hgss-part { border: 1px solid var(--line, #d5dae1); border-radius: 8px; margin: 0 0 14px; padding: 10px 14px 12px; }
.hgss-part legend { font-weight: 600; padding: 0 6px; }
.hgss-field { margin: 0 0 10px; }
.hgss-field > label, .hgss-label { display: block; margin: 0 0 4px; font-weight: 600; font-size: .9em; }
.hgss-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hgss-drop { border: 2px dashed var(--line, #d5dae1); border-radius: 8px; padding: 12px; text-align: center; background: #fafbfc; }
.hgss-over { border-color: var(--blue, #1f5fa8); background: #eef4fb; }
.hgss-pick { min-height: 44px; padding: 0 16px; border: 1px solid var(--blue, #1f5fa8); background: #fff; color: var(--blue, #1f5fa8);
  border-radius: 6px; cursor: pointer; font-weight: 600; }
.hgss-filein { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hgss-info { min-height: 1.4em; margin-top: 6px; font-weight: 600; color: var(--green, #2e7d32); overflow-wrap: anywhere; }
.hgss-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.hgss-kind { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line, #d5dae1);
  border-radius: 6px; cursor: pointer; }
.hgss-kind input { width: 20px; height: 20px; }
.hgss-missing { border-color: var(--red, #b3261e) !important; background: var(--red-bg, #fdecea) !important; }
.hgss-actions { display: flex; justify-content: flex-end; }
.hgss-primary { min-height: 48px; padding: 0 22px; background: var(--blue, #1f5fa8); color: #fff; border: 0; border-radius: 6px;
  font-weight: 600; cursor: pointer; }
.hgss-primary:hover { background: var(--blue-dk, #174a85); }
.hgss-primary:disabled { opacity: .6; cursor: default; }
@media (max-width: 560px) {
  .hgss-tiles, .hgss-two { grid-template-columns: 1fr; }
  .hgss-primary { width: 100%; }
}
