@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ---------------------------------------------------------
   SHOUSE Management System — Neutral shell styling
   No brand identity is locked in here (colors/fonts are
   intentionally plain). Visual identity to be defined later.
--------------------------------------------------------- */
:root {
  --bg: #F7F7F8;
  --surface: #FFFFFF;
  --text: #1F1F22;
  --text-soft: #6B6B70;
  --text-faint: #9A9AA0;
  --border: #E3E3E6;
  --border-strong: #CFCFD3;

  --accent: #2B2B2E;
  --accent-bg: #EDEDEF;

  --status-ok-text: #276B3C;
  --status-ok-bg: #E4F1E8;
  --status-attention-text: #B54708;
  --status-attention-bg: #FBEBDD;
  --status-delay-text: #B42318;
  --status-delay-bg: #FBE3E1;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --radius: 4px;
  --sidebar-width: 260px;
}

* { box-sizing: border-box; }

/* Any element with the hidden attribute must stay hidden, even if
   another rule elsewhere sets display on the same element (e.g.
   .modal-overlay { display: flex }). Author rules normally beat the
   browser's built-in [hidden] rule regardless of specificity, so this
   is made explicit and !important here rather than relying on rule
   ordering. */
[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }

/* ---------------------------------------------------------
   Layout shell
--------------------------------------------------------- */
.shell {
  display: flex;
  min-height: 100vh;
}

/* ---------------------------------------------------------
   Sidebar
--------------------------------------------------------- */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 28px 0 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-top {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.wordmark {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.wordmark-sub {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 3px;
}

.wordmark--button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.wordmark--button:hover {
  color: var(--text-soft);
}

.nav-list {
  display: flex;
  flex-direction: column;
  padding: 12px 12px;
  gap: 2px;
  flex: 1;
}

.nav-link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 14px;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.nav-link:hover {
  background: var(--bg);
  color: var(--text);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.nav-link[aria-current="page"] {
  background: var(--accent-bg);
  color: var(--text);
  border-left-color: var(--accent);
  font-weight: 500;
}

.nav-link--owner {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  border-radius: var(--radius);
}

.nav-link--projects {
  justify-content: space-between;
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.nav-link--projects .nav-chevron {
  font-size: 18px;
  line-height: 1;
  color: var(--text-faint);
  transform: rotate(0deg);
  transition: transform 0.12s ease;
}

.nav-link--projects.is-expanded .nav-chevron {
  transform: rotate(90deg);
}

.nav-subnav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-subnav[hidden] {
  display: none;
}

.nav-link--sub {
  padding-left: 30px;
  font-size: 13.5px;
}

.sidebar-bottom {
  padding: 16px 24px 0;
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

/* ---------------------------------------------------------
   Main / topbar
--------------------------------------------------------- */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text);
}

.content {
  flex: 1;
  padding: 48px 56px 72px;
  max-width: 1080px;
}

/* ---------------------------------------------------------
   Panels
--------------------------------------------------------- */
.panel-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.panel-header h1 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.panel-intro {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0;
}

.owner-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--status-attention-text);
  background: var(--status-attention-bg);
  padding: 4px 9px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

/* ---------------------------------------------------------
   Dashboard: stat row
--------------------------------------------------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 44px;
}

.stat-card {
  background: var(--surface);
  padding: 22px 20px;
}

.stat-value {
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.stat-card--attention .stat-value { color: var(--status-attention-text); }

.stat-label {
  font-size: 12.5px;
  color: var(--text-soft);
  margin-top: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.block-title {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 14px;
}

.line-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.line-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.line-list li:last-child { border-bottom: none; }

.line-text {
  flex: 1;
  color: var(--text);
}

.line-meta {
  font-size: 12px;
  color: var(--text-faint);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot--ok { background: var(--status-ok-text); }
.dot--attention { background: var(--status-attention-text); }
.dot--delay { background: var(--status-delay-text); }

/* ---------------------------------------------------------
   Daily Task Tracker table
--------------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--border);
  overflow-x: auto;
  background: var(--surface);
}

.tracker-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.tracker-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--bg);
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}

.tracker-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  vertical-align: middle;
}

.tracker-table tr:last-child td { border-bottom: none; }

.cell-name {
  font-weight: 500;
  color: var(--text);
}

.tracker-project-link {
  display: inline;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.tracker-project-link:hover {
  text-decoration: underline;
}

.progress {
  width: 100px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
}

.status {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: var(--radius);
}
.status--ok { background: var(--status-ok-bg); color: var(--status-ok-text); }
.status--attention { background: var(--status-attention-bg); color: var(--status-attention-text); }
.status--delay { background: var(--status-delay-bg); color: var(--status-delay-text); }

/* ---------------------------------------------------------
   Project grid (Architecture / Turnkey)
--------------------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-card {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 22px;
  border-radius: var(--radius);
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.project-card-top h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius);
  background: var(--accent-bg);
  color: var(--text-soft);
  white-space: nowrap;
}

.project-meta {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.project-card .progress {
  width: 100%;
  margin: 14px 0 12px;
}

.project-footer {
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------------------------------------------------------
   Owner Access
--------------------------------------------------------- */
.owner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.owner-card {
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  padding: 22px 18px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-soft);
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 880px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .project-grid { grid-template-columns: 1fr; }
  .owner-grid { grid-template-columns: repeat(2, 1fr); }
  .content { padding: 36px 28px 60px; }
}

@media (max-width: 720px) {
  .topbar { display: flex; }
  .nav-toggle { display: flex; }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.18s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
    box-shadow: 0 0 0 2000px rgba(0,0,0,0.35);
  }

  .content { padding: 28px 20px 48px; }
  .panel-header h1 { font-size: 22px; }
  .owner-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------------------------------------------------------
   Daily Task Tracker — module additions
--------------------------------------------------------- */

.panel-note {
  font-size: 12px;
  color: var(--text-faint);
  margin: -30px 0 0;
}

.storage-notice {
  font-size: 12.5px;
  color: var(--status-attention-text);
  background: var(--status-attention-bg);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin: 12px 0 0;
  display: inline-block;
}

.fatal-error-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--status-delay-text);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 10px 16px;
}

/* ---------------------------------------------------------
   Projects module — list, form, workspace
--------------------------------------------------------- */

.stat-row--projects {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 12px;
}

.projects-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.projects-count {
  font-size: 13px;
  color: var(--text-soft);
}

.project-card {
  cursor: pointer;
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.project-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.scope-count-badge {
  font-size: 12px;
  color: var(--text-soft);
}

.project-card-actions {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Project form */
.form-section-heading {
  margin-bottom: 20px;
}

.form-section-heading h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.project-form {
  max-width: 760px;
}

.form-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 6px;
  margin: 0 0 24px;
}

.form-section legend {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0 6px;
}

.radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 9px 0;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
}

.radio-group input {
  width: auto;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  max-width: 760px;
}

/* Consistent field geometry across every project/task form. */
.project-form,
.project-form *,
#task-form,
#task-form * {
  box-sizing: border-box;
}

.project-form .form-row,
#task-form .form-row {
  width: 100%;
  min-width: 0;
}

.project-form .form-row > div,
#task-form .form-row > div {
  min-width: 0;
}

.project-form input,
.project-form select,
.project-form textarea,
#task-form input,
#task-form select,
#task-form textarea {
  max-width: 100%;
}

.unit-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 8px;
  width: 100%;
}

.unit-input input,
.unit-input select {
  width: 100%;
  min-width: 0;
}

/* Scope of Work checklist */
.scope-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  margin: 0 0 16px;
}

.scope-group legend {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  padding: 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: normal;
}

.scope-group-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: none;
  letter-spacing: normal;
}

.scope-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 20px;
  margin-bottom: 12px;
}

.scope-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
  padding: 5px 0;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.scope-item input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.scope-item--custom {
  justify-content: space-between;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 5px 8px;
}

.scope-remove-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.scope-remove-btn:hover { color: var(--status-delay-text); }

.scope-add-custom {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.scope-add-custom .control-input {
  flex: 1;
  width: auto;
}

.btn--small {
  padding: 8px 12px;
  font-size: 12.5px;
  white-space: nowrap;
}

/* Project Workspace */
.workspace {
  max-width: 900px;
  width: 100%;
  text-align: left;
}

.workspace * {
  box-sizing: border-box;
}

.workspace-block,
.workspace-scope-group,
.timeline-shell,
.timeline-shell > *,
.timeline-task-list {
  min-width: 0;
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.workspace-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.workspace-title-row h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.workspace-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.workspace-block--upcoming {
  background: var(--bg);
  border-style: dashed;
}

.detail-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.detail-list dt {
  color: var(--text-soft);
}

.detail-list dd {
  margin: 0;
  color: var(--text);
  text-align: right;
}

.workspace-description {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
  margin: 10px 0 0;
  white-space: pre-wrap;
}

.workspace-scope-group {
  margin-bottom: 16px;
}

.workspace-scope-group:last-child { margin-bottom: 0; }

.workspace-scope-group h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-scope-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 20px;
}

.workspace-scope-list li {
  font-size: 13px;
  color: var(--text-soft);
}

.scope-custom-tag {
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (max-width: 720px) {
  .scope-items,
  .workspace-scope-list {
    grid-template-columns: 1fr;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .workspace-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Tracker summary row: reuse .stat-row but allow 5 columns */
.stat-row--tracker {
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 28px;
}

.stat-card--delay .stat-value { color: var(--status-delay-text); }

/* Controls */
.tracker-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tracker-controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.control-input,
.control-select {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
}

.control-input {
  width: 220px;
}

.control-input:focus,
.control-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

/* Buttons */
.btn {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius);
  padding: 9px 16px;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover { background: #1c1c1e; }

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover { background: var(--bg); }

.btn--danger {
  background: var(--status-delay-text);
  color: #fff;
  border-color: var(--status-delay-text);
}

.btn--danger-text {
  background: none;
  color: var(--status-delay-text);
  border: none;
  padding: 9px 0;
}

.btn--danger-text:hover { text-decoration: underline; }

/* Table additions */
.col-actions {
  white-space: nowrap;
}

.cell-subtext {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 3px;
}

.progress-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-cell .progress {
  width: 72px;
}

.progress-value {
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
}

.remark-cell {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status--completed {
  background: var(--accent-bg);
  color: var(--text-soft);
}

.status--neutral {
  background: var(--accent-bg);
  color: var(--text-soft);
}

.derived-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  background: var(--accent-bg);
  border-radius: var(--radius);
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.row-project-derived {
  background: var(--bg);
}

.sample-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1px 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.link-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: 4px 6px;
}

.link-btn:hover { color: var(--text); text-decoration: underline; }

.link-btn--danger:hover { color: var(--status-delay-text); }

.table-empty {
  padding: 32px 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-faint);
  margin: 0;
}

/* Pending-for ageing indicators */
.ageing-cell {
  font-weight: 500;
}

.ageing-normal { color: var(--text-soft); }

.ageing-attention {
  color: var(--status-attention-text);
}

.ageing-delay {
  color: var(--status-delay-text);
  font-weight: 600;
}

/* ---------------------------------------------------------
   Modal
--------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 22, 0.4);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  overflow-y: auto;
  z-index: 100;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-faint);
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover { color: var(--text); }

#tracker-form {
  padding: 20px 24px 24px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.form-row textarea {
  resize: vertical;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modal-footer:has(#tracker-delete-btn:not([hidden]))  {
  justify-content: space-between;
}

.modal-footer-right {
  display: flex;
  gap: 10px;
}

.modal-footer--confirm {
  justify-content: space-between;
  align-items: center;
}

.confirm-text {
  font-size: 13px;
  color: var(--status-delay-text);
}

@media (max-width: 620px) {
  .unit-input { grid-template-columns: minmax(0, 1fr) 96px; }
  .form-row--split {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tracker-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .tracker-controls-left {
    flex-direction: column;
    align-items: stretch;
  }
  .control-input { width: 100%; }
  .stat-row--tracker { grid-template-columns: repeat(2, 1fr); }
  .stat-row--projects { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   MODULE 03 — Timeline / Tasks
   ========================================================= */
.workspace-block--timeline { grid-column: 1 / -1; }
.timeline-shell { border-top: 1px solid var(--line, #ddd); padding-top: 20px; }
.timeline-header-row { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; width:100%; }
.timeline-header-row > div:first-child { min-width:0; flex:1; }
.timeline-progress { flex:0 0 auto; }
.timeline-progress { min-width:110px; text-align:right; display:flex; flex-direction:column; }
.timeline-progress strong { font-size:28px; font-weight:500; }
.timeline-progress span { font-size:11px; color:var(--muted,#777); text-transform:uppercase; letter-spacing:.08em; }
.timeline-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:18px 0 12px; }
.timeline-toolbar .timeline-role { margin-right:auto; }
.timeline-role label { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted,#777); }
.timeline-role select { border:1px solid var(--line,#ddd); background:var(--paper,#fff); padding:7px 9px; border-radius:4px; font:inherit; }
.timeline-badge { display:inline-flex; align-items:center; padding:6px 9px; border:1px solid var(--line,#ddd); border-radius:999px; font-size:11px; text-transform:uppercase; letter-spacing:.07em; }
.timeline-badge--approved { border-color:#8b9a86; }
.timeline-badge--draft, .timeline-badge--none { border-color:#c8b88d; }
.timeline-summary { display:flex; gap:18px; border-top:1px solid var(--line,#ddd); border-bottom:1px solid var(--line,#ddd); padding:10px 0; color:var(--muted,#777); font-size:12px; }
.task-stage { margin-top:18px; }
.task-stage-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:7px; }
.task-stage-title h4 { margin:0; font-family:var(--font-display, Georgia, serif); font-size:17px; font-weight:500; }
.task-stage-title span { color:var(--muted,#777); font-size:11px; }
.task-row { display:grid; grid-template-columns:minmax(220px,1.6fr) 110px minmax(150px,1fr) 90px 150px; gap:12px; align-items:center; border-top:1px solid var(--line,#e4e1db); padding:12px 0; font-size:13px; }
.task-main { display:flex; flex-direction:column; gap:3px; }
.task-sub { color:var(--muted,#777); font-size:11px; }
.task-row-actions { display:flex; gap:8px; justify-content:flex-end; }
.task-warning, .task-overdue { display:block; font-size:10px; margin-top:3px; }
.task-warning { color:#8a6b20; }
.task-overdue { color:#9a3f35; font-weight:600; }
.priority { font-size:10px; text-transform:uppercase; letter-spacing:.06em; }
.priority--urgent, .priority--high { font-weight:700; }
.priority--low { color:var(--muted,#777); }
.gantt-block { margin-top:24px; border-top:1px solid var(--line,#ddd); padding-top:18px; }
.gantt { overflow:auto; }
.gantt-axis { display:flex; justify-content:space-between; font-size:10px; color:var(--muted,#777); margin:0 0 7px 180px; }
.gantt-row { display:grid; grid-template-columns:170px minmax(420px,1fr); gap:10px; align-items:center; margin:7px 0; }
.gantt-label { font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gantt-track { height:16px; position:relative; background:repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), var(--line,#e4e1db) calc(10% - 1px), var(--line,#e4e1db) 10%); border-bottom:1px solid var(--line,#e4e1db); }
.gantt-bar { position:absolute; top:3px; height:10px; border-radius:2px; background:#66705f; }
.gantt-bar.status--delay { background:#9a3f35; }
.gantt-bar.status--attention { background:#a88638; }
.gantt-bar.status--neutral { background:#aaa79f; }
.gantt-bar.status--ok { background:#66705f; }












.project-progress-mini { display:flex; align-items:center; gap:8px; margin:9px 0; }
.project-progress-mini .progress { flex:1; }
.project-progress-mini span { font-size:10px; color:var(--muted,#777); white-space:nowrap; }
.modal--task { max-width:720px; }
.modal--task #task-form {
  padding: 20px 24px 24px;
}
.modal--task .form-row--split > div {
  min-width: 0;
}
.modal--task .form-row input,
.modal--task .form-row select,
.modal--task .form-row textarea {
  display: block;
  min-width: 0;
}
.modal--task .modal-footer {
  width: 100%;
}
.form-help { display:block; margin-top:5px; color:var(--muted,#777); font-size:10px; }
.check-inline { display:flex !important; flex-direction:row !important; align-items:center; gap:7px; margin-top:8px; }
.check-inline input { width:auto !important; }
.task-inline-note { margin:0 0 12px; padding:9px 11px; border:1px solid #c8b88d; font-size:12px; }
.timeline-diff { padding:2px 0; }
.diff-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.diff-grid > div { border:1px solid var(--line,#ddd); padding:12px; }
.diff-grid h4 { margin:0 0 10px; font-family:var(--font-display,Georgia,serif); font-weight:500; }
.diff-grid div div { padding:8px 0; border-top:1px solid var(--line,#eee); font-size:12px; }

@media (max-width: 900px) {
  .task-row { grid-template-columns:1fr 100px; }
  .task-row > :nth-child(3), .task-row > :nth-child(4) { display:none; }
  .task-row-actions { grid-column:2; grid-row:1; }
  .timeline-header-row { flex-direction:column; }
  .timeline-progress { text-align:left; }
  .gantt-row { grid-template-columns:120px minmax(360px,1fr); }
  .gantt-axis { margin-left:130px; }
}
@media (max-width: 720px) {
  .timeline-toolbar { align-items:stretch; }
  .timeline-toolbar .timeline-role { width:100%; margin-right:0; }
  .timeline-toolbar .btn { flex:1; }
  .diff-grid { grid-template-columns:1fr; }
}

/* ---------------------------------------------------------
   Module 03 — Alignment correction
   Keep timeline/task columns visually locked and left-aligned.
--------------------------------------------------------- */
.timeline-shell,
.timeline-shell * {
  box-sizing: border-box;
}

.timeline-shell {
  text-align: left;
}

.timeline-header-row,
.timeline-toolbar,
.timeline-summary,
.task-stage-title,
.task-row,
.gantt,
.gantt-axis,
.gantt-row,
.diff-grid,
.timeline-diff {
  text-align: left;
}

.timeline-toolbar {
  align-items: center;
}

.timeline-toolbar .timeline-role {
  margin-right: auto;
}

.task-row {
  width:100%;
  grid-template-columns: minmax(0, 2fr) 110px 130px 90px 170px;
  column-gap: 16px;
  align-items: start;
}

.task-row > * {
  min-width: 0;
}

.task-main,
.task-main * {
  text-align: left;
}

.task-row-actions {
  align-items: flex-start;
  justify-content: flex-end;
  white-space: nowrap;
}

.task-stage-title h4,
.task-stage-title span,
.task-row .task-sub,
.task-row .status,
.task-row .priority,
.task-row .task-date,
.task-row .task-row-actions {
  text-align: left;
}

.task-row-actions {
  text-align: right;
}

/* Regeneration comparison modal: consistent two-column alignment. */
.modal--task .timeline-diff {
  width: 100%;
}

.modal--task .diff-grid {
  align-items: stretch;
}

.modal--task .diff-grid > div {
  min-width: 0;
  text-align: left;
}

.modal--task .diff-grid h4 {
  text-align: left;
}

.modal--task .diff-grid div div {
  text-align: left;
}

/* Prevent long task/project names from pushing neighbouring columns. */
.task-row .task-main,
.task-row .task-main strong,
.task-row .task-sub {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .task-row {
    grid-template-columns: minmax(0, 1fr) 100px;
    column-gap: 12px;
  }
}


/* ---------------------------------------------------------
   Module 04 — Utility
--------------------------------------------------------- */
.utility-project-bar {
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(220px, .7fr);
  gap:16px;
  margin-bottom:20px;
  padding:16px;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:var(--radius);
}
.utility-project-bar label,
.utility-source-label {
  display:block;
  margin-bottom:7px;
  font-size:11px;
  font-weight:700;
  color:var(--text-soft);
  letter-spacing:.03em;
}
.utility-project-bar .control-select { width:100%; min-height:40px; }
.utility-source-status {
  align-self:end;
  min-height:40px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.utility-source-status strong {
  font-size:13px;
  font-weight:500;
  color:var(--text);
  overflow-wrap:anywhere;
}
.utility-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.utility-card {
  border:1px solid var(--border);
  background:var(--surface);
  padding:22px;
  border-radius:var(--radius);
  min-height:210px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.utility-card--primary { border-color:var(--border-strong); }
.utility-card-kicker { font-size:10.5px; font-weight:700; letter-spacing:.08em; color:var(--text-faint); margin-bottom:10px; }
.utility-card h3 { margin:0 0 8px; font-size:17px; }
.utility-card p { margin:0 0 18px; color:var(--text-soft); font-size:13.5px; line-height:1.65; max-width:68ch; }
.utility-action { margin-top:auto; }
.utility-action:disabled { opacity:.48; cursor:not-allowed; }
.utility-note {
  margin-top:18px;
  padding:15px 16px;
  border:1px dashed var(--border);
  color:var(--text-soft);
  font-size:12.5px;
  line-height:1.65;
}
.utility-note strong { color:var(--text); font-weight:600; }
.form-help-inline { font-size:11px; font-weight:400; color:var(--text-faint); }
@media (max-width:880px){ .utility-grid{grid-template-columns:1fr;} .utility-project-bar{grid-template-columns:1fr;} }

/* ---------------------------------------------------------
   Module 04 — Utility / Client Documents
   --------------------------------------------------------- */
.utility-documents-root{margin-top:20px;border:1px solid var(--border);background:#fff;padding:18px 20px}
.utility-documents-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:4px}
.utility-documents-head h3{margin:0;font-size:15px;font-weight:600}
.utility-documents-head span{font-size:12px;color:var(--text-faint)}
.utility-doc-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid var(--border)}
.utility-doc-row:last-child{border-bottom:0}
.utility-doc-row strong{display:block;font-size:13.5px;margin-bottom:4px}
.utility-doc-row span{display:block;font-size:11.5px;color:var(--text-soft)}
.utility-empty{padding:18px 0;color:var(--text-soft);font-size:13px}
.utility-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.42);display:flex;align-items:center;justify-content:center;padding:24px;z-index:1000}
.utility-modal-backdrop[hidden]{display:none}
.utility-modal{width:min(920px,100%);max-height:90vh;background:#fff;border:1px solid var(--border-strong);display:flex;flex-direction:column;box-shadow:0 18px 50px rgba(0,0,0,.18)}
.utility-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px;border-bottom:1px solid var(--border)}
.utility-modal-kicker{font-size:10px;letter-spacing:.08em;color:var(--text-faint);font-weight:700;margin-bottom:5px}
.utility-modal-head h2{margin:0;font-size:18px;font-weight:600}
.utility-modal-close{border:0;background:none;font-size:24px;line-height:1;color:var(--text-soft);cursor:pointer;padding:0 2px}
.utility-modal-meta{padding:10px 20px;border-bottom:1px solid var(--border);font-size:11.5px;color:var(--text-soft)}
.utility-document-editor{display:block;width:100%;min-height:480px;resize:vertical;border:0;border-bottom:1px solid var(--border);padding:20px;font:13px/1.7 Arial,sans-serif;color:var(--text);outline:none;box-sizing:border-box}
.utility-modal-foot{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 20px}
.utility-modal-foot>span{font-size:11.5px;color:var(--text-soft)}
.utility-modal-foot>div{display:flex;gap:8px}
.utility-modal-foot button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:720px){.utility-modal-backdrop{padding:10px}.utility-modal{max-height:96vh}.utility-document-editor{min-height:55vh}.utility-modal-foot{align-items:flex-start;flex-direction:column}.utility-modal-foot>div{width:100%;flex-wrap:wrap}.utility-doc-row{align-items:flex-start}}

/* Workspace collapsible sections — keeps long project pages clean without
   changing the underlying content or functionality. */
.workspace-collapsible {
  padding: 0;
  overflow: hidden;
}
.workspace-collapsible > summary {
  list-style: none;
}
.workspace-collapsible > summary::-webkit-details-marker { display: none; }
.workspace-collapsible__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 0 20px;
  cursor: pointer;
  user-select: none;
}
.workspace-collapsible__summary .block-title {
  margin: 0;
}
.workspace-collapsible__chevron {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  color: var(--text-soft);
  transform: rotate(0deg);
  transition: transform .16s ease;
}
.workspace-collapsible[open] .workspace-collapsible__chevron {
  transform: rotate(180deg);
}
.workspace-collapsible__body {
  border-top: 1px solid var(--border);
  padding: 18px 20px 20px;
}
.workspace-collapsible--timeline .workspace-collapsible__body,
.workspace-block--timeline.workspace-collapsible .workspace-collapsible__body {
  padding-top: 18px;
}
.workspace-block--utility .workspace-collapsible__body {
  padding-top: 16px;
}

/* The utility document is downloaded from its own generated-document modal;
   there is intentionally no persistent Generated Documents panel in the page. */
.utility-modal-foot { flex-wrap: wrap; }
.utility-modal-foot > div { flex-wrap: wrap; }
@media(max-width:720px){
  .workspace-collapsible__summary { min-height: 52px; padding: 0 14px; }
  .workspace-collapsible__body { padding: 14px; }
}

/* =========================================================
   SHOUSE UI SYSTEM v1 — Immersive Dashboard
   ========================================================= */
:root {
  --bg: #f2f1ed;
  --surface: #f8f7f3;
  --surface-strong: #ffffff;
  --text: #1d211e;
  --text-soft: #737a73;
  --border: #d9dbd4;
  --border-strong: #c7cbc3;
  --accent: #315e4a;
  --accent-soft: #dce7df;
  --accent-ink: #244635;
  --warning: #9a6b2f;
  --danger: #9a433b;
  --shadow: 0 18px 50px rgba(29,33,30,.07);
  --radius: 2px;
}

body {
  background:
    radial-gradient(circle at 78% 8%, rgba(49,94,74,.055), transparent 27rem),
    linear-gradient(180deg, #f6f5f1 0%, #efeee9 100%);
  color: var(--text);
}

.shell { min-height: 100vh; }

.sidebar {
  background: rgba(246,245,241,.94);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.sidebar-top { padding: 28px 24px 26px; }
.wordmark--button {
  letter-spacing: .16em;
  font-size: 17px;
  font-weight: 700;
}
.wordmark-sub { color: #8a9089; letter-spacing: .04em; }
.nav-list { padding: 18px 10px; }
.nav-link {
  border-radius: 2px;
  color: #5f665f;
  min-height: 38px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-link:hover { background: #e9e9e4; color: var(--text); }
.nav-link[aria-current="page"] {
  background: #e3e7e0;
  color: var(--accent-ink);
  box-shadow: inset 2px 0 0 var(--accent);
}
.nav-link--projects { font-weight: 600; }
.nav-subnav { border-left: 1px solid var(--border); margin-left: 18px; }
.nav-link--sub { min-height: 34px; font-size: 13px; }

.topbar {
  background: rgba(246,245,241,.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.topbar-title { letter-spacing: .04em; color: #515851; }
.content { max-width: none; padding: 30px 42px 80px; }

.dashboard-panel { max-width: 1280px; margin: 0 auto; }
.dashboard-hero {
  min-height: 250px;
  position: relative;
  overflow: hidden;
  background: #1f2a24;
  color: #f4f4ef;
  border: 1px solid #1f2a24;
  display: flex;
  align-items: flex-end;
  padding: 42px 46px;
  box-shadow: var(--shadow);
}
.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 57%, rgba(255,255,255,.045) 57.1% 57.3%, transparent 57.4%),
    linear-gradient(165deg, transparent 0 68%, rgba(255,255,255,.06) 68.1% 68.3%, transparent 68.4%);
  pointer-events: none;
}
.dashboard-hero-grid {
  position: absolute;
  inset: 0;
  opacity: .19;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 100%);
}
.dashboard-hero-copy { position: relative; z-index: 2; max-width: 650px; }
.dashboard-hero .eyebrow { color: #aebdb3; }
.dashboard-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 500;
}
.dashboard-hero p { margin: 0; color: #c8cec9; max-width: 510px; font-size: 15px; }
.dashboard-hero-mark {
  position: absolute;
  right: 46px;
  top: 36px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255,255,255,.16);
  display: grid;
  place-items: center;
  transform: rotate(45deg);
}
.dashboard-hero-mark span { transform: rotate(-45deg); font-size: 34px; letter-spacing: .12em; color: #dfe6e0; }
.dashboard-hero-mark i { position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.08); }
.dashboard-hero-mark i:nth-child(2) { inset: 32px; }
.dashboard-hero-mark i:nth-child(3) { inset: 50px; }

.eyebrow {
  font-size: 10px;
  line-height: 1;
  letter-spacing: .17em;
  color: #7a8179;
  font-weight: 700;
}
.dashboard-metrics {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.45);
}
.metric { min-height: 126px; padding: 24px 24px 20px; border-right: 1px solid var(--border); }
.metric--lead { background: rgba(49,94,74,.055); }
.metric--attention .metric-value { color: var(--danger); }
.metric-kicker { font-size: 11px; color: #737a73; text-transform: uppercase; letter-spacing: .09em; }
.metric-value { margin-top: 14px; font-size: 42px; line-height: .9; letter-spacing: -.05em; font-weight: 500; }
.metric-label { margin-top: 8px; color: #7d837c; font-size: 12px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .8fr); gap: 18px; margin-top: 18px; }
.dashboard-section { background: rgba(250,249,245,.72); border: 1px solid var(--border); }
.dashboard-section--projects { min-width: 0; }
.dashboard-section--attention { min-width: 0; }
.section-head { padding: 22px 24px 17px; display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid var(--border); }
.section-head h2 { margin: 7px 0 0; font-size: 19px; font-weight: 500; letter-spacing: -.025em; }
.section-count { font-size: 11px; color: #7d837c; }
.project-field { display: flex; flex-direction: column; }
.project-tile {
  appearance: none; border: 0; border-bottom: 1px solid var(--border); background: transparent;
  width: 100%; display: grid; grid-template-columns: 34px minmax(180px, 1.25fr) minmax(100px, .5fr) minmax(150px, .9fr) 26px;
  align-items: center; gap: 14px; padding: 18px 22px; text-align: left; color: var(--text); cursor: pointer;
  transition: background .18s ease, padding .18s ease;
}
.project-tile:last-child { border-bottom: 0; }
.project-tile:hover { background: #eef0eb; padding-left: 26px; }
.project-tile-index { color: #9ca39c; font-size: 10px; letter-spacing: .08em; }
.project-tile-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.project-tile-main strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-tile-main small, .project-tile-next small { color: #858c85; font-size: 10px; }
.project-tile-progress { display: flex; align-items: center; gap: 8px; }
.project-tile-progress b { font-size: 11px; font-weight: 500; color: #626a62; }
.progress-line { height: 3px; background: #dfe2dd; flex: 1; min-width: 48px; overflow: hidden; }
.progress-line i { display: block; height: 100%; background: var(--accent); }
.project-tile-next { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.project-tile-next span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-tile-next em { color: #858c85; font-size: 10px; font-style: normal; }
.project-tile-arrow { color: #929a92; font-size: 17px; }

.attention-list { display: flex; flex-direction: column; }
.attention-item { appearance:none; border:0; border-bottom:1px solid var(--border); background:transparent; width:100%; padding:18px 20px; display:grid; grid-template-columns:10px 1fr auto; gap:12px; text-align:left; cursor:pointer; color:var(--text); }
.attention-item:hover { background:#eef0eb; }
.attention-dot { width:7px; height:7px; border-radius:50%; background:var(--accent); margin-top:5px; }
.attention-item.is-overdue .attention-dot { background:var(--danger); }
.attention-copy { min-width:0; display:flex; flex-direction:column; gap:5px; }
.attention-copy strong { font-size:12px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.attention-copy small { font-size:10px; color:#858c85; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.attention-date { font-size:10px; color:#7a8179; white-space:nowrap; }
.attention-item.is-overdue .attention-date { color:var(--danger); }
.dashboard-empty { padding:28px 24px; color:#8b918a; font-size:12px; }
.dashboard-empty--compact { min-height:130px; display:flex; align-items:center; }

.dashboard-section--types { margin-top:18px; }
.project-mix { display:grid; grid-template-columns:repeat(4,1fr); }
.mix-item { appearance:none; border:0; border-right:1px solid var(--border); background:transparent; padding:22px 24px; display:flex; align-items:flex-end; justify-content:space-between; cursor:pointer; color:var(--text); text-align:left; }
.mix-item:last-child { border-right:0; }
.mix-item:hover { background:#eef0eb; }
.mix-item span { font-size:12px; color:#697169; }
.mix-item strong { font-size:30px; line-height:.9; font-weight:500; letter-spacing:-.04em; }
.dashboard-legacy-stats { display:none; }

@media (max-width: 1000px) {
  .content { padding: 24px 24px 60px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-hero-mark { opacity:.35; right:20px; }
  .project-tile { grid-template-columns:26px minmax(150px,1fr) 100px 26px; }
  .project-tile-next { display:none; }
}
@media (max-width: 720px) {
  .content { padding: 18px 14px 48px; }
  .dashboard-hero { min-height: 280px; padding: 28px 24px; }
  .dashboard-hero-mark { width:120px; height:120px; right:-16px; top:24px; }
  .dashboard-metrics { grid-template-columns:repeat(2,1fr); }
  .metric { min-height:108px; padding:18px; }
  .metric-value { font-size:34px; }
  .project-tile { grid-template-columns:24px 1fr auto; padding:16px; }
  .project-tile-progress { display:none; }
  .project-mix { grid-template-columns:repeat(2,1fr); }
  .mix-item:nth-child(2) { border-right:0; }
  .mix-item:nth-child(-n+2) { border-bottom:1px solid var(--border); }
}


/* =========================================================
   SHOUSE UI PHASE 2 — IMMERSIVE / FUTURE STUDIO SYSTEM
   Based on UI Phase 1 Immersive. Visual-only refinement layer.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --font-body: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --bg: #eeeee9;
  --surface: #f7f7f3;
  --surface-strong: #fbfbf8;
  --text: #171b18;
  --text-soft: #687069;
  --text-faint: #8d948d;
  --border: #d2d5ce;
  --border-strong: #b9beb6;
  --accent: #315e4a;
  --accent-soft: #dce6df;
  --accent-ink: #234936;
  --warning: #9a6b2f;
  --danger: #98463d;
  --shadow: 0 22px 70px rgba(24,30,26,.08);
}

html, body { font-family: var(--font-body); }

/* Global page geometry: one alignment rail, no accidental horizontal overflow. */
.main { min-width: 0; }
.content { width: 100%; min-width: 0; overflow-x: clip; }
.dashboard-panel { width: min(100%, 1360px); min-width: 0; }
.dashboard-panel *, .dashboard-grid, .dashboard-section, .attention-list, .project-field { min-width: 0; }

/* More technical shell typography. */
.topbar-title,
.eyebrow,
.metric-kicker,
.section-count,
.project-tile-index,
.project-tile-main small,
.project-tile-next small,
.project-tile-next em,
.attention-copy small,
.attention-date,
.mix-item span,
.version-tag {
  font-family: var(--font-mono);
}

.wordmark--button { font-family: var(--font-body); letter-spacing: .18em; }

/* ---------------------------------------------------------
   Dashboard hero — spatial / architectural, not decorative.
--------------------------------------------------------- */
.dashboard-hero {
  min-height: 300px;
  padding: 52px 54px;
  border-radius: 0;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.dashboard-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,.16);
  z-index: 2;
}
.dashboard-hero-grid {
  background-size: 44px 44px;
  opacity: .22;
}
.dashboard-hero-copy { max-width: 720px; }
.dashboard-hero h1 {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -.065em;
  font-size: clamp(48px, 6vw, 82px);
}
.dashboard-hero p { font-size: 15px; line-height: 1.65; }
.dashboard-hero-mark {
  right: 58px;
  top: 44px;
  width: 190px;
  height: 190px;
  opacity: .9;
}

/* ---------------------------------------------------------
   Metrics — editorial data strip rather than card collection.
--------------------------------------------------------- */
.dashboard-metrics {
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  min-width: 0;
}
.metric { min-width: 0; padding: 26px 26px 22px; }
.metric-value {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: clamp(36px, 4vw, 48px);
  letter-spacing: -.055em;
}

/* ---------------------------------------------------------
   Main dashboard grid — hard fix for the previous clipping bug.
   Both columns can shrink to zero; children wrap instead of
   forcing the right column outside the viewport.
--------------------------------------------------------- */
.dashboard-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(0, .82fr);
  gap: 16px;
  align-items: stretch;
}
.dashboard-section { overflow: hidden; }
.section-head { min-width: 0; }
.section-head > * { min-width: 0; }
.section-head h2 { font-size: 20px; }

/* Project register rows. */
.project-tile {
  grid-template-columns: 34px minmax(0, 1.25fr) minmax(90px, .48fr) minmax(0, .9fr) 22px;
  gap: 16px;
  min-width: 0;
}
.project-tile-main strong,
.project-tile-next span,
.attention-copy strong,
.attention-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-tile-main strong { font-size: 14px; }
.project-tile-progress { min-width: 0; }

/* Live Pulse: never let long task names push the panel wider. */
.attention-item {
  grid-template-columns: 8px minmax(0, 1fr) auto;
  min-width: 0;
}
.attention-copy { min-width: 0; }
.attention-copy strong,
.attention-copy small { display: block; white-space: nowrap; }
.attention-date { min-width: 0; }

/* Studio mix gets a slightly more technical register. */
.project-mix { min-width: 0; }
.mix-item strong { font-family: var(--font-body); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------
   Shared futuristic details used across later pages.
--------------------------------------------------------- */
.panel-header h1,
.workspace-title-row h2,
.task-stage-title h4,
.modal-title,
.form-section legend {
  font-family: var(--font-body);
}

.workspace,
.timeline-shell,
.form-shell,
.utility-shell,
.table-wrap,
.modal,
.scope-group,
.workspace-block {
  min-width: 0;
}

/* Technical metadata is intentionally monospaced. */
.task-date,
.priority,
.timeline-summary,
.timeline-badge,
.project-meta,
.status,
.badge,
.tag {
  font-family: var(--font-mono);
}

/* Cleaner controls: crisp, technical, restrained. */
.btn, button, input, select, textarea { font-family: var(--font-body); }
.btn { border-radius: 2px; }
input, select, textarea { border-radius: 2px; }

/* Subtle motion: only transform/opacity, never layout-shifting animation. */
.project-tile,
.attention-item,
.mix-item,
.nav-link {
  transition: background-color .18s ease, color .18s ease, transform .18s ease, padding-left .18s ease;
}
.project-tile:hover { transform: translateX(2px); }
.attention-item:hover { transform: translateX(2px); }

/* ---------------------------------------------------------
   Responsive geometry — explicit breakpoints prevent clipping.
--------------------------------------------------------- */
@media (max-width: 1180px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); }
  .dashboard-hero-mark { right: 30px; opacity: .55; }
  .project-tile { grid-template-columns: 28px minmax(0, 1fr) 100px 22px; }
  .project-tile-next { display: none; }
}

@media (max-width: 920px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-section--attention { max-height: none; }
  .attention-item { grid-template-columns: 8px minmax(0, 1fr) auto; }
}

@media (max-width: 720px) {
  .dashboard-hero { min-height: 270px; padding: 30px 24px; }
  .dashboard-hero h1 { font-size: 48px; }
  .dashboard-hero-mark { width: 120px; height: 120px; right: -14px; top: 28px; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric { padding: 19px 18px; }
  .project-tile { grid-template-columns: 22px minmax(0,1fr) auto; padding: 16px; }
  .project-tile-progress { display: none; }
  .attention-item { grid-template-columns: 8px minmax(0,1fr); }
  .attention-date { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .project-tile, .attention-item, .mix-item, .nav-link { transition: none; }
}

/* =========================================================
   SHOUSE UI PHASE 3 — IMMERSIVE MOTION LAYER
   Inspired by the interaction craft and spatial composition of
   curated immersive web work; deliberately lightweight for an
   internal operations system.
   ========================================================= */
.dashboard-panel {
  --pointer-x: 50%;
  --pointer-y: 20%;
  position: relative;
  isolation: isolate;
}

.dashboard-panel::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(520px circle at var(--pointer-x) var(--pointer-y), rgba(49,94,74,.075), transparent 65%),
    radial-gradient(800px circle at 80% 20%, rgba(255,255,255,.6), transparent 60%);
  opacity: .9;
  transition: opacity .4s ease;
}

.dashboard-panel::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .26;
  background-image:
    linear-gradient(rgba(49,94,74,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49,94,74,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 85%, transparent);
}

.dashboard-hero {
  min-height: 360px;
  background:
    radial-gradient(700px circle at var(--pointer-x) var(--pointer-y), rgba(100,145,120,.16), transparent 48%),
    linear-gradient(135deg, #18221d 0%, #22342b 48%, #101613 100%);
  border-color: rgba(24,34,29,.8);
  box-shadow: 0 32px 100px rgba(21,31,25,.18);
  transition: background-position .2s ease;
}

.dashboard-hero-grid {
  background-size: 40px 40px;
  opacity: .26;
  animation: heroGridDrift 18s linear infinite;
}

.dashboard-hero::before {
  background:
    linear-gradient(115deg, transparent 0 54%, rgba(255,255,255,.055) 54.1% 54.25%, transparent 54.35%),
    linear-gradient(165deg, transparent 0 63%, rgba(255,255,255,.04) 63.1% 63.25%, transparent 63.35%),
    radial-gradient(circle at 72% 36%, rgba(170,205,185,.08), transparent 0 1%, transparent 22%);
}

.dashboard-hero-mark {
  animation: heroMarkFloat 8s ease-in-out infinite;
  transform-origin: center;
}

.dashboard-hero-mark::before,
.dashboard-hero-mark::after {
  content: "";
  position: absolute;
  inset: -24px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 50%;
  animation: orbitalSpin 16s linear infinite;
}

.dashboard-hero-mark::after {
  inset: -48px;
  border-style: dashed;
  opacity: .55;
  animation-duration: 24s;
  animation-direction: reverse;
}

.metric {
  position: relative;
  overflow: hidden;
  background: rgba(251,251,248,.72);
  backdrop-filter: blur(8px);
  transition: background .25s ease, transform .25s ease;
}

.metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}

.metric:hover { background: rgba(255,255,252,.95); transform: translateY(-2px); }
.metric:hover::before { width: 100%; }

.metric-value {
  position: relative;
  display: inline-block;
  min-width: 1.2ch;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -.07em;
  text-shadow: 0 0 0 rgba(49,94,74,0);
}

.metric-value.number-scrambling,
.stat-value.number-scrambling,
.mix-item strong.number-scrambling {
  filter: blur(.35px);
  opacity: .68;
  text-shadow: 0 0 22px rgba(49,94,74,.18);
}

.metric-value.number-settled,
.stat-value.number-settled,
.mix-item strong.number-settled {
  animation: numberSettle .42s ease-out both;
}

.project-tile,
.attention-item,
.mix-item {
  position: relative;
  overflow: hidden;
}

.project-tile::after,
.attention-item::after,
.mix-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.project-tile:hover::after,
.attention-item:hover::after,
.mix-item:hover::after { transform: scaleY(1); }

.project-tile:hover { background: rgba(49,94,74,.055); }
.attention-item:hover { background: rgba(49,94,74,.055); }
.mix-item:hover { background: rgba(49,94,74,.055); }

.progress-line {
  position: relative;
  background: #d9ded8;
}
.progress-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  transform: translateX(-100%);
  animation: progressShimmer 3.6s ease-in-out infinite;
}

.section-head {
  background: linear-gradient(180deg, rgba(255,255,255,.4), transparent);
}

.eyebrow::before {
  content: "//";
  color: var(--accent);
  margin-right: 7px;
  opacity: .65;
}

@keyframes heroGridDrift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(40px,40px,0); }
}

@keyframes heroMarkFloat {
  0%, 100% { transform: rotate(45deg) translate3d(0,0,0); }
  50% { transform: rotate(48deg) translate3d(0,-6px); }
}

@keyframes orbitalSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes progressShimmer {
  0%, 45% { transform: translateX(-100%); }
  70%, 100% { transform: translateX(100%); }
}

@keyframes numberSettle {
  0% { transform: translateY(-5px) scale(1.03); opacity: .45; }
  60% { transform: translateY(1px) scale(.99); opacity: .92; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 1180px) {
  .dashboard-hero { min-height: 330px; }
}

@media (max-width: 720px) {
  .dashboard-panel::before { display: none; }
  .dashboard-panel::after { opacity: .16; }
  .dashboard-hero-grid { animation-duration: 28s; }
  .dashboard-hero-mark::before,
  .dashboard-hero-mark::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-hero-grid,
  .dashboard-hero-mark,
  .dashboard-hero-mark::before,
  .dashboard-hero-mark::after,
  .progress-line::after { animation: none !important; }
  .metric { transition: none; }
}

/* =========================================================
   SHOUSE UI PHASE 4 — BRAND / SPATIAL SYSTEM
   Uses the supplied SHOUSE mark as the visual anchor.
   No application logic is changed in this layer.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Sora:wght@400;500;600;700&display=swap');

:root {
  --font-body: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --brand-ink: #17201d;
  --brand-ink-2: #22302a;
  --brand-teal: #6f9690;
  --brand-teal-soft: rgba(111,150,144,.13);
  --brand-gold: #c3a15b;
  --brand-gold-soft: rgba(195,161,91,.13);
  --surface-glass: rgba(255,255,255,.68);
  --line-glow: rgba(111,150,144,.24);
}

html, body {
  font-family: var(--font-body);
  letter-spacing: -.012em;
}

body {
  background:
    radial-gradient(700px 420px at 88% 0%, rgba(111,150,144,.09), transparent 68%),
    radial-gradient(560px 380px at 12% 95%, rgba(195,161,91,.07), transparent 70%),
    linear-gradient(180deg, #f7f7f3 0%, #ecece7 100%);
}

/* ---------- Brand lockup ---------- */
.sidebar-top {
  padding: 22px 22px 24px;
  position: relative;
}
.sidebar-top::after {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-gold), var(--border), var(--brand-teal));
  opacity: .55;
}
.wordmark--button { width: auto; }
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-lockup img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(45,55,50,.12));
}
.brand-lockup > span {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .18em;
}
.wordmark-sub {
  margin-left: 44px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.brand-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 0 4px rgba(111,150,144,.10), 0 0 14px rgba(111,150,144,.45);
  animation: brandPulse 2.4s ease-in-out infinite;
}

/* ---------- Navigation becomes a studio instrument ---------- */
.nav-list { padding: 20px 10px; gap: 5px; }
.nav-link {
  position: relative;
  min-height: 42px;
  padding: 10px 14px;
  border-left: 1px solid transparent;
  border-radius: 3px;
  font-size: 12.5px;
  letter-spacing: .015em;
  overflow: hidden;
}
.nav-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(111,150,144,.08), transparent);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.nav-link:hover::after { transform: translateX(100%); }
.nav-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(111,150,144,.15), rgba(111,150,144,.035));
  color: var(--brand-ink);
  border-left-color: var(--brand-teal);
  box-shadow: inset 0 0 28px rgba(111,150,144,.04);
}
.nav-link--projects {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.nav-link--sub { min-height: 36px; padding-left: 30px; font-size: 12px; }
.nav-subnav { border-left-color: rgba(111,150,144,.25); }
.nav-link--owner { margin-top: 12px; }

/* ---------- Every top-level tab gets a spatial header ---------- */
.panel:not(.dashboard-panel) {
  position: relative;
  isolation: isolate;
}
.panel:not(.dashboard-panel)::before {
  content: '';
  position: absolute;
  inset: -30px -42px auto;
  height: 250px;
  z-index: -1;
  pointer-events: none;
  opacity: .8;
  background:
    radial-gradient(circle at 84% 30%, rgba(111,150,144,.09), transparent 28%),
    linear-gradient(rgba(23,32,29,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,32,29,.035) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.panel-header {
  position: relative;
  margin-bottom: 28px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--border);
}
.panel-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 74px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-teal));
}
.panel-header h1 {
  font-family: var(--font-body);
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -.045em;
  font-weight: 500;
}
.panel-intro { font-size: 13px; max-width: 680px; }

/* ---------- Cards / project surfaces ---------- */
.project-card,
.workspace-block,
.utility-card,
.utility-project-bar,
.table-wrap,
.stat-card,
.owner-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border-color: rgba(199,203,195,.72);
  box-shadow: 0 12px 38px rgba(29,33,30,.045);
}
.project-card,
.utility-card,
.owner-card {
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.project-card::before,
.utility-card::before,
.owner-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-teal), transparent);
  opacity: .7;
}
.project-card:hover,
.utility-card:hover,
.owner-card:hover {
  transform: translateY(-3px);
  border-color: rgba(111,150,144,.42);
  box-shadow: 0 18px 48px rgba(29,33,30,.075);
}

/* ---------- Tracker: turn the table into a clean data surface ---------- */
.tracker-table { background: rgba(255,255,255,.48); }
.tracker-table th {
  background: linear-gradient(180deg, rgba(111,150,144,.08), rgba(111,150,144,.025));
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
}
.tracker-table td { font-size: 12.5px; }
.tracker-table tbody tr { transition: background .2s ease; }
.tracker-table tbody tr:hover { background: rgba(111,150,144,.055); }
.tracker-project-link { transition: color .18s ease; }
.tracker-project-link:hover { color: #426e67; text-decoration: none; }
.progress { height: 6px; border-radius: 999px; background: rgba(23,32,29,.10); }
.progress-fill { background: linear-gradient(90deg, var(--brand-teal), var(--brand-gold)); border-radius: inherit; }

/* ---------- Project workspace ---------- */
.workspace { max-width: 1180px; }
.workspace-title-row { margin-bottom: 30px; }
.workspace-title-row h2 { font-size: clamp(30px, 4vw, 50px); letter-spacing: -.055em; font-weight: 500; }
.workspace-block { border-radius: 6px; }
.workspace-block:not(.workspace-block--timeline) { position: relative; }
.workspace-block:not(.workspace-block--timeline)::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-teal);
  box-shadow: 0 0 0 5px rgba(111,150,144,.07);
}
.detail-list > div { padding: 4px 0; }
.block-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .10em;
}

/* ---------- Timeline / tasks: stronger hierarchy and spatial depth ---------- */
.workspace-block--timeline {
  border-color: rgba(111,150,144,.28);
  background:
    radial-gradient(500px 180px at 90% 0%, rgba(111,150,144,.07), transparent 70%),
    rgba(255,255,255,.66);
}
.timeline-shell { border-top-color: rgba(111,150,144,.22); }
.timeline-header-row { padding-bottom: 4px; }
.timeline-progress strong { font-family: var(--font-mono); font-size: 34px; letter-spacing: -.07em; }
.timeline-badge { font-family: var(--font-mono); font-size: 9px; letter-spacing: .11em; }
.timeline-toolbar { padding: 10px 0; }
.timeline-toolbar .btn { min-height: 38px; }
.timeline-summary {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .025em;
  border-color: rgba(111,150,144,.18);
}
.task-stage { margin-top: 22px; }
.task-stage-title {
  padding: 9px 0;
  border-bottom: 1px solid rgba(111,150,144,.18);
}
.task-stage-title h4 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.task-stage-title span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; }
.task-row {
  position: relative;
  min-height: 58px;
  padding: 13px 10px 13px 0;
  border-top-color: rgba(23,32,29,.08);
  transition: background .2s ease, transform .2s ease;
}
.task-row::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 7px;
  bottom: 7px;
  width: 2px;
  background: linear-gradient(var(--brand-gold), var(--brand-teal));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .22s ease;
}
.task-row:hover { background: rgba(111,150,144,.045); transform: translateX(3px); }
.task-row:hover::before { transform: scaleY(1); }
.task-main strong { font-weight: 600; }
.task-sub, .task-date { font-family: var(--font-mono); font-size: 9.5px; }
.priority { font-family: var(--font-mono); font-size: 9px; }
.gantt-block { border-top-color: rgba(111,150,144,.18); }
.gantt-track { background: repeating-linear-gradient(90deg, transparent 0, transparent calc(10% - 1px), rgba(23,32,29,.08) calc(10% - 1px), rgba(23,32,29,.08) 10%); }
.gantt-bar { background: linear-gradient(90deg, var(--brand-teal), #789d8b); box-shadow: 0 2px 10px rgba(111,150,144,.18); }
.gantt-bar.status--delay { background: linear-gradient(90deg, #a34d43, #c27a62); }

/* ---------- Utility ---------- */
.utility-card { min-height: 230px; }
.utility-card-kicker,
.utility-source-label,
.utility-modal-kicker {
  font-family: var(--font-mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.utility-card h3 { font-size: 18px; letter-spacing: -.025em; }
.utility-card p { max-width: 52ch; }
.utility-documents-root { background: rgba(255,255,255,.55); }
.utility-modal { border-radius: 8px; backdrop-filter: blur(20px); }

/* ---------- Forms / modals ---------- */
.modal,
.utility-modal { box-shadow: 0 30px 90px rgba(17,25,21,.22); }
.modal-header,
.utility-modal-head { background: linear-gradient(180deg, rgba(111,150,144,.055), transparent); }
.modal-header h2,
.utility-modal-head h2 { letter-spacing: -.025em; }
.form-row label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.form-row input,
.form-row select,
.form-row textarea,
.control-input,
.control-select,
.timeline-role select {
  background: rgba(255,255,255,.78);
  border-color: rgba(111,150,144,.22);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.control-input:focus,
.control-select:focus,
.timeline-role select:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(111,150,144,.11);
  background: #fff;
}
.btn--primary {
  background: linear-gradient(135deg, #263b32, #315e4a);
  border-color: #315e4a;
  box-shadow: 0 8px 22px rgba(49,94,74,.18);
}
.btn--primary:hover { background: linear-gradient(135deg, #1e3029, #2d5947); }

/* ---------- Section collapsibles: architectural reveal ---------- */
.workspace-collapsible { transition: border-color .25s ease, box-shadow .25s ease; }
.workspace-collapsible:hover { border-color: rgba(111,150,144,.35); }
.workspace-collapsible__summary { min-height: 66px; }
.workspace-collapsible__summary .block-title { font-size: 10px; }
.workspace-collapsible__chevron { font-family: var(--font-mono); color: var(--brand-teal); }

/* ---------- Motion ---------- */
@keyframes brandPulse {
  0%, 100% { opacity: .55; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.18); }
}

/* Keep the supplied mark inside the hero while preserving the existing orbit language. */
.dashboard-hero-mark {
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  overflow: visible;
}
.dashboard-hero-mark img {
  position: relative;
  z-index: 2;
  width: 126px;
  height: 126px;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.30));
  animation: logoFloat 7s ease-in-out infinite;
}
.hero-orbit {
  position: absolute;
  border: 1px solid rgba(195,161,91,.30);
  border-radius: 50%;
  transform: rotate(-24deg);
}
.hero-orbit--a { width: 178px; height: 78px; animation: orbitA 13s linear infinite; }
.hero-orbit--b { width: 220px; height: 104px; border-color: rgba(111,150,144,.22); animation: orbitB 19s linear infinite reverse; }

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}
@keyframes orbitA { from { transform: rotate(-24deg); } to { transform: rotate(336deg); } }
@keyframes orbitB { from { transform: rotate(22deg); } to { transform: rotate(-338deg); } }

@media (max-width: 720px) {
  .content { padding: 24px 18px 56px; }
  .panel:not(.dashboard-panel)::before { inset-inline: -18px; }
  .workspace-title-row h2 { font-size: 34px; }
  .dashboard-hero-mark img { width: 92px; height: 92px; }
  .hero-orbit--a { width: 140px; height: 62px; }
  .hero-orbit--b { width: 170px; height: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-pulse,
  .dashboard-hero-mark img,
  .hero-orbit--a,
  .hero-orbit--b { animation: none !important; }
  .project-card,
  .utility-card,
  .owner-card,
  .task-row { transition: none !important; }
}

/* =========================================================
   SHOUSE UI PHASE 5 — PREMIUM HORIZONTAL NAVIGATION
   Navigation is now a horizontal studio command bar on desktop.
   The dashboard mark remains static; orbital/solar-system motion
   is intentionally removed.
   ========================================================= */

:root {
  --premium-ink: #151a18;
  --premium-ink-2: #202824;
  --premium-ivory: #f4f1ea;
  --premium-paper: #fbfaf7;
  --premium-line: rgba(21,26,24,.12);
  --premium-teal: #718d87;
  --premium-gold: #b99a5d;
}

body {
  background:
    radial-gradient(900px 520px at 92% -10%, rgba(113,141,135,.075), transparent 65%),
    radial-gradient(720px 460px at -8% 100%, rgba(185,154,93,.055), transparent 68%),
    var(--premium-paper);
}

/* Desktop command bar */
.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sidebar {
  width: 100%;
  height: auto;
  min-height: 82px;
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-direction: row;
  align-items: stretch;
  padding: 0 28px;
  background: rgba(21,26,24,.96);
  color: #f4f1ea;
  border-right: 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 35px rgba(15,20,17,.10);
  backdrop-filter: blur(18px);
}

.sidebar-top {
  width: 230px;
  flex: 0 0 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 20px 14px 0;
  margin: 0;
  border-bottom: 0;
}

.sidebar-top::after { display: none; }

.brand-lockup { gap: 11px; }
.brand-lockup img {
  width: 34px;
  height: 34px;
  opacity: 1;
  filter: drop-shadow(0 4px 12px rgba(185,154,93,.20));
  background: none;
  mask-image: none;
  z-index: 0;
}

.wordmark--button { color: #f4f1ea; }
.wordmark--button:hover { color: #fff; }
.wordmark-sub {
  color: rgba(244,241,234,.46);
  margin: 4px 0 0 45px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand-pulse { background: var(--premium-gold); }

.nav-list {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
}

.nav-link {
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(244,241,234,.62);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 0 18px;
  font-size: 12px;
  letter-spacing: .025em;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.045);
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,.045);
  border-left: 0;
  border-bottom-color: var(--premium-gold);
  font-weight: 500;
}

.nav-link--projects {
  margin-top: 0;
  gap: 10px;
}
.nav-link--projects .nav-chevron {
  font-size: 14px;
  color: rgba(244,241,234,.42);
}
.nav-link--projects.is-expanded .nav-chevron { transform: rotate(90deg); }

/* Project categories become a compact horizontal secondary rail. */
.nav-subnav {
  order: 10;
  flex-basis: 100%;
  width: 100%;
  flex-direction: row;
  justify-content: flex-end;
  gap: 2px;
  padding: 7px 0 9px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(21,26,24,.98);
}
.nav-link--sub {
  width: auto;
  padding: 5px 14px;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(244,241,234,.52);
  border-bottom: 1px solid transparent;
}
.nav-link--sub:hover,
.nav-link--sub[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,.035);
  border-bottom-color: rgba(185,154,93,.75);
}

.nav-link--owner {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  border-radius: 0;
  margin-left: 8px;
}

.sidebar-bottom {
  width: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 0 0 20px;
}
.version-tag {
  color: rgba(244,241,234,.30);
  font-size: 8px;
  letter-spacing: .08em;
}

/* Give the content a quieter, more gallery-like canvas. */
.main { width: 100%; }
.content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 56px 84px;
}

/* Premium neutral surfaces: less green, more graphite/ivory/champagne. */
.dashboard-metrics,
.dashboard-section,
.workspace-block,
.project-card,
.utility-card,
.owner-card,
.tracker-table,
.timeline-shell {
  border-color: rgba(21,26,24,.10);
}

.dashboard-metrics .metric-value,
.dashboard-panel h1,
.workspace-title-row h2,
.panel-header h1 {
  color: var(--premium-ink);
}

/* Remove the solar-system/orbital treatment completely. */
.dashboard-hero-mark {
  animation: none !important;
}
.dashboard-hero-mark::before,
.dashboard-hero-mark::after,
.hero-orbit,
.dashboard-hero-mark .hero-orbit {
  display: none !important;
  animation: none !important;
}
.dashboard-hero-mark img {
  animation: none !important;
  width: 138px;
  height: 138px;
  filter: drop-shadow(0 22px 35px rgba(0,0,0,.25));
}

/* A restrained premium halo instead of orbital animation. */
.dashboard-hero-mark {
  position: relative;
}
.dashboard-hero-mark::after {
  content: '';
  display: block !important;
  position: absolute;
  width: 170px;
  height: 170px;
  inset: auto;
  border-radius: 50%;
  border: 1px solid rgba(185,154,93,.20);
  box-shadow: inset 0 0 55px rgba(113,141,135,.045), 0 0 55px rgba(185,154,93,.045);
  animation: none !important;
}

/* More premium dashboard hero: architectural, not sci-fi. */
.dashboard-hero {
  background:
    linear-gradient(125deg, #131916 0%, #1d2521 58%, #121715 100%);
  box-shadow: 0 28px 70px rgba(15,20,17,.16);
}
.dashboard-hero-grid { opacity: .14; animation: none !important; }
.dashboard-hero::before {
  background:
    linear-gradient(112deg, transparent 0 58%, rgba(185,154,93,.10) 58.1% 58.2%, transparent 58.3%),
    linear-gradient(166deg, transparent 0 72%, rgba(113,141,135,.09) 72.1% 72.25%, transparent 72.35%);
}

@media (max-width: 900px) and (min-width: 721px) {
  .sidebar { padding: 0 16px; }
  .sidebar-top { flex-basis: 190px; width: 190px; }
  .nav-link { padding-inline: 12px; font-size: 11px; }
  .content { padding-inline: 32px; }
}

@media (max-width: 720px) {
  /* Preserve the existing mobile drawer behaviour. */
  .sidebar {
    width: 260px;
    min-height: 100vh;
    height: 100vh;
    padding: 28px 0 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    color: var(--text);
    border-right: 1px solid var(--border);
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  .sidebar-top {
    width: auto;
    flex: 0 0 auto;
    padding: 22px 22px 24px;
  }
  .wordmark--button { color: var(--text); }
  .wordmark-sub { color: var(--text-faint); margin-left: 0; }
  .nav-list {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 12px;
  }
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 14px;
    color: var(--text-soft);
    border-bottom: 0;
    border-left: 2px solid transparent;
  }
  .nav-link[aria-current="page"] {
    background: var(--accent-bg);
    color: var(--text);
    border-left-color: var(--brand-teal);
    border-bottom-color: transparent;
  }
  .nav-link--projects { margin-top: 8px; }
  .nav-subnav {
    order: initial;
    width: auto;
    flex-basis: auto;
    flex-direction: column;
    justify-content: initial;
    padding: 0;
    border-top: 0;
    background: transparent;
  }
  .nav-link--sub { width: 100%; padding: 8px 14px 8px 30px; }
  .nav-link--owner { margin-left: 0; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
  .sidebar-bottom { width: auto; padding: 16px 24px 0; }
  .version-tag { color: var(--text-faint); }
}

/* =========================================================
   SHOUSE UI PHASE 6 — LUXURY / CLEAN INTERACTION REFINEMENT
   Slower dashboard counters + replay on every Dashboard entry.
   Premium selected states across navigation and controls.
   ========================================================= */
:root {
  --luxury-ivory: #f7f4ed;
  --luxury-paper: #fcfbf8;
  --luxury-ink: #17201c;
  --luxury-muted: #707871;
  --luxury-line: rgba(23,32,28,.115);
  --luxury-teal: #6e8982;
  --luxury-champagne: #b69a63;
  --luxury-champagne-soft: rgba(182,154,99,.16);
  --luxury-shadow: 0 18px 50px rgba(20,26,23,.08);
}

body {
  background:
    radial-gradient(800px 520px at 88% -12%, rgba(110,137,130,.055), transparent 68%),
    radial-gradient(700px 480px at -12% 100%, rgba(182,154,99,.045), transparent 70%),
    var(--luxury-paper);
}

/* More restrained, editorial typography. */
body, button, input, select, textarea {
  font-family: var(--font-body);
}
.metric-value,
.stat-value,
.mix-item strong,
.section-count,
.version-tag,
.wordmark-sub,
.utility-card-kicker,
.utility-modal-kicker,
.eyebrow {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* The active primary navigation item becomes a deliberate selection,
   not just a faint background change. */
.nav-link[aria-current="page"] {
  position: relative;
  color: #f8f4eb;
  background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.055));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.065), 0 8px 24px rgba(0,0,0,.08);
  border-bottom-color: var(--luxury-champagne);
}
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--luxury-champagne), transparent);
}

.nav-link--projects.is-expanded {
  color: #fff;
  background: rgba(255,255,255,.055);
}
.nav-link--sub[aria-current="page"] {
  color: #fff;
  background: rgba(182,154,99,.10);
  border-bottom-color: var(--luxury-champagne);
}

/* Selection states across common filters/tabs/buttons. */
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--luxury-champagne);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(135deg, #1a231f, #26342e);
  border-color: #1a231f;
  box-shadow: 0 8px 22px rgba(23,32,28,.12);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #22302a, #304039);
  transform: translateY(-1px);
}
.btn--secondary:hover {
  border-color: rgba(182,154,99,.55);
  background: rgba(182,154,99,.07);
}

/* Any native selected option keeps the palette coherent. */
select option:checked {
  background: var(--luxury-ivory);
  color: var(--luxury-ink);
}

/* Project cards, task rows and utility cards get a quieter luxury hover. */
.project-card,
.utility-card,
.owner-card,
.task-row,
.workspace-block {
  border-color: var(--luxury-line);
  box-shadow: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease;
}
.project-card:hover,
.utility-card:hover,
.owner-card:hover {
  border-color: rgba(110,137,130,.30);
  box-shadow: var(--luxury-shadow);
  transform: translateY(-2px);
}
.task-row:hover {
  background: rgba(110,137,130,.035);
  border-color: rgba(110,137,130,.22);
}

/* Accordions: selected/open state should feel intentional. */
.workspace-collapsible > summary,
.workspace-block > summary {
  transition: background .22s ease, color .22s ease;
}
.workspace-collapsible[open] > summary,
.workspace-block[open] > summary {
  color: var(--luxury-ink);
  background: linear-gradient(90deg, rgba(182,154,99,.055), transparent 48%);
}
.workspace-collapsible > summary:hover,
.workspace-block > summary:hover {
  background: rgba(110,137,130,.045);
}

/* Slower number sequence: the JS duration is 1500ms. Keep the final
   landing subtle and premium rather than flashy. */
.metric-value.number-scrambling,
.stat-value.number-scrambling,
.mix-item strong.number-scrambling {
  filter: blur(.2px);
  opacity: .72;
  text-shadow: 0 0 26px rgba(110,137,130,.12);
}

/* Make metric numbers feel like premium instrument readouts. */
.metric-value,
.mix-item strong {
  color: var(--luxury-ink);
  font-weight: 500;
  text-shadow: none;
}
.metric--attention .metric-value {
  color: #9a5146;
}

/* Responsive nav selection remains clean on the mobile drawer. */
@media (max-width: 720px) {
  .nav-link[aria-current="page"] {
    color: var(--luxury-ink);
    background: rgba(110,137,130,.075);
    box-shadow: inset 0 0 0 1px rgba(110,137,130,.10);
    border-left-color: var(--luxury-champagne);
  }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-link--sub[aria-current="page"] {
    color: var(--luxury-ink);
    background: rgba(182,154,99,.08);
    border-bottom-color: transparent;
  }
}

/* =========================================================
   SHOUSE UI PHASE 7 — LIGHT LUXURY / REFINED COMMAND BAR
   Final visual overrides for the current portal build.
   ========================================================= */
:root {
  --luxury-bg: #f4f1e9;
  --luxury-surface: #fbfaf6;
  --luxury-surface-2: #f0ede4;
  --luxury-ink: #202621;
  --luxury-muted: #737a73;
  --luxury-line: rgba(32,38,33,.12);
  --luxury-line-strong: rgba(32,38,33,.20);
  --luxury-teal: #52736d;
  --luxury-teal-soft: rgba(82,115,109,.09);
  --luxury-champagne: #a78952;
  --luxury-champagne-soft: rgba(167,137,82,.12);
  --luxury-shadow: 0 16px 42px rgba(46,48,40,.07);
}

html, body {
  background: var(--luxury-bg);
  color: var(--luxury-ink);
}

body {
  background:
    radial-gradient(900px 500px at 88% -12%, rgba(82,115,109,.055), transparent 68%),
    radial-gradient(700px 480px at -10% 100%, rgba(167,137,82,.045), transparent 70%),
    var(--luxury-bg);
}

/* ---- Light horizontal command bar ---- */
.sidebar {
  background: rgba(251,250,246,.94) !important;
  color: var(--luxury-ink) !important;
  border-bottom: 1px solid var(--luxury-line-strong) !important;
  box-shadow: 0 8px 28px rgba(46,48,40,.045) !important;
  backdrop-filter: blur(18px);
}

.wordmark--button { color: var(--luxury-ink) !important; }
.wordmark--button:hover { color: var(--luxury-teal) !important; }
.wordmark-sub { color: var(--luxury-muted) !important; }
.brand-pulse {
  background: var(--luxury-teal) !important;
  box-shadow: 0 0 0 4px rgba(82,115,109,.08), 0 0 12px rgba(82,115,109,.20) !important;
}

.nav-list {
  align-items: stretch;
}

.nav-link {
  min-height: 58px !important;
  padding: 0 24px !important;
  color: #68716b !important;
  font-size: 15px !important;
  font-weight: 500;
  letter-spacing: -.012em !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
}

.nav-link:hover {
  color: var(--luxury-ink) !important;
  background: rgba(82,115,109,.045) !important;
}

.nav-link[aria-current="page"] {
  color: var(--luxury-ink) !important;
  background: linear-gradient(180deg, rgba(82,115,109,.075), rgba(82,115,109,.025)) !important;
  border-bottom-color: var(--luxury-teal) !important;
  box-shadow: none !important;
  font-weight: 600;
}

.nav-link[aria-current="page"]::after {
  left: 22px !important;
  right: 22px !important;
  height: 2px !important;
  background: linear-gradient(90deg, transparent, var(--luxury-champagne), transparent) !important;
}

.nav-link--projects {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  text-transform: none !important;
  letter-spacing: -.012em !important;
}

.nav-link--projects.is-expanded {
  color: var(--luxury-ink) !important;
  background: rgba(82,115,109,.045) !important;
}

.nav-link--projects .nav-chevron {
  color: #89908b !important;
  font-size: 17px !important;
}

.nav-link--sub {
  min-height: 42px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  color: #707872 !important;
}

.nav-subnav {
  background: rgba(244,241,233,.97) !important;
  border-top: 1px solid var(--luxury-line) !important;
  border-bottom: 1px solid var(--luxury-line) !important;
}

.nav-link--sub:hover,
.nav-link--sub[aria-current="page"] {
  color: var(--luxury-ink) !important;
  background: var(--luxury-surface) !important;
  border-bottom-color: var(--luxury-champagne) !important;
}

.nav-link--owner {
  margin-left: 10px !important;
}

.sidebar-bottom .version-tag {
  color: #8b918c !important;
}

/* ---- Cleaner light content canvas ---- */
.content {
  max-width: 1320px;
}

.panel-header,
.dashboard-section,
.dashboard-metrics,
.workspace-block,
.utility-card,
.project-card,
.owner-card,
.table-wrap,
.timeline-shell {
  border-color: var(--luxury-line) !important;
}

.panel-header::after {
  background: linear-gradient(90deg, var(--luxury-teal), var(--luxury-champagne)) !important;
}

.panel-header h1,
.dashboard-panel h1,
.workspace-title-row h2 {
  color: var(--luxury-ink) !important;
}

/* ---- Dashboard: lighter, calmer, more premium ---- */
.dashboard-hero {
  background:
    linear-gradient(125deg, #e8e4d9 0%, #f4f1e8 58%, #e5e9e3 100%) !important;
  border: 1px solid rgba(32,38,33,.10);
  box-shadow: var(--luxury-shadow) !important;
}

.dashboard-hero-copy .eyebrow,
.dashboard-hero-copy h1,
.dashboard-hero-copy p {
  color: var(--luxury-ink) !important;
}

.dashboard-hero-copy p { color: var(--luxury-muted) !important; }
.dashboard-hero-grid { opacity: .22 !important; }

.dashboard-hero-mark img {
  filter: drop-shadow(0 18px 28px rgba(52,57,50,.18)) !important;
}

.dashboard-hero-mark::after {
  border-color: rgba(167,137,82,.24) !important;
  box-shadow: inset 0 0 55px rgba(82,115,109,.035), 0 0 55px rgba(167,137,82,.04) !important;
}

.dashboard-metrics,
.dashboard-section {
  background: rgba(251,250,246,.72) !important;
  box-shadow: none !important;
}

.metric-value,
.mix-item strong {
  color: var(--luxury-ink) !important;
}

.metric--attention .metric-value { color: #955247 !important; }

.mix-item:hover,
.project-tile:hover,
.attention-item:hover {
  background: var(--luxury-teal-soft) !important;
}

/* ---- Timeline/task surfaces ---- */
.workspace-block,
.timeline-shell,
.task-row,
.utility-card,
.project-card,
.owner-card {
  background: rgba(251,250,246,.84) !important;
  box-shadow: none !important;
}

.task-row:hover {
  background: rgba(82,115,109,.045) !important;
  transform: translateX(3px);
}

.task-row::before {
  background: linear-gradient(var(--luxury-champagne), var(--luxury-teal)) !important;
}

.progress-fill,
.gantt-bar {
  background: linear-gradient(90deg, var(--luxury-teal), #78948e) !important;
}

.btn--primary {
  background: var(--luxury-ink) !important;
  border-color: var(--luxury-ink) !important;
  color: #fbfaf6 !important;
}

.btn--primary:hover {
  background: #334039 !important;
  border-color: #334039 !important;
}

.btn--secondary:hover {
  color: var(--luxury-ink) !important;
  border-color: rgba(167,137,82,.48) !important;
  background: var(--luxury-champagne-soft) !important;
}

/* ---- Number animation: slower, controlled and never self-restarting ---- */
.metric-value.number-scrambling,
.stat-value.number-scrambling,
.mix-item strong.number-scrambling {
  opacity: .72;
  filter: blur(.15px);
  text-shadow: 0 0 22px rgba(82,115,109,.10);
}

/* ---- Mobile: retain drawer but use the same light palette ---- */
@media (max-width: 720px) {
  .sidebar {
    background: var(--luxury-surface) !important;
    border-right: 1px solid var(--luxury-line) !important;
    box-shadow: 18px 0 42px rgba(46,48,40,.08) !important;
  }
  .nav-link {
    min-height: 48px !important;
    justify-content: flex-start;
    text-align: left;
    padding: 0 16px !important;
  }
  .nav-link[aria-current="page"] {
    background: var(--luxury-teal-soft) !important;
    border-left: 2px solid var(--luxury-teal) !important;
    border-bottom-color: transparent !important;
  }
  .nav-link--sub {
    min-height: 40px !important;
    padding: 0 16px 0 30px !important;
  }
}


/* =========================================================
   SHOUSE UI PHASE 8 — EDITORIAL ARCHITECTURAL SYSTEM
   Pinterest-inspired composition: large type, light canvas,
   thin rules, oversized data, restrained motion.
   ========================================================= */
:root {
  --editorial-bg: #f6f3eb;
  --editorial-paper: #fbfaf6;
  --editorial-paper-2: #efebe1;
  --editorial-ink: #171b18;
  --editorial-muted: #737871;
  --editorial-faint: #a0a49e;
  --editorial-line: rgba(23,27,24,.14);
  --editorial-teal: #4f716b;
  --editorial-gold: #ad8c51;
  --editorial-red: #9a554b;
  --editorial-radius: 0;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

html, body { background: var(--editorial-bg); color: var(--editorial-ink); }
body {
  font-family: var(--font-body);
  background:
    linear-gradient(rgba(23,27,24,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,27,24,.018) 1px, transparent 1px),
    var(--editorial-bg);
  background-size: 64px 64px;
}

/* Horizontal studio command bar */
.sidebar {
  position: sticky !important;
  top: 0;
  z-index: 50;
  width: 100% !important;
  height: auto !important;
  min-height: 76px;
  padding: 0 42px !important;
  flex-direction: row !important;
  align-items: center !important;
  background: rgba(251,250,246,.94) !important;
  border-right: 0 !important;
  border-bottom: 1px solid var(--editorial-line) !important;
  box-shadow: 0 8px 28px rgba(23,27,24,.035) !important;
  backdrop-filter: blur(18px);
}
.sidebar-top {
  width: auto !important;
  flex: 0 0 auto !important;
  padding: 0 42px 0 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.brand-lockup { gap: 10px; }
.brand-lockup img { width: 32px !important; height: 32px !important; filter: none !important; }
.wordmark--button { color: var(--editorial-ink) !important; }
.wordmark { font-family: var(--font-display); font-size: 18px; letter-spacing: -.04em; }
.wordmark-sub {
  margin: 2px 0 0 42px !important;
  color: var(--editorial-faint) !important;
  font-size: 8px !important;
  letter-spacing: .16em !important;
}

.nav-list {
  flex: 1 !important;
  min-width: 0;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  padding: 0 !important;
}
.nav-link {
  position: relative;
  width: auto !important;
  min-height: 76px !important;
  padding: 0 22px !important;
  color: #686e68 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -.02em !important;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.nav-link:hover { color: var(--editorial-ink) !important; background: rgba(79,113,107,.045) !important; }
.nav-link[aria-current="page"] {
  color: var(--editorial-ink) !important;
  background: transparent !important;
  border-bottom-color: var(--editorial-teal) !important;
  box-shadow: none !important;
}
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 22px !important;
  right: 22px !important;
  bottom: -2px;
  height: 2px !important;
  background: linear-gradient(90deg, var(--editorial-teal), var(--editorial-gold)) !important;
}
.nav-link--projects { margin-top: 0 !important; gap: 8px; }
.nav-link--projects.is-expanded { color: var(--editorial-ink) !important; background: rgba(79,113,107,.035) !important; }
.nav-link--projects .nav-chevron { color: var(--editorial-faint) !important; }
.nav-link--sub {
  min-height: 42px !important;
  padding: 0 15px !important;
  font-size: 12px !important;
  letter-spacing: .02em !important;
}
.nav-subnav {
  position: absolute;
  top: 75px;
  left: auto;
  right: 180px;
  width: auto !important;
  flex-basis: auto !important;
  padding: 7px !important;
  gap: 1px !important;
  background: rgba(251,250,246,.98) !important;
  border: 1px solid var(--editorial-line) !important;
  box-shadow: 0 18px 45px rgba(23,27,24,.09);
}
.nav-link--sub:hover,
.nav-link--sub[aria-current="page"] { background: var(--editorial-paper-2) !important; border-bottom-color: var(--editorial-gold) !important; }
.nav-link--owner { margin-left: auto !important; }
.sidebar-bottom { display: none !important; }

/* Main canvas */
.main { min-width: 0; width: 100%; }
.content {
  width: min(100%, 1440px) !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 58px 64px 100px !important;
}

/* Dashboard hero becomes an editorial cover strip */
.dashboard-hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  align-items: end;
  padding: 44px 48px !important;
  border-radius: 0 !important;
  background: var(--editorial-paper) !important;
  border: 1px solid var(--editorial-line) !important;
  box-shadow: none !important;
  overflow: hidden;
  position: relative;
}
.dashboard-hero::after {
  content: 'SHOUSE / 01';
  position: absolute;
  right: 26px;
  top: 22px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  color: var(--editorial-faint);
}
.dashboard-hero-copy { position: relative; z-index: 2; max-width: 780px; }
.dashboard-hero-copy .eyebrow { color: var(--editorial-teal) !important; }
.dashboard-hero-copy h1 {
  margin: 14px 0 18px !important;
  font-family: var(--font-display) !important;
  font-size: clamp(56px, 8vw, 116px) !important;
  line-height: .88 !important;
  letter-spacing: -.075em !important;
  font-weight: 600 !important;
  color: var(--editorial-ink) !important;
}
.dashboard-hero-copy p { max-width: 540px; font-size: 15px !important; color: var(--editorial-muted) !important; }
.dashboard-hero-grid { opacity: .20 !important; }
.dashboard-hero-mark { align-self: center; justify-self: end; opacity: .95; }
.dashboard-hero-mark::after { border-color: rgba(173,140,81,.25) !important; box-shadow: none !important; }
.dashboard-hero-mark img { width: 150px !important; height: 150px !important; filter: drop-shadow(0 18px 25px rgba(23,27,24,.14)) !important; }

/* Metrics as oversized editorial readouts */
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  margin: 0 0 72px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--editorial-line) !important;
  background: transparent !important;
}
.metric {
  min-width: 0;
  padding: 28px 24px 30px 0 !important;
  background: transparent !important;
  border-right: 1px solid var(--editorial-line);
}
.metric:not(:first-child) { padding-left: 24px !important; }
.metric:last-child { border-right: 0; }
.metric-kicker { font-size: 10px !important; letter-spacing: .13em !important; color: var(--editorial-muted) !important; }
.metric-value {
  margin: 9px 0 4px;
  font-family: var(--font-display) !important;
  font-size: clamp(48px, 5vw, 78px) !important;
  font-weight: 500 !important;
  line-height: .9 !important;
  letter-spacing: -.07em !important;
}
.metric-label { font-size: 11px !important; color: var(--editorial-faint) !important; }
.metric--attention .metric-value { color: var(--editorial-red) !important; }

/* Dashboard sections: no heavy cards */
.dashboard-grid { grid-template-columns: minmax(0, 1.7fr) minmax(260px, .65fr) !important; gap: 0 !important; border-top: 1px solid var(--editorial-line); }
.dashboard-section { border: 0 !important; border-bottom: 1px solid var(--editorial-line) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.dashboard-section--projects { border-right: 1px solid var(--editorial-line) !important; padding-right: 34px !important; }
.dashboard-section--attention { padding-left: 34px !important; }
.section-head { padding: 25px 0 20px !important; }
.section-head h2 { font-family: var(--font-display); font-size: 22px; letter-spacing: -.045em; }
.section-count { font-size: 10px !important; color: var(--editorial-faint) !important; }

.project-tile,
.attention-item,
.mix-item {
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  background: transparent !important;
  border-color: var(--editorial-line) !important;
}
.project-tile { min-width: 0; padding: 22px 0 !important; }
.project-tile:hover,
.attention-item:hover,
.mix-item:hover { background: rgba(79,113,107,.035) !important; transform: none !important; }
.project-tile-index { font-family: var(--font-mono); color: var(--editorial-gold) !important; }
.project-tile-main strong { font-family: var(--font-display); font-size: 18px !important; letter-spacing: -.035em; }
.project-tile-main small,
.project-tile-next small,
.project-tile-next em { color: var(--editorial-muted) !important; }
.progress-line { background: rgba(23,27,24,.09) !important; border-radius: 0 !important; }
.progress-line i { background: var(--editorial-teal) !important; }
.project-tile-arrow { color: var(--editorial-gold) !important; }
.attention-item { padding: 17px 0 !important; }
.attention-dot { background: var(--editorial-gold) !important; box-shadow: none !important; }
.attention-item.is-overdue .attention-dot { background: var(--editorial-red) !important; }
.attention-copy strong { font-family: var(--font-display); letter-spacing: -.02em; }
.attention-date { font-family: var(--font-mono); font-size: 9px !important; }

.dashboard-section--types { margin-top: 72px; }
.project-mix { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--editorial-line); }
.mix-item { padding: 26px 18px 28px 0 !important; border-right: 1px solid var(--editorial-line) !important; }
.mix-item:not(:first-child) { padding-left: 18px !important; }
.mix-item:last-child { border-right: 0 !important; }
.mix-item span { font-size: 11px !important; color: var(--editorial-muted) !important; }
.mix-item strong { display: block; margin-top: 10px; font-family: var(--font-display) !important; font-size: 54px !important; line-height: .9; font-weight: 500 !important; letter-spacing: -.06em; }

/* Global page titles and interactive surfaces */
.panel-header h1 { font-family: var(--font-display) !important; font-size: 48px !important; letter-spacing: -.06em !important; font-weight: 600 !important; }
.panel-intro { max-width: 700px; color: var(--editorial-muted) !important; }
.block-title, .form-section legend, .scope-group legend { font-family: var(--font-body); }
.project-card, .utility-card, .owner-card, .workspace-block, .timeline-shell, .table-wrap { border-radius: 0 !important; }
.project-card:hover, .utility-card:hover, .owner-card:hover { transform: translateY(-1px); box-shadow: 0 18px 38px rgba(23,27,24,.06); }
.btn { border-radius: 0 !important; }
.btn--primary { background: var(--editorial-ink) !important; border-color: var(--editorial-ink) !important; }
.btn--secondary { background: var(--editorial-paper) !important; border-color: var(--editorial-line-strong) !important; }

/* Timeline rows get an editorial index/date rhythm */
.timeline-task-list { border-top: 1px solid var(--editorial-line); }
.task-row { border-radius: 0 !important; background: transparent !important; border-color: var(--editorial-line) !important; }
.task-row:hover { background: rgba(79,113,107,.035) !important; transform: translateX(4px); }
.task-row::before { background: linear-gradient(var(--editorial-gold), var(--editorial-teal)) !important; }

/* Persistent dropdowns/accordions retain open state styling */
.workspace-collapsible > summary,
.workspace-block > summary { border-radius: 0 !important; }
.workspace-collapsible[open] > summary,
.workspace-block[open] > summary { background: linear-gradient(90deg, rgba(173,140,81,.055), transparent 55%) !important; }

/* Counter landing: no blur flash at the end */
.number-settled { animation: editorialNumberSettle .38s ease both; }
@keyframes editorialNumberSettle {
  0% { opacity: .68; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  .sidebar { padding-inline: 24px !important; }
  .sidebar-top { padding-right: 22px !important; }
  .nav-link { padding-inline: 15px !important; }
  .content { padding-inline: 36px !important; }
  .dashboard-hero { grid-template-columns: 1fr 220px; }
  .dashboard-grid { grid-template-columns: minmax(0,1.4fr) minmax(240px,.75fr) !important; }
}

@media (max-width: 760px) {
  .sidebar {
    position: fixed !important;
    width: 280px !important;
    height: 100vh !important;
    min-height: 100vh;
    padding: 28px 0 24px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    background: var(--editorial-paper) !important;
    transform: translateX(-100%);
    transition: transform .22s ease;
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-top { padding: 0 24px 24px !important; }
  .nav-list { flex-direction: column !important; padding: 12px !important; gap: 2px !important; }
  .nav-link { min-height: 48px !important; width: 100% !important; justify-content: flex-start; padding: 0 15px !important; }
  .nav-link[aria-current="page"]::after { display: none; }
  .nav-link--owner { margin-left: 0 !important; margin-top: 8px !important; }
  .nav-subnav { position: static; width: auto !important; flex-direction: column !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
  .sidebar-bottom { display: block !important; padding: 16px 24px 0 !important; }
  .content { padding: 34px 20px 64px !important; }
  .dashboard-hero { min-height: 470px; grid-template-columns: 1fr; padding: 34px 26px !important; }
  .dashboard-hero-mark { justify-self: start; margin-top: 18px; }
  .dashboard-hero-copy h1 { font-size: clamp(52px, 18vw, 86px) !important; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric { border-bottom: 1px solid var(--editorial-line); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3) { padding-left: 0 !important; }
  .dashboard-grid { grid-template-columns: 1fr !important; }
  .dashboard-section--projects { border-right: 0 !important; padding-right: 0 !important; }
  .dashboard-section--attention { padding-left: 0 !important; }
  .project-mix { grid-template-columns: repeat(2,1fr); }
  .panel-header h1 { font-size: 38px !important; }
}

/* =========================================================
   PHASE 9 — IMMERSIVE SHOUSE HOME
   The Dashboard becomes the studio's visual launch surface.
   ========================================================= */
.home-launcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 28px;
}
.home-launch {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(20,28,24,.14);
  background: #f8f7f2;
  color: var(--premium-ink, #202521);
  padding: 28px 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform .45s cubic-bezier(.2,.75,.2,1), background .45s ease, border-color .35s ease, box-shadow .45s ease;
}
.home-launch::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 68%, rgba(52,91,72,.055) 68.1% 68.35%, transparent 68.45%),
    linear-gradient(90deg, transparent 0 76%, rgba(185,154,93,.06) 76.1% 76.25%, transparent 76.35%);
  pointer-events: none;
}
.home-launch::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--premium-gold, #b99a5d), var(--premium-teal, #355d4b));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s cubic-bezier(.2,.75,.2,1);
}
.home-launch:hover {
  transform: translateY(-5px);
  background: #fffefa;
  border-color: rgba(20,28,24,.25);
  box-shadow: 0 22px 60px rgba(24,31,27,.09);
}
.home-launch:hover::after { transform: scaleY(1); }
.home-launch:focus-visible { outline: 2px solid var(--premium-teal, #355d4b); outline-offset: 3px; }
.home-launch--wide { grid-column: span 2; min-height: 250px; background: #202924; color: #f7f5ee; border-color: #202924; }
.home-launch--wide:hover { background: #27332d; border-color: #27332d; }
.home-launch--owner { background: #e8e2d3; color: #242923; border-color: rgba(80,66,40,.18); }
.home-launch--owner:hover { background: #eee8db; }
.home-launch-number {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono, monospace);
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: .12em;
  color: #899089;
}
.home-launch--wide .home-launch-number { color: rgba(247,245,238,.48); }
.home-launch--owner .home-launch-number { color: #7d745f; }
.home-launch-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 7px; max-width: 720px; }
.home-launch-kicker { font-family: var(--font-mono, monospace); font-size: 9px; letter-spacing: .16em; color: #7d867e; }
.home-launch--wide .home-launch-kicker { color: rgba(247,245,238,.52); }
.home-launch--owner .home-launch-kicker { color: #756d5b; }
.home-launch-content strong {
  font-family: var(--font-display, var(--font-body, sans-serif));
  font-size: clamp(34px, 4vw, 62px);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 500;
}
.home-launch:not(.home-launch--wide) .home-launch-content strong { font-size: clamp(30px, 3vw, 46px); }
.home-launch-content small { color: #788078; font-size: 11px; line-height: 1.55; max-width: 520px; }
.home-launch--wide .home-launch-content small { color: rgba(247,245,238,.62); }
.home-launch--owner .home-launch-content small { color: #6f6a5d; }
.home-launch-arrow {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 24px;
  font-size: 25px;
  font-weight: 300;
  color: #7b837c;
  transition: transform .4s ease, color .3s ease;
}
.home-launch--wide .home-launch-arrow { color: rgba(247,245,238,.62); }
.home-launch:hover .home-launch-arrow { transform: translate(5px,-5px); color: var(--premium-teal, #355d4b); }
.home-launch--wide:hover .home-launch-arrow { color: var(--premium-gold, #b99a5d); }

/* On the home surface, navigation becomes contextual rather than dominant. */
.shell:has(#panel-dashboard:not([hidden])) .nav-list { opacity: 0; pointer-events: none; }
.shell:has(#panel-dashboard:not([hidden])) .topbar-title { opacity: 0; }
.shell:has(#panel-dashboard:not([hidden])) .content { padding-top: 30px; }

@media (max-width: 760px) {
  .home-launcher { grid-template-columns: 1fr; gap: 9px; }
  .home-launch--wide { grid-column: span 1; min-height: 205px; }
  .home-launch { min-height: 180px; padding: 24px; }
  .home-launch-content strong,
  .home-launch:not(.home-launch--wide) .home-launch-content strong { font-size: 34px; }
  .shell:has(#panel-dashboard:not([hidden])) .nav-list { opacity: 1; pointer-events: auto; }
}

/* =========================================================
   PHASE 10 — SHOUSE IMMERSIVE HOME / PREMIUM REFERENCE PASS
   Light editorial canvas, rounded floating panels and a quiet
   architectural sculpture behind the navigation surfaces.
   ========================================================= */
:root {
  --home-paper: #f3f2ed;
  --home-ink: #151715;
  --home-muted: #777b75;
  --home-line: rgba(21,23,21,.12);
  --home-glass: rgba(255,255,252,.72);
  --home-glass-strong: rgba(255,255,252,.88);
  --home-teal: #536e67;
  --home-gold: #b59a63;
}

body {
  background: var(--home-paper);
}

/* Keep the shell itself airy on the landing surface. */
.shell:has(#panel-dashboard:not([hidden])) {
  background:
    radial-gradient(circle at 50% 48%, rgba(255,255,255,.95) 0, rgba(255,255,255,.68) 22%, rgba(243,242,237,0) 55%),
    linear-gradient(135deg, #f7f6f1 0%, #efeee9 100%);
}

.shell:has(#panel-dashboard:not([hidden])) .sidebar {
  background: transparent;
  border-right: 0;
}

.shell:has(#panel-dashboard:not([hidden])) .sidebar-top {
  border-bottom: 0;
}

.shell:has(#panel-dashboard:not([hidden])) .content {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 24px clamp(24px, 5vw, 82px) 72px;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-hero {
  min-height: 245px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  background: transparent;
  border: 0;
  padding: 24px 0 8px;
  box-shadow: none;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-grid {
  opacity: .18;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-copy {
  max-width: 900px;
  text-align: center;
  z-index: 3;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-copy .eyebrow {
  color: var(--home-muted);
  letter-spacing: .22em;
  font-size: 9px;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-copy h1 {
  margin: 12px 0 10px;
  font-size: clamp(68px, 9vw, 126px) !important;
  line-height: .86;
  letter-spacing: -.085em !important;
  font-weight: 500 !important;
  color: var(--home-ink) !important;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-copy p {
  margin: 0 auto;
  color: #858982;
  max-width: 540px;
  font-size: 13px;
}

/* The mark becomes a soft architectural object, not an orbit/solar system. */
.shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-mark {
  position: absolute;
  z-index: 1;
  width: min(360px, 38vw);
  height: min(360px, 38vw);
  right: 50%;
  top: 50%;
  transform: translate(50%, -42%);
  opacity: .16;
  filter: saturate(.75) contrast(.92);
  pointer-events: none;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shell:has(#panel-dashboard:not([hidden])) .hero-orbit {
  display: none !important;
}

/* Landing panels: rounded, translucent, tactile and quiet. */
.home-launcher {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  grid-template-rows: minmax(270px, 360px) 92px;
  gap: 16px;
  margin: -2px auto 34px;
  max-width: 1160px;
  z-index: 5;
}

.home-launch {
  min-height: 0;
  height: 100%;
  border: 1px solid var(--home-line) !important;
  border-radius: 28px !important;
  background: var(--home-glass) !important;
  color: var(--home-ink) !important;
  padding: 26px 28px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 38px rgba(28,30,27,.055), inset 0 1px 0 rgba(255,255,255,.82);
  transform: none;
}

.home-launch::before {
  background:
    linear-gradient(135deg, transparent 0 67%, rgba(83,110,103,.08) 67.1% 67.4%, transparent 67.5%),
    linear-gradient(90deg, transparent 0 75%, rgba(181,154,99,.07) 75.1% 75.35%, transparent 75.45%);
  border-radius: inherit;
}

.home-launch::after {
  left: 24px;
  right: 24px;
  top: auto;
  bottom: 18px;
  width: auto;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home-teal), var(--home-gold));
  transform: scaleX(0);
  transform-origin: left;
}

.home-launch:hover {
  transform: translateY(-7px) scale(1.012);
  background: var(--home-glass-strong) !important;
  border-color: rgba(21,23,21,.2) !important;
  box-shadow: 0 24px 70px rgba(28,30,27,.11), inset 0 1px 0 rgba(255,255,255,.95);
}

.home-launch:hover::after { transform: scaleX(1); }

.home-launch:focus-visible {
  outline: 2px solid var(--home-teal);
  outline-offset: 4px;
}

.home-launch--wide,
.home-launch--owner {
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
  background: var(--home-glass) !important;
  color: var(--home-ink) !important;
  border-color: var(--home-line) !important;
}

.home-launch--wide:hover,
.home-launch--owner:hover {
  background: var(--home-glass-strong) !important;
  border-color: rgba(21,23,21,.2) !important;
}

.home-launch--owner {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 92px;
  padding: 18px 24px;
  flex-direction: row;
  align-items: center;
}

.home-launch--owner .home-launch-content {
  flex: 1;
  gap: 3px;
}

.home-launch--owner .home-launch-content strong {
  font-size: 22px !important;
  letter-spacing: -.04em;
}

.home-launch--owner .home-launch-content small { max-width: none; }

.home-launch-number {
  color: #a3a59f !important;
  font-size: 10px !important;
  letter-spacing: .18em;
}

.home-launch-content { gap: 10px; }
.home-launch-kicker { color: #8a8d87 !important; letter-spacing: .2em; font-size: 8px; }
.home-launch-content strong {
  font-family: "Manrope", sans-serif !important;
  font-size: clamp(30px, 3.1vw, 48px) !important;
  font-weight: 600 !important;
  letter-spacing: -.065em !important;
  line-height: .94;
}
.home-launch-content small { color: #777b75 !important; font-size: 11px; }
.home-launch-arrow {
  right: 24px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(21,23,21,.11);
  border-radius: 999px;
  background: rgba(255,255,255,.52);
  color: #676c66 !important;
  font-size: 18px;
}
.home-launch:hover .home-launch-arrow {
  transform: translate(2px,-2px);
  color: var(--home-teal) !important;
  border-color: rgba(83,110,103,.32);
}

/* Make the landing surface feel intentional: hide the data dashboard
   beneath the launch experience until the user enters Dashboard itself. */
.shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics,
.shell:has(#panel-dashboard:not([hidden])) .dashboard-grid,
.shell:has(#panel-dashboard:not([hidden])) .dashboard-section--types {
  display: none;
}

/* Compact contextual header once the user leaves the home surface. */
.topbar {
  background: rgba(243,242,237,.86) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Rounded controls throughout the app. */
.btn,
.control-input,
.control-select,
button,
input,
select,
textarea {
  --control-radius: 12px;
}

.btn { border-radius: 12px !important; }
.control-input,
.control-select { border-radius: 12px !important; }

@media (max-width: 900px) {
  .home-launcher {
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-template-rows: repeat(2, 230px) 86px;
  }
  .home-launch--owner { grid-column: 1 / -1; grid-row: 3; }
}

@media (max-width: 760px) {
  .shell:has(#panel-dashboard:not([hidden])) .content { padding: 20px 16px 54px !important; }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-hero { min-height: 300px; }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-copy h1 { font-size: clamp(58px, 17vw, 84px) !important; }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-mark { width: 260px; height: 260px; }
  .home-launcher { grid-template-columns: 1fr; grid-template-rows: repeat(3, 190px) 84px; gap: 10px; margin-top: 0; }
  .home-launch--owner { grid-column: 1; grid-row: 4; }
  .home-launch { padding: 22px; border-radius: 22px !important; }
  .home-launch-content strong { font-size: 34px !important; }
}

/* =========================================================
   SHOUSE UI PHASE 11 — EDITORIAL HOME / STUDIO CONTROL
   Reference philosophy: large type, translucent rounded panels,
   a central material mark, restrained colour, and real dashboard
   information retained below the home navigation.
   ========================================================= */
:root {
  --home11-paper: #f4f2ec;
  --home11-ink: #111411;
  --home11-muted: #777b74;
  --home11-line: rgba(17,20,17,.13);
  --home11-panel: rgba(255,255,252,.68);
  --home11-panel-hover: rgba(255,255,252,.88);
  --home11-teal: #607d76;
  --home11-gold: #b89b61;
}

.shell:has(#panel-dashboard:not([hidden])) {
  background:
    radial-gradient(600px 430px at 50% 43%, rgba(255,255,255,.96), transparent 68%),
    radial-gradient(520px 320px at 9% 92%, rgba(184,155,97,.055), transparent 70%),
    linear-gradient(135deg, #f8f7f2 0%, var(--home11-paper) 100%);
}

.shell:has(#panel-dashboard:not([hidden])) .content {
  padding-top: 30px;
  padding-bottom: 86px;
}

/* Quiet studio header — no dashboard navigation card. */
.shell:has(#panel-dashboard:not([hidden])) .dashboard-hero {
  min-height: 300px;
  padding: 10px 0 0;
  margin-bottom: 0;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-copy {
  max-width: 920px;
  position: relative;
  z-index: 4;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-copy h1 {
  font-family: "Manrope", sans-serif !important;
  font-size: clamp(72px, 10vw, 142px) !important;
  font-weight: 500 !important;
  letter-spacing: -.095em !important;
  line-height: .82;
  margin: 14px 0 16px;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-copy p {
  font-size: 13px;
  letter-spacing: -.01em;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-mark {
  width: min(420px, 42vw);
  height: min(420px, 42vw);
  top: 56%;
  opacity: .11;
  z-index: 1;
  filter: saturate(.7) contrast(.92);
}

/* Reference-inspired navigation: the mark sits behind three large,
   rounded, semi-transparent panels. */
.shell:has(#panel-dashboard:not([hidden])) .home-launcher {
  max-width: 1160px;
  margin: -4px auto 48px;
  grid-template-columns: repeat(3, minmax(0,1fr));
  grid-template-rows: 360px 104px;
  gap: 14px;
  position: relative;
  z-index: 8;
}

.home-launch-sculpture {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 48%;
  width: 410px;
  height: 410px;
  transform: translate(-50%,-50%);
  pointer-events: none;
  opacity: .72;
}

.home-launch-sculpture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.82) contrast(.96) drop-shadow(0 28px 44px rgba(30,34,30,.08));
}

.home-sculpture-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.94), rgba(239,236,226,.18) 55%, transparent 72%);
  filter: blur(12px);
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch {
  min-height: 0;
  padding: 28px 30px;
  border-radius: 30px !important;
  border: 1px solid var(--home11-line) !important;
  background: var(--home11-panel) !important;
  color: var(--home11-ink) !important;
  box-shadow: 0 20px 60px rgba(24,27,24,.065), inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(1.05);
  z-index: 2;
  overflow: hidden;
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(96,125,118,.07) 62.1% 62.35%, transparent 62.45%),
    linear-gradient(90deg, transparent 0 76%, rgba(184,155,97,.055) 76.1% 76.35%, transparent 76.45%);
  pointer-events: none;
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch:hover {
  transform: translateY(-8px) scale(1.012);
  background: var(--home11-panel-hover) !important;
  border-color: rgba(17,20,17,.20) !important;
  box-shadow: 0 30px 80px rgba(24,27,24,.12), inset 0 1px 0 rgba(255,255,255,.96);
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch-number {
  color: #9b9d96 !important;
  font-size: 10px !important;
  letter-spacing: .22em;
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch-kicker {
  color: #8b8f88 !important;
  font-size: 8px;
  letter-spacing: .20em;
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch-content strong {
  font-family: "Manrope", sans-serif !important;
  font-size: clamp(30px, 3.1vw, 46px) !important;
  font-weight: 600 !important;
  letter-spacing: -.065em !important;
  line-height: .94;
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch-content small {
  color: #747972 !important;
  font-size: 11px;
  line-height: 1.5;
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch-arrow {
  right: 24px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(17,20,17,.12);
  background: rgba(255,255,255,.55);
  color: #636963 !important;
  display: grid;
  place-items: center;
  font-size: 17px;
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch:hover .home-launch-arrow {
  color: var(--home11-teal) !important;
  border-color: rgba(96,125,118,.38);
  transform: translate(2px,-2px);
}

/* Owner is the third navigation destination, full-width like a studio
   utility strip rather than a fourth dashboard card. */
.shell:has(#panel-dashboard:not([hidden])) .home-launch--owner {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 104px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px 30px;
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch--owner .home-launch-content {
  flex: 1;
  gap: 4px;
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch--owner .home-launch-content strong {
  font-size: 24px !important;
}

/* Bring the actual Dashboard back. The home navigation is only the
   entry layer; studio information remains visible on the home page. */
.shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics,
.shell:has(#panel-dashboard:not([hidden])) .dashboard-grid,
.shell:has(#panel-dashboard:not([hidden])) .dashboard-section--types {
  display: block;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics {
  max-width: 1160px;
  margin: 0 auto 16px;
  display: grid;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-grid {
  max-width: 1160px;
  margin: 16px auto 0;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-section--types {
  max-width: 1160px;
  margin: 16px auto 0;
}

.shell:has(#panel-dashboard:not([hidden])) .dashboard-section {
  border-radius: 24px;
  background: rgba(255,255,252,.64);
  border-color: var(--home11-line);
  box-shadow: 0 14px 45px rgba(24,27,24,.045);
  overflow: hidden;
}

.shell:has(#panel-dashboard:not([hidden])) .metric {
  background: rgba(255,255,252,.58);
  border-color: var(--home11-line);
}

.shell:has(#panel-dashboard:not([hidden])) .section-head {
  padding: 24px 26px;
}

.shell:has(#panel-dashboard:not([hidden])) .project-tile,
.shell:has(#panel-dashboard:not([hidden])) .attention-item,
.shell:has(#panel-dashboard:not([hidden])) .mix-item {
  background: transparent;
}

@media (max-width: 900px) {
  .shell:has(#panel-dashboard:not([hidden])) .home-launcher {
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-template-rows: 270px 270px 92px;
  }
  .shell:has(#panel-dashboard:not([hidden])) .home-launch--owner { grid-column: 1 / -1; grid-row: 3; }
  .home-launch-sculpture { width: 320px; height: 320px; }
}

@media (max-width: 760px) {
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-hero { min-height: 280px; }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-copy h1 { font-size: clamp(60px, 17vw, 88px) !important; }
  .shell:has(#panel-dashboard:not([hidden])) .home-launcher {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 190px) 88px;
    gap: 10px;
    margin-top: 0;
  }
  .shell:has(#panel-dashboard:not([hidden])) .home-launch--owner { grid-column: 1; grid-row: 3; }
  .home-launch-sculpture { width: 260px; height: 260px; top: 44%; }
}

/* =========================================================
   PHASE 12 — SHOUSE HOME COMPOSITION REFINEMENT
   Dashboard is the home. The brand is centered, the hero is
   canvas-like rather than boxed, and the three destinations
   share one clean row.
   ========================================================= */
.dashboard-brand { display: none; }

@media (min-width: 761px) {
  /* On the Dashboard/Home surface the brand becomes the centered
     studio masthead. Other application screens retain the sidebar. */
  .shell:has(#panel-dashboard:not([hidden])) .sidebar {
    display: none !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    display: flex;
    width: fit-content;
    margin: 2px auto 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--home-ink, #151715);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 2px;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(35,39,35,.10));
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name {
    font-family: var(--font-body);
    font-size: 25px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .22em;
    padding-left: .22em;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-sub {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    color: #8a8d87;
    font-family: var(--font-mono);
    font-size: 8px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .16em;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand .brand-pulse {
    width: 5px;
    height: 5px;
  }

  /* The dashboard title is part of the open canvas, not a boxed hero. */
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-hero {
    min-height: 230px !important;
    margin: 0 !important;
    padding: 18px 0 6px !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-grid {
    opacity: .10;
    mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,.7) 30%, transparent 88%);
  }

  /* No duplicate central sculpture — the SHOUSE mark now has a single,
     deliberate position in the masthead. */
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-mark,
  .shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture {
    display: none !important;
  }

  /* Three destinations: equal, adjacent, visually balanced. */
  .shell:has(#panel-dashboard:not([hidden])) .home-launcher {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(290px, 340px) !important;
    gap: 14px !important;
    margin: -2px auto 38px !important;
    max-width: 1160px;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 0 !important;
    height: 100%;
    padding: 28px 30px !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch--owner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0 !important;
    padding: 28px 30px !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch--owner .home-launch-content {
    flex: initial;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch--owner .home-launch-content strong {
    font-size: clamp(30px, 3.1vw, 46px) !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch--owner .home-launch-content small {
    max-width: 520px;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch-arrow {
    right: 24px;
    bottom: 22px;
  }
}

@media (max-width: 760px) {
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    display: flex;
    width: fit-content;
    margin: 4px auto 12px;
    padding: 0;
    border: 0;
    background: transparent;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--home-ink, #151715);
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark {
    width: 48px;
    height: 48px;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark img {
    width: 100%; height: 100%; object-fit: contain;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .20em;
    padding-left: .20em;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    color: #8a8d87;
    font-family: var(--font-mono);
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: .14em;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-hero {
    min-height: 250px !important;
    padding: 14px 0 8px !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-mark,
  .shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture { display: none !important; }

  .shell:has(#panel-dashboard:not([hidden])) .home-launcher {
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(3, 190px) !important;
    gap: 10px !important;
    margin-top: 0 !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .home-launch,
  .shell:has(#panel-dashboard:not([hidden])) .home-launch--owner {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/* =========================================================
   PHASE 12.1 — CENTERED BRAND + RESTORED GLASS LAYERS
   Visual-only refinement. No application behaviour or data logic
   is changed.
   ========================================================= */
@media (min-width: 761px) {
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: max-content;
    align-self: center;
  }

  /* Bring back the material mark behind the navigation panels so the
     translucent surfaces have something to refract, as in the reference. */
  .shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture {
    display: block !important;
    width: 430px;
    height: 430px;
    left: 50%;
    top: 49%;
    opacity: .58;
    z-index: 1;
    filter: saturate(.78) contrast(.94) drop-shadow(0 28px 44px rgba(30,34,30,.10));
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-sculpture-glow {
    opacity: .82;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch {
    background: rgba(255,255,252,.44) !important;
    border-color: rgba(255,255,255,.68) !important;
    box-shadow:
      0 24px 70px rgba(24,27,24,.075),
      inset 0 1px 0 rgba(255,255,255,.92),
      inset 0 0 0 1px rgba(17,20,17,.045);
    backdrop-filter: blur(26px) saturate(1.12);
    -webkit-backdrop-filter: blur(26px) saturate(1.12);
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch:hover {
    background: rgba(255,255,252,.58) !important;
    border-color: rgba(255,255,255,.86) !important;
    backdrop-filter: blur(30px) saturate(1.16);
    -webkit-backdrop-filter: blur(30px) saturate(1.16);
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg,
      rgba(255,255,255,.22) 0%,
      transparent 32%,
      transparent 68%,
      rgba(255,255,255,.10) 100%);
    opacity: .75;
  }
}

@media (max-width: 760px) {
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture {
    display: block !important;
    width: 300px;
    height: 300px;
    left: 50%;
    top: 48%;
    opacity: .34;
    z-index: 1;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch {
    background: rgba(255,255,252,.52) !important;
    border-color: rgba(255,255,255,.72) !important;
    backdrop-filter: blur(22px) saturate(1.08);
    -webkit-backdrop-filter: blur(22px) saturate(1.08);
  }
}


/* =========================================================
   PHASE 12.2 — TRUE CENTERED SHOUSE LOCKUP
   Visual-only correction: the mark, wordmark and subtitle share
   one exact center axis. No application logic changed.
   ========================================================= */
.dashboard-brand {
  box-sizing: border-box;
}
@media (min-width: 761px) {
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: max-content !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark,
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name,
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-sub {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name {
    padding-left: 0 !important;
  }
}
@media (max-width: 760px) {
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: max-content !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark,
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name,
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-sub {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name {
    padding-left: 0 !important;
  }
}


/* =========================================================
   PHASE 12.3 — ABSTRACT MATERIAL BACKDROP
   Replace the SHOUSE mark behind the glass panels with a neutral,
   architectural material sculpture. Keep the glass treatment intact.
   ========================================================= */
.shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-copy .eyebrow {
  display: none !important;
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture {
  display: block !important;
  width: 430px;
  height: 430px;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  opacity: .72;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 28px 44px rgba(30,34,30,.09));
}

/* Do not use the SHOUSE logo as the glass backdrop. */
.shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture img {
  display: none !important;
}

/* Quiet architectural object: overlapping mineral planes / soft stone volume. */
.shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture::before {
  content: "";
  position: absolute;
  width: 54%;
  height: 70%;
  left: 23%;
  top: 15%;
  border-radius: 42% 58% 48% 52% / 58% 42% 58% 42%;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(218,218,208,.68) 46%, rgba(166,174,167,.42) 100%);
  box-shadow:
    inset -24px -18px 36px rgba(84,95,88,.10),
    inset 18px 14px 32px rgba(255,255,255,.72),
    0 34px 60px rgba(35,40,35,.08);
  transform: rotate(-11deg);
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture::after {
  content: "";
  position: absolute;
  width: 46%;
  height: 58%;
  left: 36%;
  top: 22%;
  border-radius: 48% 52% 55% 45% / 45% 55% 45% 55%;
  background:
    linear-gradient(125deg, rgba(104,133,126,.26), rgba(232,225,205,.20) 58%, rgba(255,255,255,.52));
  border: 1px solid rgba(255,255,255,.48);
  box-shadow: inset 12px 12px 22px rgba(255,255,255,.30);
  transform: rotate(19deg);
  filter: blur(.2px);
}

.shell:has(#panel-dashboard:not([hidden])) .home-sculpture-glow {
  display: block;
  opacity: .72;
  inset: 12%;
  background: radial-gradient(circle, rgba(255,255,255,.82), rgba(222,224,215,.20) 54%, transparent 72%);
  filter: blur(18px);
}

@media (max-width: 760px) {
  .shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture {
    width: 300px;
    height: 300px;
    opacity: .42;
  }
}

/* =========================================================
   PHASE 12.4 — ALIGNMENT + ARCHITECTURAL SKETCH BACKDROP
   Final visual correction: exact centered brand lockup, centered
   dashboard metrics, and a restrained architectural line drawing
   behind the glass navigation panels. No application logic changed.
   ========================================================= */
@media (min-width: 761px) {
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    display: flex !important;
    width: 220px !important;
    min-width: 220px !important;
    margin: 2px auto 18px !important;
    left: auto !important;
    transform: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    gap: 5px !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto !important;
    flex: 0 0 64px;
    display: grid !important;
    place-items: center !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark img {
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    margin: 0 !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name,
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-sub {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: center !important;
    text-align: center !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name {
    padding-left: 0 !important;
    letter-spacing: .20em !important;
  }

  /* Every metric shares one center axis: kicker, value and label. */
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics {
    align-items: stretch;
  }
  .shell:has(#panel-dashboard:not([hidden])) .metric {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .metric-kicker,
  .shell:has(#panel-dashboard:not([hidden])) .metric-value,
  .shell:has(#panel-dashboard:not([hidden])) .metric-label {
    width: 100% !important;
    text-align: center !important;
  }
}

/* Replace the abstract blob with a restrained architectural drawing. */
.shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture {
  width: min(720px, 64vw) !important;
  height: min(500px, 46vw) !important;
  left: 50% !important;
  top: 49% !important;
  transform: translate(-50%, -50%) !important;
  opacity: .34 !important;
  filter: none !important;
  z-index: 1 !important;
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  top: 0 !important;
  border-radius: 0 !important;
  background: url('../assets/architecture-sketch.svg') center / contain no-repeat !important;
  box-shadow: none !important;
  transform: none !important;
}

.shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture::after {
  display: none !important;
}

.shell:has(#panel-dashboard:not([hidden])) .home-sculpture-glow {
  inset: 16% !important;
  background: radial-gradient(circle, rgba(255,255,255,.62), rgba(222,228,220,.10) 55%, transparent 72%) !important;
  opacity: .45 !important;
  filter: blur(22px) !important;
}

@media (max-width: 760px) {
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    width: 210px !important;
    min-width: 210px !important;
    margin: 2px auto 18px !important;
    left: auto !important;
    transform: none !important;
    align-items: center !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark {
    width: 58px !important;
    height: 58px !important;
    flex-basis: 58px;
    margin: 0 auto !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark img {
    width: 58px !important;
    height: 58px !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name,
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-sub {
    width: 100% !important;
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .metric {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .metric-kicker,
  .shell:has(#panel-dashboard:not([hidden])) .metric-value,
  .shell:has(#panel-dashboard:not([hidden])) .metric-label {
    width: 100% !important;
    text-align: center !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture {
    width: 520px !important;
    height: 360px !important;
    opacity: .20 !important;
  }
}

/* =========================================================
   PHASE 12.5 — FINAL HOME ALIGNMENT + VISIBLE GLASS
   Precision pass based on the supplied browser screenshot.
   Visual-only: no application logic, data model, or navigation changes.
   ========================================================= */
@media (min-width: 761px) {
  /* Exact visual centering: the cleaned mark asset has no asymmetric
     transparent canvas, and the whole lockup is centered as one column. */
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    width: 280px !important;
    min-width: 280px !important;
    margin: 2px auto 20px !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    text-align: center !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark {
    width: 72px !important;
    height: 72px !important;
    margin: 0 auto 2px !important;
    display: grid !important;
    place-items: center !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark img {
    width: 72px !important;
    height: 72px !important;
    display: block !important;
    object-fit: contain !important;
    margin: 0 !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name {
    display: block !important;
    width: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    letter-spacing: .20em !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-sub {
    width: auto !important;
    margin: 4px auto 0 !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* The metrics are four equal editorial columns. Each complete metric
     is centered independently rather than relying on inherited padding. */
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics {
    width: min(1160px, 100%) !important;
    max-width: 1160px !important;
    margin: 0 auto 16px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-items: stretch !important;
    align-items: stretch !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics .metric {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 28px 12px 30px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics .metric > * {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics .metric-kicker,
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics .metric-label {
    width: auto !important;
    max-width: 100% !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics .metric-value {
    width: auto !important;
    text-align: center !important;
  }

  /* Make the architectural drawing a real layer behind the glass panels. */
  .shell:has(#panel-dashboard:not([hidden])) .home-launcher {
    position: relative !important;
    isolation: isolate !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launcher::before {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;
    inset: -54px 2% -48px !important;
    pointer-events: none !important;
    background:
      radial-gradient(circle at 50% 48%, rgba(91,121,109,.13), transparent 38%),
      url('../assets/architecture-sketch.svg') center / min(820px, 90%) 115% no-repeat !important;
    opacity: .42 !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture {
    display: none !important;
  }

  /* More visible, premium frosted glass: the drawing remains readable
     underneath while the panels retain their soft translucent surfaces. */
  .shell:has(#panel-dashboard:not([hidden])) .home-launch {
    position: relative !important;
    z-index: 2 !important;
    background: linear-gradient(135deg,
      rgba(255,255,255,.30),
      rgba(248,250,247,.16) 58%,
      rgba(255,255,255,.26)) !important;
    border: 1px solid rgba(255,255,255,.78) !important;
    box-shadow:
      0 24px 70px rgba(24,27,24,.075),
      inset 0 1px 0 rgba(255,255,255,.94),
      inset 0 0 0 1px rgba(28,37,32,.055),
      inset 0 -18px 40px rgba(211,219,213,.08) !important;
    backdrop-filter: blur(18px) saturate(1.28) contrast(1.02) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.28) contrast(1.02) !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch:hover {
    background: linear-gradient(135deg,
      rgba(255,255,255,.42),
      rgba(248,250,247,.24) 58%,
      rgba(255,255,255,.36)) !important;
    backdrop-filter: blur(20px) saturate(1.32) contrast(1.02) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.32) contrast(1.02) !important;
  }

  /* Let the architectural drawing show through without competing with text. */
  .shell:has(#panel-dashboard:not([hidden])) .home-launch::before {
    opacity: .36 !important;
  }
}

@media (max-width: 760px) {
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    width: 240px !important;
    min-width: 240px !important;
    margin: 4px auto 16px !important;
    padding: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark {
    width: 58px !important;
    height: 58px !important;
    margin: 0 auto 2px !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark img {
    width: 58px !important;
    height: 58px !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name,
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-sub {
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-items: stretch !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics .metric {
    width: 100% !important;
    padding: 22px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics .metric > * {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launcher {
    position: relative !important;
    isolation: isolate !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launcher::before {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;
    inset: -25px 0 !important;
    pointer-events: none !important;
    background: url('../assets/architecture-sketch.svg') center / 130% 100% no-repeat !important;
    opacity: .20 !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture {
    display: none !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch {
    position: relative !important;
    z-index: 2 !important;
    background: rgba(255,255,255,.34) !important;
    border-color: rgba(255,255,255,.76) !important;
    backdrop-filter: blur(16px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
  }
}

/* =========================================================
   PHASE 12.6 — CENTER AXIS + MILKY WHITE GLASS
   Precision visual pass only. Application logic remains untouched.
   ========================================================= */
@media (min-width: 761px) {
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 220px !important;
    min-width: 220px !important;
    margin: 2px 0 20px !important;
    align-items: center !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark {
    width: 76px !important;
    height: 76px !important;
    margin: 0 auto 4px !important;
    flex: 0 0 76px !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark img {
    width: 76px !important;
    height: 76px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    line-height: 1 !important;
    letter-spacing: .20em !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-sub {
    width: 100% !important;
    margin: 5px 0 0 !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launcher::before {
    inset: -60px 0 -52px !important;
    background:
      radial-gradient(circle at 50% 50%, rgba(49,94,74,.09), transparent 42%),
      url('../assets/architecture-sketch.svg') center / min(900px, 96%) 118% no-repeat !important;
    opacity: .62 !important;
    filter: saturate(.9) contrast(1.04) !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch {
    background:
      linear-gradient(135deg,
        rgba(255,255,255,.62),
        rgba(252,253,250,.48) 48%,
        rgba(255,255,255,.58)) !important;
    border: 1px solid rgba(255,255,255,.94) !important;
    box-shadow:
      0 28px 78px rgba(29,35,30,.09),
      0 2px 8px rgba(29,35,30,.035),
      inset 0 1px 0 rgba(255,255,255,1),
      inset 0 0 0 1px rgba(49,94,74,.045),
      inset 0 -24px 44px rgba(214,223,216,.10) !important;
    backdrop-filter: blur(14px) saturate(1.34) brightness(1.04) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.34) brightness(1.04) !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .home-launch::after {
    content: "" !important;
    position: absolute !important;
    inset: 1px !important;
    border-radius: inherit !important;
    pointer-events: none !important;
    background: linear-gradient(120deg, rgba(255,255,255,.32), transparent 32%, transparent 68%, rgba(255,255,255,.18)) !important;
    mix-blend-mode: screen !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .home-launch:hover {
    background:
      linear-gradient(135deg,
        rgba(255,255,255,.72),
        rgba(252,253,250,.58) 48%,
        rgba(255,255,255,.68)) !important;
    box-shadow:
      0 32px 86px rgba(29,35,30,.11),
      0 3px 10px rgba(29,35,30,.04),
      inset 0 1px 0 rgba(255,255,255,1),
      inset 0 0 0 1px rgba(49,94,74,.06) !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics {
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics .metric {
    padding-left: 16px !important;
    padding-right: 16px !important;
    align-items: center !important;
    text-align: center !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-metrics .metric > * {
    align-self: center !important;
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 760px) {
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 190px !important;
    min-width: 190px !important;
    margin: 4px 0 16px !important;
    align-items: center !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark {
    width: 60px !important;
    height: 60px !important;
    flex-basis: 60px !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark img {
    width: 60px !important;
    height: 60px !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name {
    width: 100% !important;
    text-align: center !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-sub {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .home-launcher::before {
    opacity: .42 !important;
    background: url('../assets/architecture-sketch.svg') center / 132% 108% no-repeat !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .home-launch {
    background: rgba(255,255,255,.58) !important;
    border-color: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(13px) saturate(1.26) !important;
    -webkit-backdrop-filter: blur(13px) saturate(1.26) !important;
  }
}

/* =========================================================
   PHASE 12.7 — CLEAN TOP BRAND + LARGER GLASS MARK
   Visual-only pass. Existing application logic and architecture remain untouched.
   ========================================================= */
@media (min-width: 761px) {
  /* Remove the separate logo mark from the top lockup. Keep the SHOUSE
     wordmark and Management System identity, with a stronger presence. */
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark {
    display: none !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    width: 360px !important;
    min-width: 360px !important;
    margin: 8px auto 22px !important;
    gap: 7px !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name {
    font-size: 24px !important;
    line-height: 1 !important;
    letter-spacing: .22em !important;
    font-weight: 500 !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-sub {
    font-size: 11px !important;
    line-height: 1.2 !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
  }

  /* The Dashboard title is intentionally quieter so the SHOUSE identity
     and glass navigation remain the visual focus. */
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-copy h1,
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-panel h1 {
    font-size: clamp(60px, 7.2vw, 100px) !important;
    letter-spacing: -.075em !important;
    line-height: .86 !important;
    margin: 10px 0 14px !important;
  }

  /* Bring back the SHOUSE mark as the material object behind the glass.
     It is larger, softer and deliberately subordinate to the text. */
  .shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture {
    display: block !important;
    width: min(560px, 46vw) !important;
    height: min(560px, 46vw) !important;
    left: 50% !important;
    top: 49% !important;
    transform: translate(-50%, -50%) !important;
    opacity: .30 !important;
    z-index: 1 !important;
    filter: drop-shadow(0 30px 50px rgba(31,38,33,.08)) !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: saturate(.84) contrast(.96) blur(.1px) drop-shadow(0 26px 42px rgba(31,38,33,.08)) !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-sculpture-glow {
    opacity: .26 !important;
    inset: 14% !important;
    filter: blur(20px) !important;
  }

  /* Remove the architectural-sketch layer behind the panels for this pass;
     the enlarged SHOUSE mark is now the glass backdrop. */
  .shell:has(#panel-dashboard:not([hidden])) .home-launcher::before {
    background: radial-gradient(circle at 50% 50%, rgba(49,94,74,.08), transparent 48%) !important;
    opacity: .42 !important;
  }
}

@media (max-width: 760px) {
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-mark {
    display: none !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    width: 260px !important;
    min-width: 260px !important;
    margin: 6px auto 18px !important;
    gap: 6px !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name {
    font-size: 21px !important;
    letter-spacing: .18em !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-sub {
    font-size: 10px !important;
    letter-spacing: .14em !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-copy h1 {
    font-size: clamp(48px, 13vw, 72px) !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture {
    display: block !important;
    width: 420px !important;
    height: 420px !important;
    opacity: .22 !important;
    z-index: 1 !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture img {
    display: block !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launcher::before {
    background: radial-gradient(circle at 50% 50%, rgba(49,94,74,.07), transparent 50%) !important;
    opacity: .34 !important;
  }
}

/* =========================================================
   PHASE 13 — UNIFIED GLASS STUDIO NAVIGATION + PAGE LANGUAGE
   Visual/navigation presentation only. Existing data models,
   task logic, project logic, utility logic and routing targets remain unchanged.
   ========================================================= */

@media (min-width: 761px) {
  /* Keep the studio identity and the main navigation on one clean top rail. */
  .shell:not(:has(#panel-dashboard:not([hidden]))) .sidebar {
    width: 100%;
    height: auto;
    min-height: 78px;
    position: sticky;
    top: 0;
    z-index: 60;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 10px 28px;
    background: rgba(250,249,245,.76) !important;
    border: 1px solid rgba(255,255,255,.78) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: 0 14px 40px rgba(27,34,30,.055), inset 0 1px 0 rgba(255,255,255,.94) !important;
    backdrop-filter: blur(24px) saturate(1.16);
    -webkit-backdrop-filter: blur(24px) saturate(1.16);
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .sidebar-top {
    width: 220px;
    flex: 0 0 220px;
    padding: 8px 14px 8px 0 !important;
    margin: 0 !important;
    border: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .sidebar-top::after {
    display: none !important;
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .brand-lockup img {
    width: 30px;
    height: 30px;
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .wordmark {
    font-size: 18px;
    letter-spacing: .02em;
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .wordmark-sub {
    margin-left: 41px;
    font-size: 8px;
    letter-spacing: .16em;
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .nav-list {
    flex: 1;
    min-width: 0;
    height: auto;
    padding: 0 !important;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 7px;
    overflow: visible;
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .nav-link {
    width: auto;
    min-height: 46px !important;
    padding: 0 18px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    color: #65706a !important;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 500;
    letter-spacing: -.01em !important;
    white-space: nowrap;
    box-shadow: none;
    transition: background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .nav-link:hover {
    color: #18201c !important;
    background: rgba(255,255,255,.55) !important;
    border-color: rgba(255,255,255,.84) !important;
    box-shadow: 0 8px 24px rgba(27,34,30,.045), inset 0 1px 0 rgba(255,255,255,.95);
    transform: translateY(-1px);
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .nav-link[aria-current="page"] {
    color: #17201c !important;
    background: rgba(255,255,255,.74) !important;
    border-color: rgba(255,255,255,.94) !important;
    box-shadow: 0 10px 28px rgba(27,34,30,.07), inset 0 1px 0 rgba(255,255,255,1), inset 0 0 0 1px rgba(82,115,109,.07);
    font-weight: 600;
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .nav-link[aria-current="page"]::after {
    display: none !important;
  }

  /* Projects is a destination, not a dropdown. Its four categories sit
     directly beside it as a secondary glass rail. */
  .shell:not(:has(#panel-dashboard:not([hidden]))) .nav-link--projects {
    margin: 0 !important;
    justify-content: center;
    gap: 0;
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .nav-subnav {
    order: initial;
    width: auto;
    flex-basis: auto;
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 4px;
    margin-left: -2px;
    border: 1px solid rgba(255,255,255,.76) !important;
    border-radius: 999px;
    background: rgba(255,255,255,.34) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 8px 24px rgba(27,34,30,.035);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .nav-subnav.is-visible {
    display: flex;
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .nav-link--sub {
    min-height: 34px !important;
    padding: 0 12px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    letter-spacing: .045em !important;
    text-transform: uppercase;
    color: #747c76 !important;
    background: transparent !important;
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .nav-link--sub:hover,
  .shell:not(:has(#panel-dashboard:not([hidden]))) .nav-link--sub[aria-current="page"] {
    color: #17201c !important;
    background: rgba(255,255,255,.78) !important;
    border-color: rgba(255,255,255,.92) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 5px 16px rgba(27,34,30,.045);
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .nav-link--owner {
    margin: 0 !important;
    border-top: 0 !important;
    padding-top: 0 !important;
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .sidebar-bottom {
    width: auto;
    flex: 0 0 auto;
    padding: 0 0 0 8px;
  }

  /* Shared page language: the same soft glass/architectural treatment
     follows the user from the home screen into every section. */
  .shell:not(:has(#panel-dashboard:not([hidden]))) .panel-header {
    max-width: 1180px;
    margin: 0 auto 26px;
    padding: 26px 30px 28px;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 28px;
    background: rgba(255,255,252,.50);
    box-shadow: 0 18px 55px rgba(27,34,30,.045), inset 0 1px 0 rgba(255,255,255,.92);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .panel-header h1 {
    margin-bottom: 7px;
    font-size: clamp(38px, 5vw, 68px) !important;
    letter-spacing: -.065em !important;
    line-height: .94;
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .panel-intro {
    color: #777e78;
    max-width: 700px;
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .project-card,
  .shell:not(:has(#panel-dashboard:not([hidden]))) .owner-card,
  .shell:not(:has(#panel-dashboard:not([hidden]))) .utility-card,
  .shell:not(:has(#panel-dashboard:not([hidden]))) .workspace-block {
    background: rgba(255,255,252,.50) !important;
    border: 1px solid rgba(255,255,255,.76) !important;
    box-shadow: 0 16px 48px rgba(27,34,30,.04), inset 0 1px 0 rgba(255,255,255,.88);
    backdrop-filter: blur(15px) saturate(1.06);
    -webkit-backdrop-filter: blur(15px) saturate(1.06);
  }

  .shell:not(:has(#panel-dashboard:not([hidden]))) .project-card:hover,
  .shell:not(:has(#panel-dashboard:not([hidden]))) .owner-card:hover,
  .shell:not(:has(#panel-dashboard:not([hidden]))) .utility-card:hover,
  .shell:not(:has(#panel-dashboard:not([hidden]))) .workspace-block:hover {
    border-color: rgba(82,115,109,.18) !important;
    box-shadow: 0 22px 60px rgba(27,34,30,.07), inset 0 1px 0 rgba(255,255,255,.95);
  }
}

@media (max-width: 760px) {
  /* Mobile keeps the drawer behaviour but adopts the same glass language. */
  .sidebar {
    background: rgba(250,249,245,.90) !important;
    backdrop-filter: blur(22px) saturate(1.12) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.12) !important;
  }

  .nav-link--projects {
    margin-top: 0 !important;
  }

  .nav-subnav {
    display: flex;
  }

  .nav-link--sub {
    padding-left: 30px !important;
  }

  .panel-header {
    border-radius: 22px;
    background: rgba(255,255,252,.52);
    border: 1px solid rgba(255,255,255,.78);
    box-shadow: 0 14px 40px rgba(27,34,30,.045), inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(16px) saturate(1.06);
    -webkit-backdrop-filter: blur(16px) saturate(1.06);
  }
}

/* Phase 13 — Home identity scale refinement. */
@media (min-width: 761px) {
  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand {
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 320px !important;
    min-width: 320px !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-name {
    font-size: 27px !important;
    letter-spacing: .19em !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-brand-sub {
    font-size: 11px !important;
    letter-spacing: .17em !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .dashboard-hero-copy h1 {
    font-size: clamp(54px, 6vw, 82px) !important;
    letter-spacing: -.07em !important;
    line-height: .9 !important;
  }
}

/* ---------------------------------------------------------
   Phase 13.1 — Projects landing selector
   Projects opens to a centered field selector first. The
   category workspaces remain unchanged behind it.
--------------------------------------------------------- */
.nav-subnav { display: none !important; }

.projects-selector-panel {
  min-height: calc(100vh - 92px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(42px, 7vw, 92px) clamp(22px, 5vw, 72px);
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.9), rgba(255,255,255,0) 44%),
    linear-gradient(135deg, rgba(255,255,255,.62), rgba(242,244,238,.34));
}

.projects-selector-shell {
  width: min(1120px, 100%);
  text-align: center;
}

.projects-selector-kicker {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(50,69,61,.62);
  margin-bottom: 16px;
}

.projects-selector-shell h1 {
  margin: 0;
  font-family: var(--font-display, sans-serif);
  font-size: clamp(54px, 8vw, 100px);
  line-height: .9;
  letter-spacing: -.065em;
  font-weight: 500;
  color: #151915;
}

.projects-selector-shell > p {
  max-width: 560px;
  margin: 22px auto 46px;
  color: #6e746e;
  font-size: 14px;
  line-height: 1.7;
}

.projects-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}

.projects-selector-card {
  position: relative;
  min-height: 300px;
  padding: 24px 22px 22px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.74), rgba(248,249,245,.42));
  box-shadow:
    0 24px 70px rgba(37,45,40,.08),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -1px 0 rgba(112,128,119,.08);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  color: #151915;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, border-color .45s ease, background .45s ease;
}

.projects-selector-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 57%, rgba(73,107,93,.09) 57.2%, transparent 57.7%),
    linear-gradient(90deg, transparent 0 72%, rgba(50,70,61,.055) 72.1%, transparent 72.4%);
  pointer-events: none;
}

.projects-selector-card::after {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #6c8e7e, rgba(185,154,93,.7));
  transform: scaleX(.15);
  transform-origin: left;
  transition: transform .45s ease;
}

.projects-selector-card:hover {
  transform: translateY(-8px);
  border-color: rgba(105,132,120,.34);
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(248,250,246,.6));
  box-shadow:
    0 34px 90px rgba(37,45,40,.12),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(112,128,119,.09);
}

.projects-selector-card:hover::after { transform: scaleX(1); }

.projects-selector-card:focus-visible {
  outline: 2px solid #547a68;
  outline-offset: 4px;
}

.projects-selector-index {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(45,63,55,.52);
}

.projects-selector-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.projects-selector-label {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7d867e;
}

.projects-selector-content strong {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(25px, 2.2vw, 36px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 500;
}

.projects-selector-content small {
  color: #737b74;
  font-size: 11px;
  line-height: 1.55;
  max-width: 210px;
}

.projects-selector-arrow {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(68,87,78,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.48);
  color: #4e6158;
  font-size: 15px;
  transition: transform .35s ease, background .35s ease;
}

.projects-selector-card:hover .projects-selector-arrow {
  transform: translate(3px,-3px);
  background: rgba(255,255,255,.78);
}

@media (max-width: 900px) {
  .projects-selector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-selector-card { min-height: 260px; }
}

@media (max-width: 620px) {
  .projects-selector-panel { min-height: auto; padding: 48px 18px 70px; }
  .projects-selector-shell h1 { font-size: 58px; }
  .projects-selector-shell > p { margin-bottom: 30px; }
  .projects-selector-grid { grid-template-columns: 1fr; }
  .projects-selector-card { min-height: 210px; }
}


/* Phase 13.3 — glass back controls + recoverable recycle bin */
.page-back {
  position: relative;
  z-index: 12;
  margin: 0 0 18px auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: #27332d;
  box-shadow: 0 10px 28px rgba(47,64,55,.08), inset 0 1px 0 rgba(255,255,255,.86);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  font: 600 12px/1 var(--font-ui, sans-serif);
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}
.page-back:hover { transform: translateY(-2px); background: rgba(255,255,255,.82); box-shadow: 0 14px 34px rgba(47,64,55,.12), inset 0 1px 0 rgba(255,255,255,.96); }
.page-back:focus-visible { outline: 2px solid #6d8b78; outline-offset: 3px; }

.recycle-bin-card {
  margin: 54px 0 12px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(247,249,246,.42));
  box-shadow: 0 18px 48px rgba(44,62,53,.07), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}
.recycle-bin-card h2 { margin: 5px 0 5px; font-size: clamp(22px,2vw,30px); letter-spacing: -.04em; }
.recycle-bin-card p { margin: 0; color: #737b74; font-size: 12px; max-width: 620px; }
.glass-action {
  border: 1px solid rgba(255,255,255,.78);
  background: rgba(255,255,255,.62);
  color: #29352f;
  border-radius: 999px;
  box-shadow: 0 9px 24px rgba(46,62,53,.08), inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  min-height: 42px;
  padding: 0 16px;
  font: 600 12px/1 var(--font-ui, sans-serif);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}
.glass-action:hover { transform: translateY(-2px); background: rgba(255,255,255,.84); }
.recycle-open-btn { white-space: nowrap; }
.recycle-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(30,42,36,.18); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.recycle-overlay[hidden] { display: none; }
.recycle-modal { width: min(760px, 100%); max-height: min(78vh, 720px); overflow: auto; padding: 30px; border: 1px solid rgba(255,255,255,.82); border-radius: 30px; background: rgba(255,255,255,.78); box-shadow: 0 30px 90px rgba(35,49,42,.18), inset 0 1px 0 rgba(255,255,255,.96); backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%); }
.recycle-modal-head { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; margin-bottom:22px; }
.recycle-modal h2 { margin:5px 0 4px; font-size:clamp(28px,4vw,46px); letter-spacing:-.05em; }
.recycle-modal p { margin:0; color:#737b74; font-size:12px; }
.recycle-close { width:40px; min-height:40px; padding:0; font-size:22px; }
.recycle-list { display:grid; gap:10px; }
.recycle-item { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 17px; border:1px solid rgba(93,111,101,.13); border-radius:20px; background:rgba(250,251,249,.62); }
.recycle-item > div { min-width:0; display:grid; gap:4px; }
.recycle-actions { display:flex; gap:8px; align-items:center; flex-shrink:0; }
.recycle-permanent { color:#8a4b4b; border-color:rgba(138,75,75,.18); }
.recycle-permanent:hover { background:rgba(138,75,75,.08); border-color:rgba(138,75,75,.28); }
.recycle-item strong { font-size:15px; letter-spacing:-.02em; }
.recycle-item small { color:#7b827d; font-size:10px; }
.recycle-type { width:max-content; font:700 9px/1 var(--font-mono,monospace); letter-spacing:.15em; text-transform:uppercase; color:#587665; }
.recycle-empty { padding:34px; text-align:center; color:#7b827d; border:1px dashed rgba(93,111,101,.18); border-radius:20px; }
@media (max-width:700px){ .recycle-bin-card{align-items:flex-start; flex-direction:column;} .recycle-item{align-items:flex-start; flex-direction:column;} .recycle-actions{width:100%;} .recycle-actions button{flex:1;} .page-back{margin-left:auto;} }

/* Daily Task Tracker — task rows are direct navigation into the project timeline. */
.tracker-task-row[data-view-task-project][data-view-task-id] {
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tracker-task-row[data-view-task-project][data-view-task-id]:hover {
  background: rgba(255,255,255,.62);
}
.tracker-task-row[data-view-task-project][data-view-task-id]:focus-visible {
  outline: 2px solid rgba(55,112,96,.45);
  outline-offset: -2px;
}

.task-row--focus {
  animation: shouseTaskFocus 2.4s ease both;
}

@keyframes shouseTaskFocus {
  0%, 100% { background: rgba(255,255,255,.32); box-shadow: inset 0 0 0 0 rgba(55,112,96,0); }
  12%, 42%, 72% { background: rgba(116,154,137,.24); box-shadow: inset 0 0 0 2px rgba(55,112,96,.38), 0 0 24px rgba(55,112,96,.14); }
  27%, 57%, 87% { background: rgba(255,255,255,.54); box-shadow: inset 0 0 0 1px rgba(55,112,96,.18), 0 0 10px rgba(55,112,96,.06); }
}

/* Daily Task Tracker — clicking a task row opens its project timeline. */
.tracker-task-row[data-view-task-project][data-view-task-id] {
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tracker-task-row[data-view-task-project][data-view-task-id]:hover {
  background: rgba(255,255,255,.62);
}
.tracker-task-row[data-view-task-project][data-view-task-id]:focus-visible {
  outline: 2px solid rgba(55,112,96,.45);
  outline-offset: -2px;
}

.task-row--focus {
  animation: shouseTaskFocus 2.8s ease both;
}

@keyframes shouseTaskFocus {
  0%, 100% { background: rgba(255,255,255,.32); box-shadow: inset 0 0 0 0 rgba(55,112,96,0); }
  12%, 42%, 72% { background: rgba(116,154,137,.25); box-shadow: inset 0 0 0 2px rgba(55,112,96,.40), 0 0 26px rgba(55,112,96,.16); }
  27%, 57%, 87% { background: rgba(255,255,255,.56); box-shadow: inset 0 0 0 1px rgba(55,112,96,.18), 0 0 10px rgba(55,112,96,.06); }
}

/* Daily Task Tracker — premium row interaction */
.tracker-task-row[data-view-task-project][data-view-task-id] {
  position: relative;
  cursor: pointer;
}
.tracker-task-row[data-view-task-project][data-view-task-id] > td {
  transition: background-color .28s ease, color .28s ease, box-shadow .28s ease, transform .28s ease;
}
.tracker-task-row[data-view-task-project][data-view-task-id]:hover > td {
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), inset 0 -1px 0 rgba(93,111,101,.10);
}
.tracker-task-row[data-view-task-project][data-view-task-id]:hover > td:first-child {
  box-shadow: inset 3px 0 0 rgba(72,122,101,.72), inset 0 1px 0 rgba(255,255,255,.92), inset 0 -1px 0 rgba(93,111,101,.10);
  border-radius: 14px 0 0 14px;
}
.tracker-task-row[data-view-task-project][data-view-task-id]:hover > td:last-child {
  border-radius: 0 14px 14px 0;
}
.tracker-task-row[data-view-task-project][data-view-task-id]:hover .cell-name,
.tracker-task-row[data-view-task-project][data-view-task-id]:hover .tracker-project-link {
  color: #315f50;
}
.tracker-task-row[data-view-task-project][data-view-task-id]:hover .tracker-project-link {
  transform: translateX(2px);
}
.tracker-task-row[data-view-task-project][data-view-task-id]:hover .task-overdue {
  transform: translateY(-1px);
}
.tracker-task-row[data-view-task-project][data-view-task-id] .tracker-project-link,
.tracker-task-row[data-view-task-project][data-view-task-id] .task-overdue {
  transition: color .25s ease, transform .25s ease;
}
.tracker-task-row[data-view-task-project][data-view-task-id]:active > td {
  background: rgba(239,247,243,.88);
}

/* ---------------------------------------------------------
   Owner Access — lightweight password gate
   --------------------------------------------------------- */
.owner-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 34, 31, .18);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}
.owner-auth-modal[hidden] { display: none; }
.owner-auth-card {
  width: min(440px, 100%);
  padding: 34px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 28px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 30px 90px rgba(38,52,47,.18), inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}
.owner-auth-kicker {
  margin-bottom: 9px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #557e70;
}
.owner-auth-card h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.05;
  letter-spacing: -.035em;
  color: #202824;
}
.owner-auth-card p {
  margin: 12px 0 22px;
  color: #69746f;
  font-size: 14px;
}
.owner-auth-card input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(61,77,70,.16);
  border-radius: 15px;
  background: rgba(255,255,255,.72);
  padding: 14px 16px;
  font: 500 14px "Manrope", sans-serif;
  color: #202824;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(33,48,42,.04);
}
.owner-auth-card input:focus {
  border-color: rgba(74,119,104,.48);
  box-shadow: 0 0 0 4px rgba(74,119,104,.10);
}
.owner-auth-error {
  min-height: 18px;
  margin-top: 8px;
  color: #a24f4f;
  font-size: 12px;
}
.owner-auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.glass-button {
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font: 600 12px "Manrope", sans-serif;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.glass-button:hover { transform: translateY(-1px); }
.glass-button--secondary {
  background: rgba(255,255,255,.48);
  color: #4e5a55;
}
.glass-button--primary {
  background: rgba(74,119,104,.94);
  color: #fff;
  box-shadow: 0 8px 22px rgba(74,119,104,.18);
}
body.owner-auth-open { overflow: hidden; }

/* Phase 13.11 — Dashboard glass logo micro-adjustment.
   Desktop only: move the SHOUSE mark used behind the glass launcher 18px left.
   The visible backdrop is .home-launch-sculpture; .dashboard-hero-mark is hidden
   by the final dashboard composition, so it must not be used for this adjustment.
   No other dashboard or application styling is changed. */
@media (min-width: 761px) {
  .shell:has(#panel-dashboard:not([hidden])) .home-launch-sculpture {
    left: calc(50% - 60px) !important;
  }
}


/* Phase 13.14 — lightweight action confirmations */
.shouse-toast-host {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.shouse-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 230px;
  max-width: 360px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 15px;
  background: rgba(248,250,247,.78);
  color: #27312d;
  box-shadow: 0 14px 34px rgba(38,54,47,.13), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  font: 600 12px/1.35 "Manrope", sans-serif;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}
.shouse-toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.shouse-toast__dot {
  width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%;
  background: #557e70; box-shadow: 0 0 0 4px rgba(85,126,112,.10);
}
.shouse-toast--success .shouse-toast__dot { background: #4a7768; }
@media (max-width: 760px) {
  .shouse-toast-host { right: 14px; left: 14px; bottom: 14px; align-items: stretch; }
  .shouse-toast { min-width: 0; max-width: none; }
}

/* =========================================================
   TEAM HUB — PHASE 1
   Two-entry landing surface only. No project functionality.
   ========================================================= */
.teamhub-panel { min-height: 100%; }
.teamhub-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 8px 0 70px;
}
.teamhub-kicker {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--home-muted, #777b75);
  margin: 22px 0 10px;
}
.teamhub-shell > h1 {
  margin: 0;
  font-family: var(--font-display, var(--font-body, sans-serif));
  font-size: clamp(54px, 7vw, 92px);
  line-height: .9;
  letter-spacing: -.055em;
  font-weight: 500;
  color: var(--home-ink, #151715);
}
.teamhub-intro {
  max-width: 620px;
  margin: 18px 0 34px;
  color: var(--home-muted, #777b75);
  font-size: 14px;
  line-height: 1.65;
}
.teamhub-launcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.teamhub-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--home-line, rgba(21,23,21,.12));
  border-radius: 28px;
  background: var(--home-glass, rgba(255,255,252,.72));
  color: var(--home-ink, #151715);
  padding: 28px 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(24,31,27,.055);
  transition: transform .4s cubic-bezier(.2,.75,.2,1), background .35s ease, border-color .35s ease, box-shadow .4s ease;
}
.teamhub-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 0 66%, rgba(52,91,72,.055) 66.1% 66.35%, transparent 66.45%);
}
.teamhub-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--home-gold, #b59a63), var(--home-teal, #536e67));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .45s cubic-bezier(.2,.75,.2,1);
}
.teamhub-card:hover {
  transform: translateY(-5px);
  background: var(--home-glass-strong, rgba(255,255,252,.88));
  border-color: rgba(21,23,21,.22);
  box-shadow: 0 24px 70px rgba(24,31,27,.09);
}
.teamhub-card:hover::after { transform: scaleY(1); }
.teamhub-card:focus-visible { outline: 2px solid var(--home-teal, #536e67); outline-offset: 3px; }
.teamhub-card-index {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: .12em;
  color: #899089;
}
.teamhub-card-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 9px; max-width: 620px; }
.teamhub-card-kicker { font-family: var(--font-mono, monospace); font-size: 9px; letter-spacing: .16em; color: #7d867e; }
.teamhub-card-content strong {
  font-family: var(--font-display, var(--font-body, sans-serif));
  font-size: clamp(34px, 4vw, 58px);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 500;
}
.teamhub-card-content small { color: #788078; font-size: 12px; line-height: 1.55; max-width: 500px; }
.teamhub-card-arrow {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 24px;
  font-size: 25px;
  font-weight: 300;
  color: #7b837c;
  transition: transform .35s ease, color .3s ease;
}
.teamhub-card:hover .teamhub-card-arrow { transform: translate(5px,-5px); color: var(--home-teal, #536e67); }

/* Four equal immersive destinations on the SHOUSE home surface. */
.shell:has(#panel-dashboard:not([hidden])) .home-launcher {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(270px, 330px));
}
.shell:has(#panel-dashboard:not([hidden])) .home-launch--wide { grid-column: auto; min-height: 0; }
.shell:has(#panel-dashboard:not([hidden])) .home-launch--teamhub { background: var(--home-glass, rgba(255,255,252,.72)) !important; color: var(--home-ink, #151715) !important; border-color: var(--home-line, rgba(21,23,21,.12)) !important; }
.shell:has(#panel-dashboard:not([hidden])) .home-launch--teamhub .home-launch-number { color: #899089; }
.shell:has(#panel-dashboard:not([hidden])) .home-launch--teamhub .home-launch-kicker { color: #7d867e; }
.shell:has(#panel-dashboard:not([hidden])) .home-launch--teamhub .home-launch-content small { color: #788078; }
.shell:has(#panel-dashboard:not([hidden])) .home-launch--owner { background: var(--home-glass, rgba(255,255,252,.72)) !important; color: var(--home-ink, #151715) !important; border-color: var(--home-line, rgba(21,23,21,.12)) !important; }
.shell:has(#panel-dashboard:not([hidden])) .home-launch--owner .home-launch-number { color: #899089; }
.shell:has(#panel-dashboard:not([hidden])) .home-launch--owner .home-launch-kicker { color: #7d867e; }
.shell:has(#panel-dashboard:not([hidden])) .home-launch--owner .home-launch-content small { color: #788078; }

@media (max-width: 900px) {
  .teamhub-launcher { grid-template-columns: 1fr; }
  .teamhub-card { min-height: 300px; }
  .shell:has(#panel-dashboard:not([hidden])) .home-launcher { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: repeat(2, 230px); }
}
@media (max-width: 760px) {
  .teamhub-shell { padding: 4px 0 54px; }
  .teamhub-shell > h1 { font-size: clamp(52px, 16vw, 76px); }
  .teamhub-card { min-height: 220px; padding: 22px; border-radius: 22px; }
  .teamhub-card-content strong { font-size: 34px; }
  .shell:has(#panel-dashboard:not([hidden])) .home-launcher { grid-template-columns: 1fr; grid-template-rows: repeat(4, 190px); }
  .shell:has(#panel-dashboard:not([hidden])) .home-launch--wide { grid-column: auto; }
}

/* =========================================================
   TEAM HUB HOME NAV — FOUR PRIMARY DESTINATIONS IN ONE ROW
   Desktop-only layout refinement. Keeps all four SHOUSE home
   destinations together without changing functionality.
   ========================================================= */
@media (min-width: 901px) {
  .shell:has(#panel-dashboard:not([hidden])) .home-launcher {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(270px, 330px) !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch,
  .shell:has(#panel-dashboard:not([hidden])) .home-launch--owner,
  .shell:has(#panel-dashboard:not([hidden])) .home-launch--teamhub {
    grid-column: auto !important;
    grid-row: auto !important;
    min-height: 0 !important;
    height: 100%;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch--owner {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 28px 30px !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch--owner .home-launch-content {
    flex: initial !important;
  }

  .shell:has(#panel-dashboard:not([hidden])) .home-launch--owner .home-launch-content strong {
    font-size: clamp(30px, 3.1vw, 48px) !important;
  }
}

/* Team Hub Phase 2 — employee access shell */
.teamhub-heading-row { display:flex; align-items:flex-start; justify-content:space-between; gap:32px; margin-bottom:34px; }
.teamhub-add-member { flex:0 0 auto; margin-top:8px; white-space:nowrap; }
.teamhub-subpanel { min-height:100%; }
.teamhub-auth-shell { max-width:760px; margin:0 auto; padding:20px 0 80px; }
.teamhub-auth-shell > h1 { margin:8px 0 12px; font-size:clamp(52px,7vw,92px); letter-spacing:-.055em; line-height:.95; }
.teamhub-auth-card { margin-top:38px; padding:36px; border:1px solid rgba(21,23,21,.12); background:rgba(255,255,252,.68); backdrop-filter:blur(22px) saturate(120%); -webkit-backdrop-filter:blur(22px) saturate(120%); border-radius:28px; box-shadow:0 24px 70px rgba(40,44,38,.08); }
.teamhub-member-id-input { display:flex; align-items:stretch; margin:0 0 6px; border:1px solid rgba(21,23,21,.14); background:rgba(255,255,255,.72); border-radius:15px; overflow:hidden; transition:border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.teamhub-member-id-input:focus-within { border-color:rgba(83,110,103,.55); box-shadow:0 0 0 4px rgba(83,110,103,.09); background:rgba(255,255,255,.9); }
.teamhub-member-id-prefix { display:flex; align-items:center; padding:0 0 0 16px; color:#536e67; font-family:var(--font-mono,monospace); font-weight:600; letter-spacing:.03em; white-space:nowrap; }
.teamhub-member-id-input .field-input { border:0; background:transparent; border-radius:0; margin:0; box-shadow:none; padding-left:6px; }
.teamhub-member-id-input .field-input:focus { border:0; box-shadow:none; background:transparent; }
.teamhub-member-id-help { margin:0 0 22px; color:#7a827b; font-size:11px; }
.field-label { display:block; margin:0 0 9px; font-family:var(--font-mono,monospace); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:#6f7770; }
.field-input { width:100%; box-sizing:border-box; border:1px solid rgba(21,23,21,.14); background:rgba(255,255,255,.72); color:#171917; border-radius:15px; padding:15px 16px; margin:0 0 22px; font:inherit; outline:none; transition:border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field-input:focus { border-color:rgba(83,110,103,.55); box-shadow:0 0 0 4px rgba(83,110,103,.09); background:rgba(255,255,255,.9); }
.teamhub-submit { width:100%; justify-content:space-between; display:flex; align-items:center; margin-top:4px; padding:15px 17px; font-weight:600; cursor:pointer; }
.teamhub-forgot { display:block; margin:20px auto 0; border:0; background:none; color:#626a63; font:inherit; cursor:pointer; padding:4px 8px; }
.teamhub-forgot span { color:#536e67; text-decoration:underline; text-underline-offset:3px; }
.teamhub-auth-message { min-height:20px; margin:16px 0 0; text-align:center; font-size:12px; color:#6d756e; }
.teamhub-empty-card { margin-top:34px; padding:36px; min-height:190px; display:flex; flex-direction:column; justify-content:center; gap:10px; border:1px solid rgba(21,23,21,.11); background:rgba(255,255,252,.64); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border-radius:26px; box-shadow:0 20px 60px rgba(40,44,38,.07); }
.teamhub-empty-card strong { font-size:32px; letter-spacing:-.03em; }
.teamhub-empty-card small { color:#788078; line-height:1.6; }
.teamhub-reset-modal[hidden] { display:none; }
.teamhub-reset-modal { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:24px; }
.teamhub-reset-backdrop { position:absolute; inset:0; background:rgba(26,29,26,.2); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.teamhub-reset-dialog { position:relative; z-index:1; width:min(560px,100%); padding:36px; border-radius:28px; background:rgba(255,255,252,.88); border:1px solid rgba(255,255,255,.75); box-shadow:0 30px 100px rgba(20,24,20,.18); }
.teamhub-reset-dialog h2 { margin:8px 0 10px; font-size:42px; letter-spacing:-.04em; }
.teamhub-reset-dialog p { color:#6f7770; line-height:1.65; margin:0 0 26px; }
.teamhub-reset-close { position:absolute; top:16px; right:16px; width:38px; height:38px; border-radius:50%; padding:0; }
@media (max-width:760px) {
  .teamhub-heading-row { flex-direction:column; gap:18px; }
  .teamhub-add-member { margin-top:0; }
  .teamhub-auth-shell { padding-bottom:54px; }
  .teamhub-auth-shell > h1 { font-size:clamp(46px,14vw,68px); }
  .teamhub-auth-card { padding:24px; border-radius:22px; }
  .teamhub-reset-dialog { padding:28px 22px 24px; border-radius:22px; }
  .teamhub-reset-dialog h2 { font-size:34px; }
}

/* Team Hub Add Member — Phase 3 */
.teamhub-add-member { flex:0 0 auto; margin-top:8px; white-space:nowrap; }
.teamhub-member-modal[hidden] { display:none; }
.teamhub-member-modal { position:fixed; inset:0; z-index:1100; display:grid; place-items:center; padding:24px; }
.teamhub-member-backdrop { position:absolute; inset:0; background:rgba(26,29,26,.24); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.teamhub-member-dialog { position:relative; z-index:1; width:min(780px,100%); max-height:min(88vh,900px); overflow:auto; padding:38px; border-radius:30px; background:rgba(255,255,252,.9); border:1px solid rgba(255,255,255,.78); box-shadow:0 30px 100px rgba(20,24,20,.2); }
.teamhub-member-dialog h2 { margin:8px 0 10px; font-size:48px; letter-spacing:-.045em; line-height:1; }
.teamhub-member-dialog > p { color:#6f7770; line-height:1.6; margin:0 0 30px; }
.teamhub-member-close { position:absolute; top:16px; right:16px; width:38px; height:38px; border-radius:50%; padding:0; }
.teamhub-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.teamhub-field--full { grid-column:1 / -1; }
.teamhub-form-section { margin-top:30px; padding-top:26px; border-top:1px solid rgba(21,23,21,.1); }
.teamhub-form-section-kicker { margin-bottom:18px; font-family:var(--font-mono,monospace); font-size:9px; letter-spacing:.18em; color:#7d867e; }
.teamhub-field .field-input { width:100%; box-sizing:border-box; }
.teamhub-textarea { resize:vertical; min-height:88px; font-family:inherit; line-height:1.5; }
.teamhub-member-actions { display:flex; justify-content:flex-end; align-items:center; gap:12px; margin-top:30px; padding-top:24px; border-top:1px solid rgba(21,23,21,.1); }
.teamhub-member-actions .teamhub-submit { width:auto; min-width:260px; margin-top:0; }
@media (max-width:760px) {
  .teamhub-member-modal { padding:12px; }
  .teamhub-member-dialog { padding:26px 20px 22px; border-radius:22px; max-height:92vh; }
  .teamhub-member-dialog h2 { font-size:38px; }
  .teamhub-form-grid { grid-template-columns:1fr; gap:14px; }
  .teamhub-field--full { grid-column:auto; }
  .teamhub-member-actions { flex-direction:column-reverse; align-items:stretch; }
  .teamhub-member-actions button { width:100%; justify-content:center; }
  .teamhub-member-actions .teamhub-submit { min-width:0; }
}


/* Team Hub Phase 4 — member phone uniqueness feedback */
.teamhub-field-error {
  margin: -14px 0 18px;
  color: #a05248;
  font-size: 11px;
  line-height: 1.45;
}
#teamhub-member-phone[aria-invalid="true"] {
  border-color: rgba(160,82,72,.55);
  box-shadow: 0 0 0 4px rgba(160,82,72,.08);
}

/* Team Hub account setup / welcome */
.teamhub-account-setup {
  margin-top:30px; padding:28px; border-radius:24px;
  border:1px solid rgba(21,23,21,.11);
  background:rgba(255,255,252,.72);
  box-shadow:0 20px 60px rgba(40,44,38,.06);
}
.teamhub-account-setup[hidden] { display:none; }
.teamhub-account-kicker { font:500 10px/1.2 var(--font-mono, "DM Mono", monospace); letter-spacing:.22em; text-transform:uppercase; color:#7a817b; }
.teamhub-generated-id { margin:10px 0 4px; font:600 clamp(34px,5vw,52px)/1 "Space Grotesk", sans-serif; letter-spacing:-.045em; color:#171917; }
.teamhub-account-note { margin:0 0 24px; color:#6f7770; font-size:13px; line-height:1.55; }
.teamhub-password-grid { margin-top:8px; }
.teamhub-password-error { min-height:20px; margin:12px 0 0; color:#a4584e; font-size:12px; }
.teamhub-welcome-modal[hidden] { display:none; }
.teamhub-welcome-modal { position:fixed; inset:0; z-index:1200; display:grid; place-items:center; padding:24px; }
.teamhub-welcome-backdrop { position:absolute; inset:0; background:rgba(25,29,25,.22); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.teamhub-welcome-dialog { position:relative; z-index:1; width:min(600px,100%); padding:46px 42px 42px; text-align:center; border-radius:32px; background:rgba(255,255,252,.91); border:1px solid rgba(255,255,255,.82); box-shadow:0 35px 110px rgba(20,24,20,.2); }
.teamhub-welcome-mark { width:58px; height:58px; margin:0 auto 18px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(145deg, rgba(70,98,87,.14), rgba(196,166,91,.18)); color:#536f65; font-size:24px; box-shadow:inset 0 0 0 1px rgba(21,23,21,.08); }
.teamhub-welcome-dialog h2 { margin:0 0 12px; font-size:clamp(34px,5vw,52px); line-height:1; letter-spacing:-.045em; }
.teamhub-welcome-dialog p { margin:0 auto 28px; max-width:430px; color:#6f7770; line-height:1.6; }
.teamhub-welcome-dialog .teamhub-submit { margin:0 auto; width:auto; min-width:190px; }
@media (max-width:760px) {
  .teamhub-account-setup { padding:22px 18px; border-radius:20px; }
  .teamhub-welcome-modal { padding:14px; }
  .teamhub-welcome-dialog { padding:34px 22px 28px; border-radius:24px; }
}

/* Team Hub / Owner Access employee details */
.owner-card--employee {
  grid-column: 1 / -1;
  text-align: left;
  padding: 28px;
}
.owner-card--employee .owner-card__kicker {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: .16em;
  color: #7d867e;
  margin-bottom: 8px;
}
.owner-card--employee > strong { display:block; font-size:28px; letter-spacing:-.03em; margin-bottom:6px; }
.owner-card--employee > small { display:block; color:#788078; line-height:1.55; margin-bottom:16px; }
.owner-employee-refresh { margin-bottom:18px; }
.owner-employee-table-wrap { overflow:auto; border:1px solid rgba(21,23,21,.09); border-radius:18px; background:rgba(255,255,252,.48); }
.owner-employee-table { width:100%; min-width:1180px; border-collapse:collapse; font-size:11px; }
.owner-employee-table th, .owner-employee-table td { padding:12px 13px; border-bottom:1px solid rgba(21,23,21,.07); text-align:left; vertical-align:top; }
.owner-employee-table th { font-family:var(--font-mono, monospace); font-size:8px; letter-spacing:.12em; text-transform:uppercase; color:#747d75; background:rgba(255,255,252,.64); position:sticky; top:0; z-index:1; }
.owner-employee-table td { color:#303630; }
.owner-employee-table tbody tr:last-child td { border-bottom:0; }
.teamhub-reset-result { min-height:20px; margin:12px 0 0; font-size:12px; line-height:1.5; color:#536e67; }
.teamhub-reset-result.is-error { color:#9a5d52; }

/* Team Hub / Owner Employee management additions */
.owner-card--button { appearance:none; border:1px solid rgba(21,23,21,.11); text-align:left; cursor:pointer; position:relative; color:inherit; font:inherit; }
.owner-card--button:hover { transform:translateY(-2px); box-shadow:0 18px 50px rgba(40,44,38,.10); }
.owner-card-arrow { position:absolute; right:22px; bottom:20px; font-size:22px; opacity:.6; }
.owner-employees-page-actions { display:flex; justify-content:flex-end; margin:0 0 18px; }
.owner-employee-table-wrap--page { overflow:auto; }
.owner-employee-actions { display:flex; gap:7px; flex-wrap:wrap; min-width:150px; }
.owner-employee-actions .glass-action { white-space:nowrap; }
.owner-employee-recycle { margin-top:46px; padding-top:34px; border-top:1px solid rgba(21,23,21,.10); }
.owner-employee-recycle-head h2 { margin:5px 0 6px; font-size:32px; letter-spacing:-.04em; }
.owner-employee-recycle-head p { color:#788078; margin:0 0 20px; }
.owner-employee-edit-modal { position:fixed; inset:0; z-index:1200; display:grid; place-items:center; padding:24px; }
.owner-employee-edit-modal[hidden] { display:none; }
.owner-employee-edit-backdrop { position:absolute; inset:0; background:rgba(24,28,24,.22); backdrop-filter:blur(8px); }
.owner-employee-edit-dialog { position:relative; z-index:1; width:min(980px,100%); max-height:90vh; overflow:auto; padding:34px; border-radius:30px; }
.owner-employee-edit-dialog h2 { margin:8px 0 22px; font-size:clamp(38px,5vw,60px); letter-spacing:-.055em; }
.owner-employee-edit-close { position:absolute; right:18px; top:18px; border-radius:999px; min-width:42px; min-height:42px; }
.teamhub-member-home-shell { max-width:1100px; margin:0 auto; padding:20px 0 80px; }
.teamhub-member-home-shell > h1 { margin:8px 0 12px; font-size:clamp(52px,7vw,92px); letter-spacing:-.055em; line-height:.95; }
.teamhub-member-profile-card { margin-top:34px; padding:34px; border-radius:30px; }
.teamhub-reset-contact-card { margin-top:22px; padding:28px; border-radius:22px; background:rgba(255,255,252,.64); border:1px solid rgba(21,23,21,.10); box-shadow:0 16px 48px rgba(40,44,38,.06); }
.teamhub-reset-contact-card strong { display:block; font-size:20px; margin-bottom:8px; }
.teamhub-reset-contact-card p { color:#727a72; line-height:1.6; margin:0 0 20px; }
@media (max-width:720px){
  .owner-employees-page-actions { justify-content:flex-start; }
  .owner-employee-edit-modal { padding:12px; }
  .owner-employee-edit-dialog { padding:24px; border-radius:24px; max-height:94vh; }
  .teamhub-member-home-shell > h1 { font-size:clamp(44px,13vw,68px); }
  .teamhub-member-profile-card { padding:22px; border-radius:22px; }
  .owner-employee-recycle-head h2 { font-size:27px; }
}


/* Phase 14 Team Hub: three primary home destinations after Owner Access moved inside Team Hub. */
@media (min-width: 901px) {
  .shell:has(#panel-dashboard:not([hidden])) .home-launcher {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: minmax(300px, 360px) !important;
  }
  .shell:has(#panel-dashboard:not([hidden])) .home-launch,
  .shell:has(#panel-dashboard:not([hidden])) .home-launch--teamhub {
    grid-column:auto !important; grid-row:auto !important; min-height:0 !important; height:100%;
  }
}

.teamhub-member-logout, .owner-logout { margin-bottom:18px; }
.owner-auth-forgot { display:block; margin:18px auto 8px; border:0; background:none; color:#626a63; font:inherit; cursor:pointer; padding:4px 8px; }
.owner-auth-forgot span { color:#536e67; text-decoration:underline; text-underline-offset:3px; }
.owner-recovery-modal[hidden] { display:none; }
.owner-recovery-modal { position:fixed; inset:0; z-index:1300; display:grid; place-items:center; padding:24px; }
.owner-recovery-backdrop { position:absolute; inset:0; background:rgba(25,29,25,.24); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.owner-recovery-dialog { position:relative; z-index:1; width:min(620px,100%); max-height:90vh; overflow:auto; padding:38px; border-radius:30px; background:rgba(255,255,252,.92); border:1px solid rgba(255,255,255,.82); box-shadow:0 35px 110px rgba(20,24,20,.2); }
.owner-recovery-dialog h2 { margin:8px 0 10px; font-size:clamp(36px,5vw,54px); letter-spacing:-.05em; line-height:.98; }
.owner-recovery-dialog > p { color:#6f7770; line-height:1.6; margin:0 0 24px; }
.owner-recovery-close { position:absolute; top:16px; right:16px; width:40px; height:40px; padding:0; border-radius:50%; }
.owner-recovery-message { min-height:20px; margin:4px 0 12px; color:#9a5d52; font-size:12px; line-height:1.5; }
.owner-recovery-success { margin:6px 0 20px; padding:12px 14px; border-radius:14px; background:rgba(83,110,103,.09); color:#536e67; font-size:12px; line-height:1.5; }
@media (max-width:760px) { .owner-recovery-modal { padding:12px; } .owner-recovery-dialog { padding:28px 20px 24px; border-radius:24px; } }

/* Owner password management */
.owner-change-forgot { margin-top: 4px; }
.owner-change-password-modal[hidden] { display: none !important; }

/* Authenticated workspace navigation lock */
.nav-link--locked,
.wordmark--locked { opacity: .48; cursor: not-allowed; }
.nav-link--locked::after { opacity: .7; }


/* Phase 14 Team Hub: member attendance + clean member ID caret. */
.teamhub-member-id-input .field-input { caret-color:#536e67; outline:none; }
.teamhub-member-id-input .field-input::selection { background:rgba(83,110,103,.18); }
.teamhub-member-id-prefix { border-right:0 !important; box-shadow:none !important; position:relative; }
.teamhub-member-id-prefix::after{content:"";display:none!important;}
.teamhub-member-id-input .field-input:focus{caret-color:#536e67!important;}
.teamhub-attendance-card { margin-top:28px; padding:0; border-radius:30px; overflow:hidden; }
.teamhub-attendance-toggle { width:100%; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:28px 32px; border:0; background:transparent; color:inherit; text-align:left; cursor:pointer; }
.teamhub-attendance-toggle strong { display:block; margin-top:6px; font-size:24px; letter-spacing:-.02em; }
.teamhub-attendance-toggle-icon { width:38px; height:38px; border-radius:999px; display:grid; place-items:center; background:rgba(255,255,255,.58); border:1px solid rgba(21,23,21,.09); transition:transform .25s ease, background .25s ease; }
.teamhub-attendance-toggle[aria-expanded="true"] .teamhub-attendance-toggle-icon { transform:rotate(180deg); background:rgba(255,255,255,.88); }
.teamhub-attendance-content { padding:0 32px 32px; }
.teamhub-attendance-calendar-head { display:grid; grid-template-columns:46px 1fr 46px; align-items:center; gap:14px; margin:0 0 18px; }
.teamhub-attendance-calendar-head > div { text-align:center; }
.teamhub-attendance-calendar-head strong { display:block; font-size:22px; letter-spacing:-.02em; }
.teamhub-attendance-calendar-head small { display:block; margin-top:4px; color:#747c74; }
.teamhub-attendance-month-btn { width:46px; height:46px; padding:0; border-radius:999px; }
.teamhub-attendance-weekdays, .teamhub-attendance-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; }
.teamhub-attendance-weekdays { margin-bottom:8px; color:#858d85; font-size:12px; text-align:center; text-transform:uppercase; letter-spacing:.08em; }
.teamhub-attendance-day { min-height:58px; border:1px solid rgba(21,23,21,.09); border-radius:15px; background:rgba(255,255,255,.52); color:#222722; cursor:pointer; transition:transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; position:relative; padding:8px; text-align:left; }
.teamhub-attendance-day:hover { transform:translateY(-2px); background:rgba(255,255,255,.82); box-shadow:0 10px 24px rgba(40,44,38,.06); }
.teamhub-attendance-day.is-empty { visibility:hidden; pointer-events:none; }
.teamhub-attendance-day.is-selected { border-color:rgba(83,110,103,.62); box-shadow:0 0 0 3px rgba(83,110,103,.10); }
.teamhub-attendance-day.is-today { box-shadow:inset 0 0 0 1px rgba(83,110,103,.35); }
.teamhub-attendance-day .day-number { font-weight:700; }
.teamhub-attendance-day .day-status { display:block; margin-top:8px; font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; }
.teamhub-attendance-day.status-present { background:rgba(224,239,231,.74); border-color:rgba(83,110,103,.28); }
.teamhub-attendance-day.status-present .day-status { color:#41675d; }
.teamhub-attendance-day.status-absent { background:rgba(247,235,230,.72); border-color:rgba(137,92,72,.22); }
.teamhub-attendance-day.status-absent .day-status { color:#8a5e4c; }
.teamhub-attendance-editor { margin-top:22px; padding:22px; border-radius:22px; background:rgba(255,255,255,.48); border:1px solid rgba(21,23,21,.08); }
.teamhub-attendance-selected { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:15px; }
.teamhub-attendance-selected span { margin-left:auto; color:#747c74; }
.teamhub-attendance-actions { display:flex; gap:10px; margin:16px 0; }
.teamhub-attendance-actions .attendance-status-btn { min-width:110px; }
.teamhub-attendance-times { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.teamhub-attendance-note { margin:14px 0 0; color:#747c74; font-size:13px; line-height:1.5; }
@media (max-width:720px){
 .teamhub-attendance-toggle { padding:22px; }
 .teamhub-attendance-content { padding:0 16px 22px; }
 .teamhub-attendance-calendar-head { grid-template-columns:40px 1fr 40px; }
 .teamhub-attendance-month-btn { width:40px; height:40px; }
 .teamhub-attendance-weekdays { font-size:9px; gap:4px; }
 .teamhub-attendance-calendar { gap:4px; }
 .teamhub-attendance-day { min-height:50px; border-radius:11px; padding:6px; }
 .teamhub-attendance-day .day-status { font-size:8px; margin-top:5px; }
 .teamhub-attendance-selected span { margin-left:0; width:100%; }
 .teamhub-attendance-times { grid-template-columns:1fr; }
}


/* Team Hub payroll and controlled attendance */
.teamhub-time-display{min-height:48px;display:flex;align-items:center;padding:0 15px;border:1px solid rgba(21,23,21,.09);border-radius:14px;background:rgba(255,255,255,.58);font-weight:700;letter-spacing:.02em;}
.teamhub-attendance-leaving{display:flex;justify-content:flex-end;margin-top:14px;}
.teamhub-attendance-leaving .glass-action{min-width:190px;}
.teamhub-expenses-card,.teamhub-salary-card{margin-top:24px;padding:30px;border-radius:28px;}
.teamhub-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px;}
.teamhub-card-head h2{margin:6px 0 7px;font-size:24px;letter-spacing:-.02em;}
.teamhub-card-head p{margin:0;color:#747c74;line-height:1.55;max-width:700px;}
.teamhub-expense-form{margin-top:10px;}
.teamhub-expense-list{margin-top:20px;display:grid;gap:9px;}
.teamhub-expense-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 17px;border:1px solid rgba(21,23,21,.08);border-radius:16px;background:rgba(255,255,255,.45);}
.teamhub-expense-row small{display:block;margin-top:4px;color:#747c74;}
.teamhub-salary-actions{display:flex;justify-content:flex-end;margin-top:8px;}
.teamhub-salary-report{margin-top:22px;padding:22px;border-radius:22px;background:rgba(255,255,255,.46);border:1px solid rgba(21,23,21,.08);}
.teamhub-report-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px;}
.teamhub-report-head h3{margin:5px 0 0;font-size:24px;}
.teamhub-report-head>strong{font-size:26px;letter-spacing:-.03em;}
.teamhub-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.teamhub-report-grid>div{padding:15px;border-radius:15px;background:rgba(255,255,255,.56);border:1px solid rgba(21,23,21,.07);}
.teamhub-report-grid span{display:block;color:#747c74;font-size:12px;text-transform:uppercase;letter-spacing:.06em;}
.teamhub-report-grid strong{display:block;margin-top:6px;font-size:17px;}
.teamhub-salary-modal,.teamhub-salary-history-modal,.owner-salary-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:24px;}
.teamhub-salary-modal[hidden],.teamhub-salary-history-modal[hidden],.owner-salary-modal[hidden]{display:none;}
.teamhub-salary-backdrop{position:absolute;inset:0;background:rgba(22,27,23,.18);backdrop-filter:blur(12px);}
.teamhub-salary-dialog{position:relative;width:min(720px,100%);max-height:min(82vh,760px);overflow:auto;padding:32px;border-radius:28px;box-shadow:0 30px 90px rgba(34,40,35,.18);}
.teamhub-salary-dialog h2{margin:8px 0 8px;font-size:30px;letter-spacing:-.03em;}
.teamhub-salary-dialog>p{color:#747c74;line-height:1.55;}
.teamhub-salary-close{position:absolute;right:18px;top:18px;width:40px;height:40px;padding:0;border-radius:999px;}
.teamhub-salary-question{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:22px 0;padding:18px;border-radius:18px;background:rgba(255,255,255,.52);border:1px solid rgba(21,23,21,.08);}
.teamhub-salary-question small{display:block;color:#747c74;margin-top:5px;}
.teamhub-salary-choice{display:flex;gap:16px;white-space:nowrap;}
.teamhub-salary-choice label{display:flex;align-items:center;gap:7px;font-weight:700;}
.teamhub-history-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 18px;margin-top:9px;border:1px solid rgba(21,23,21,.08);border-radius:17px;background:rgba(255,255,255,.48);text-align:left;color:inherit;cursor:pointer;}
.teamhub-history-row:hover{background:rgba(255,255,255,.78);transform:translateY(-1px);}
.teamhub-history-row small{display:block;color:#747c74;margin-top:4px;}
.owner-history-row{cursor:default;}
.owner-salary-member-head{display:flex;justify-content:space-between;gap:15px;padding:15px 0 10px;border-bottom:1px solid rgba(21,23,21,.08);}
.owner-salary-member-head span{color:#747c74;font-weight:700;}
@media(max-width:760px){.teamhub-card-head{flex-direction:column}.teamhub-salary-actions{justify-content:stretch}.teamhub-salary-actions .glass-action{width:100%}.teamhub-report-grid{grid-template-columns:1fr 1fr}.teamhub-salary-question{flex-direction:column;align-items:flex-start}.teamhub-salary-choice{white-space:normal}.teamhub-expense-row{align-items:flex-start}.teamhub-report-head{align-items:flex-start;flex-direction:column}}

.teamhub-report-attendance{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.teamhub-report-attendance>div{padding:13px 15px;border-radius:15px;background:rgba(255,255,255,.42);border:1px solid rgba(21,23,21,.07)}.teamhub-report-attendance span{display:block;color:#747c74;font-size:11px;text-transform:uppercase;letter-spacing:.06em}.teamhub-report-attendance strong{display:block;margin-top:5px;font-size:13px;line-height:1.55}@media(max-width:760px){.teamhub-report-attendance{grid-template-columns:1fr}}

/* Team Hub member workspace refinements */
.teamhub-collapsible{overflow:hidden;}
.teamhub-collapsible-content{padding:0 30px 30px;}
.teamhub-member-profile-card > .teamhub-attendance-toggle,
.teamhub-expenses-card > .teamhub-attendance-toggle,
.teamhub-salary-card > .teamhub-attendance-toggle{width:100%;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:24px 30px;cursor:pointer;color:inherit;}
.teamhub-member-profile-card > .teamhub-attendance-toggle strong,
.teamhub-expenses-card > .teamhub-attendance-toggle strong,
.teamhub-salary-card > .teamhub-attendance-toggle strong{display:block;margin-top:5px;font-size:22px;letter-spacing:-.02em;}
.teamhub-member-profile-card > .teamhub-attendance-toggle:hover,
.teamhub-expenses-card > .teamhub-attendance-toggle:hover,
.teamhub-salary-card > .teamhub-attendance-toggle:hover{background:rgba(255,255,255,.2);}
.teamhub-expenses-card .teamhub-card-head{margin-bottom:14px;}
.teamhub-expense-row-right{display:flex;align-items:center;gap:12px;flex-shrink:0;}
.teamhub-expense-edit{padding:8px 12px;font-size:12px;}
.teamhub-salary-accrual{margin-top:8px;padding:18px 20px;border-radius:18px;background:rgba(230,240,234,.62);border:1px solid rgba(83,110,103,.18);display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;color:#4f5d56;}
.teamhub-salary-accrual strong{font-size:24px;letter-spacing:-.03em;color:#171917;}
.teamhub-salary-accrual small{width:100%;color:#747c74;font-size:12px;}
@media(max-width:760px){
 .teamhub-collapsible-content{padding:0 16px 22px;}
 .teamhub-member-profile-card > .teamhub-attendance-toggle,
 .teamhub-expenses-card > .teamhub-attendance-toggle,
 .teamhub-salary-card > .teamhub-attendance-toggle{padding:21px 16px;}
 .teamhub-expense-row-right{align-items:flex-end;flex-direction:column;gap:7px;}
}

/* Owner Salary Tracker */
.owner-salary-toolbar{display:flex;align-items:end;gap:12px;margin:0 0 22px;flex-wrap:wrap}.owner-salary-toolbar .field-label{display:block;margin-bottom:6px}.owner-salary-toolbar .field-input{min-width:180px}.owner-salary-tracker-list{display:grid;gap:16px}.owner-salary-tracker-card{padding:22px;border:1px solid rgba(20,35,28,.12);border-radius:22px;background:rgba(255,255,255,.54);backdrop-filter:blur(16px)}.owner-salary-tracker-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.owner-salary-tracker-head h3{margin:4px 0}.owner-salary-tracker-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.owner-salary-tracker-meta>div{padding:12px;border-radius:14px;background:rgba(255,255,255,.5)}.owner-salary-tracker-meta span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;opacity:.6}.owner-salary-tracker-meta strong{display:block;margin-top:4px}.owner-payroll-edit-dialog{width:min(1080px,94vw);max-height:90vh;overflow:auto;padding:30px}.owner-payroll-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}.owner-payroll-attendance-wrap,.owner-payroll-expenses-wrap{margin-top:22px}.owner-payroll-attendance-wrap h3,.owner-payroll-expenses-wrap h3{margin-bottom:10px}.owner-payroll-table{width:100%;border-collapse:collapse;font-size:13px}.owner-payroll-table th,.owner-payroll-table td{padding:9px 8px;border-bottom:1px solid rgba(20,35,28,.1);text-align:left;vertical-align:middle}.owner-payroll-table input,.owner-payroll-table select{width:100%;min-width:100px}.owner-payroll-expense-editor{display:grid;grid-template-columns:120px 1fr 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid rgba(20,35,28,.08)}.owner-payroll-empty{padding:14px;border-radius:14px;background:rgba(255,255,255,.4);opacity:.7}.owner-payroll-delete-expense{white-space:nowrap}.owner-payroll-edit-modal[hidden],.owner-salary-tracker-panel[hidden]{display:none!important}
@media(max-width:760px){.owner-salary-tracker-meta{grid-template-columns:1fr 1fr}.owner-payroll-edit-grid{grid-template-columns:1fr}.owner-payroll-expense-editor{grid-template-columns:1fr}.owner-payroll-table{min-width:760px}.owner-payroll-attendance-wrap{overflow:auto}}

/* Phase 14.23 payroll clarity + attendance alignment */
.teamhub-attendance-editor{display:grid;gap:18px;align-items:stretch;}
.teamhub-attendance-selected{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,.42);border:1px solid rgba(21,23,21,.07);}
.teamhub-attendance-selected strong{justify-self:start;}
.teamhub-attendance-selected span{margin-left:0;justify-self:end;}
.teamhub-attendance-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;}
.teamhub-attendance-actions .attendance-status-btn{width:100%;min-width:0;min-height:46px;}
.teamhub-attendance-times{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.teamhub-attendance-times>div{min-width:0;}
.teamhub-time-display{min-height:48px;display:flex;align-items:center;padding:0 15px;border-radius:14px;background:rgba(255,255,255,.56);border:1px solid rgba(21,23,21,.08);font-weight:700;}
.teamhub-attendance-leaving{justify-content:stretch;margin-top:0;}
.teamhub-attendance-leaving .glass-action{width:100%;min-height:46px;}
.teamhub-salary-accrual{display:block;padding:20px 22px;}
.teamhub-salary-accrual-main{display:flex;align-items:baseline;justify-content:space-between;gap:18px;flex-wrap:wrap;}
.teamhub-salary-accrual-main span{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:#667068;}
.teamhub-salary-accrual-main strong{font-size:26px;}
.teamhub-salary-accrual-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px;color:#667068;font-size:12px;line-height:1.45;}
.teamhub-salary-accrual-breakdown span{padding:9px 10px;border-radius:12px;background:rgba(255,255,255,.38);}
.teamhub-report-grid--salary{grid-template-columns:repeat(3,minmax(0,1fr));}
.teamhub-report-expenses{margin-top:14px;padding:16px;border-radius:18px;background:rgba(255,255,255,.42);border:1px solid rgba(21,23,21,.07);}
.teamhub-report-expenses-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;}
@media(max-width:760px){
 .teamhub-attendance-selected{grid-template-columns:1fr;}
 .teamhub-attendance-selected span{justify-self:start;}
 .teamhub-attendance-actions{grid-template-columns:1fr;}
 .teamhub-attendance-times{grid-template-columns:1fr 1fr;}
 .teamhub-salary-accrual-main{display:block;}
 .teamhub-salary-accrual-main strong{display:block;margin-top:6px;}
 .teamhub-salary-accrual-breakdown,.teamhub-report-grid--salary{grid-template-columns:1fr 1fr;}
}


/* SHOUSE premium native date / time controls — keep browser pickers, but make
   the fields themselves match the glass UI instead of looking like defaults. */
.field-input[type="date"],
.field-input[type="time"],
.field-input[type="month"],
input[type="date"],
input[type="time"],
input[type="month"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 52px;
  border: 1px solid rgba(35, 45, 38, .11);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(247,250,247,.62));
  color: #202720;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), 0 8px 22px rgba(34,43,36,.045);
  padding: 0 48px 0 16px;
  font: inherit;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
  color-scheme: light;
}
.field-input[type="date"]:hover,
.field-input[type="time"]:hover,
.field-input[type="month"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="month"]:hover {
  border-color: rgba(73, 101, 91, .28);
  background: rgba(255,255,255,.9);
}
.field-input[type="date"]:focus,
.field-input[type="time"]:focus,
.field-input[type="month"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="month"]:focus {
  outline: none;
  border-color: rgba(73, 101, 91, .5);
  box-shadow: 0 0 0 4px rgba(73,101,91,.10), inset 0 1px 0 rgba(255,255,255,.9), 0 12px 26px rgba(34,43,36,.07);
  transform: translateY(-1px);
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  opacity: .72;
  cursor: pointer;
  width: 22px;
  height: 22px;
  padding: 8px;
  margin-right: -3px;
  border-radius: 10px;
  background-color: rgba(73,101,91,.08);
  transition: opacity .2s ease, background .2s ease, transform .2s ease;
}
input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="time"]:hover::-webkit-calendar-picker-indicator,
input[type="month"]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
  background-color: rgba(73,101,91,.13);
  transform: scale(1.04);
}
.owner-payroll-table input[type="time"] {
  min-height: 42px;
  min-width: 128px;
  border-radius: 13px;
  padding-left: 12px;
  padding-right: 38px;
  font-size: 13px;
}
.owner-payroll-table select.owner-att-status {
  min-height: 42px;
  min-width: 112px;
  border: 1px solid rgba(35,45,38,.11);
  border-radius: 13px;
  background: rgba(255,255,255,.72);
  color: #202720;
  padding: 0 34px 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  color-scheme: light;
}
.owner-payroll-table select.owner-att-status:focus {
  border-color: rgba(73,101,91,.5);
  box-shadow: 0 0 0 4px rgba(73,101,91,.09);
}

/* Phase 14 payroll refinement: consistent accordion geometry and premium summary layout */
.teamhub-member-profile-card,
.teamhub-attendance-card,
.teamhub-expenses-card,
.teamhub-salary-card{margin-top:24px;border-radius:28px;overflow:hidden;}
.teamhub-attendance-card{padding:0;}
.teamhub-attendance-card > .teamhub-attendance-toggle{width:100%;border:0;background:transparent;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:24px 30px;cursor:pointer;color:inherit;}
.teamhub-attendance-card > .teamhub-attendance-toggle strong{display:block;margin-top:5px;font-size:22px;letter-spacing:-.02em;}
.teamhub-attendance-card > .teamhub-attendance-toggle:hover{background:rgba(255,255,255,.2);}
.teamhub-report-grid--summary{grid-template-columns:repeat(4,minmax(0,1fr));}
.teamhub-report-financials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px;}
.teamhub-report-financials > div{padding:16px 18px;border:1px solid rgba(21,23,21,.08);border-radius:16px;background:rgba(255,255,255,.5);display:flex;align-items:baseline;justify-content:space-between;gap:16px;}
.teamhub-report-financials > div span{color:#68716b;font-size:12px;text-transform:uppercase;letter-spacing:.08em;}
.teamhub-report-financials > div strong{font-size:17px;white-space:nowrap;}
.teamhub-report-financials > .is-total{grid-column:1 / -1;background:rgba(230,240,234,.68);border-color:rgba(83,110,103,.18);padding:20px 22px;}
.teamhub-report-financials > .is-total strong{font-size:24px;}
.teamhub-salary-accrual-breakdown{grid-template-columns:repeat(4,minmax(0,1fr));}
@media (max-width: 900px){
  .teamhub-report-grid--summary,.teamhub-salary-accrual-breakdown{grid-template-columns:1fr 1fr;}
  .teamhub-report-financials{grid-template-columns:1fr;}
  .teamhub-report-financials > .is-total{grid-column:auto;}
}
@media (max-width: 600px){
  .teamhub-report-grid--summary,.teamhub-salary-accrual-breakdown{grid-template-columns:1fr;}
  .teamhub-attendance-card > .teamhub-attendance-toggle{padding:21px 16px;}
}

/* Phase 14 payroll edit page */
.owner-payroll-edit-page-card{padding:28px;margin-top:18px}.owner-payroll-edit-panel .panel-header{max-width:980px}.owner-payroll-edit-panel .owner-payroll-edit-grid{margin-top:0}.owner-payroll-edit-panel .owner-payroll-attendance-wrap,.owner-payroll-edit-panel .owner-payroll-expenses-wrap{padding-top:8px}.owner-payroll-edit-panel .owner-payroll-table input,.owner-payroll-edit-panel .owner-payroll-table select{border-radius:12px;background:rgba(255,255,255,.78);border:1px solid rgba(20,35,28,.12);padding:9px 10px;font:inherit}.owner-payroll-edit-panel .owner-payroll-table input:focus,.owner-payroll-edit-panel .owner-payroll-table select:focus{outline:none;border-color:rgba(83,110,103,.55);box-shadow:0 0 0 4px rgba(83,110,103,.09)}
@media(max-width:800px){.owner-payroll-edit-grid{grid-template-columns:1fr}.owner-payroll-edit-page-card{padding:20px}.owner-payroll-expense-editor{grid-template-columns:1fr!important}}

/* Office expense date column — Phase 14.22 */
.teamhub-expense-list-head{display:grid;grid-template-columns:130px minmax(0,1fr) 150px 80px;gap:18px;align-items:center;padding:0 17px 8px;color:#7b817b;font-size:10px;letter-spacing:.16em;text-transform:uppercase;font-weight:600}
.teamhub-expense-list-head span:nth-child(3),.teamhub-expense-list-head span:nth-child(4){text-align:right}
.teamhub-expense-row{display:grid;grid-template-columns:130px minmax(0,1fr) 150px 80px;align-items:center;gap:18px}
.teamhub-expense-date{font-size:13px;letter-spacing:.02em;color:#505750;white-space:nowrap}
.teamhub-expense-row-right{justify-content:flex-end}
@media(max-width:760px){.teamhub-expense-list-head{display:none}.teamhub-expense-row{grid-template-columns:1fr auto;gap:10px}.teamhub-expense-date{grid-column:1 / -1;font-size:11px;color:#7b817b}.teamhub-expense-row>div:nth-child(2){min-width:0}.teamhub-expense-row-right{grid-column:2;grid-row:2;align-items:flex-end}.teamhub-expense-row-right strong{font-size:13px}}
.owner-payroll-expense-editor{display:grid;grid-template-columns:145px 130px minmax(180px,1fr) minmax(180px,1fr) auto;gap:10px;align-items:center}
@media(max-width:900px){.owner-payroll-expense-editor{grid-template-columns:1fr 1fr}.owner-payroll-expense-editor .owner-payroll-delete-expense{grid-column:1 / -1;justify-self:start}}


/* Scope revision confirmation — SHOUSE in-app modal */
.scope-change-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(29, 36, 33, 0.38);
  backdrop-filter: blur(10px) saturate(105%);
  -webkit-backdrop-filter: blur(10px) saturate(105%);
}
.scope-change-confirm-overlay[hidden] { display: none; }
.scope-change-confirm-dialog {
  width: min(100%, 520px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 22px;
  background: rgba(250, 251, 248, .96);
  box-shadow: 0 28px 80px rgba(30, 42, 36, .22), 0 8px 26px rgba(30, 42, 36, .10);
  text-align: center;
  animation: scopeConfirmIn .18s ease-out;
}
.scope-change-confirm-icon {
  width: 54px;
  height: 54px;
  margin: 28px auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(218, 159, 82, .13);
  border: 1px solid rgba(218, 159, 82, .22);
  color: #a86d29;
  font: 700 26px/1 "Manrope", sans-serif;
}
.scope-change-confirm-content { padding: 0 34px 24px; }
.scope-change-confirm-content h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.02em;
}
.scope-change-confirm-content p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.55;
}
.scope-change-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(39, 49, 45, .08);
}
.scope-change-confirm-actions .btn {
  min-height: 46px;
  justify-content: center;
}
.scope-change-confirm-actions .btn--primary { box-shadow: 0 10px 22px rgba(30, 42, 36, .12); }
.scope-change-confirm-actions .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes scopeConfirmIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 560px) {
  .scope-change-confirm-overlay { padding: 16px; }
  .scope-change-confirm-content { padding-left: 24px; padding-right: 24px; }
  .scope-change-confirm-actions { grid-template-columns: 1fr; padding: 16px 18px 18px; }
}

/* Recycle Bin permanent-delete confirmation — SHOUSE in-app modal */
.recycle-confirm-overlay {
  position: fixed; inset: 0; z-index: 13000; display: grid; place-items: center; padding: 24px;
  background: rgba(29,36,33,.38); backdrop-filter: blur(10px) saturate(105%);
  -webkit-backdrop-filter: blur(10px) saturate(105%);
}
.recycle-confirm-overlay[hidden] { display: none !important; }
.recycle-confirm-dialog {
  width: min(100%, 520px); overflow: hidden; text-align: center;
  border: 1px solid rgba(255,255,255,.82); border-radius: 22px;
  background: rgba(250,251,248,.96);
  box-shadow: 0 28px 80px rgba(30,42,36,.22), 0 8px 26px rgba(30,42,36,.10);
  animation: recycleConfirmIn .18s ease-out;
}
.recycle-confirm-icon {
  width: 54px; height: 54px; margin: 28px auto 16px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(184,72,72,.10); border: 1px solid rgba(184,72,72,.20);
  color: #a34b4b; font: 700 26px/1 Manrope, sans-serif;
}
.recycle-confirm-content { padding: 0 34px 24px; }
.recycle-confirm-content h2 { margin: 0 0 8px; color: var(--text); font-size: 21px; line-height: 1.25; }
.recycle-confirm-content p { margin: 0; color: #737b74; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.recycle-confirm-actions {
  display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px 20px;
  border-top: 1px solid rgba(93,111,101,.12); background: rgba(246,248,245,.68);
}
.recycle-confirm-actions .glass-action { min-height: 42px; padding: 0 18px; }
.recycle-confirm-delete { background: #2a302d; color: #fff; border-color: #2a302d; }
.recycle-confirm-delete:hover { background: #1f2522; }
@keyframes recycleConfirmIn { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 620px) {
  .recycle-confirm-actions { flex-direction: column-reverse; }
  .recycle-confirm-actions .glass-action { width: 100%; }
  .recycle-confirm-content { padding-inline: 24px; }
}


/* SHOUSE secure entry / authenticated workspace navigation */
.shouse-entry-gate{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;padding:24px;background:rgba(239,242,235,.96);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);overflow:auto}
.shouse-entry-gate[hidden]{display:none!important}
.shouse-entry-glow{position:absolute;inset:8% 18%;background:radial-gradient(circle at 50% 40%,rgba(122,146,123,.16),transparent 55%);pointer-events:none}
.shouse-entry-card{position:relative;width:min(500px,100%);padding:42px;border:1px solid rgba(35,55,40,.12);border-radius:30px;background:rgba(255,255,255,.88);box-shadow:0 32px 90px rgba(39,49,45,.18),0 8px 28px rgba(39,49,45,.08);text-align:center}
.shouse-entry-mark{width:54px;height:54px;margin:0 auto 22px;border-radius:16px;display:grid;place-items:center;background:rgba(240,243,237,.9);border:1px solid rgba(35,55,40,.09)}
.shouse-entry-mark img{width:35px;height:35px;object-fit:contain}
.shouse-entry-kicker{font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:#69766d;font-weight:600}
.shouse-entry-card h1{margin:10px 0 10px;font-size:32px;line-height:1.12;letter-spacing:-.035em;color:#202820}
.shouse-entry-intro{margin:0 auto 28px;max-width:390px;color:#707970;font-size:14px;line-height:1.55}
.shouse-entry-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:22px;padding:5px;border:1px solid rgba(35,55,40,.1);border-radius:17px;background:#f1f4ef}
.shouse-entry-tab{min-height:46px;border:1px solid transparent;border-radius:13px;background:transparent;color:#59635c;font:600 13px inherit;cursor:pointer}
.shouse-entry-tab.is-active{background:#fff;color:#253128;border-color:rgba(35,55,40,.12);box-shadow:0 4px 14px rgba(35,55,40,.07)}
.shouse-entry-form{text-align:left}
.shouse-entry-form .field-label{margin-top:15px}
.shouse-entry-message{min-height:20px;margin:10px 0;color:#a34b4b;font-size:12px}
.shouse-entry-submit{width:100%;display:flex;justify-content:center;align-items:center;gap:12px;min-height:52px;border:0;border-radius:16px;background:#243328;color:#fff;font:600 13px inherit;cursor:pointer;box-shadow:0 12px 26px rgba(36,51,40,.16)}
.shouse-entry-submit:hover{background:#1e2b22}
.shouse-entry-recovery{display:block;width:100%;margin:14px 0 0;padding:8px 4px;border:0;background:transparent;color:#6d786f;font:500 12px/1.4 inherit;text-align:center;cursor:pointer;transition:color .2s ease}
.shouse-entry-recovery span{color:#26352b;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.shouse-entry-recovery:hover{color:#26352b}
.shouse-entry-foot{margin-top:20px;color:#8a928b;font-size:10px;letter-spacing:.1em;text-transform:uppercase}
.auth-nav{display:none}.auth-nav.is-visible{display:block}
.dashboard-hero-copy{position:relative}.dashboard-welcome{margin-bottom:8px;color:#68756b;font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:600}
.dashboard-logout{position:absolute;right:24px;top:24px;z-index:2}
.shouse-logout-modal{position:fixed;inset:0;z-index:21000;display:grid;place-items:center;padding:24px}
.shouse-logout-modal[hidden]{display:none!important}
.shouse-logout-backdrop{position:absolute;inset:0;background:rgba(29,36,33,.38);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.shouse-logout-dialog{position:relative;width:min(460px,100%);padding:32px;border:1px solid rgba(255,255,255,.82);border-radius:24px;background:rgba(250,251,248,.97);box-shadow:0 28px 80px rgba(30,42,36,.22);text-align:center;animation:shouseLogoutIn .18s ease-out}
.shouse-logout-icon{width:48px;height:48px;margin:0 auto 16px;border-radius:50%;display:grid;place-items:center;background:#eef2ed;color:#324337;font-size:23px}
.shouse-logout-dialog h2{margin:9px 0 8px;font-size:23px;letter-spacing:-.02em;color:#202820}.shouse-logout-dialog p{margin:0;color:#707970;font-size:13px;line-height:1.55}
.shouse-logout-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid rgba(93,111,101,.12)}
.shouse-logout-confirm{background:#243328!important;color:#fff!important;border-color:#243328!important}
@keyframes shouseLogoutIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:620px){.shouse-entry-card{padding:30px 22px}.shouse-entry-card h1{font-size:27px}.dashboard-logout{position:static;margin:14px 0 0}.shouse-logout-actions{flex-direction:column-reverse}.shouse-logout-actions .glass-action{width:100%}}

/* Generic SHOUSE confirmation modal — replaces native browser confirm dialogs. */
.shouse-generic-confirm{position:fixed;inset:0;z-index:22000;display:grid;place-items:center;padding:24px}
.shouse-generic-backdrop{position:absolute;inset:0;background:rgba(29,36,33,.38);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.shouse-generic-dialog{position:relative;width:min(500px,100%);padding:32px;border:1px solid rgba(255,255,255,.82);border-radius:24px;background:rgba(250,251,248,.97);box-shadow:0 28px 80px rgba(30,42,36,.22);text-align:center;animation:shouseLogoutIn .18s ease-out}
.shouse-generic-icon{width:48px;height:48px;margin:0 auto 16px;border-radius:50%;display:grid;place-items:center;background:#eef2ed;color:#324337;font-weight:700;font-size:20px}
.shouse-generic-dialog h2{margin:9px 0 8px;font-size:22px;letter-spacing:-.02em;color:#202820}.shouse-generic-dialog p{margin:0;color:#707970;font-size:13px;line-height:1.55}
.shouse-generic-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid rgba(93,111,101,.12)}
.shouse-generic-danger{background:#2a302d!important;color:#fff!important;border-color:#2a302d!important}
@media(max-width:620px){.shouse-generic-actions{flex-direction:column-reverse}.shouse-generic-actions .glass-action{width:100%}}

/* SHOUSE access/workspace polish — August 2026 */
.auth-nav.is-visible{display:block!important}
.dashboard-welcome{margin-bottom:10px;color:#56655a;font-size:18px;line-height:1.2;letter-spacing:.08em;text-transform:none;font-weight:700;max-width:70%;}
.dashboard-logout{right:22px;top:22px;display:inline-flex;align-items:center;gap:9px;padding:11px 17px!important;border-radius:999px!important;border:1px solid rgba(38,55,44,.14)!important;background:rgba(255,255,255,.68)!important;box-shadow:0 10px 28px rgba(35,48,40,.08);font-weight:700;transition:transform .18s ease,box-shadow .18s ease,background .18s ease;}
.dashboard-logout:hover{transform:translateY(-1px);background:rgba(255,255,255,.9)!important;box-shadow:0 14px 34px rgba(35,48,40,.12);}
.shouse-logout-dialog{width:min(500px,100%);padding:36px 36px 30px;border-radius:30px;background:rgba(249,251,247,.985);box-shadow:0 34px 100px rgba(30,42,36,.28);}
.shouse-logout-icon{width:58px;height:58px;margin:0 auto 18px;background:#e8eee9;color:#24372b;font-size:25px;box-shadow:inset 0 0 0 1px rgba(36,55,43,.08);}
.shouse-logout-dialog h2{font-size:27px;margin:10px 0 10px;}
.shouse-logout-dialog p{font-size:14px;max-width:390px;margin:0 auto;}
.shouse-logout-actions{justify-content:center;gap:12px;margin-top:28px;padding-top:22px;}
.shouse-logout-actions .glass-action{min-width:130px;padding:12px 18px;border-radius:999px;}
.shouse-logout-confirm{box-shadow:0 8px 20px rgba(36,51,40,.18);}
.teamhub-report-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;}
.teamhub-report-head-actions>strong{font-size:20px;}
.teamhub-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:10px;margin-top:10px;}
.teamhub-history-view{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:9px 8px;border:0;background:transparent;text-align:left;color:inherit;cursor:pointer;}
.teamhub-history-view:hover{background:rgba(255,255,255,.35);border-radius:12px;}
.teamhub-history-download{white-space:nowrap;}
@media(max-width:760px){.dashboard-welcome{max-width:100%;font-size:16px}.dashboard-logout{position:static;margin:14px 0 0}.teamhub-report-head-actions{justify-content:flex-start}.teamhub-history-row{grid-template-columns:1fr}.teamhub-history-view{padding:8px 4px}.teamhub-history-download{width:100%}}
.auth-launch[hidden]{display:none!important}.auth-launch.is-visible{display:flex!important}

/* Phase 14.30 — dashboard welcome, payroll alignment, owner salary download */
.dashboard-hero-copy{width:100%;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.dashboard-welcome{max-width:100%!important;text-align:center!important;font-size:22px!important;letter-spacing:.08em!important;margin-bottom:12px!important;}
.owner-salary-tracker-head-actions{display:flex;gap:9px;align-items:center;justify-content:flex-end;flex-wrap:wrap;}
.owner-payroll-edit-panel > .panel-header,.owner-payroll-edit-panel > .owner-payroll-edit-page-card{width:min(1180px,calc(100% - 48px));margin-left:auto;margin-right:auto;}
.owner-payroll-edit-panel > .panel-header{margin-top:8px;}
.owner-payroll-edit-page-card{padding:30px 34px!important;margin-top:14px!important;}
.owner-payroll-edit-panel .owner-payroll-edit-grid{max-width:1120px;margin:0 auto 22px!important;}
.owner-payroll-edit-panel .owner-payroll-attendance-wrap,.owner-payroll-edit-panel .owner-payroll-expenses-wrap{max-width:1120px;margin-left:auto;margin-right:auto;}
.owner-payroll-edit-panel .owner-auth-actions{max-width:1120px;margin:24px auto 0;}
@media(max-width:760px){.dashboard-welcome{font-size:18px!important}.owner-payroll-edit-panel > .panel-header,.owner-payroll-edit-panel > .owner-payroll-edit-page-card{width:calc(100% - 28px)}.owner-salary-tracker-head-actions{justify-content:flex-start}.owner-salary-tracker-head-actions .glass-action{width:100%}}
.shouse-entry-message.is-recovery-message{display:block;margin:12px 0 0;padding:10px 12px;border:1px solid rgba(38,53,43,.14);border-radius:10px;background:rgba(38,53,43,.05);color:#26352b;font-size:12px;line-height:1.45;text-align:center}

/* V13 — Financial Data Tracker: keep sub-page completely hidden until opened */
#panel-owner-financial[hidden] {
  display: none !important;
}

/* V13 — Financial Data Tracker navigation */
.owner-financial-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.owner-financial-options .owner-card {
  min-height: 148px;
}
@media (max-width: 720px) {
  .owner-financial-options { grid-template-columns: 1fr; }
}

/* V13 — Financial Data Tracker interior design */
.owner-financial-panel .panel-header {
  margin-bottom: 28px;
}

.owner-financial-panel .panel-header h1 {
  max-width: 760px;
}

.owner-financial-panel .panel-intro {
  max-width: 720px;
}

.owner-financial-options {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.owner-financial-options::before {
  content: "STUDIO FINANCE / OWNER CONTROL";
  grid-column: 1 / -1;
  display: block;
  padding: 0 2px 1px;
  color: #7a837b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
}

.owner-financial-options .owner-card {
  position: relative;
  min-height: 188px;
  padding: 28px 30px 27px;
  border: 1px solid rgba(50, 65, 55, .11);
  border-top: 1px solid rgba(189, 151, 80, .62);
  background: rgba(250, 251, 247, .82);
  box-shadow: 0 14px 34px rgba(38, 52, 43, .045);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.owner-financial-options .owner-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 252, .96);
  border-color: rgba(50, 65, 55, .18);
  box-shadow: 0 20px 42px rgba(38, 52, 43, .09);
}

.owner-financial-options .owner-card__kicker {
  margin-bottom: 18px;
  color: #7b857c;
  font-size: 9px;
  letter-spacing: .16em;
}

.owner-financial-options .owner-card strong {
  display: block;
  max-width: 430px;
  margin-bottom: 9px;
  color: #222923;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.owner-financial-options .owner-card small {
  display: block;
  max-width: 430px;
  color: #737c75;
  font-size: 12px;
  line-height: 1.55;
}

.owner-financial-options .owner-card-arrow {
  position: absolute;
  right: 26px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(50, 65, 55, .13);
  border-radius: 50%;
  color: #59645b;
  font-size: 14px;
  transition: transform .18s ease, background .18s ease;
}

.owner-financial-options .owner-card:hover .owner-card-arrow {
  transform: translate(2px, -2px);
  background: rgba(239, 243, 238, .9);
}

@media (max-width: 720px) {
  .owner-financial-options {
    grid-template-columns: 1fr;
  }
  .owner-financial-options::before {
    grid-column: 1;
  }
}

/* V13.1 — PPR project-fees strip */
.owner-ppr-fees-strip {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  margin:0 0 14px; padding:12px 14px; border:1px solid rgba(255,255,255,.10);
  border-radius:14px; background:rgba(255,255,255,.035);
}
.owner-ppr-fees-copy { display:flex; flex-direction:column; gap:3px; min-width:0; }
.owner-ppr-fees-copy small { opacity:.68; }
.owner-ppr-fees-control { display:flex; align-items:center; gap:7px; flex:0 0 auto; }
.owner-ppr-fees-control span { opacity:.65; font-weight:700; }
.owner-ppr-fees-input { display:flex; align-items:center; gap:7px; padding:0 10px; min-height:38px; border:1px solid rgba(255,255,255,.12); border-radius:9px; background:rgba(255,255,255,.025); }
.owner-ppr-fees-input input { width:135px; min-height:34px; border:0; background:transparent; outline:0; }
.owner-ppr-fees-input input:focus { box-shadow:none; }
.owner-ppr-fees-control input { width:150px; min-height:38px; }
#owner-ppr-add-entry:disabled { opacity:.45; cursor:not-allowed; }
@media (max-width:720px) {
  .owner-ppr-fees-strip { align-items:flex-start; flex-direction:column; }
  .owner-ppr-fees-control { width:100%; }
  .owner-ppr-fees-control input { flex:1; width:auto; }
}

/* V13 — PPR editable financial controls */
.owner-ppr-finalised-card { align-items:center; }
.owner-ppr-finalised-card > div { min-width:0; }
.owner-ppr-finalised-card small { display:block; margin-top:5px; }
.owner-ppr-row-actions { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.owner-ppr-row-actions .glass-action { padding:5px 9px; font-size:11px; }
.owner-ppr-actions { display:flex; justify-content:flex-end; margin:18px 0; }

/* V13 — PPR finalized project value */
.owner-ppr-finalised-card {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:18px 0 12px;
  padding:16px 20px;
  border:1px solid rgba(21,23,21,.10);
  background:rgba(255,255,255,.52);
}
.owner-ppr-finalised-card span {
  display:block;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:9px;
  color:rgba(35,39,35,.52);
  margin-bottom:6px;
}
.owner-ppr-finalised-card strong {
  display:block;
  font-size:25px;
  line-height:1.1;
  font-weight:600;
}
.owner-ppr-finalised-card small {
  color:rgba(35,39,35,.58);
  font-size:12px;
}

/* V13 — Project Payments & Revenue (PPR) */
.owner-ppr-panel { padding-bottom: 72px; }
.owner-ppr-header { margin-bottom: 28px; }
.owner-ppr-project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.owner-ppr-project-card {
  appearance: none;
  border: 1px solid rgba(21,23,21,.11);
  border-top: 1px solid rgba(190,132,54,.58);
  background: rgba(255,255,255,.56);
  color: inherit;
  font: inherit;
  min-height: 128px;
  padding: 24px 26px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.owner-ppr-project-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 48px rgba(40,44,38,.09);
}
.owner-ppr-project-card strong { display:block; font-size: 20px; line-height:1.15; margin: 7px 0 8px; }
.owner-ppr-project-card small { display:block; color: rgba(35,39,35,.62); font-size: 12px; }
.owner-ppr-project-card > span { font-size: 22px; color: rgba(35,39,35,.52); }
.owner-ppr-empty {
  border: 1px dashed rgba(21,23,21,.18);
  padding: 34px;
  text-align: center;
  color: rgba(35,39,35,.58);
  grid-column: 1 / -1;
}
.owner-ppr-detail { margin-top: 4px; }
.owner-ppr-detail-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding: 8px 0 24px;
  border-bottom: 1px solid rgba(21,23,21,.10);
}
.owner-ppr-detail-head h2 { margin: 7px 0 5px; font-size: 30px; letter-spacing:-.02em; }
.owner-ppr-detail-head p { margin:0; color:rgba(35,39,35,.58); font-size:13px; }
.owner-ppr-ledger-summary {
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
  margin:20px 0;
}
.owner-ppr-ledger-summary > div {
  background:rgba(255,255,255,.58);
  border:1px solid rgba(21,23,21,.10);
  padding:18px 20px;
}
.owner-ppr-ledger-summary span { display:block; text-transform:uppercase; letter-spacing:.14em; font-size:9px; color:rgba(35,39,35,.52); margin-bottom:8px; }
.owner-ppr-ledger-summary strong { font-size:22px; font-weight:600; }
.owner-ppr-ledger-wrap { overflow:auto; border:1px solid rgba(21,23,21,.10); background:rgba(255,255,255,.46); }
.owner-ppr-ledger { width:100%; border-collapse:collapse; min-width:820px; }
.owner-ppr-ledger th,
.owner-ppr-ledger td { padding:14px 16px; border-bottom:1px solid rgba(21,23,21,.08); text-align:left; vertical-align:top; }
.owner-ppr-ledger th { font-size:9px; text-transform:uppercase; letter-spacing:.13em; color:rgba(35,39,35,.55); background:rgba(244,242,235,.7); }
.owner-ppr-ledger td { font-size:13px; }
.owner-ppr-empty-cell { text-align:center !important; padding:42px 20px !important; color:rgba(35,39,35,.55); }
@media (max-width: 760px) {
  .owner-ppr-project-list { grid-template-columns:1fr; }
  .owner-ppr-ledger-summary { grid-template-columns:1fr; }
  .owner-ppr-detail-head { flex-direction:column; }
}

/* V13 — Financial foundation / PPR transaction form */
.owner-ppr-actions{display:flex;justify-content:flex-end;margin:18px 0}
.owner-ppr-entry-form{margin:0 0 22px;padding:22px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(255,255,255,.025)}
.owner-ppr-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.owner-ppr-form-grid label{display:flex;flex-direction:column;gap:7px;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}
.owner-ppr-form-grid input,.owner-ppr-form-grid select,.owner-ppr-form-grid textarea{font:inherit;text-transform:none;letter-spacing:normal;padding:11px 12px;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:rgba(0,0,0,.16);color:inherit}
.owner-ppr-form-wide{grid-column:1/-1}
.owner-ppr-form-actions{display:flex;gap:10px;margin-top:16px}
.owner-ppr-entry-note{margin:10px 0 0;font-size:.85rem}
.owner-ppr-ledger td small{display:block;opacity:.6;margin-top:3px}
@media (max-width:760px){.owner-ppr-form-grid{grid-template-columns:1fr}.owner-ppr-form-wide{grid-column:auto}}

/* V13.2 — single editable finalised project-fees card */
.owner-ppr-fee-card { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.owner-ppr-fee-card-copy { display:flex; flex-direction:column; gap:4px; }
.owner-ppr-fee-card-copy strong { font-size:1.45rem; }
.owner-ppr-fee-card-copy small { opacity:.68; }
.owner-ppr-fee-card-actions { display:flex; align-items:center; gap:8px; }
.owner-ppr-fees-input { display:flex; align-items:center; gap:6px; min-height:40px; padding:0 10px; border:1px solid rgba(0,0,0,.12); border-radius:10px; background:rgba(255,255,255,.55); }
.owner-ppr-fees-input input { width:150px; min-height:34px; border:0; outline:0; background:transparent; }
@media (max-width:720px) {
  .owner-ppr-fee-card { align-items:flex-start; flex-direction:column; }
  .owner-ppr-fee-card-actions { width:100%; flex-wrap:wrap; }
}

/* V13.3 — authoritative PPR fees controls */
.owner-ppr-fee-card { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.owner-ppr-fee-card-copy { display:flex; flex-direction:column; gap:4px; min-width:0; }
.owner-ppr-fee-card-copy strong { font-size:25px; line-height:1.1; font-weight:600; }
.owner-ppr-fee-card-copy small { color:rgba(35,39,35,.58); font-size:12px; }
.owner-ppr-fee-card-actions { display:flex; align-items:center; gap:8px; }
.owner-ppr-fees-view { display:block; }
.owner-ppr-fees-editor { align-items:center; gap:8px; }
.owner-ppr-fees-input { display:flex; align-items:center; gap:6px; min-height:40px; padding:0 10px; border:1px solid rgba(21,23,21,.14); border-radius:10px; background:rgba(255,255,255,.72); }
.owner-ppr-fees-input input { width:155px; min-height:34px; border:0; outline:0; background:transparent; color:inherit; font:inherit; }
.owner-ppr-fees-input input:focus { box-shadow:none; }
@media (max-width:720px) {
  .owner-ppr-fee-card { align-items:flex-start; flex-direction:column; }
  .owner-ppr-fee-card-actions { width:100%; }
  .owner-ppr-fees-editor { width:100%; flex-wrap:wrap; }
  .owner-ppr-fees-input { flex:1; }
  .owner-ppr-fees-input input { flex:1; width:auto; }
}

/* V13.4 — PPR fee controls: ensure the controls are clickable and visible */
.owner-ppr-fee-card-actions { position:relative; z-index:5; pointer-events:auto; }
.owner-ppr-fee-card-actions button { position:relative; z-index:6; pointer-events:auto; }
.owner-ppr-fees-view { display:block; }
.owner-ppr-fees-editor { display:flex; align-items:center; gap:8px; }

/* V13.5 — PPR totals, profitability chart and report action */
.owner-ppr-ledger tfoot tr { border-top:1px solid rgba(35,45,38,.16); background:rgba(239,243,238,.62); }
.owner-ppr-ledger tfoot td { padding:15px 12px; font-size:12px; vertical-align:middle; }
.owner-ppr-ledger tfoot td strong { font-weight:700; }
.owner-ppr-profitability { margin-top:20px; padding:24px 26px 26px; border:1px solid rgba(35,45,38,.10); background:rgba(250,251,247,.72); box-shadow:0 14px 34px rgba(38,52,43,.045); }
.owner-ppr-profitability-head { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:24px; }
.owner-ppr-profitability-head h3 { margin:5px 0 5px; font-size:22px; letter-spacing:-.025em; }
.owner-ppr-profitability-head p { margin:0; color:#737c75; font-size:12px; line-height:1.5; }
.owner-ppr-profitability-metric { min-width:130px; text-align:right; }
.owner-ppr-profitability-metric span { display:block; color:#7b857c; font-size:8px; letter-spacing:.16em; font-weight:700; }
.owner-ppr-profitability-metric strong { display:block; margin-top:5px; font-size:25px; }
.owner-ppr-profit-chart { display:flex; flex-direction:column; gap:16px; }
.owner-ppr-profit-bar-row { display:grid; grid-template-columns:180px minmax(0,1fr); align-items:center; gap:14px; }
.owner-ppr-profit-bar-label { display:flex; justify-content:space-between; gap:10px; font-size:12px; }
.owner-ppr-profit-bar-label strong { font-weight:600; white-space:nowrap; }
.owner-ppr-profit-bar-track { height:13px; overflow:hidden; border-radius:999px; background:rgba(35,45,38,.07); }
.owner-ppr-profit-bar-track span { display:block; height:100%; width:0; border-radius:inherit; background:#5f6f62; transition:width .3s ease; }
.owner-ppr-profit-bar-row:nth-child(2) .owner-ppr-profit-bar-track span { background:#9a8061; }
.owner-ppr-profit-bar-row:nth-child(3) .owner-ppr-profit-bar-track span { background:#33483a; }
.owner-ppr-report-actions { display:flex; justify-content:flex-end; margin-top:18px; }
.owner-ppr-report-actions .glass-action { padding:12px 18px; }
@media(max-width:720px){
  .owner-ppr-profitability-head { flex-direction:column; }
  .owner-ppr-profitability-metric { text-align:left; }
  .owner-ppr-profit-bar-row { grid-template-columns:1fr; gap:7px; }
  .owner-ppr-report-actions { justify-content:flex-start; }
  .owner-ppr-report-actions .glass-action { width:100%; }
}


/* V13.5 — Income & Expense read-only financial command centre */
.owner-ie-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px;padding:14px 16px;}
.owner-ie-toolbar>div{display:flex;flex-direction:column;gap:3px;}
.owner-ie-month-control{display:flex;align-items:center;gap:8px;font-size:12px;opacity:.8;}
.owner-ie-month-control input{min-height:38px;padding:7px 10px;border:1px solid rgba(21,23,21,.12);border-radius:9px;background:rgba(255,255,255,.6);font:inherit;color:inherit;}
.owner-ie-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px;}
.owner-ie-summary-card{padding:18px;border:1px solid rgba(21,23,21,.08);border-radius:15px;background:rgba(255,255,255,.55);box-shadow:0 8px 22px rgba(25,30,25,.04);}
.owner-ie-summary-card span,.owner-ie-summary-card small{display:block;color:rgba(35,39,35,.58);font-size:12px;}
.owner-ie-summary-card strong{display:block;margin:8px 0 5px;font-size:24px;font-weight:600;}
.owner-ie-visual-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px;}
.owner-ie-chart-card,.owner-ie-source-card,.owner-ie-ledger-card{padding:18px;}
.owner-ie-section-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px;}
.owner-ie-section-head h2{margin:4px 0 0;font-size:19px;font-weight:600;}
.owner-ie-section-head small{display:block;margin-top:5px;color:rgba(35,39,35,.56);}
.owner-ie-pie-wrap{display:flex;align-items:center;gap:24px;min-height:250px;}
.owner-ie-pie{width:210px;height:210px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04);flex:0 0 auto;}
.owner-ie-pie-legend{display:flex;flex-direction:column;gap:11px;flex:1;}
.owner-ie-legend-row{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:8px;font-size:13px;}
.owner-ie-legend-dot{width:9px;height:9px;border-radius:50%;background:hsl(var(--ie-h) 22% 45%);}
.owner-ie-bars{display:flex;flex-direction:column;gap:28px;padding:30px 4px 15px;}
.owner-ie-bar-row>div:first-child{display:flex;justify-content:space-between;margin-bottom:8px;font-size:13px;}
.owner-ie-bar-track{height:14px;border-radius:99px;background:rgba(35,39,35,.08);overflow:hidden;}
.owner-ie-bar-track i{display:block;height:100%;border-radius:99px;background:rgba(74,91,76,.72);}
.owner-ie-bar-track--expense i{background:rgba(130,92,72,.72);}
.owner-ie-net-note{padding-top:15px;border-top:1px solid rgba(21,23,21,.08);font-weight:600;}
.owner-ie-source-table,.owner-ie-ledger-table{width:100%;border-collapse:collapse;}
.owner-ie-source-table th,.owner-ie-source-table td,.owner-ie-ledger-table th,.owner-ie-ledger-table td{padding:11px 10px;border-bottom:1px solid rgba(21,23,21,.07);text-align:left;font-size:13px;vertical-align:top;}
.owner-ie-source-table th,.owner-ie-ledger-table th{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:rgba(35,39,35,.56);}
.owner-ie-source-table td:last-child,.owner-ie-source-table th:last-child{text-align:right;}
.owner-ie-income{font-weight:600;}
.owner-ie-expense{font-weight:600;}
.owner-ie-ledger-table-wrap,.owner-ie-source-table-wrap{overflow:auto;}
.owner-ie-empty{color:rgba(35,39,35,.55);font-size:13px;}
@media(max-width:900px){.owner-ie-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.owner-ie-visual-grid{grid-template-columns:1fr;}}
@media(max-width:650px){.owner-ie-toolbar{align-items:flex-start;flex-direction:column;}.owner-ie-summary-grid{grid-template-columns:1fr;}.owner-ie-pie-wrap{align-items:flex-start;flex-direction:column;}.owner-ie-pie{width:180px;height:180px;}}

/* V13.1 — IE navigation/panel visibility */
#panel-owner-ie[hidden] { display:none !important; }
#panel-owner-ie:not([hidden]) { display:block !important; }

.owner-ie-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}


/* V13 — Office Bills */
.owner-ob-entry-form{margin:0 0 16px;padding:22px;border:1px solid rgba(21,23,21,.08);border-radius:15px;background:rgba(255,255,255,.55);box-shadow:0 8px 22px rgba(25,30,25,.04);}
.owner-ob-entry-form .owner-ppr-form-grid label{color:rgba(35,39,35,.72);}
.owner-ob-entry-form .owner-ppr-form-grid input,
.owner-ob-entry-form .owner-ppr-form-grid select,
.owner-ob-entry-form .owner-ppr-form-grid textarea{background:rgba(255,255,255,.72);color:var(--text);border:1px solid rgba(21,23,21,.12);}
.owner-ob-ledger td small{display:block;margin-top:3px;opacity:.58;font-size:10px;}
.owner-ob-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:10px;letter-spacing:.05em;text-transform:uppercase;border:1px solid rgba(21,23,21,.1);}
.owner-ob-status--paid{background:rgba(74,91,76,.10);}
.owner-ob-status--pending{background:rgba(190,125,54,.10);}
@media(max-width:760px){.owner-ob-entry-form .owner-ppr-form-grid{grid-template-columns:1fr;}.owner-ie-toolbar-actions{flex-wrap:wrap;}}
