@import url("/fonts.css");
:root {
  color-scheme: dark;
  --bg: #101412;
  --panel: #191e1b;
  --panel-2: #202622;
  --line: #2a322c;
  --text: #f0f2ec;
  --muted: #929d94;
  --accent: #c3ef9d;
  --accent-ink: #1d3218;
  --red: #f0a9a0;
  --amber: #e0c38c;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -1.1px;
}
h2 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
  font-weight: 550;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--muted);
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 16px;
  font-weight: 550;
  font-size: 12px;
  white-space: nowrap;
}
.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.button.primary:hover {
  background: #d6f8bb;
}
.button.secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}
.button.secondary:hover {
  background: var(--panel-2);
}
.button.ghost {
  background: transparent;
  color: var(--muted);
}
.button.danger {
  background: #402723;
  color: #f9bcb2;
}
.button.small {
  padding: 7px 11px;
  font-size: 11px;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.icon-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
}
.icon-button:hover {
  background: var(--panel-2);
  color: var(--text);
}
.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: #161b17;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 31px 18px 15px;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.9px;
  padding: 0 12px;
}
.brand img {
  width: 32px;
  height: 32px;
}
.brand .brand-light {
  font-weight: 350;
}
.workspace-label {
  margin: 32px 12px 11px;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #68786c;
  font-weight: 700;
}
.project-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 11px 10px;
  border-radius: 7px;
  margin: 0 5px 27px;
  background: #1c241e;
}
.project-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #303a29;
  color: #d0debd;
  font-size: 10px;
  font-weight: 700;
}
.project-pill strong {
  font-size: 11px;
  display: block;
}
.project-pill small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 650;
  color: #6e7b70;
  margin: 6px 16px 9px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a2ada3;
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 12px;
  position: relative;
}
.nav-link .icon {
  width: 18px;
  height: 18px;
}
.nav-link:hover {
  background: #202821;
  color: #edf4e9;
}
.nav-link.active {
  background: #2a3726;
  color: #d0f7b2;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  border: 1px solid #425138;
  border-radius: 4px;
  padding: 2px 5px;
  color: #cae1b6;
}
.sidebar .separator {
  height: 1px;
  background: var(--line);
  margin: 21px 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.support-card {
  margin: 0 6px 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(125deg, #212b22, #181e19);
}
.support-card p {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 12px;
}
.support-card strong {
  font-size: 11px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 9px 2px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 33px;
  height: 33px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #343e32;
  color: #c3d3b7;
  font-size: 11px;
  font-weight: 600;
}
.profile strong {
  display: block;
  font-size: 11px;
}
.profile small {
  font-size: 9px;
  color: var(--muted);
}
.profile button {
  margin-left: auto;
  border: 0;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 75px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 37px;
  gap: 18px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 11px;
}
.breadcrumbs .icon {
  width: 12px;
}
.breadcrumbs strong {
  font-weight: 450;
  color: #d5ded2;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-actions .date {
  font-size: 10px;
  color: var(--muted);
}
.select-project {
  background: transparent;
  color: var(--muted);
  border: 0;
  font-size: 11px;
  max-width: 190px;
}
.select-project option {
  background: var(--panel);
}
.content {
  max-width: 1600px;
  padding: 34px 37px 28px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.heading-buttons {
  display: flex;
  gap: 10px;
}
.welcome-eyebrow {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 1.3px;
  margin-bottom: 9px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 19px 20px;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #aab4aa;
  font-size: 11px;
}
.metric-top .icon {
  color: #8a9a86;
  width: 17px;
}
.metric-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 12px;
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -1px;
}
.metric-value span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.metric-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.metric-bottom strong {
  color: var(--accent);
  font-weight: 500;
}
.metric-bottom .icon {
  height: 12px;
  width: 12px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 22px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
}
.panel-header h2 {
  font-size: 14px;
}
.panel-header p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 10px;
  background: transparent;
  border: 0;
  padding: 4px 0;
}
.text-link .icon {
  width: 13px;
  height: 13px;
}
.project-hero {
  height: 176px;
  position: relative;
  background: #778c7a;
  overflow: hidden;
}
.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.project-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 20%, #111b14bc);
}
.project-hero-overlay {
  position: absolute;
  inset: auto 23px 20px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.project-hero-overlay h2 {
  font-size: 25px;
  letter-spacing: -0.6px;
  color: #fff;
}
.project-hero-overlay p {
  font-size: 10px;
  color: #d9e3d4;
  margin-top: 4px;
}
.project-hero .badge {
  background: #edf7dfed;
  color: #355631;
  border: 0;
}
.project-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px 23px;
}
.project-summary div {
  border-right: 1px solid var(--line);
  padding-left: 20px;
}
.project-summary div:first-child {
  padding-left: 0;
}
.project-summary div:last-child {
  border: 0;
}
.project-summary small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.project-summary strong {
  font-size: 12px;
  font-weight: 500;
}
.progress-area {
  padding: 0 23px 20px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 10px;
}
.progress-label strong {
  color: var(--text);
  font-weight: 500;
}
.progress-track {
  height: 5px;
  border-radius: 5px;
  background: #30382e;
  overflow: hidden;
}
.progress-track div {
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
}
.task-list {
  padding: 4px 22px;
}
.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.task-item:last-child {
  border: 0;
}
.task-icon {
  width: 35px;
  height: 35px;
  border-radius: 7px;
  background: #303424;
  color: #cfce99;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.task-icon.green {
  color: var(--accent);
  background: #283525;
}
.task-icon.blue {
  color: #abc5d2;
  background: #26313a;
}
.task-item strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
}
.task-item p {
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.task-item > .icon {
  margin-left: auto;
  width: 14px;
  color: var(--muted);
}
.task-footer {
  padding: 13px 23px;
  background: #171d18;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.task-footer .icon {
  width: 13px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
}
th {
  font-size: 9px;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  padding: 13px 20px;
  background: #161c18;
}
td {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  color: #c4cec3;
}
tbody tr:hover {
  background: #1d251e;
}
td strong {
  font-weight: 500;
  color: var(--text);
}
.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.person-cell .avatar {
  width: 30px;
  height: 30px;
  font-size: 9px;
}
.person-cell small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  padding: 5px 7px;
  border-radius: 5px;
  background: #29312b;
  color: #acb9ad;
  white-space: nowrap;
}
.badge i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.green {
  background: #263826;
  color: #b4d995;
}
.badge.amber {
  background: #393222;
  color: #d8bc82;
}
.badge.red {
  background: #3c2926;
  color: #ecaea2;
}
.recent-panel {
  grid-column: 1/-1;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.bottom-note {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #69776b;
  padding-top: 25px;
}
.bottom-note span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.bottom-note .icon {
  width: 12px;
  height: 12px;
}
.toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.searchbox {
  position: relative;
}
.searchbox .icon {
  position: absolute;
  top: 11px;
  left: 12px;
  width: 16px;
  color: var(--muted);
}
.searchbox input {
  padding-left: 38px;
  width: 270px;
}
.toolbar select,
.toolbar input {
  font-size: 11px;
}
.tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 13px 17px;
  font-size: 12px;
}
.tab.active {
  border-color: var(--accent);
  color: var(--accent);
}
input,
select,
textarea {
  background: var(--bg);
  border: 1px solid #364136;
  color: var(--text);
  border-radius: 6px;
  padding: 11px 12px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #768478;
}
input[type="checkbox"] {
  accent-color: #9acf79;
  width: 16px;
  height: 16px;
}
input[type="datetime-local"] {
  color-scheme: dark;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
.project-description-input {
  min-height: 280px;
  line-height: 1.7;
}
.project-description-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.allocation-help {
  margin: 16px 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.allocation-help summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}
.allocation-help-body h4 {
  margin: 24px 0 8px;
}
.allocation-help-body p {
  line-height: 1.7;
  margin: 12px 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.field > span {
  font-size: 11px;
  font-weight: 500;
  color: #c4cfc2;
}
.field-error {
  color: var(--red);
  font-size: 10px;
  min-height: 0;
}
.field-error:empty {
  display: none;
}
.invalid {
  border-color: #c7776b !important;
}
.valid {
  border-color: #739665 !important;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-section {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.form-section h3 {
  margin-bottom: 7px;
}
.form-section > p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 22px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 13px 0;
  line-height: 1.5;
}
.checkbox input {
  flex-shrink: 0;
}
.form-actions {
  padding: 20px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.form-error {
  background: #381e1b;
  border: 1px solid #7a352c;
  color: #ffb8b0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}
.form-error .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: #ff9e94;
}
.light .form-error {
  background: #feebe8;
  border-color: #f7a89e;
  color: #922b21;
}
.light .form-error .icon {
  stroke: #c0392b;
}
.form-error:empty {
  display: none !important;
}
.notice {
  background: #292d20;
  border: 1px solid #404831;
  border-radius: 7px;
  padding: 13px 16px;
  color: #ced6b4;
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.notice.danger {
  background: #32221f;
  border-color: #5b3630;
  color: #edb8ae;
}
.notice.success {
  background: #263b24;
  border-color: #486841;
  color: #c3e1ae;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.unit-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.unit-visual {
  height: 150px;
  position: relative;
  overflow: hidden;
  background: #586955;
}
.unit-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.3);
}
.unit-visual .badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.unit-body {
  padding: 18px;
}
.unit-body h3 {
  font-size: 16px;
}
.unit-body p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.unit-specs {
  display: flex;
  gap: 15px;
  margin: 17px 0;
  color: #b8c6b7;
  font-size: 11px;
}
.unit-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.unit-price strong {
  font-size: 18px;
  font-weight: 500;
}
.unit-price small {
  font-size: 9px;
  color: var(--muted);
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: 22px;
}
.side-note {
  padding: 23px;
  align-self: start;
}
.side-note h3 {
  margin: 12px 0;
}
.side-note p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.detail-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.detail-block h3 {
  margin-bottom: 15px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 11px 0;
  font-size: 11px;
}
.detail-row span {
  color: var(--muted);
}
.detail-row strong {
  font-weight: 500;
  text-align: right;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #050a07bd;
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal {
  width: 680px;
  max-width: 100%;
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 25px 100px #0008;
}
.modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.modal header h2 {
  margin-top: 7px;
  font-size: 23px;
}
.modal form {
  padding: 24px 28px;
}
.modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.modal p {
  font-size: 12px;
  color: var(--muted);
}
#toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  padding: 16px 23px;
  max-width: 440px;
  background: #d0efb7;
  color: #23311b;
  border-radius: 8px;
  box-shadow: 0 5px 30px #0004;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: 0.2s;
  z-index: 200;
  font-size: 12px;
}
#toast.show {
  opacity: 1;
  transform: translateY(0);
}
#toast.error {
  background: #edb4aa;
  color: #44221d;
}
.empty {
  text-align: center;
  padding: 55px 25px;
}
.empty > .icon {
  height: 30px;
  width: 30px;
  color: var(--muted);
  margin-bottom: 16px;
}
.empty h3 {
  margin-bottom: 8px;
}
.empty p {
  color: var(--muted);
  font-size: 12px;
}
.timeline {
  padding: 12px 24px;
}
.timeline-item {
  padding: 17px 0 17px 22px;
  border-left: 1px solid var(--line);
  position: relative;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 22px;
  width: 7px;
  height: 7px;
  background: #92ac7c;
  border-radius: 50%;
}
.timeline-item strong {
  font-size: 12px;
  font-weight: 500;
}
.timeline-item p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.timeline-item small {
  display: block;
  font-size: 10px;
  color: #788a77;
  margin-top: 5px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-story {
  padding: 50px 60px;
  position: relative;
  overflow: hidden;
  background: #233227;
  display: flex;
  flex-direction: column;
}
.login-story:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#17201933, #122118dd),
    url("/assets/kade.svg") center/cover;
}
.login-story > * {
  z-index: 1;
  position: relative;
}
.login-story .brand {
  padding: 0;
}
.login-story-copy {
  margin-top: auto;
  margin-bottom: 40px;
}
.login-story-copy .eyebrow {
  color: #c6d9b8;
}
.login-story h1 {
  font-size: 54px;
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.12;
  max-width: 480px;
  margin: 22px 0;
}
.login-story p {
  color: #b9cbb3;
  max-width: 350px;
  font-size: 14px;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 50px;
}
.login-form {
  width: 100%;
  max-width: 370px;
}
.login-form h2 {
  font-size: 30px;
  margin: 16px 0 8px;
}
.login-form > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}
.login-form .button.primary {
  width: 100%;
  margin-top: 10px;
}
.login-kind {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--panel);
  border-radius: 8px;
  margin-bottom: 24px;
}
.login-kind button {
  width: 50%;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 10px;
  border-radius: 5px;
  font-size: 12px;
}
.login-kind button.active {
  background: #34402e;
  color: var(--accent);
}
.demo-box {
  border: 1px dashed #42523b;
  padding: 15px;
  border-radius: 7px;
  margin-top: 25px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.demo-box strong {
  color: #c4dbb5;
  display: block;
  margin-bottom: 4px;
}
.demo-box button {
  background: transparent;
  border: 0;
  color: var(--accent);
  padding: 8px 0 0;
  font-size: 11px;
}
.public-shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}
body:has(.public-shell.light) {
  background: #f5f5ef;
  color: #203021;
}
.public-shell.light,
.modal-backdrop.light {
  --bg: #f5f5ef;
  --panel: #ffffff;
  --panel-2: #ebeee5;
  --surface: #f8faf6;
  --border: #dbe4d8;
  --line: #dce2d5;
  --text: #203021;
  --muted: #74816f;
  --accent: #315638;
  --accent-ink: #ffffff;
  --red: #b34b3b;
  color-scheme: light;
}
.modal-backdrop.light {
  background: rgba(16, 25, 19, 0.45);
}
.modal-backdrop.light .modal {
  background: #ffffff;
  border-color: #dce2d5;
  color: #203021;
  box-shadow: 0 20px 60px rgba(20, 30, 24, 0.18);
}
.modal-backdrop.light .modal header {
  border-bottom-color: #dce2d5;
}
.modal-backdrop.light .modal header h2 {
  color: #203021;
}
.modal-backdrop.light .modal footer {
  border-top-color: #dce2d5;
}
.modal-backdrop.light .modal p {
  color: #55675a;
}
.modal-backdrop.light .modal .icon-button {
  color: #55675a;
}
.modal-backdrop.light .modal .icon-button:hover {
  color: #203021;
  background: #ebeee5;
}
.public-shell.light input,
.public-shell.light select,
.public-shell.light textarea,
.modal-backdrop.light input,
.modal-backdrop.light select,
.modal-backdrop.light textarea {
  background: #ffffff;
  border-color: #c9d5c5;
  color: #203021;
}
.public-shell.light input::placeholder,
.public-shell.light textarea::placeholder,
.modal-backdrop.light input::placeholder,
.modal-backdrop.light textarea::placeholder {
  color: #8a998c;
}
.public-shell.light .button.primary:hover,
.modal-backdrop.light .button.primary:hover {
  background: #234029;
  color: #ffffff;
}
.public-shell.light .button.secondary,
.modal-backdrop.light .button.secondary {
  background: #ffffff;
  border-color: #c9d5c5;
  color: #203021;
}
.public-shell.light .button.secondary:hover,
.modal-backdrop.light .button.secondary:hover {
  background: #f0f4ee;
}
.public-shell.light .button.danger,
.modal-backdrop.light .button.danger {
  background: #fdf2f0;
  border-color: #f5c2bb;
  color: #b34b3b;
}
.public-shell.light .button.danger:hover,
.modal-backdrop.light .button.danger:hover {
  background: #fae4e1;
}
.public-shell.light .notice,
.modal-backdrop.light .notice {
  background: #f0f5ed;
  border-color: #d0ded0;
  color: #2b3d2c;
}
.public-shell.light .notice.success,
.modal-backdrop.light .notice.success {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #1b5e20;
}
.public-shell.light .notice.danger,
.modal-backdrop.light .notice.danger {
  background: #ffebee;
  border-color: #ffcdd2;
  color: #b71c1c;
}
.public-shell.light .badge,
.modal-backdrop.light .badge {
  background: #eef2ec;
  color: #4a5c4d;
}
.public-shell.light .badge.green,
.modal-backdrop.light .badge.green {
  background: #e1f3e4;
  color: #1a6229;
}
.public-shell.light .badge.amber,
.modal-backdrop.light .badge.amber {
  background: #fef5dc;
  color: #8a6508;
}
.public-shell.light .badge.red,
.modal-backdrop.light .badge.red {
  background: #fde8e8;
  color: #b91c1c;
}
.public-shell.light .unit-card {
  box-shadow: 0 4px 18px rgba(20, 30, 24, 0.06);
}
.public-shell.light .unit-visual {
  background: #eef2ec;
}
.public-shell.light .panel,
.public-shell.light .registration-card,
.public-shell.light .registration-aside {
  box-shadow: 0 4px 20px rgba(20, 30, 24, 0.05);
}
.public-shell.light .step b {
  border-color: #dce2d5;
  background: #ffffff;
  color: #74816f;
}
.public-shell.light .step.active b {
  background: #315638;
  border-color: #315638;
  color: #ffffff;
}
.public-shell.light .step.active {
  color: #315638;
}
.public-shell.light .portal-heading h1 {
  color: #203021;
}
.public-shell.light .portal-heading p {
  color: #74816f;
}
.public-shell.light .detail-row span {
  color: #74816f;
}
.public-shell.light .detail-row strong {
  color: #203021;
}
.public-shell.light .detail-block {
  background: #ffffff;
  border-color: #dce2d5;
}
.public-shell.light .portal-grid .panel {
  box-shadow: 0 4px 18px rgba(20, 30, 24, 0.05);
}
.public-shell.light .preference-option {
  background: #ffffff;
  border-color: #dce2d5;
  color: #203021;
}
.public-shell.light .preference-option .rank {
  background: #ebeee5;
  color: #203021;
}
.public-shell.light .bottom-note {
  color: #74816f;
  border-top-color: #dce2d5;
}
.public-shell .field > span {
  color: var(--text);
}
.public-shell .field input,
.public-shell .field select {
  color-scheme: light;
}
.public-header {
  height: 86px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(30px, calc((100vw - 1120px) / 2));
  gap: 25px;
  background: var(--panel);
}
.public-header .brand {
  font-size: 23px;
  padding: 0;
}
.public-header nav {
  display: flex;
  gap: 30px;
  font-size: 12px;
  align-items: center;
}
.public-container {
  max-width: 1120px;
  padding: 36px 24px 65px;
  margin: auto;
}
.public-shell.embed-mode {
  min-height: 100vh;
}
.public-shell.embed-mode .public-header {
  display: none !important;
}
.public-shell.embed-mode .bottom-note {
  display: none !important;
}
.public-container.embed-container {
  max-width: 1400px;
  padding: 16px 20px 48px;
  margin: 0 auto;
}
.public-shell.embed-mode .public-hero {
  margin: 10px 0 32px;
}
.public-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  margin: 30px 0 50px;
}
.public-hero h1 {
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  font-weight: 400;
  margin: 15px 0 22px;
}
.public-hero p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 25px;
}
.public-hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 11px;
}
.public-hero .eyebrow {
  color: var(--accent);
}
.public-shell .unit-visual .badge {
  background: #e0edcc;
  color: #315638;
}
.public-shell .unit-specs {
  color: var(--muted);
}
.public-shell .unit-body p {
  color: var(--muted);
}
.public-shell .badge {
  color: #355431;
  background: #e3ebd8;
}
.stepper {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 24px 0 30px;
}
.step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}
.step b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 11px;
}
.step.active {
  color: var(--accent);
}
.step.active b {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 300px;
  gap: 25px;
}
.registration-card {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.registration-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.registration-card > p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 26px;
}
.registration-card .form-actions {
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 15px;
  justify-content: space-between;
}
.registration-aside {
  align-self: start;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.registration-aside img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 18px;
}
.registration-aside p {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.preference-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 7px;
  margin-bottom: 10px;
}
.preference-option strong {
  font-size: 12px;
}
.preference-option small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.preference-option input {
  accent-color: var(--accent);
}
.preference-option .rank {
  width: 27px;
  height: 27px;
  background: var(--panel-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.preference-option .icon-button {
  margin-left: auto;
}
.portal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.portal-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}
.portal-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 25px;
}
.portal-grid .panel {
  padding: 25px;
}
.portal-grid h2 {
  margin-bottom: 20px;
}
.portal-grid .detail-row {
  font-size: 12px;
}
.portal-grid .button {
  margin-top: 20px;
}
.mobile-menu {
  display: none;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--muted);
  font-size: 14px;
}
.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 20px;
}
.allocation-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin: 20px 0;
}
.method-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  text-align: left;
}
.method-card.active {
  border-color: #95bc7a;
  background: #273122;
  color: var(--accent);
}
.method-card strong {
  display: block;
  font-size: 14px;
  margin: 11px 0 7px;
}
.method-card p {
  font-size: 11px;
  line-height: 1.6;
}
.inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.contract-paper {
  background: #faf9f4;
  color: #2b3328;
  padding: 30px;
  border-radius: 7px;
  font-family: Georgia, serif;
}
.contract-paper h2 {
  margin-bottom: 20px;
}
.contract-paper p {
  color: #4a5346;
  line-height: 1.8;
  margin-bottom: 14px;
}
.status-chip {
  background: #232f23;
  border-radius: 30px;
  padding: 5px 9px;
  color: #bdd49f;
  font-size: 9px;
}
.report-bars {
  padding: 25px;
}
.report-bar {
  margin: 22px 0;
}
.report-bar > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
}
.report-bar .progress-track {
  height: 10px;
}
.table-wrap tr[data-open] {
  cursor: pointer;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 42px;
  }
  .project-hero {
    height: 225px;
  }
  .metric {
    padding: 25px;
  }
  .task-item {
    padding: 22px 0;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .topbar {
    padding: 0 24px;
  }
  .content {
    padding: 28px 24px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(250px, 1fr);
    gap: 16px;
  }
  .metric {
    padding: 16px 14px;
  }
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .top-actions .date {
    display: none;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .registration-layout {
    grid-template-columns: 1fr 260px;
  }
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    width: 235px;
    box-shadow: 0 0 0 100vw #0007;
  }
  .main {
    grid-column: 1;
  }
  .mobile-menu {
    display: grid;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .breadcrumbs {
    display: none;
  }
  .top-actions {
    gap: 10px;
  }
  .content {
    padding: 25px 18px;
  }
  .metrics {
    gap: 10px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-top .icon {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .heading-buttons .button {
    padding: 10px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
  .login-form-wrap {
    min-height: 100vh;
    padding: 28px;
  }
  .public-hero h1 {
    font-size: 40px;
  }
  .registration-layout {
    grid-template-columns: 1fr;
  }
  .registration-aside {
    display: none;
  }
  .public-header {
    padding: 0 22px;
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 18px;
  }
  .metric-value {
    font-size: 28px;
    margin: 10px 0;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .recent-panel {
    grid-column: auto;
  }
  .inventory-grid {
    grid-template-columns: 1fr;
  }
  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar-left {
    flex-wrap: wrap;
  }
  .searchbox {
    flex: 1;
  }
  .searchbox input {
    width: 100%;
  }
  .tabs {
    overflow: auto;
    white-space: nowrap;
  }
  .tab {
    padding: 12px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal header {
    padding: 20px;
  }
  .modal form {
    padding: 20px;
  }
  .bottom-note {
    gap: 15px;
    line-height: 1.6;
  }
  .topbar .select-project {
    max-width: 150px;
  }
  .public-header .brand {
    font-size: 19px;
  }
  .public-header nav {
    gap: 10px;
  }
  .public-header nav > a:first-child {
    display: none;
  }
  .public-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 10px;
  }
  .public-hero img {
    height: 220px;
  }
  .public-hero h1 {
    font-size: 43px;
  }
  .public-container {
    padding: 24px 18px;
  }
  .stepper {
    overflow: auto;
    padding-bottom: 10px;
  }
  .step {
    flex-shrink: 0;
  }
  .step span {
    display: none;
  }
  .step.active span {
    display: block;
  }
  .registration-card {
    padding: 20px;
  }
  .allocation-methods {
    grid-template-columns: 1fr;
  }
  .method-card {
    padding: 14px;
  }
  .method-card strong {
    display: inline;
    margin-left: 12px;
  }
  .method-card p {
    margin-top: 8px;
  }
  .public-header .button {
    font-size: 10px;
    padding: 9px;
  }
  .portal-heading {
    align-items: flex-start;
    gap: 15px;
  }
  .project-summary {
    padding-left: 18px;
    padding-right: 18px;
  }
  .project-summary div {
    padding-left: 12px;
  }
}

.modal-backdrop.light .modal {
  background: var(--panel);
  color: var(--text);
}
.modal-backdrop.light .field > span {
  color: var(--text);
}

.sidebar {
  overflow-y: auto;
}
[hidden] {
  display: none !important;
}

/* Media Management & Cards */
.media-management-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}
.media-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
.media-action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.media-empty-state {
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
}
.media-group {
  margin-top: 10px;
}
.media-group h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #8b949e);
  margin-bottom: 12px;
}
.media-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.media-card {
  background: var(--panel, #161b22);
  border: 1px solid var(--border, #30363d);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.media-card:hover {
  border-color: var(--accent, #2ea043);
}
.media-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0d1117;
  overflow: hidden;
}
.media-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-thumb .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-primary-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(46, 160, 67, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.media-visibility-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.badge-public {
  background: rgba(35, 134, 54, 0.9);
  color: #fff;
}
.badge-internal {
  background: rgba(110, 118, 129, 0.9);
  color: #fff;
}
.media-card-info {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.media-card-info strong {
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-card-actions {
  padding: 6px 12px 10px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.media-docs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.media-doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--panel, #161b22);
  border: 1px solid var(--border, #30363d);
  border-radius: 6px;
}
.doc-icon {
  color: var(--accent, #2ea043);
  display: flex;
  align-items: center;
}
.doc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.doc-info strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted, #8b949e);
}
.doc-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.video-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}
.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.gallery-thumb-item {
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.gallery-thumb-item:hover {
  opacity: 1 !important;
  transform: scale(1.05);
}

/* Media Badges & Action States */
.media-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.media-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.media-badge .icon {
  width: 11px;
  height: 11px;
}
.media-cover-badge {
  background: rgba(217, 119, 6, 0.95);
  color: #fff;
}
.media-thumb-badge {
  background: rgba(37, 99, 235, 0.95);
  color: #fff;
}
.icon-button.active-cover {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
}
.icon-button.active-thumb {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
}

/* Upload Dropzone & Multi-file Queue */
.upload-modal-content {
  display: flex;
  flex-direction: column;
}
.upload-dropzone {
  margin-top: 12px;
}
.dropzone-inner {
  border: 2px dashed var(--border, #30363d);
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.15s ease, background 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dropzone-inner:hover,
.upload-dropzone.dragover .dropzone-inner {
  border-color: var(--accent, #2ea043);
  background: rgba(46, 160, 67, 0.05);
}
.dropzone-icon {
  width: 32px;
  height: 32px;
  color: var(--accent, #2ea043);
}
.media-queue-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}
.queue-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--panel, #161b22);
  border: 1px solid var(--border, #30363d);
  border-radius: 6px;
}
.queue-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  max-width: 200px;
}
.queue-item-icon {
  color: var(--muted, #8b949e);
  display: flex;
  align-items: center;
}
.queue-item-name-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.queue-filename {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-filesize {
  font-size: 10px;
}
.queue-item-title-field {
  flex: 1;
}
.queue-title-input {
  width: 100%;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid var(--border, #30363d);
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
}
.queue-title-input:focus {
  border-color: var(--accent, #2ea043);
  outline: none;
}
.queue-item-flags {
  display: flex;
  gap: 6px;
  align-items: center;
}
.flag-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  border: 1px solid var(--border, #30363d);
}
.flag-label input {
  margin: 0;
  cursor: pointer;
}
.flag-cover {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.3);
  color: #f59e0b;
}
.flag-thumb {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
  color: #60a5fa;
}
.flag-na {
  font-size: 12px;
  padding: 0 12px;
}
.queue-item-remove {
  flex-shrink: 0;
}
.progress-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent, #2ea043);
  transition: width 0.2s ease;
}

/* Interactive Project Scene / Camera Views */
.scene-section {
  margin: 30px 0 40px;
}
.scene-card {
  background: var(--panel, #161b18);
  border: 1px solid var(--border, #263028);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.public-shell.light .scene-card {
  background: #ffffff;
  border-color: #dbe4d8;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.scene-stage {
  aspect-ratio: 16 / 9;
  max-height: 540px;
  background: #0f1411;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.public-shell.light .scene-stage {
  background: #e8ede6;
}
.scene-stage img,
.scene-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.scene-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.scene-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  background: var(--surface, #1b221e);
  border-top: 1px solid var(--border, #263028);
}
.public-shell.light .scene-nav {
  background: #f7f9f6;
  border-color: #dbe4d8;
}
.scene-view-btn {
  background: transparent;
  border: 1px solid var(--border, #3a473e);
  color: var(--text, #e2e8e4);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.public-shell.light .scene-view-btn {
  border-color: #c9d5c5;
  color: #26382b;
  background: #ffffff;
}
.scene-view-btn:hover {
  background: rgba(255,255,255,0.05);
}
.public-shell.light .scene-view-btn:hover {
  background: #eef3ec;
}
.scene-view-btn.active,
.scene-view-btn[aria-pressed="true"] {
  background: var(--accent, #2ea043);
  border-color: var(--accent, #2ea043);
  color: #ffffff;
}

/* Woningkiezer Filter Bar */
.woningkiezer-box {
  background: var(--panel, #161b18);
  border: 1px solid var(--border, #263028);
  border-radius: 12px;
  padding: 22px;
  margin: 30px 0 24px;
}
.public-shell.light .woningkiezer-box {
  background: #ffffff;
  border-color: #dbe4d8;
}
.woningkiezer-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.woningkiezer-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted, #8b949e);
}
.woningkiezer-filters select,
.woningkiezer-filters input {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border, #3a473e);
  background: var(--surface, #1b221e);
  color: var(--text, #e2e8e4);
  font-size: 13px;
}
.public-shell.light .woningkiezer-filters select,
.public-shell.light .woningkiezer-filters input {
  background: #fbfdfa;
  border-color: #c9d5c5;
  color: #1e2b21;
}
.woningkiezer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #263028);
}
.public-shell.light .woningkiezer-toolbar {
  border-color: #e3ebe0;
}
.detail-box {
  background: var(--surface, #1c2420);
  border: 1px solid var(--border, #2d3830);
  border-radius: 6px;
  padding: 8px 12px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.public-shell.light .detail-box,
.modal-backdrop.light .detail-box {
  background: #f8faf6 !important;
  border-color: #dbe4d8 !important;
}
.detail-box span {
  display: block;
  font-size: 11px;
  color: var(--muted, #65736c);
}
.public-shell.light .detail-box span,
.modal-backdrop.light .detail-box span {
  color: #637568 !important;
  font-weight: 500;
}
.detail-box strong {
  font-size: 14px;
  color: var(--text, #223b35);
}
.public-shell.light .detail-box strong,
.modal-backdrop.light .detail-box strong {
  color: #1a2e20 !important;
  font-weight: 600;
}
.modal-backdrop:not(.light) .detail-box {
  background: #18221b !important;
  border-color: #28352b !important;
}
.modal-backdrop:not(.light) .detail-box span {
  color: #8fa093 !important;
}
.modal-backdrop:not(.light) .detail-box strong {
  color: #e6efe8 !important;
}

/* ==========================================================================
   Interactieve Woningzoeker & Projectkaart (Parc Ruysbroeck / DreamVisuals style)
   ========================================================================== */
.interactive-viewer-section {
  margin: 32px 0 24px;
}

.interactive-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.interactive-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legend-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border, #2d3830);
  color: var(--text, #e2e8e4);
}

.public-shell.light .legend-badge {
  background: #f0f4ee;
  border-color: #dbe4d8;
  color: #243528;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.legend-badge.available .legend-dot {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.legend-badge.option .legend-dot {
  background: #eab308;
  box-shadow: 0 0 6px rgba(234, 179, 8, 0.6);
}

.legend-badge.sold .legend-dot {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.interactive-card {
  position: relative;
  background: #080c09;
  border: 1px solid var(--border, #263229);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.public-shell.light .interactive-card {
  background: #ffffff;
  border-color: #cfd8cc;
  box-shadow: 0 16px 32px rgba(20, 30, 24, 0.12);
}

.public-shell.light .interactive-mobile-hint {
  background: rgba(245, 247, 244, 0.92);
  color: #536458;
  border-bottom: 1px solid #dbe4d8;
}

.interactive-mobile-hint {
  display: none;
  background: rgba(14, 20, 16, 0.85);
  backdrop-filter: blur(8px);
  color: #c9d5cb;
  font-size: 11px;
  text-align: center;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  .interactive-mobile-hint {
    display: block;
  }
}

.interactive-stage-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.interactive-stage-scroll::-webkit-scrollbar {
  height: 6px;
}
.interactive-stage-scroll::-webkit-scrollbar-thumb {
  background: #2b3930;
  border-radius: 3px;
}

.interactive-stage {
  position: relative;
  width: 100%;
  min-width: 960px;
  aspect-ratio: 16 / 9;
  background: #050706;
  overflow: hidden;
  user-select: none;
}

@media (min-width: 1200px) {
  .interactive-stage {
    min-width: 100%;
  }
}

.interactive-stage-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.interactive-stage-svg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.interactive-stage-svg-layer svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* SVG Interactive Paths */
.interactive-path {
  pointer-events: auto;
  cursor: pointer;
  fill: rgba(34, 197, 94, 0.38);
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease, opacity 0.25s ease, filter 0.2s ease;
}

.interactive-path.status-available {
  fill: rgba(34, 197, 94, 0.42);
  stroke: rgba(255, 255, 255, 0.85);
}

.interactive-path.status-option {
  fill: rgba(234, 179, 8, 0.45);
  stroke: rgba(255, 255, 255, 0.85);
}

.interactive-path.status-sold,
.interactive-path.sold {
  fill: rgba(239, 68, 68, 0.45);
  stroke: rgba(255, 255, 255, 0.75);
}

@media (hover: hover) {
  .interactive-path:hover,
  .interactive-path.hovered {
    fill: rgba(34, 197, 94, 0.75);
    stroke: #ffffff;
    stroke-width: 3;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.9));
  }

  .interactive-path.status-option:hover,
  .interactive-path.status-option.hovered {
    fill: rgba(234, 179, 8, 0.75);
    stroke: #ffffff;
    stroke-width: 3;
    filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.9));
  }

  .interactive-path.status-sold:hover,
  .interactive-path.sold:hover,
  .interactive-path.status-sold.hovered {
    fill: rgba(239, 68, 68, 0.75);
    stroke: #ffffff;
    stroke-width: 3;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.9));
  }
}

/* Dimmed when filtered out */
.interactive-path.dimmed {
  opacity: 0.12 !important;
  fill: rgba(90, 100, 95, 0.25) !important;
  stroke: rgba(255, 255, 255, 0.15) !important;
  stroke-width: 1px !important;
  filter: none !important;
  pointer-events: none !important;
}

/* Highlighting path when card below is hovered */
@keyframes unitGlowPulse {
  0%, 100% {
    stroke-width: 3px;
    stroke: #ffffff;
    filter: drop-shadow(0 0 8px rgba(195, 239, 157, 0.9)) drop-shadow(0 0 2px #ffffff);
  }
  50% {
    stroke-width: 5px;
    stroke: #c3ef9d;
    filter: drop-shadow(0 0 16px rgba(195, 239, 157, 1)) drop-shadow(0 0 4px #c3ef9d);
  }
}

.interactive-path.card-hovered {
  fill: rgba(195, 239, 157, 0.8) !important;
  animation: unitGlowPulse 1.2s infinite ease-in-out;
  pointer-events: auto !important;
  opacity: 1 !important;
}

/* Highlight card when corresponding polygon is hovered */
.unit-card.card-synced-hover,
.unit-card.card-highlighted-glow {
  border-color: var(--accent, #c3ef9d) !important;
  box-shadow: 0 0 20px rgba(195, 239, 157, 0.35) !important;
  transform: translateY(-2px);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Floating Tooltip Card */
.interactive-tooltip-card {
  position: absolute;
  z-index: 50;
  transform: translate(-50%, -100%);
  pointer-events: none;
  background: rgba(15, 22, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 12px 14px;
  color: #ffffff;
  width: 260px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: tooltipFadeIn 0.15s ease-out;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -95%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%);
  }
}

.interactive-tooltip-card::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: rgba(15, 22, 18, 0.94) transparent transparent;
}

.public-shell.light .interactive-tooltip-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #19271e;
  box-shadow: 0 12px 30px rgba(20, 30, 24, 0.18);
}
.public-shell.light .interactive-tooltip-card::after {
  border-color: rgba(255, 255, 255, 0.96) transparent transparent;
}
.public-shell.light .tooltip-title {
  color: #55675a;
}
.public-shell.light .tooltip-name {
  color: #19271e;
}

.tooltip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.tooltip-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #a4b3a8;
  text-transform: uppercase;
}

.tooltip-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 12px;
}

.tooltip-badge.badge-green {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.tooltip-badge.badge-amber {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.tooltip-badge.badge-red {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.tooltip-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tooltip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12px;
  color: #c9d5cb;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tooltip-meta strong {
  color: #ffffff;
}

.tooltip-hint {
  font-size: 11px;
  color: var(--accent, #c3ef9d);
  display: flex;
  align-items: center;
  gap: 4px;
}

.interactive-views-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  background: var(--surface, #141a16);
  border-top: 1px solid var(--border, #263229);
}

.public-shell.light .interactive-views-nav {
  background: #f4f7f3;
  border-color: #dbe4d8;
}

/* ==========================================================================
   Woonmodule & 360 Drone Interactive Presentation Viewer
   ========================================================================== */

.woonmodule-card {
  position: relative;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
  margin-bottom: 26px;
  border: 1px solid var(--border, #263229);
}

.public-shell.light .woonmodule-card {
  background: #ffffff;
  border-color: #cfd8cc;
  box-shadow: 0 16px 36px rgba(20, 30, 24, 0.12);
}

/* --------------------------------------------------------------------------
   Interactive Stage Filter Bar (Woningkiezer filters inside 360 viewer card)
   -------------------------------------------------------------------------- */
.stage-filter-bar {
  background: rgba(18, 26, 21, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
  position: relative;
}

.public-shell.light .stage-filter-bar {
  background: #f4f7f3;
  border-bottom: 1px solid #dbe4d8;
}

.stage-filter-controls {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
}

.stage-filter-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 120px;
}

.stage-filter-field label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  user-select: none;
}

.public-shell.light .stage-filter-field label {
  color: #536458;
}

.stage-filter-select,
.stage-filter-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8e4;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
  height: 33px;
  box-sizing: border-box;
}

.public-shell.light .stage-filter-select,
.public-shell.light .stage-filter-input {
  background: #ffffff;
  border-color: #c9d6c7;
  color: #19271e;
}

.stage-filter-select:hover,
.stage-filter-input:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.public-shell.light .stage-filter-select:hover,
.public-shell.light .stage-filter-input:hover {
  border-color: #8da48a;
  background: #ffffff;
}

.stage-filter-select:focus,
.stage-filter-input:focus {
  border-color: #2ea043;
  box-shadow: 0 0 0 2px rgba(46, 160, 67, 0.35);
}

/* Active filter highlight badge effect */
.stage-filter-select.is-filtered,
.stage-filter-input.is-filtered {
  border-color: #2ea043 !important;
  background: rgba(46, 160, 67, 0.22) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(46, 160, 67, 0.3);
}

.public-shell.light .stage-filter-select.is-filtered,
.public-shell.light .stage-filter-input.is-filtered {
  background: #e2f4e4 !important;
  color: #194632 !important;
  border-color: #2ea043 !important;
}

.stage-filter-search-field {
  min-width: 155px;
}

.stage-filter-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-filter-counter-badge {
  background: rgba(46, 160, 67, 0.18);
  color: #56d364;
  border: 1px solid rgba(86, 211, 100, 0.35);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.public-shell.light .stage-filter-counter-badge {
  background: #e4f5e7;
  color: #1b6329;
  border-color: #a8d5af;
}

.stage-filter-reset-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #c9d5cb;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stage-filter-reset-btn:hover {
  background: rgba(255, 75, 75, 0.2);
  border-color: rgba(255, 75, 75, 0.5);
  color: #ff7575;
}

.public-shell.light .stage-filter-reset-btn {
  background: #eef2ed;
  border-color: #ccd7ca;
  color: #435447;
}

.public-shell.light .stage-filter-reset-btn:hover {
  background: #ffebeb;
  border-color: #ff9e9e;
  color: #d62828;
}

@media (max-width: 900px) {
  .stage-filter-controls {
    gap: 8px;
  }
  .stage-filter-field {
    min-width: 105px;
  }
}

@media (max-width: 768px) {
  .stage-filter-bar {
    padding: 10px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .stage-filter-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }
  .stage-filter-field {
    min-width: unset;
  }
  .stage-filter-search-field {
    grid-column: 1 / -1;
  }
  .stage-filter-summary {
    justify-content: space-between;
    width: 100%;
  }
}

.woonmodule-stage-scroll {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.woonmodule-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  user-select: none;
  overflow: hidden;
}

/* Video rotation layer */
.woonmodule-movie-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
}

.woonmodule-movie-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

video#movie {
  opacity: 1;
}

video#movie-back {
  opacity: 0;
}

.woonmodule-stage.back video#movie {
  opacity: 0;
}

.woonmodule-stage.back video#movie-back {
  opacity: 1;
  z-index: 2;
}

/* Views layer (photo + SVG overlay) */
.woonmodule-selectors-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.woonmodule-unit-selector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.woonmodule-unit-selector.active {
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
}

/* When rotating, hide the photo/svg so the smooth video rotation is seen */
.woonmodule-stage.playing .woonmodule-unit-selector {
  display: none !important;
}

.woonmodule-stage.playing .map-pointer {
  display: none !important;
}

.woonmodule-stage.playing .stage-nav-arrow {
  pointer-events: none;
  opacity: 0.35;
}

.woonmodule-unit-selector .unit-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.woonmodule-unit-selector .unit-content svg {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

.fallback-view-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SVG Interactive polygons & status styling */
svg g[id^="bn"]:not(.disabled):not(.unselectable) {
  cursor: pointer;
  pointer-events: auto;
}

svg [fill^="#"] {
  fill: #ffffff;
  fill-opacity: 0;
}

svg [stroke^="#"] {
  stroke: #ffffff;
  stroke-width: 1.5;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-opacity: 0.9;
  vector-effect: non-scaling-stroke;
}

/* Colors matching woonmodule / dreamvisuals */
svg g [fill^="#"],
svg g.vrij [fill^="#"],
svg g.status-available [fill^="#"] {
  fill: #2ba272 !important; /* Green */
}

svg g.verkocht [fill^="#"],
svg g.status-sold [fill^="#"],
svg g.sold [fill^="#"] {
  fill: #ff1a1f !important; /* Red */
}

svg g.optie [fill^="#"],
svg g.status-option [fill^="#"] {
  fill: #ff6b24 !important; /* Orange */
}

/* Default state opacity */
.woonmodule-stage:not(.filter-active) [fill^="#"],
svg g.vrij [fill^="#"],
svg g.optie [fill^="#"],
svg g.verkocht [fill^="#"] {
  fill-opacity: 0.35;
}

/* Hover and active glow */
svg g.hover [fill^="#"],
svg g.active [fill^="#"] {
  fill-opacity: 0.82 !important;
}

svg g.hover [stroke^="#"],
svg g.active [stroke^="#"] {
  stroke: #ffffff !important;
  stroke-width: 2.8 !important;
  stroke-opacity: 1 !important;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85));
}

/* Dimmed when filtered out */
svg g.dimmed [fill^="#"] {
  fill-opacity: 0.05 !important;
}

svg g.dimmed [stroke^="#"] {
  stroke-opacity: 0.15 !important;
}

svg g.dimmed {
  pointer-events: none !important;
}

/* Enhanced visibility for matching units when filtering is active */
.woonmodule-stage.filter-active svg g:not(.dimmed) [fill^="#"] {
  fill-opacity: 0.65;
}

.woonmodule-stage.filter-active svg g:not(.dimmed) [stroke^="#"] {
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-opacity: 0.95;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

/* Side navigation arrows on stage */
.stage-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background-color: rgba(70, 125, 112, 0.88);
  color: #f0f5f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.stage-nav-arrow:hover {
  background-color: #194632;
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.public-shell.light .stage-nav-arrow {
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #19271e;
  box-shadow: 0 4px 16px rgba(20, 30, 24, 0.15);
}

.public-shell.light .stage-nav-arrow:hover {
  background-color: #ffffff;
  color: #1b6329;
}

.stage-nav-arrow.rotating-target {
  border-color: #56d364 !important;
  box-shadow: 0 0 20px rgba(86, 211, 100, 0.7) !important;
  background: conic-gradient(#56d364 var(--rot-progress, 0%), rgba(70, 125, 112, 0.88) 0) !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.1);
}

.stage-nav-arrow.arrow-left {
  left: 20px;
}

.stage-nav-arrow.arrow-right {
  right: 20px;
}

@media (max-width: 600px) {
  .stage-nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
  .stage-nav-arrow.arrow-left { left: 8px; }
  .stage-nav-arrow.arrow-right { right: 8px; }
}

/* Floating Map Pointer (Woonmodule Tooltip) */
.map-pointer {
  position: absolute !important;
  z-index: 100;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
  border-radius: 6px;
  background-color: #2ba272;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  min-width: 180px;
  max-width: 250px;
  animation: pointerPop 0.15s ease-out;
}

@keyframes pointerPop {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

.map-pointer[data-status="vrij"] {
  background-color: #2ba272;
  border-color: #2ba272;
}

.map-pointer[data-status="optie"] {
  background-color: #ff6b24;
  border-color: #ff6b24;
}

.map-pointer[data-status="verkocht"] {
  background-color: #ff1a1f;
  border-color: #ff1a1f;
}

.map-pointer.arrowdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: inherit transparent transparent;
}

.map-pointer.arrowup::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent inherit;
}

.map-pointer-container {
  padding: 10px 16px 8px 16px;
}

.map-pointer h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 2px 0;
}

.map-pointer h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.map-pointer ul.unit-info {
  list-style: none;
  padding: 6px 0 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
}

.map-pointer ul.unit-info li.unit-value-price {
  font-weight: 700;
}

.map-pointer-btn {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  transition: background 0.15s ease;
}

.map-pointer:hover .map-pointer-btn {
  background: rgba(0, 0, 0, 0.4);
}

/* Compass Navigation Bar below the stage */
.woonmodule-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: #0f1612;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.public-shell.light .woonmodule-nav-bar {
  background: #f4f7f3;
  border-top: 1px solid #dbe4d8;
}

.compass-tabs-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compass-tab {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(70, 125, 112, 0.25);
  color: #c9d5cb;
  border: 1px solid rgba(70, 125, 112, 0.4);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compass-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: var(--rot-progress, 0%);
  background: linear-gradient(90deg, #2ea043, #56d364, #d8f5a2);
  box-shadow: 0 0 8px rgba(86, 211, 100, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: width 0.05s linear;
}

.compass-tab.rotating-target::after {
  opacity: 1;
}

.compass-tab.rotating-target {
  border-color: #56d364 !important;
  color: #ffffff !important;
  background: rgba(46, 160, 67, 0.35) !important;
  box-shadow: 0 0 14px rgba(86, 211, 100, 0.45) !important;
}

.public-shell.light .compass-tab {
  color: #2b3930;
  background: #e6ede6;
  border-color: #b5cbb3;
}

.public-shell.light .compass-tab.rotating-target {
  border-color: #2ea043 !important;
  background: #e0f2e3 !important;
  color: #194632 !important;
}

.compass-tab:hover {
  background: rgba(70, 125, 112, 0.5);
  color: #ffffff;
  border-color: rgba(70, 125, 112, 0.7);
}

.compass-tab.active {
  background: #467d70;
  color: #ffffff;
  border-color: #63a493;
  box-shadow: 0 2px 8px rgba(70, 125, 112, 0.4);
}

.compass-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 11px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.compass-tab.active .compass-code {
  background: rgba(0, 0, 0, 0.25);
}

.compass-tab.rotating-target .compass-code {
  background: conic-gradient(#56d364 var(--rot-progress, 0%), rgba(255, 255, 255, 0.2) 0) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(86, 211, 100, 0.7);
  transform: scale(1.15);
}

.stage-actions-group {
  display: flex;
  align-items: center;
}

#btn-replay-drone {
  position: relative;
  overflow: hidden;
}

#btn-replay-drone::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: var(--rot-progress, 0%);
  background: linear-gradient(90deg, #2ea043, #56d364);
  box-shadow: 0 0 8px rgba(86, 211, 100, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: width 0.05s linear;
}

#btn-replay-drone.rotating-target::after {
  opacity: 1;
}

#btn-replay-drone.rotating-target {
  border-color: #56d364 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(46, 160, 67, 0.45);
}

/* ==========================================================================
   Selectable 360 Drone Navigation Styles
   ========================================================================== */

/* Orientation Badge (Used in Stijl 1 Carousel Bar & Standalone) */
.stage-orientation-badge {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 25;
  pointer-events: auto;
}

.orientation-pill-btn {
  background: #d8f5a2;
  color: #162a19;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
  user-select: none;
}

.orientation-pill-btn:hover {
  background: #e4f9b8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.public-shell.light .orientation-pill-btn {
  background: #ffffff;
  color: #19271e;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 14px rgba(20, 30, 24, 0.12);
}

.public-shell.light .orientation-pill-btn:hover {
  background: #f4f7f3;
  color: #1b6329;
}

.pill-divider {
  opacity: 0.35;
  margin: 0 2px;
}

.compass-needle-mini {
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Stijl 1: Floating Segmented Carousel Bar (Referentie Screenshot 1)
   -------------------------------------------------------------------------- */
.stage-nav-carousel-wrapper {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: auto;
  width: max-content;
  max-width: 92%;
}

.stage-nav-carousel {
  background: rgba(18, 28, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  user-select: none;
}

.carousel-arrow {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s ease, transform 0.15s ease;
  border-radius: 4px;
}

.carousel-arrow:hover {
  color: #d8f5a2;
  transform: scale(1.15);
}

.carousel-arrow.rotating-target {
  color: #d8f5a2 !important;
  transform: scale(1.3);
  text-shadow: 0 0 12px rgba(216, 245, 162, 0.95);
}

.carousel-label {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.carousel-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2px;
  width: calc(var(--rot-progress, 0%) - 8px);
  max-width: calc(100% - 8px);
  background: linear-gradient(90deg, #56d364, #d8f5a2);
  box-shadow: 0 0 8px rgba(216, 245, 162, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: width 0.05s linear;
}

.carousel-label.rotating-target {
  color: #d8f5a2 !important;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(216, 245, 162, 0.6);
}

.carousel-label.rotating-target::after {
  opacity: 1;
}

.carousel-prev-label,
.carousel-next-label {
  color: rgba(255, 255, 255, 0.55);
}

.carousel-prev-label:hover,
.carousel-next-label:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.08);
}

.carousel-active-label {
  color: #d8f5a2;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 0 10px rgba(216, 245, 162, 0.45);
  cursor: default;
}

.carousel-separator {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
}

.public-shell.light .stage-nav-carousel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  color: #19271e;
}
.public-shell.light .stage-nav-carousel .carousel-arrow {
  color: #3b5042;
}
.public-shell.light .stage-nav-carousel .carousel-arrow:hover {
  color: #1b6329;
}
.public-shell.light .stage-nav-carousel .carousel-label {
  color: #435447;
}
.public-shell.light .stage-nav-carousel .carousel-active-label {
  color: #1b6329;
  text-shadow: 0 0 10px rgba(27, 99, 41, 0.25);
}
.public-shell.light .stage-nav-carousel .carousel-prev-label,
.public-shell.light .stage-nav-carousel .carousel-next-label {
  color: #728477;
}
.public-shell.light .stage-nav-carousel .carousel-prev-label:hover,
.public-shell.light .stage-nav-carousel .carousel-next-label:hover {
  color: #19271e;
  background: rgba(0, 0, 0, 0.05);
}
.public-shell.light .stage-nav-carousel .carousel-separator {
  color: #c0cfc2;
}

/* --------------------------------------------------------------------------
   Stijl 2: 360° Graden-slider & Scrubbalk (Referentie Screenshot 2)
   -------------------------------------------------------------------------- */
.stage-nav-slider-wrapper {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  pointer-events: auto;
  width: max-content;
  max-width: 94%;
}

.stage-nav-slider-bar {
  background: #fdfbf7;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  color: #1c2720;
}

.slider-scrub-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: #1c2720;
}

.slider-divider {
  opacity: 0.3;
  margin: 0 2px;
}

.slider-deg-min,
.slider-deg-max {
  font-size: 11px;
  font-weight: 600;
  color: #64746b;
  min-width: 24px;
  text-align: center;
}

.slider-track-wrap {
  width: 140px;
  height: 24px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.slider-track {
  width: 100%;
  height: 4px;
  background: #e2ddd5;
  border-radius: 2px;
  position: relative;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #264a38;
  border-radius: 2px;
  transition: width 0.2s ease;
}

.slider-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #88968d;
  border: 1px solid #fdfbf7;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  z-index: 2;
}

.slider-dot:hover {
  background: #264a38;
  transform: translate(-50%, -50%) scale(1.4);
}

.slider-dot.active {
  background: #1c2720;
  transform: translate(-50%, -50%) scale(1.5);
}

.slider-dot.rotating-target {
  width: 14px;
  height: 14px;
  background: conic-gradient(#2ea043 var(--rot-progress, 0%), #c0cfc5 0) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 0 3px rgba(46, 160, 67, 0.4), 0 0 12px rgba(46, 160, 67, 0.7) !important;
  transform: translate(-50%, -50%) scale(1.35);
  z-index: 4;
}

.slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1c2720;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: left 0.2s ease;
  z-index: 3;
}

.woonmodule-stage.playing .slider-thumb,
.woonmodule-stage.playing .slider-fill {
  transition: none !important;
}

.slider-compass-box {
  background: #f4eee2;
  border: 1px solid #dfd7c9;
  border-radius: 6px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1c2720;
  white-space: nowrap;
}

.slider-compass-icon {
  display: inline-block;
  font-size: 13px;
  transition: transform 0.3s ease;
}

.slider-cta-btn {
  background: #e07a2d;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
  box-shadow: 0 3px 10px rgba(224, 122, 45, 0.35);
}

.slider-cta-btn:hover {
  background: #cf6e23;
  color: #ffffff;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Stijl 3: Orbitale Horizon-vluchtboog (Referentie Screenshot 3)
   -------------------------------------------------------------------------- */
.stage-nav-orbit-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 22;
  pointer-events: none;
  overflow: hidden;
}

.stage-orbit-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  pointer-events: none;
}

.orbit-path {
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 2.2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.orbit-path-glow {
  stroke: url(#orbitGradActive);
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(86, 211, 100, 0.9));
  transition: opacity 0.25s ease;
}

.woonmodule-stage.playing .orbit-path-glow {
  opacity: 1;
  stroke-dasharray: 80 160;
  animation: orbitFlightGlow 1.1s linear infinite;
}

@keyframes orbitFlightGlow {
  from {
    stroke-dashoffset: 480;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.orbit-waypoints-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  pointer-events: none;
}

.orbit-waypoint {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.orbit-dot-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 32px;
  height: 32px;
}

.orbit-dot-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.orbit-dot-core {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #2a8368;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
}

.orbit-waypoint-label {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
  margin-top: 4px;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.orbit-active-pill {
  display: none;
  background: #267a65;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 4px;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  animation: orbitPillPop 0.2s ease-out;
}

@keyframes orbitPillPop {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.orbit-waypoint.active .orbit-dot-ring {
  border-color: rgba(58, 178, 140, 0.65);
  background: rgba(58, 178, 140, 0.25);
  transform: scale(1.1);
}

.orbit-waypoint.active .orbit-dot-core {
  width: 14px;
  height: 14px;
  background: #e89547;
  border-color: #ffffff;
}

.orbit-waypoint.active .orbit-waypoint-label {
  display: none;
}

.orbit-waypoint.active .orbit-active-pill {
  display: block;
}

.orbit-waypoint.rotating-target .orbit-dot-ring {
  border: none;
  background: conic-gradient(#56d364 var(--rot-progress, 0%), rgba(255, 255, 255, 0.2) 0) !important;
  transform: scale(1.35);
  box-shadow: 0 0 16px rgba(86, 211, 100, 0.8);
}

.orbit-waypoint.rotating-target .orbit-dot-core {
  background: #56d364 !important;
  border-color: #ffffff !important;
  transform: scale(1.2);
}

.orbit-waypoint.rotating-target .orbit-waypoint-label {
  color: #d8f5a2 !important;
  text-shadow: 0 0 10px rgba(86, 211, 100, 0.9);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Stijl 4: Architectonische Kompasroos (Creatieve 360° windroos)
   -------------------------------------------------------------------------- */
.stage-compass-rose-wrapper {
  position: absolute;
  bottom: 20px;
  right: 22px;
  z-index: 25;
  pointer-events: auto;
}

.stage-compass-rose {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(18, 28, 22, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.compass-dial {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.compass-rose-point {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px;
  transition: all 0.15s ease;
}

.compass-rose-point:hover {
  color: #ffffff;
  transform: scale(1.2);
}

.compass-rose-point.point-n {
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-rose-point.point-o {
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
}

.compass-rose-point.point-z {
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-rose-point.point-w {
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
}

.compass-rose-point.active {
  color: #d8f5a2;
  font-size: 13px;
  text-shadow: 0 0 6px #d8f5a2;
}

.compass-rose-point.rotating-target {
  color: #56d364 !important;
  transform: scale(1.4);
  text-shadow: 0 0 10px rgba(86, 211, 100, 0.95);
}

.compass-rose-point.rotating-target::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: conic-gradient(#56d364 var(--rot-progress, 0%), transparent 0);
  z-index: -1;
  opacity: 0.7;
}

.compass-rose-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.compass-rose-needle {
  color: #e07a2d;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.public-shell.light .stage-compass-rose {
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.public-shell.light .compass-rose-point {
  color: #55675a;
}
.public-shell.light .compass-rose-point:hover {
  color: #19271e;
}
.public-shell.light .compass-rose-point.active {
  color: #1b6329;
  text-shadow: 0 0 6px rgba(27, 99, 41, 0.4);
}
.public-shell.light .compass-rose-center {
  background: rgba(0, 0, 0, 0.05);
  border: 1px dashed rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   Compact Nav Bar & Status Badge
   -------------------------------------------------------------------------- */
.compact-nav-bar {
  padding: 10px 18px;
}

.compact-view-status {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--muted, #8b949e);
}

.compact-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text, #e2e8e4);
}

.public-shell.light .compact-status-badge {
  background: #ffffff;
  border-color: #dbe4d8;
  color: #2b3930;
}

/* Floorplan Highlight Banner in Unit Modal */
.floorplan-banner {
  animation: fadeIn 0.2s ease-out;
}

.modal-backdrop.light .floorplan-banner {
  background: #eef5ec !important;
  border-color: #c5dac1 !important;
}
.modal-backdrop.light .floorplan-banner strong {
  color: #1b5329 !important;
}
.modal-backdrop.light .floorplan-banner span {
  color: #55675a !important;
}
.modal-backdrop.light .gallery-thumb-item {
  border-color: #dce2d5 !important;
}
.modal-backdrop.light .modal h4 {
  color: #203021 !important;
}
.modal-backdrop.light .modal .project-description-text {
  color: #4a5a4e !important;
}
.modal-backdrop:not(.light) .modal h4 {
  color: #e6efe8 !important;
}
.modal-backdrop:not(.light) .modal .project-description-text {
  color: #9eb1a4 !important;
}

/* ==========================================================================
   Unit Detail Gallery, Active Thumbnails & Fullscreen Lightbox
   ========================================================================== */
.main-detail-img-wrap {
  position: relative;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
  background: #f8faf6;
  border: 1px solid var(--border, #dce2d5);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.modal-backdrop:not(.light) .main-detail-img-wrap {
  background: #141c16;
  border-color: #28352b;
}

#main-detail-img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.main-detail-img-wrap:hover #main-detail-img {
  transform: scale(1.015);
}

.zoom-hint-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(20, 30, 24, 0.78);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.15s ease;
  user-select: none;
}

.main-detail-img-wrap:hover .zoom-hint-badge {
  opacity: 1;
  background: rgba(20, 30, 24, 0.92);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb-item {
  width: 68px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  background: #eef2ec;
  flex-shrink: 0;
}

.modal-backdrop:not(.light) .gallery-thumb-item {
  background: #1c261e;
}

.gallery-thumb-item:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.gallery-thumb-item.active-thumb {
  opacity: 1 !important;
  border-color: var(--accent, #315638) !important;
  box-shadow: 0 0 0 1px var(--accent, #315638);
}

/* Fullscreen Lightbox Overlay */
.image-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 10, 0.95);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.15s ease-out;
}

.lightbox-header {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  z-index: 10001;
}

.lightbox-title {
  font-size: 15px;
  font-weight: 500;
  color: #e5ede7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.15s ease;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.06);
}

.lightbox-main-img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85);
  user-select: none;
  animation: fadeIn 0.2s ease-out;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 30, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  transition: all 0.15s ease;
  z-index: 10001;
  user-select: none;
}

.lightbox-nav-btn:hover {
  background: rgba(34, 197, 94, 0.9);
  border-color: #22c55e;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-btn.prev {
  left: 20px;
}

.lightbox-nav-btn.next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  background: rgba(20, 30, 24, 0.8);
  padding: 6px 14px;
  border-radius: 20px;
  color: #d1ded5;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* --------------------------------------------------------------------------
   Mobile Responsiveness Media Queries (<768px & <480px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .stage-orientation-badge {
    top: 10px;
    left: 10px;
  }
  .orientation-pill-btn {
    font-size: 11px;
    padding: 5px 10px;
    gap: 4px;
  }
  .stage-nav-carousel-wrapper {
    bottom: 12px;
    max-width: 95%;
  }
  .stage-nav-carousel {
    padding: 4px 10px;
    gap: 6px;
  }
  .stage-nav-carousel .carousel-label {
    font-size: 12px;
    padding: 3px 6px;
  }
  .stage-nav-slider-wrapper {
    bottom: 10px;
    width: 95%;
    max-width: 95%;
  }
  .stage-nav-slider-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
  }
  .slider-track-wrap {
    width: 100px;
  }
  .stage-compass-rose-wrapper {
    bottom: 12px;
    right: 12px;
  }
  .stage-compass-rose {
    width: 74px;
    height: 74px;
  }
  .stage-nav-orbit-wrapper .orbit-waypoint-label {
    font-size: 9px;
  }
  .stage-nav-orbit-wrapper .orbit-active-pill {
    font-size: 10px;
    padding: 3px 8px;
  }
  .public-unit-detail-modal {
    max-height: 86vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 4px;
  }
  .unit-fact-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .map-pointer {
    max-width: min(230px, 85vw);
  }
}

@media (max-width: 480px) {
  .stage-nav-carousel .carousel-prev-label,
  .stage-nav-carousel .carousel-next-label {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .slider-scrub-section {
    width: 100%;
    justify-content: space-between;
  }
  .slider-track-wrap {
    flex: 1;
    max-width: 120px;
  }
  .slider-cta-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .unit-fact-grid {
    grid-template-columns: 1fr !important;
  }
  .interactive-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}



