/* Hinexteconf — frontend styles */
.hinex-wrap { max-width: 860px; margin: 0 auto; }
.hinex-wrap * { box-sizing: border-box; }

.hinex-notice { padding: 12px 16px; border-radius: 6px; margin: 12px 0; font-size: 14px; }
.hinex-notice-success { background: #e7f5ec; border: 1px solid #b5e0c3; color: #135e2b; }
.hinex-notice-error { background: #fdecec; border: 1px solid #f5bcbc; color: #8a1a1a; }
.hinex-notice-info { background: #eef4fd; border: 1px solid #c5d9f2; color: #1d4e8f; }

.hinex-form { background: #fff; border: 1px solid #e2e2e2; border-radius: 8px; padding: 24px; margin: 16px 0; }
.hinex-field { margin-bottom: 16px; }
.hinex-label { display: block; font-weight: 600; margin-bottom: 5px; color: #1d2327; }
.hinex-req { color: #d63638; }
.hinex-input, .hinex-select, .hinex-textarea, .hinex-file {
	width: 100%; padding: 9px 12px; border: 1px solid #c3c4c7; border-radius: 6px;
	font-size: 14px; background: #fff; color: #1d2327;
}
.hinex-input:focus, .hinex-select:focus, .hinex-textarea:focus { border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; outline: none; }
.hinex-input.hinex-error { border-color: #d63638; }
.hinex-option { display: block; margin: 4px 0; font-size: 14px; }
.hinex-field-help { color: #646970; font-size: 12px; margin: 4px 0 0; }
.hinex-section { border-bottom: 2px solid #2271b1; padding-bottom: 6px; margin: 24px 0 12px; color: #1d2327; }
.hinex-range-val { margin-left: 8px; font-weight: 600; }

/* Wizard */
.hinex-wizard-steps { display: flex; list-style: none; margin: 0 0 20px; padding: 0; gap: 4px; }
.hinex-wizard-steps li {
	flex: 1; text-align: center; padding: 9px 4px; font-size: 12px; font-weight: 600;
	background: #f0f0f1; color: #646970; border-radius: 6px; white-space: nowrap;
}
.hinex-wizard-steps li.is-active { background: #2271b1; color: #fff; }
.hinex-wizard-steps li.is-done { background: #e7f5ec; color: #135e2b; }
.hinex-wizard-step { display: none; }
.hinex-wizard-step.is-active { display: block; }
.hinex-wizard-step h3 { margin-top: 0; color: #1d2327; }
.hinex-wizard-nav { margin-top: 20px; display: flex; gap: 8px; }
.hinex-wizard-nav .button { padding: 8px 18px; }
.hinex-summary { background: #f6f7f7; border: 1px solid #e2e2e2; border-radius: 6px; padding: 14px; margin-bottom: 16px; }
.hinex-summary p { margin: 4px 0; font-size: 14px; }
.hinex-consent { margin-top: 12px; font-size: 13px; }

/* Co-authors */
.hinex-coauthor-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.hinex-coauthor-row .button { white-space: nowrap; }
.hinex-existing-files { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.hinex-existing-files li { margin: 4px 0; }

/* Tables */
.hinex-table { width: 100%; border-collapse: collapse; margin: 12px 0; background: #fff; }
.hinex-table th, .hinex-table td { border: 1px solid #e2e2e2; padding: 9px 12px; text-align: left; font-size: 13px; vertical-align: top; }
.hinex-table th { background: #f6f7f7; font-weight: 600; }
.hinex-table tr:nth-child(even) td { background: #fafafa; }
.hinex-detail th { width: 180px; }
.hinex-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; color: #fff; font-size: 12px; font-weight: 600; }
.hinex-inline-form { display: inline; }

/* Schedule */
.hinex-schedule h3 { margin: 24px 0 8px; color: #1d2327; }
.hinex-schedule-table .hinex-time { white-space: nowrap; font-weight: 600; }
.hinex-session-desc { color: #646970; font-size: 12px; margin-top: 4px; }
.hinex-session-papers { margin: 6px 0 0; padding-left: 18px; font-size: 12px; color: #3c434a; }
.hinex-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hinex-schedule-day[hidden], .hinex-schedule-empty[hidden] { display: none !important; }
.hinex-schedule-cell-label { display: none; }

/* Review cards */
.hinex-review-card { background: #f6f7f7; border: 1px solid #e2e2e2; border-radius: 6px; padding: 12px 14px; margin: 10px 0; }
.hinex-review-card p { margin: 4px 0; font-size: 13px; }

@media (max-width: 640px) {
	.hinex-coauthor-row { grid-template-columns: 1fr; }
	.hinex-wizard-steps li { font-size: 10px; }
}

/* Schedule filters */
.hinex-schedule-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 16px 0; }
.hinex-schedule-day-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.hinex-day-btn { border: 1px solid #1d4e89; background: #fff; color: #1d4e89; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.hinex-day-btn.is-active, .hinex-day-btn[aria-selected="true"] { background: #1d4e89; color: #fff; }
.hinex-day-btn:focus-visible, .hinex-schedule-track-select:focus-visible { outline: 3px solid #2271b1; outline-offset: 2px; }
.hinex-schedule-track-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.hinex-schedule-track-select { padding: 6px 8px; }

@media (max-width: 720px) {
	.hinex-schedule-filters { flex-direction: column; align-items: stretch; }
	.hinex-schedule-table thead { display: none; }
	.hinex-schedule-table, .hinex-schedule-table tbody, .hinex-schedule-table tr, .hinex-schedule-table td { display: block; width: 100%; }
	.hinex-schedule-table tr { border: 1px solid #e2e4e8; border-radius: 8px; margin-bottom: 12px; padding: 10px; background: #fff; }
	.hinex-schedule-table td { border: 0; padding: 4px 0; }
	.hinex-schedule-cell-label { display: inline-block; min-width: 72px; margin-right: 4px; font-weight: 600; color: #555; }
	.hinex-schedule-table td.hinex-time { font-weight: 700; color: #1d4e89; }
	.hinex-schedule-table tr.hinex-schedule-empty { padding: 10px; }
	.hinex-schedule-table tr.hinex-schedule-empty td { padding: 0; }
}
