/* Hypogeous Octagon Portal — scoped styles */
.ho-portal-root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.6; color: #222; box-sizing: border-box; }
.ho-portal-root *, .ho-portal-root *::before, .ho-portal-root *::after { box-sizing: border-box; }

/* Header */
.ho-header { display: flex; align-items: center; gap: 12px; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #e5e5e3; flex-wrap: wrap; }
.ho-header-titles p { margin: 0; }
.ho-portal-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #888; }
.ho-portal-name { font-size: 17px; font-weight: 600; color: #111; }
.ho-global-status { margin-left: auto; font-size: 12px; color: #888; }

/* Project fields */
.ho-project-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-bottom: 1.25rem; }
.ho-project-row label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 4px; }
.ho-project-row input { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.ho-project-row input:focus { outline: none; border-color: #888; }
.ho-id-row { display: flex; gap: 6px; align-items: center; }
.ho-id-row input { width: 140px; font-family: monospace; font-size: 13px; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; }

/* Tabs */
.ho-tab-bar { display: flex; border: 1px solid #e5e5e3; border-radius: 10px; overflow: hidden; margin-bottom: 1.25rem; }
.ho-tab-btn { flex: 1; padding: 10px 8px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; border: none; border-right: 1px solid #e5e5e3; background: #fff; color: #333; cursor: pointer; transition: background .15s; }
.ho-tab-btn:last-child { border-right: none; }
.ho-tab-btn.active { background: #f4f4f2; font-weight: 600; }
.ho-tab-btn:hover { background: #f9f9f7; }

/* Form fields */
.ho-field-wrap { margin-bottom: 14px; }
.ho-field-wrap label { display: block; font-size: 13px; color: #555; margin-bottom: 4px; }
.ho-field-wrap input, .ho-field-wrap select, .ho-field-wrap textarea { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; font-family: inherit; }
.ho-field-wrap input:focus, .ho-field-wrap select:focus, .ho-field-wrap textarea:focus { outline: none; border-color: #888; }
.ho-field-wrap textarea { resize: vertical; }

/* Wizard */
.ho-wiz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.ho-wiz-card { background: #fff; border: 1px solid #e5e5e3; border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.ho-wiz-nav { display: flex; justify-content: space-between; align-items: center; }
.ho-dots { display: flex; gap: 5px; align-items: center; }
.ho-dot { width: 7px; height: 7px; border-radius: 50%; background: #ddd; transition: background .2s; }
.ho-dot.active { background: #111; }
.ho-dot.done { background: #22c55e; }

/* Scroll form */
.ho-scroll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1rem; }
.ho-seg-card { border-radius: 10px; padding: 14px; }
.ho-seg-hdr { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.ho-seg-dot { width: 9px; height: 9px; border-radius: 50%; margin-left: auto; transition: background .25s; }

/* Octagon nav */
.ho-oct-wrap { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ho-oct-panel { flex: 1; min-width: 200px; background: #fff; border: 1px solid #e5e5e3; border-radius: 10px; padding: 1.25rem; min-height: 200px; }

/* Buttons */
.ho-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: #111; font-size: 14px; cursor: pointer; transition: background .15s; }
.ho-btn:hover { background: #f4f4f2; }
.ho-btn.primary { background: #111; color: #fff; border-color: #111; }
.ho-btn.primary:hover { background: #333; }
.ho-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Footer */
.ho-portal-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e5e5e3; flex-wrap: wrap; gap: 8px; }

/* Summary */
.ho-summary-meta { background: #f4f4f2; border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; }
.ho-summary-meta p { margin: 0; }
.ho-summary-meta .ho-meta-label { font-size: 11px; color: #888; margin-bottom: 2px; }
.ho-summary-meta .ho-meta-val { font-size: 13px; font-weight: 600; color: #111; }
.ho-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ho-summary-seg { border-radius: 8px; padding: 10px 12px; border: 1.5px solid #e5e5e3; }
.ho-summary-seg-hdr { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.ho-summary-field { font-size: 11px; color: #666; display: flex; gap: 4px; margin-bottom: 2px; }
.ho-summary-field span:last-child { color: #111; font-weight: 500; }
.ho-summary-actions { display: flex; gap: 10px; padding-top: 1rem; border-top: 1px solid #e5e5e3; flex-wrap: wrap; }
.ho-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.ho-badge-complete { background: #dcfce7; color: #166534; }
.ho-badge-partial { background: #fef9c3; color: #854d0e; }

/* Success / error notices */
.ho-notice { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-top: 1rem; }
.ho-notice-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.ho-notice-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Responsive */
@media (max-width: 600px) {
  .ho-scroll-grid { grid-template-columns: 1fr; }
  .ho-summary-grid { grid-template-columns: 1fr; }
  .ho-project-row { grid-template-columns: 1fr; }
  .ho-tab-btn span { display: none; }
}
