/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f7f7f5;
  color: #181818;
}

button {
  font: inherit;
}

/* Main two-column layout */
.page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  transition: grid-template-columns 0.25s ease;
}

/* Collapsed sidebar layout */
.page-layout.sidebar-collapsed {
  grid-template-columns: 64px 1fr;
}

/* Left sidebar */
.notes-column {
  position: relative;
  overflow: hidden;
  padding: 32px 24px;
  background-color: #ffffff;
  border-right: 1px solid #dddddd;
  transition: padding 0.25s ease;
}

.sidebar-content {
  width: 232px;
  opacity: 1;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 36px;
}

.sidebar-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Sidebar toggle button */
.sidebar-toggle {
  position: absolute;
  top: 16px;
  right: 12px;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  border: 1px solid #dddddd;
  border-radius: 10px;
  background-color: #ffffff;
  color: #333333;

  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.25s ease;
}

.sidebar-toggle:hover {
  background-color: #f1f1f1;
}

/* Collapsed sidebar state */
.page-layout.sidebar-collapsed .notes-column {
  padding: 32px 12px;
}

.page-layout.sidebar-collapsed .sidebar-content {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.page-layout.sidebar-collapsed .sidebar-toggle {
  right: 14px;
  transform: rotate(180deg);
}

/* New project button */
.new-project-button {
  width: auto;
  min-width: 180px;
  padding: 12px 16px;

  border: none;
  border-radius: 10px;

  background-color: #181818;
  color: #ffffff;

  font-weight: 600;
  cursor: pointer;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.new-project-button:hover {
  background-color: #343434;
  transform: translateY(-1px);
}

.new-project-button:active {
  transform: translateY(0);
}




.project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.project-list-item {
  display: flex;
  align-items: center;
  gap: 6px;

  width: 100%;
  padding: 4px;

  border-radius: 10px;
  background-color: transparent;
}

.project-list-item:hover {
  background-color: #f1f1f1;
}

.project-open-button {
  flex: 1;
  min-width: 0;
  padding: 8px;

  border: none;
  background-color: transparent;
  color: #333333;

  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;

  cursor: pointer;
}

.project-delete-button {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
  width: 30px;
  height: 30px;

  border: none;
  border-radius: 7px;

  background-color: transparent;
  color: #777777;

  font-size: 1.2rem;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.project-delete-button:hover {
  background-color: #ffe5e5;
  color: #c62828;
}

/* Main content area */
.main-column {
  min-width: 0;
  padding: 40px;
}

/* Homepage layout */
.home-content {
  width: 100%;
}

.brand {
  margin-bottom: 32px;
  text-align: center;
}

.brand h1 {
  margin-bottom: 12px;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.05em;
}

.tagline {
  font-size: 1.2rem;
  color: #686868;
}

.subtagline {
  margin-top: 8px;
  font-size: 0.9rem;
  font-style: italic;
  color: #888888;
}

/* Blank canvas displayed on the homepage */
.home-canvas {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 500px;

  border: 1px solid #e2e2e2;
  border-radius: 18px;

  background-color: #ffffff;
  box-shadow: 0 10px 30px rgb(0 0 0 / 5%);
}

/* Project canvas */
.project-canvas {
  width: 100%;
  min-height: calc(100vh - 80px);

  border: 1px solid #e2e2e2;
  border-radius: 18px;

  background-color: #ffffff;
  box-shadow: 0 10px 30px rgb(0 0 0 / 5%);
}

/* Project toolbar */
.project-toolbar {
  display: flex;
  align-items: center;
justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #eeeeee;
}

/* Close project button */
.close-project-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  border: 1px solid #d8d8d8;
  border-radius: 8px;

  background-color: #ffffff;
  color: #333333;

  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;

  transition: background-color 0.2s ease;
}

.close-project-button:hover {
  background-color: #f2f2f2;
}
/* Used to hide screens */
.hidden {
  display: none !important;
}


/* Prevent the page behind the modal from scrolling */
body.modal-open {
  overflow: hidden;
}

/* Modal background */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: rgb(0 0 0 / 45%);
}

/* Modal box */
.modal-card {
  width: min(100%, 420px);
  padding: 28px;

  border: 1px solid #e2e2e2;
  border-radius: 16px;

  background-color: #ffffff;
  box-shadow: 0 20px 60px rgb(0 0 0 / 20%);
}

.modal-card h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.modal-card p {
  color: #686868;
  line-height: 1.5;
}

/* Modal buttons */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  margin-top: 24px;
}

.modal-cancel-button,
.modal-delete-button {
  padding: 10px 16px;

  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.modal-cancel-button {
  border: 1px solid #d8d8d8;
  background-color: #ffffff;
  color: #333333;
}

.modal-cancel-button:hover {
  background-color: #f2f2f2;
}

.modal-delete-button {
  border: 1px solid #c62828;
  background-color: #c62828;
  color: #ffffff;
}

.modal-delete-button:hover {
  border-color: #a91f1f;
  background-color: #a91f1f;
}

/*
  Keep this below .modal-overlay because both rules set display.
 */
.modal-overlay.hidden {
  display: none;
}

/* Mobile layout */
@media (max-width: 700px) {
  .page-layout,
  .page-layout.sidebar-collapsed {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .notes-column,
  .page-layout.sidebar-collapsed .notes-column {
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid #dddddd;
  }

  .sidebar-content {
    width: 100%;
  }

  .page-layout.sidebar-collapsed .sidebar-content {
    display: none;
  }

  .sidebar-toggle,
  .page-layout.sidebar-collapsed .sidebar-toggle {
    top: 16px;
    right: 20px;
  }

  .main-column {
    padding: 20px;
  }

  .brand,
  .project-canvas {
    min-height: 65vh;
  }
}

.project-name-label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;

  color: #333333;
  font-size: 0.9rem;
  font-weight: 600;
}

.project-name-input {
  width: 100%;
  padding: 12px 14px;

  border: 1px solid #cccccc;
  border-radius: 9px;

  background-color: #ffffff;
  color: #181818;

  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.project-name-input:focus {
  border-color: #181818;
  box-shadow: 0 0 0 3px rgb(24 24 24 / 10%);
}

.project-name-input::placeholder {
  color: #999999;
}

.form-error {
  margin-top: 8px;

  color: #c62828;
  font-size: 0.85rem;
}

.modal-create-button {
  padding: 10px 16px;

  border: 1px solid #181818;
  border-radius: 8px;

  background-color: #181818;
  color: #ffffff;

  font-weight: 600;
  cursor: pointer;

  transition: background-color 0.2s ease;
}

.modal-create-button:hover {
  background-color: #343434;
}
/* Project picture and voice-pin controls */
.project-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;

  padding: 16px 20px;
  border-bottom: 1px solid #eeeeee;
}

.project-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 42px;
  padding: 10px 16px;

  border: 1px solid #d8d8d8;
  border-radius: 9px;

  background-color: #ffffff;
  color: #333333;

  font-weight: 600;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.project-action-button:hover:not(:disabled) {
  border-color: #bcbcbc;
  background-color: #f3f3f3;
  transform: translateY(-1px);
}

.project-action-button:active:not(:disabled) {
  transform: translateY(0);
}

.project-action-button:disabled,
.picture-navigation-button:disabled,
.voice-pin-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.project-action-button svg,
.voice-pin-button svg {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.picture-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.picture-navigation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border: 1px solid #d8d8d8;
  border-radius: 8px;

  background-color: #ffffff;
  color: #333333;

  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.picture-navigation-button:hover:not(:disabled) {
  background-color: #f2f2f2;
}

.picture-counter {
  min-width: 64px;
  color: #555555;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* Red round voice-pin control */
.voice-pin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  border: 4px solid #ffffff;
  border-radius: 50%;

  background-color: #d62828;
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgb(214 40 40 / 35%),
    0 7px 18px rgb(214 40 40 / 25%);

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.voice-pin-button:hover:not(:disabled) {
  background-color: #b91f1f;
  transform: translateY(-1px);
}

.voice-pin-button.is-placing {
  box-shadow:
    0 0 0 4px rgb(214 40 40 / 20%),
    0 7px 18px rgb(214 40 40 / 30%);
}

.voice-pin-button.is-recording {
  background-color: #a91515;
  animation: recording-pulse 1.2s infinite;
}

@keyframes recording-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgb(214 40 40 / 40%),
      0 7px 18px rgb(214 40 40 / 25%);
  }

  50% {
    box-shadow:
      0 0 0 10px rgb(214 40 40 / 0%),
      0 7px 18px rgb(214 40 40 / 25%);
  }
}

/* Main picture and pin area */
.project-media-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;

  min-height: 440px;
  padding: 24px;
}

.empty-project-message {
  margin: auto;
  color: #888888;
  text-align: center;
}

.recording-status {
  align-self: stretch;
  color: #555555;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.recording-status.is-recording,
.recording-status.is-error {
  color: #c62828;
}

.picture-frame {
  position: relative;
  display: inline-block;

  max-width: 100%;
  line-height: 0;
}

.picture-frame.is-placing-pin {
  cursor: crosshair;
}

.picture-preview {
  display: block;
  max-width: 100%;
  max-height: 620px;

  border-radius: 12px;
  object-fit: contain;
  user-select: none;
}

.voice-pin-layer {
  position: absolute;
  inset: 0;

  pointer-events: none;
}

.picture-voice-pin {
  position: absolute;
  transform: translate(-50%, -50%);

  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border: 3px solid #ffffff;
  border-radius: 50%;

  background-color: var(--pin-colour, #d62828);
  color: #ffffff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 28%);

  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;

  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}

.picture-voice-pin:hover {
  background-color: var(--pin-colour, #d62828);
  filter: brightness(0.86);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Hidden audio engine controlled by the picture pins */
.voice-pin-audio-engine {
  display: none;
}

/* Pin whose recording is currently playing */
.picture-voice-pin.is-playing {
  background-color: var(--pin-colour, #d62828);
  box-shadow:
    0 0 0 5px rgb(214 40 40 / 20%),
    0 4px 12px rgb(0 0 0 / 28%);
}

/* Pin whose recording is paused */
.picture-voice-pin.is-paused {
  background-color: var(--pin-colour, #d62828);
  box-shadow:
    0 0 0 4px rgb(122 31 31 / 18%),
    0 4px 12px rgb(0 0 0 / 24%);
}

/* Temporary pin shown while its voice note is being recorded */
.picture-voice-pin.is-recording {
  background-color: var(--pin-colour, #d62828);
  cursor: default;
  opacity: 1;
  pointer-events: none;
  animation: voice-pin-recording-pulse 1.1s infinite;
}

@keyframes voice-pin-recording-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgb(214 40 40 / 45%),
      0 4px 12px rgb(0 0 0 / 28%);
  }

  50% {
    box-shadow:
      0 0 0 10px rgb(214 40 40 / 0%),
      0 4px 12px rgb(0 0 0 / 28%);
  }
}


/* Per-pin issue responses */
.pin-issues-section {
  width: min(100%, 760px);
  margin-top: 10px;
  padding-top: 24px;
  border-top: 1px solid #eeeeee;
}

.pin-issues-section.hidden {
  display: none;
}

.pin-issues-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.pin-issues-header h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.pin-issues-header p {
  color: #777777;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pin-issues-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pin-issue-card {
  padding: 18px;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  background-color: #ffffff;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.pin-issue-card.is-active {
  border-color: #d62828;
  box-shadow: 0 0 0 3px rgb(214 40 40 / 10%);
}

.pin-issue-card.is-addressed {
  border-color: #badbc4;
  background-color: #fbfffc;
}

.pin-issue-card__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.pin-issue-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  border-radius: 50%;
  background-color: var(--pin-colour, #d62828);
  color: #ffffff;

  font-size: 0.78rem;
  font-weight: 700;
}

.pin-issue-card__label {
  display: block;
  margin-bottom: 8px;
  color: #444444;
  font-size: 0.86rem;
  font-weight: 600;
}

.pin-issue-card__textarea {
  display: block;
  width: 100%;
  min-height: 104px;
  padding: 12px 14px;

  border: 1px solid #cccccc;
  border-radius: 10px;

  background-color: #ffffff;
  color: #181818;

  font: inherit;
  line-height: 1.5;
  resize: vertical;
  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.pin-issue-card__textarea:focus {
  border-color: #d62828;
  box-shadow: 0 0 0 3px rgb(214 40 40 / 10%);
}

.pin-issue-card__textarea::placeholder {
  color: #999999;
}

.pin-issue-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  color: #888888;
  font-size: 0.75rem;
}

.pin-issue-card__counter {
  font-variant-numeric: tabular-nums;
}

.pin-issue-card__counter.is-at-limit {
  color: #c62828;
  font-weight: 700;
}

.pin-issue-card.is-editing {
  border-color: #d6a126;
  background-color: #fffdf7;
}

.pin-issue-card__footer {
  align-items: center;
}

.pin-issue-card__footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.pin-issue-card__ok-button {
  flex-shrink: 0;
  min-width: 74px;
  padding: 9px 16px;

  border: 1px solid #181818;
  border-radius: 8px;

  background-color: #181818;
  color: #ffffff;

  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.pin-issue-card__ok-button:hover:not(:disabled) {
  background-color: #343434;
  transform: translateY(-1px);
}

.pin-issue-card__ok-button:disabled {
  border-color: #d5d5d5;
  background-color: #eeeeee;
  color: #888888;
  cursor: default;
  opacity: 1;
}

@media (max-width: 520px) {
  .pin-issue-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .pin-issue-card__ok-button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .pin-issues-header {
    flex-direction: column;
    gap: 10px;
  }

  .pin-issue-card {
    padding: 15px;
  }
}

/* Hide the file input while keeping it available to JavaScript */
.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  border: 0;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .project-actions {
    grid-template-columns: 1fr auto;
  }

  .picture-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .project-action-button {
    justify-self: start;
  }

  .voice-pin-button {
    justify-self: end;
  }
}

/* Picture and comments share one integrated workspace */
.picture-workspace {
  width: min(100%, 900px);
  overflow: hidden;

  border: 1px solid #e1e1e1;
  border-radius: 16px;

  background-color: #ffffff;
  box-shadow: 0 8px 24px rgb(0 0 0 / 6%);
}

.picture-workspace.hidden {
  display: none;
}

.picture-workspace__media {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 280px;
  padding: 18px;

  background-color: #f7f7f5;
}

/* Keep comments within the same canvas as the picture */
.picture-workspace .pin-issues-section {
  width: 100%;
  margin: 0;
  padding: 20px;

  border-top: 1px solid #e8e8e8;
}

.picture-workspace .pin-issues-list {
  gap: 0;
}

/* Use integrated rows instead of detached comment cards */
.picture-workspace .pin-issue-card {
  padding: 18px 0;

  border: none;
  border-bottom: 1px solid #e8e8e8;
  border-radius: 0;

  background-color: transparent;
  box-shadow: none;
}

.picture-workspace .pin-issue-card:last-child {
  border-bottom: none;
}

.picture-workspace .pin-issue-card.is-active {
  border-color: #e8e8e8;
  box-shadow: none;
}

.picture-workspace .pin-issue-card.is-addressed {
  background-color: transparent;
}

/* New voice pins start with a grey unanswered section */
.picture-workspace .pin-issue-card.is-awaiting-comment {
  margin: 8px 0;
  padding: 16px;

  border: 1px solid #dddddd;
  border-radius: 12px;

  background-color: #f1f1f1;
}

/* Saved comments are plain text within the canvas */
.picture-workspace .pin-issue-card__comment {
  margin: 0;
  padding: 0;

  border: none;
  border-radius: 0;

  background-color: transparent;
  color: #303030;

  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.picture-workspace .pin-issue-card__comment.is-empty {
  padding: 12px;

  border: 1px dashed #cccccc;
  border-radius: 9px;

  background-color: #e9e9e9;
  color: #888888;
  font-style: italic;
}

.pin-issue-card__editor {
  margin-top: 4px;
}

.pin-issue-card__editor.hidden {
  display: none;
}

.pin-issue-card__action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;

  margin-top: 12px;
}

.pin-issue-card__action-row.hidden {
  display: none;
}

.pin-issue-card__action-button {
  padding: 9px 15px;

  border: 1px solid #181818;
  border-radius: 8px;

  background-color: #ffffff;
  color: #181818;

  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.pin-issue-card__action-button:hover {
  background-color: #181818;
  color: #ffffff;
  transform: translateY(-1px);
}

.pin-issue-card__action-button.hidden {
  display: none;
}

.pin-issue-card__icon-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pin-issue-card__icon-actions.hidden {
  display: none;
}

.pin-issue-card__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  border: 1px solid #cccccc;
  border-radius: 8px;

  background-color: #ffffff;
  color: #444444;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.pin-issue-card__icon-button:hover {
  border-color: #181818;
  background-color: #181818;
  color: #ffffff;
  transform: translateY(-1px);
}

.pin-issue-card__icon-button--delete:hover {
  border-color: #c62828;
  background-color: #c62828;
  color: #ffffff;
}

.pin-issue-card__icon-button svg {
  display: block;
  pointer-events: none;
}

.pin-issue-card__editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pin-issue-card__cancel-button {
  padding: 9px 14px;

  border: 1px solid #cccccc;
  border-radius: 8px;

  background-color: #ffffff;
  color: #444444;

  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.pin-issue-card__cancel-button:hover {
  background-color: #f1f1f1;
}

@media (max-width: 600px) {
  .picture-workspace__media {
    padding: 10px;
  }

  .picture-workspace .pin-issues-section {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .pin-issue-card__editor-actions {
    width: 100%;
  }

  .pin-issue-card__cancel-button,
  .pin-issue-card__ok-button {
    flex: 1;
  }

  .pin-issue-card__action-button {
    width: 100%;
  }
}


/* Keep saved-comment edit/delete controls hidden until the row is hovered. */
.pin-issue-card__icon-actions:not(.hidden) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);

  transition:
    opacity 0.16s ease,
    visibility 0.16s ease,
    transform 0.16s ease;
}

.pin-issue-card:hover .pin-issue-card__icon-actions:not(.hidden),
.pin-issue-card:focus-within .pin-issue-card__icon-actions:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}


/* Latest workspace refinements */
.project-actions {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.project-action-left {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-width: 0;
}

.picture-navigation {
  justify-self: center;
}

.voice-pin-button {
  justify-self: end;
}

/* After an image is uploaded, the replacement control keeps its hit area
   but stays visually hidden until hovered or focused. */
#pictureUploadButton.has-image {
  opacity: 0;
}

#pictureUploadButton.has-image:hover,
#pictureUploadButton.has-image:focus-visible {
  opacity: 1;
}

/* Make the stop action unmistakable while recording. */
.voice-pin-button.is-recording svg {
  display: none;
}

.voice-pin-button.is-recording::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-color: #ffffff;
}

.picture-voice-pin.is-pending {
  font-size: 0;
}

.picture-voice-pin.is-pending::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ffffff;
}

/* Project delete controls are revealed only for the relevant row. */
.project-delete-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.project-list-item:hover .project-delete-button,
.project-list-item:focus-within .project-delete-button {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Report */
.report-button {
  white-space: nowrap;
}

.report-modal-card {
  width: min(94vw, 860px);
  max-height: 88vh;
  overflow: hidden;
}

.report-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.report-modal-header h2 {
  margin-bottom: 6px;
}

.report-content {
  max-height: calc(88vh - 190px);
  overflow-y: auto;
  padding-right: 8px;
}

.report-section {
  margin-bottom: 24px;
}

.report-section__title {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.report-section__meta {
  color: #777777;
  font-size: 0.85rem;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.report-metric {
  padding: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background-color: #fafafa;
}

.report-metric strong,
.report-metric span {
  display: block;
}

.report-metric strong {
  margin-bottom: 3px;
  font-size: 1.25rem;
}

.report-metric span {
  color: #777777;
  font-size: 0.78rem;
}

.report-transcription-notice {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background-color: #f4f4f4;
}

.report-transcription-notice h3 {
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.report-transcription-notice p {
  color: #5f5f5f;
  font-size: 0.86rem;
}

.report-slide-section {
  padding-top: 18px;
  border-top: 1px solid #e5e5e5;
}

.report-note {
  padding: 14px 0;
  border-bottom: 1px solid #eeeeee;
}

.report-note:last-child {
  border-bottom: none;
}

.report-note__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.report-note__header span {
  color: #777777;
  font-size: 0.8rem;
}

.report-note__audio {
  width: 100%;
  margin: 6px 0 10px;
}

.report-note__transcript,
.report-note__comment {
  margin-top: 6px;
  color: #555555;
  font-size: 0.86rem;
}

.report-modal-actions {
  border-top: 1px solid #eeeeee;
  padding-top: 18px;
}

@media (max-width: 850px) {
  .project-actions {
    grid-template-columns: 1fr auto;
  }

  .project-action-left {
    grid-column: 1 / -1;
    width: 100%;
    flex-wrap: wrap;
  }

  .picture-navigation {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .voice-pin-button {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .project-action-left {
    align-items: stretch;
    flex-direction: column;
  }

  .project-action-left .project-action-button {
    width: 100%;
  }

  .report-metrics {
    grid-template-columns: 1fr;
  }
}


/* Formal engineering-report presentation */
.report-document-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 4px 0 18px;
  border-bottom: 3px solid #203f63;
}

.report-document-heading {
  min-width: 0;
}

.report-document-kicker {
  margin-bottom: 7px;
  color: #52677d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.report-document-title {
  color: #1d2730;
  font-size: 1.65rem;
  line-height: 1.2;
}

.report-document-reference {
  margin-top: 7px;
  color: #5c6873;
  font-size: 0.82rem;
}

.report-document-status {
  flex-shrink: 0;
  min-width: 126px;
  padding: 10px 12px;
  border: 1px solid #b7c2cc;
  background: #f7f9fa;
}

.report-document-status span,
.report-document-status strong {
  display: block;
}

.report-document-status span {
  color: #697783;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.report-document-status strong {
  margin-top: 4px;
  color: #203f63;
  font-size: 0.95rem;
}

.report-definition-list {
  margin: 18px 0 24px;
  border-top: 1px solid #cbd3da;
  border-left: 1px solid #cbd3da;
}

.report-definition-row {
  display: grid;
  grid-template-columns: minmax(150px, 190px) 1fr;
  border-right: 1px solid #cbd3da;
  border-bottom: 1px solid #cbd3da;
}

.report-definition-row dt,
.report-definition-row dd {
  min-width: 0;
  padding: 9px 11px;
}

.report-definition-row dt {
  background: #edf1f4;
  color: #324a61;
  font-size: 0.78rem;
  font-weight: 800;
}

.report-definition-row dd {
  color: #303b45;
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.report-transcription-notice {
  margin-bottom: 26px;
  padding: 13px 15px;
  border: none;
  border-left: 4px solid #607d9b;
  border-radius: 0;
  background: #f2f5f7;
}

.report-transcription-notice h3 {
  margin-bottom: 4px;
  color: #203f63;
  font-size: 0.92rem;
}

.report-transcription-notice p {
  color: #56636e;
  font-size: 0.82rem;
}

.report-slide-section {
  margin-bottom: 34px;
  padding-top: 18px;
  border-top: 1px solid #aeb9c3;
}

.report-section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.report-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #203f63;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.report-section-heading .report-section__title {
  margin: 0;
  color: #1d2730;
  font-size: 1.08rem;
}

.report-figure {
  margin: 0 0 20px;
}

.report-figure__image-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #9daab5;
  background: #f5f6f7;
}

.report-figure__image {
  display: block;
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.report-figure__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--pin-colour, #b32121);
  color: #ffffff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 28%);
  font-size: 0.7rem;
  font-weight: 800;
}

.report-figure figcaption {
  margin-top: 7px;
  color: #5e6974;
  font-size: 0.75rem;
  line-height: 1.45;
}

.report-observation-register-title {
  margin: 0 0 9px;
  color: #203f63;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-observation-register {
  border-top: 1px solid #9eabb6;
  border-left: 1px solid #9eabb6;
}

.report-observation__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 11px;
  border-right: 1px solid #9eabb6;
  border-bottom: 1px solid #9eabb6;
  background: #203f63;
  color: #ffffff;
}

.report-observation__header strong {
  font-size: 0.84rem;
}

.report-observation__header span {
  color: #e7edf2;
  font-size: 0.74rem;
}

.report-observation__body {
  margin: 0;
}

.report-observation__body .report-definition-list {
  margin: 0;
}

.report-observation__body .report-definition-row {
  grid-template-columns: minmax(150px, 190px) 1fr;
  border-left: none;
}

/* The formal report intentionally excludes audio players. */
.report-content audio,
.report-note__audio {
  display: none !important;
}

@media (max-width: 620px) {
  .report-document-header {
    flex-direction: column;
    gap: 14px;
  }

  .report-document-status {
    width: 100%;
  }

  .report-definition-row,
  .report-observation__body .report-definition-row {
    grid-template-columns: 1fr;
  }

  .report-definition-row dt {
    border-bottom: 1px solid #cbd3da;
  }

  .report-observation__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}


/* =========================================================
   Okuyi graph-paper identity, subscription cards and contact
   ========================================================= */
:root {
  --okuyi-white: #ffffff;
  --okuyi-blue-950: #102f56;
  --okuyi-blue-900: #173f73;
  --okuyi-blue-800: #1d4f91;
  --okuyi-blue-700: #2865ad;
  --okuyi-blue-100: #eaf2fc;
  --okuyi-blue-050: #f5f9fe;
  --okuyi-grey-900: #202b38;
  --okuyi-grey-700: #536174;
  --okuyi-grey-500: #7a8797;
  --okuyi-grey-300: #cbd5e1;
  --okuyi-grey-200: #dce4ed;
  --okuyi-grey-100: #edf2f7;
  --okuyi-grid-fine: rgb(49 101 169 / 0.075);
  --okuyi-grid-major: rgb(49 101 169 / 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--okuyi-grey-900);
  background-color: #f8fbff;
  background-image:
    linear-gradient(var(--okuyi-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-major) 1px, transparent 1px),
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px);
  background-size:
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
}

.page-layout {
  background: rgb(248 251 255 / 0.82);
  backdrop-filter: blur(1px);
}

.notes-column {
  border-right-color: var(--okuyi-grey-200);
  background:
    linear-gradient(rgb(255 255 255 / 0.96), rgb(255 255 255 / 0.96)),
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px);
  background-size: auto, 20px 20px, 20px 20px;
}

.sidebar-header h2,
.project-toolbar h2 {
  color: var(--okuyi-blue-950);
}

.sidebar-toggle,
.close-project-button,
.picture-navigation-button,
.project-action-button {
  border-color: var(--okuyi-grey-300);
  color: var(--okuyi-blue-900);
  background: var(--okuyi-white);
}

.sidebar-toggle:hover,
.close-project-button:hover,
.picture-navigation-button:hover:not(:disabled),
.project-action-button:hover:not(:disabled) {
  border-color: #9cb6d7;
  background: var(--okuyi-blue-050);
}

.main-column {
  padding: 34px;
}

.home-content {
  width: min(100%, 1240px);
  margin: 0 auto;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding: 10px 2px;
}

.landing-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--okuyi-blue-950);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.landing-nav__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--okuyi-blue-800);
  background:
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px),
    #ffffff;
  background-size: 6px 6px;
  color: var(--okuyi-blue-800);
  font-size: 0.92rem;
}

.landing-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.landing-nav__links a {
  color: var(--okuyi-grey-700);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.landing-nav__links a:hover {
  color: var(--okuyi-blue-800);
}

.brand {
  max-width: 800px;
  margin: 0 auto 32px;
  text-align: center;
}

.brand-kicker,
.section-kicker,
.home-canvas__eyebrow {
  color: var(--okuyi-blue-700);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 8px 0 10px;
  color: var(--okuyi-blue-950);
  font-size: clamp(3.5rem, 9vw, 7rem);
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.tagline {
  color: var(--okuyi-grey-900);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
}

.subtagline {
  max-width: 650px;
  margin: 10px auto 0;
  color: var(--okuyi-grey-700);
  font-size: 1rem;
  font-style: normal;
  line-height: 1.6;
}

.home-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 48px;
  min-height: 480px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid #bfcfe2;
  border-radius: 4px;
  background-color: rgb(255 255 255 / 0.96);
  box-shadow: 0 24px 60px rgb(29 79 145 / 0.10);
}

.graph-paper-surface {
  background-image:
    linear-gradient(var(--okuyi-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-major) 1px, transparent 1px),
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px);
  background-size:
    100px 100px,
    100px 100px,
    20px 20px,
    20px 20px;
}

.home-canvas__content {
  position: relative;
  z-index: 2;
}

.home-canvas__content h2 {
  max-width: 620px;
  margin: 12px 0 16px;
  color: var(--okuyi-blue-950);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.home-canvas__content > p:not(.home-canvas__eyebrow):not(.selected-plan-helper) {
  max-width: 610px;
  color: var(--okuyi-grey-700);
  font-size: 1.02rem;
  line-height: 1.7;
}

.home-canvas__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.new-project-button,
.modal-create-button,
.contact-submit-button,
.plan-select-button {
  border: 1px solid var(--okuyi-blue-900);
  background: var(--okuyi-blue-800);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgb(29 79 145 / 0.18);
}

.new-project-button {
  min-width: 190px;
  padding: 13px 19px;
  border-radius: 6px;
}

.new-project-button:hover,
.modal-create-button:hover,
.contact-submit-button:hover:not(:disabled),
.plan-select-button:hover {
  background: var(--okuyi-blue-900);
  transform: translateY(-1px);
}

.secondary-hero-link {
  color: var(--okuyi-blue-800);
  font-weight: 800;
  text-decoration: none;
}

.secondary-hero-link:hover {
  text-decoration: underline;
}

.selected-plan-helper {
  margin-top: 18px;
  color: var(--okuyi-grey-700);
  font-size: 0.84rem;
  line-height: 1.5;
}

.hero-blueprint {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
}

.hero-blueprint__sheet {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1.15;
  border: 1px solid #8fa8c8;
  background:
    linear-gradient(rgb(255 255 255 / 0.62), rgb(255 255 255 / 0.62)),
    linear-gradient(var(--okuyi-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-major) 1px, transparent 1px),
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  box-shadow: 14px 14px 0 rgb(29 79 145 / 0.08);
}

.hero-blueprint__wall {
  position: absolute;
  border: 3px solid var(--okuyi-blue-800);
  background: rgb(255 255 255 / 0.52);
}

.hero-blueprint__wall--one {
  left: 18%;
  top: 21%;
  width: 57%;
  height: 46%;
}

.hero-blueprint__wall--two {
  right: 12%;
  top: 37%;
  width: 27%;
  height: 36%;
  border-left-width: 8px;
}

.hero-blueprint__wall--three {
  left: 29%;
  bottom: 10%;
  width: 41%;
  height: 17%;
  border-top-style: dashed;
}

.hero-blueprint__dimension {
  position: absolute;
  color: var(--okuyi-blue-900);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-blueprint__dimension--one {
  left: 34%;
  top: 14%;
}

.hero-blueprint__dimension--two {
  right: 6%;
  top: 53%;
  transform: rotate(90deg);
}

.hero-blueprint__pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #c73333;
  color: #ffffff;
  box-shadow: 0 4px 12px rgb(18 48 84 / 0.25);
  font-size: 0.75rem;
  font-weight: 800;
}

.hero-blueprint__pin--one {
  left: 32%;
  top: 42%;
}

.hero-blueprint__pin--two {
  right: 18%;
  bottom: 24%;
}

.hero-blueprint__caption {
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: var(--okuyi-blue-800);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.landing-stack {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.landing-section {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid #c5d3e3;
  border-radius: 4px;
  background:
    linear-gradient(rgb(255 255 255 / 0.96), rgb(255 255 255 / 0.96)),
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px);
  background-size: auto, 20px 20px, 20px 20px;
  box-shadow: 0 16px 44px rgb(29 79 145 / 0.08);
}

.landing-section__header {
  max-width: 720px;
  margin-bottom: 24px;
}

.landing-section__header h2 {
  margin: 8px 0 8px;
  color: var(--okuyi-blue-950);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}

.landing-section__header > p:last-child {
  color: var(--okuyi-grey-700);
  line-height: 1.6;
}

.audience-section {
  margin-top: 28px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.audience-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--okuyi-grey-300);
  background: rgb(255 255 255 / 0.96);
}

.audience-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  background: var(--okuyi-blue-900);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
}

.audience-card h3 {
  color: var(--okuyi-blue-950);
  font-size: 1.06rem;
  line-height: 1.35;
}

.audience-card p {
  margin-top: 9px;
  color: var(--okuyi-grey-700);
  font-size: 0.88rem;
  line-height: 1.62;
}


.inspection-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid #b8c9dd;
  background: var(--okuyi-blue-050);
}

.inspection-workflow__step {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid #c6d5e6;
}

.inspection-workflow__step:last-child {
  border-right: none;
}

.inspection-workflow__step strong,
.inspection-workflow__step span {
  display: block;
}

.inspection-workflow__step strong {
  color: var(--okuyi-blue-950);
  font-size: 0.86rem;
}

.inspection-workflow__step span {
  margin-top: 6px;
  color: var(--okuyi-grey-700);
  font-size: 0.78rem;
  line-height: 1.5;
}

.audience-scope-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--okuyi-blue-700);
  background: #ffffff;
  color: var(--okuyi-grey-700);
  font-size: 0.82rem;
  line-height: 1.55;
}

.audience-scope-note strong {
  color: var(--okuyi-blue-950);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.billing-period-panel,
.upgrade-billing-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #c8d6e6;
  background: rgb(255 255 255 / 0.9);
}

.billing-period-panel > div:first-child,
.upgrade-billing-choice > div:first-child {
  display: grid;
  gap: 3px;
}

.billing-period-panel strong,
.upgrade-billing-choice strong {
  color: var(--okuyi-blue-950);
  font-size: 0.88rem;
}

.billing-period-panel span,
.upgrade-billing-choice span {
  color: var(--okuyi-grey-700);
  font-size: 0.78rem;
  line-height: 1.45;
}

.billing-period-toggle {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid #aebfd3;
  border-radius: 7px;
  background: var(--okuyi-blue-050);
}

.billing-period-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 13px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--okuyi-grey-700);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.billing-period-toggle button small {
  color: inherit;
  font-size: 0.65rem;
  font-weight: 800;
}

.billing-period-toggle button[aria-pressed="true"],
.billing-period-toggle button.is-selected {
  background: var(--okuyi-blue-800);
  color: #ffffff;
  box-shadow: 0 3px 10px rgb(29 79 145 / 0.18);
}

.billing-period-toggle--compact button {
  min-height: 34px;
  padding: 7px 10px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--okuyi-grey-300);
  background: rgb(255 255 255 / 0.96);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: #8daace;
  box-shadow: 0 14px 28px rgb(29 79 145 / 0.10);
}

.plan-card.is-selected,
.plan-card--featured {
  border-color: var(--okuyi-blue-800);
  box-shadow: inset 0 0 0 2px rgb(29 79 145 / 0.12);
  background: linear-gradient(180deg, #ffffff, #f5f9fe);
}

.plan-card__badge {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 5px 9px;
  border: 1px solid #c6d4e5;
  background: var(--okuyi-grey-100);
  color: var(--okuyi-grey-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-card__badge--blue {
  border-color: #a9c3e3;
  background: var(--okuyi-blue-100);
  color: var(--okuyi-blue-900);
}

.plan-card h3 {
  color: var(--okuyi-blue-950);
  font-size: 1.25rem;
}

.plan-card__price {
  margin-top: 7px;
  color: var(--okuyi-blue-900);
  font-size: 1.8rem;
  font-weight: 800;
}

.plan-card__price span {
  color: var(--okuyi-grey-500);
  font-size: 0.74rem;
  font-weight: 600;
}

.plan-card__price .plan-card__price-value {
  color: var(--okuyi-blue-900);
  font-size: inherit;
  font-weight: 800;
}

.plan-card__billing-detail {
  min-height: 34px;
  margin-top: 7px;
  color: var(--okuyi-grey-500);
  font-size: 0.72rem;
  line-height: 1.45;
}

.plan-card__description {
  margin: 16px 0;
  color: var(--okuyi-grey-700);
  font-size: 0.9rem;
  line-height: 1.55;
}

.plan-card__features {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--okuyi-grey-700);
  font-size: 0.88rem;
  line-height: 1.45;
}

.plan-select-button {
  width: 100%;
  margin-top: auto;
  padding: 11px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.plan-select-button[aria-pressed="true"] {
  background: var(--okuyi-blue-950);
}

.subscription-note {
  margin-top: 18px;
  color: var(--okuyi-grey-500);
  font-size: 0.8rem;
  line-height: 1.5;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 46px;
  align-items: start;
}

.contact-section .landing-section__header {
  margin: 0;
}

.contact-section__intro {
  display: grid;
  gap: 22px;
}

.self-guided-panel,
.technical-support-note,
.contact-form-panel {
  border: 1px solid var(--okuyi-grey-300);
  background: rgb(255 255 255 / 0.94);
}

.self-guided-panel {
  padding: 22px;
  border-left: 4px solid var(--okuyi-blue-800);
}

.self-guided-panel h3,
.technical-support-note h3,
.contact-form-panel__header h3 {
  color: var(--okuyi-blue-950);
  font-size: 1.12rem;
  line-height: 1.3;
}

.self-guided-panel > p,
.technical-support-note > p:last-child,
.contact-form-panel__header > p:last-child {
  margin-top: 9px;
  color: var(--okuyi-grey-700);
  font-size: 0.9rem;
  line-height: 1.62;
}

.self-guided-panel__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tutorial-channel-button,
.self-guided-start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 15px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.tutorial-channel-button {
  border: 1px solid var(--okuyi-blue-900);
  background: var(--okuyi-blue-800);
  color: #ffffff;
  box-shadow: 0 8px 18px rgb(29 79 145 / 0.15);
}

.tutorial-channel-button:hover {
  background: var(--okuyi-blue-900);
  transform: translateY(-1px);
}

.self-guided-start-button {
  border: 1px solid #9cb6d7;
  background: var(--okuyi-blue-050);
  color: var(--okuyi-blue-900);
}

.self-guided-start-button:hover {
  border-color: var(--okuyi-blue-800);
  background: var(--okuyi-blue-100);
  transform: translateY(-1px);
}

.technical-support-note {
  padding: 20px;
  background: var(--okuyi-blue-050);
}

.technical-support-note .section-kicker {
  margin-bottom: 7px;
}

.contact-form-panel {
  padding: 24px;
}

.contact-form-panel__header {
  margin-bottom: 20px;
}

.contact-form-panel__header .section-kicker {
  margin-bottom: 7px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-field {
  display: grid;
  gap: 7px;
}

.contact-field > span {
  color: var(--okuyi-blue-950);
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-field small {
  color: var(--okuyi-grey-500);
  font-weight: 600;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--okuyi-grey-300);
  border-radius: 4px;
  background: rgb(255 255 255 / 0.96);
  color: var(--okuyi-grey-900);
  font: inherit;
  line-height: 1.45;
  outline: none;
}

.contact-field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--okuyi-blue-700);
  box-shadow: 0 0 0 3px rgb(40 101 173 / 0.12);
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-submit-button {
  padding: 12px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.contact-submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact-form-status {
  color: var(--okuyi-grey-700);
  font-size: 0.84rem;
}

.contact-form-status.is-success {
  color: #217146;
}

.contact-form-status.is-error {
  color: #a62626;
}

.contact-success-message {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 280px;
  padding: 28px;
  border: 1px solid #a9cbb8;
  background: #f2fbf5;
  box-shadow: 0 12px 30px rgb(33 113 70 / 0.08);
}

.contact-success-message__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #217146;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
}

.contact-success-message h3 {
  margin: 2px 0 9px;
  color: var(--okuyi-blue-950);
  font-size: 1.25rem;
}

.contact-success-message p {
  color: var(--okuyi-grey-700);
  line-height: 1.6;
}

.contact-success-message small {
  display: block;
  margin-top: 13px;
  color: var(--okuyi-grey-500);
  line-height: 1.5;
}

.contact-success-message strong {
  color: var(--okuyi-blue-900);
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid #c5d3e3;
  background: rgb(255 255 255 / 0.95);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
  padding: 24px 0;
  color: var(--okuyi-grey-700);
  font-size: 0.82rem;
}

.site-footer__inner > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.site-footer strong {
  color: var(--okuyi-blue-950);
}

.project-canvas,
.picture-workspace,
.modal-card {
  border-color: #c5d3e3;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.97);
  box-shadow: 0 18px 50px rgb(29 79 145 / 0.09);
}

.project-toolbar {
  border-bottom-color: var(--okuyi-grey-200);
}

.project-toolbar__title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.project-plan-badge,
.project-open-button__plan {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid #bfd0e4;
  background: var(--okuyi-blue-050);
  color: var(--okuyi-blue-900);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-plan-badge[data-plan="business"] {
  background: #eaf2fc;
}

.project-open-button {
  display: grid;
  gap: 4px;
}

.project-open-button__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-open-button__plan {
  font-size: 0.58rem;
  padding: 2px 6px;
}

.project-plan-summary {
  display: grid;
  gap: 3px;
  margin-top: 18px;
  padding: 12px 13px;
  border-left: 3px solid var(--okuyi-blue-700);
  background: var(--okuyi-blue-050);
}

.project-plan-summary span {
  color: var(--okuyi-grey-500);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-plan-summary strong {
  color: var(--okuyi-blue-950);
}

.project-plan-summary small {
  color: var(--okuyi-grey-700);
}

.report-plan-banner {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  padding: 15px 16px;
  border: 1px solid #a9bfd9;
  background:
    linear-gradient(rgb(245 249 254 / 0.96), rgb(245 249 254 / 0.96)),
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px);
  background-size: auto, 16px 16px, 16px 16px;
}

.report-plan-banner__logo {
  flex-shrink: 0;
  padding: 9px 12px;
  background: var(--okuyi-blue-800);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.report-plan-banner__title {
  display: block;
  margin-bottom: 3px;
  color: var(--okuyi-blue-950);
}

.report-plan-banner__text {
  color: var(--okuyi-grey-700);
  font-size: 0.78rem;
  line-height: 1.45;
}

.report-brand-footer {
  margin-top: 26px;
  padding-top: 13px;
  border-top: 1px solid #aeb9c3;
  color: var(--okuyi-blue-900);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1000px) {
  .home-canvas,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-blueprint {
    min-height: 280px;
  }
}

@media (max-width: 900px) {
  .audience-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .inspection-workflow {
    grid-template-columns: 1fr;
  }

  .inspection-workflow__step {
    border-right: none;
    border-bottom: 1px solid #c6d5e6;
  }

  .inspection-workflow__step:last-child {
    border-bottom: none;
  }
}

@media (max-width: 700px) {
  .main-column {
    padding: 20px;
  }

  .landing-nav {
    margin-bottom: 28px;
  }

  .home-canvas {
    min-height: auto;
    padding: 28px 20px;
  }

  .home-canvas__actions,
  .site-footer__inner,
  .site-footer__inner > div {
    align-items: stretch;
    flex-direction: column;
  }

  .new-project-button {
    width: 100%;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .self-guided-panel__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tutorial-channel-button,
  .self-guided-start-button {
    width: 100%;
  }

  .contact-form-panel {
    padding: 20px;
  }

  .site-footer__inner {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .landing-nav__links {
    gap: 14px;
  }

  .brand h1 {
    font-size: 4.2rem;
  }

  .hero-blueprint__sheet {
    width: 100%;
  }

  .project-toolbar__title-group {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

/* =========================================================
   Production accounts, billing and simplified report header
   ========================================================= */
.landing-nav__right,
.account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-nav__right {
  gap: 24px;
}

.account-link-button,
.account-primary-button,
.auth-switch-button {
  border: none;
  background: transparent;
  color: var(--okuyi-blue-900);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.account-link-button:hover,
.auth-switch-button:hover {
  text-decoration: underline;
}

.account-primary-button {
  padding: 9px 13px;
  border: 1px solid var(--okuyi-blue-900);
  border-radius: 4px;
  background: var(--okuyi-blue-800);
  color: #ffffff;
}

.account-primary-button:hover {
  background: var(--okuyi-blue-950);
}

.account-identity {
  max-width: 240px;
  overflow: hidden;
  color: var(--okuyi-grey-700);
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-modal-card {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.auth-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--okuyi-grey-300);
  border-radius: 4px;
  background: #ffffff;
  color: var(--okuyi-blue-950);
  font-size: 1.35rem;
  cursor: pointer;
}

.auth-modal-card > p:not(.section-kicker):not(.auth-switch-copy) {
  margin-top: 8px;
}

.auth-form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.auth-submit-button {
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
}

.auth-submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.auth-switch-copy {
  margin-top: 18px;
  color: var(--okuyi-grey-700);
  font-size: 0.84rem;
  text-align: center;
}

.auth-switch-button {
  margin-left: 4px;
}

.subscription-note.is-success {
  color: #217146;
  font-weight: 700;
}

.subscription-note.is-error {
  color: #a62626;
  font-weight: 700;
}

.plan-select-button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

/* The report now uses only the project title and report type. */
.report-document-header {
  justify-content: flex-start;
}

@media (max-width: 840px) {
  .landing-nav,
  .landing-nav__right {
    align-items: flex-start;
  }

  .landing-nav__right {
    flex-direction: column;
    gap: 12px;
  }

  .account-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .landing-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-nav__right,
  .account-actions {
    width: 100%;
  }

  .landing-nav__right {
    align-items: stretch;
  }

  .account-actions {
    justify-content: space-between;
  }

  .account-identity {
    max-width: 100%;
  }
}


/* =========================================================
   Local development mode
   ========================================================= */
.development-mode-banner {
  position: sticky;
  top: 0;
  z-index: 2500;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 42px;
  padding: 9px 18px;

  border-bottom: 1px solid #bf861f;
  background:
    repeating-linear-gradient(
      -45deg,
      rgb(255 247 214 / 0.96),
      rgb(255 247 214 / 0.96) 12px,
      rgb(255 241 184 / 0.96) 12px,
      rgb(255 241 184 / 0.96) 24px
    );
  color: #5c430c;

  font-size: 0.82rem;
  text-align: center;
  box-shadow: 0 4px 14px rgb(92 67 12 / 0.12);
}

.development-mode-banner strong {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.development-mode-banner.hidden {
  display: none;
}

.project-plan-badge.is-development {
  border-color: #c7952f;
  background: #fff4cf;
  color: #684d08;
}

body.development-mode-active .account-identity {
  color: #684d08;
}

@media (max-width: 560px) {
  .development-mode-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    text-align: left;
  }
}


/* Account security, password guidance and human verification */
.password-requirements {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  margin: -4px 0 2px;
  padding: 0;
  list-style: none;
  color: var(--okuyi-grey-500);
  font-size: 0.76rem;
}

.password-requirements li {
  position: relative;
  padding-left: 18px;
}

.password-requirements li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: var(--okuyi-grey-500);
  font-weight: 800;
}

.password-requirements li.is-met {
  color: #217146;
}

.password-requirements li.is-met::before {
  content: "✓";
  color: #217146;
}

.human-check {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--okuyi-grey-300);
  background:
    linear-gradient(rgb(245 249 254 / 0.96), rgb(245 249 254 / 0.96)),
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px);
  background-size: auto, 16px 16px, 16px 16px;
}

.human-check > span {
  color: var(--okuyi-blue-950);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-turnstile {
  width: 100%;
  min-height: 65px;
}

.auth-form .form-error {
  padding: 10px 12px;
  border-left: 3px solid #a62626;
  background: #fff4f4;
  color: #a62626;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .password-requirements {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Signed-in workspace home and password recovery
   ========================================================= */
.signed-in-home {
  width: min(100%, 760px);
  margin: 72px auto 0;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid #bfcfe2;
  background:
    linear-gradient(rgb(255 255 255 / 0.97), rgb(255 255 255 / 0.97)),
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px);
  background-size: auto, 20px 20px, 20px 20px;
}

.signed-in-home h1 {
  max-width: 650px;
  margin: 10px 0 12px;
  color: var(--okuyi-blue-950);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.signed-in-home > p:not(.section-kicker) {
  max-width: 620px;
  color: var(--okuyi-grey-700);
  line-height: 1.65;
}

.signed-in-home__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.signed-in-home__plan {
  color: var(--okuyi-grey-700);
  font-size: 0.84rem;
  font-weight: 700;
}

body.is-authenticated .marketing-only,
body.is-authenticated .landing-nav__links,
body.is-authenticated .site-footer {
  display: none;
}

body.is-authenticated .landing-nav {
  margin-bottom: 0;
}

.auth-forgot-button {
  justify-self: center;
  border: none;
  background: transparent;
  color: var(--okuyi-blue-800);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.auth-forgot-button:hover {
  text-decoration: underline;
}

.auth-form .form-error.is-success {
  border-left-color: #217146;
  background: #f1fbf5;
  color: #217146;
}

@media (max-width: 600px) {
  .signed-in-home {
    margin-top: 34px;
    padding: 24px 20px;
  }

  .signed-in-home__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .signed-in-home__actions .new-project-button {
    width: 100%;
  }
}


/* =========================================================
   Responsive account modal correction
   ========================================================= */
@media (max-width: 560px) {
  .modal-overlay {
    align-items: flex-start;
    padding: 8px;
  }

  .auth-modal-card {
    width: 100%;
    max-height: calc(100dvh - 16px);
    padding: 22px 18px 26px;
  }

  .auth-form {
    gap: 12px;
    margin-top: 18px;
  }
}

@media (max-height: 720px) {
  .modal-overlay {
    align-items: flex-start;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .auth-modal-card {
    max-height: calc(100dvh - 16px);
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .auth-form {
    gap: 11px;
    margin-top: 16px;
  }

  .human-check {
    padding: 10px;
  }
}

/* =========================================================
   Team workspace dashboard
   ========================================================= */
.sidebar-workspace-name {
  max-width: 210px;
  overflow: hidden;
  color: var(--okuyi-blue-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar-dashboard-button {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--okuyi-grey-300);
  border-radius: 4px;
  background: var(--okuyi-blue-050);
  color: var(--okuyi-blue-900);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.sidebar-dashboard-button:hover,
.sidebar-dashboard-button:focus-visible {
  border-color: var(--okuyi-blue-700);
  background: var(--okuyi-blue-100);
  outline: none;
}

.workspace-switcher-wrap {
  display: inline-flex;
  align-items: center;
}

.workspace-switcher {
  max-width: 230px;
  min-height: 38px;
  padding: 8px 31px 8px 10px;
  border: 1px solid var(--okuyi-grey-300);
  border-radius: 4px;
  background: #ffffff;
  color: var(--okuyi-blue-950);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.workspace-dashboard {
  width: 100%;
  max-width: 1240px;
  margin: 34px auto 0;
  padding: 0;
  border: none;
  background: transparent;
}

.workspace-dashboard__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #bfcfe2;
  background:
    linear-gradient(rgb(255 255 255 / 0.97), rgb(255 255 255 / 0.97)),
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px);
  background-size: auto, 20px 20px, 20px 20px;
  box-shadow: 0 18px 46px rgb(29 79 145 / 0.08);
}

.workspace-dashboard h1 {
  margin: 9px 0 10px;
  color: var(--okuyi-blue-950);
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.workspace-dashboard__welcome {
  max-width: 690px;
  color: var(--okuyi-grey-700);
  line-height: 1.6;
}

.workspace-dashboard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  color: var(--okuyi-grey-700);
  font-size: 0.8rem;
  font-weight: 700;
}

.workspace-dashboard__header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.workspace-secondary-button,
.workspace-icon-button,
.workspace-text-button {
  border: 1px solid var(--okuyi-grey-300);
  background: #ffffff;
  color: var(--okuyi-blue-900);
  font-weight: 800;
  cursor: pointer;
}

.workspace-secondary-button {
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 4px;
}

.workspace-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  font-size: 1rem;
}

.workspace-text-button {
  padding: 7px 9px;
  border: none;
  background: transparent;
  font-size: 0.78rem;
}

.workspace-secondary-button:hover,
.workspace-icon-button:hover,
.workspace-text-button:hover {
  border-color: var(--okuyi-blue-700);
  background: var(--okuyi-blue-050);
}

.workspace-text-button--danger {
  color: #a62626;
}

.workspace-text-button--danger:hover {
  background: #fff2f2;
  color: #8f1f1f;
}

.workspace-text-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.workspace-dashboard-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--okuyi-blue-700);
  background: #eef5fd;
  color: var(--okuyi-blue-950);
  font-size: 0.84rem;
  line-height: 1.5;
}

.workspace-dashboard-status.is-error {
  border-left-color: #b32121;
  background: #fff2f2;
  color: #992020;
}

.workspace-dashboard-status.is-success {
  border-left-color: #217146;
  background: #effaf3;
  color: #185d39;
}

.workspace-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.workspace-stat-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--okuyi-grey-200);
  background: #ffffff;
  box-shadow: 0 8px 24px rgb(29 79 145 / 0.05);
}

.workspace-stat-card span,
.workspace-stat-card strong,
.workspace-stat-card small {
  display: block;
}

.workspace-stat-card span {
  color: var(--okuyi-grey-700);
  font-size: 0.78rem;
  font-weight: 800;
}

.workspace-stat-card strong {
  margin: 8px 0 5px;
  color: var(--okuyi-blue-950);
  font-size: 2rem;
  line-height: 1;
}

.workspace-stat-card small {
  color: var(--okuyi-grey-500);
  font-size: 0.72rem;
  line-height: 1.4;
}

.workspace-stat-card--alert strong {
  color: #a62626;
}

.workspace-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 16px;
  margin-top: 16px;
}

.workspace-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--okuyi-grey-200);
  background: #ffffff;
  box-shadow: 0 8px 24px rgb(29 79 145 / 0.045);
}

.workspace-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--okuyi-grey-100);
}

.workspace-panel__header h2 {
  margin-top: 4px;
  color: var(--okuyi-blue-950);
  font-size: 1.18rem;
}

.workspace-work-list,
.workspace-member-list,
.workspace-activity-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.workspace-work-item,
.workspace-project-card {
  width: 100%;
  border: 1px solid var(--okuyi-grey-200);
  background: #ffffff;
  color: var(--okuyi-grey-900);
  text-align: left;
  cursor: pointer;
}

.workspace-work-item {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.workspace-work-item:hover,
.workspace-project-card:hover {
  border-color: #97b3d6;
  background: var(--okuyi-blue-050);
}

.workspace-work-item__heading {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.workspace-work-item__heading strong {
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.workspace-work-item__meta {
  color: var(--okuyi-grey-500);
  font-size: 0.74rem;
}

.workspace-priority {
  flex-shrink: 0;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-priority--high {
  background: #ffe6e6;
  color: #a62626;
}

.workspace-priority--medium {
  background: #fff3d7;
  color: #79560a;
}

.workspace-priority--low {
  background: #e9f2fc;
  color: var(--okuyi-blue-900);
}

.workspace-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.workspace-project-card {
  display: grid;
  gap: 11px;
  padding: 16px;
}

.workspace-project-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workspace-project-card__heading strong {
  color: var(--okuyi-blue-950);
}

.workspace-project-card__heading span {
  flex-shrink: 0;
  padding: 3px 7px;
  background: var(--okuyi-blue-100);
  color: var(--okuyi-blue-900);
  font-size: 0.65rem;
  font-weight: 800;
}

.workspace-project-card p {
  color: var(--okuyi-grey-700);
  font-size: 0.8rem;
}

.workspace-project-card > span {
  color: var(--okuyi-grey-500);
  font-size: 0.7rem;
}

.workspace-member-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--okuyi-grey-100);
}

.workspace-member-row:last-child {
  border-bottom: none;
}

.workspace-member-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #9cb6d7;
  border-radius: 50%;
  background: var(--okuyi-blue-050);
  color: var(--okuyi-blue-900);
  font-size: 0.72rem;
  font-weight: 900;
}

.workspace-member-identity {
  min-width: 0;
}

.workspace-member-identity strong,
.workspace-member-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-member-identity strong {
  color: var(--okuyi-blue-950);
  font-size: 0.82rem;
}

.workspace-member-identity span {
  margin-top: 2px;
  color: var(--okuyi-grey-500);
  font-size: 0.68rem;
}

.workspace-member-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.workspace-member-role,
.workspace-member-role-label {
  max-width: 126px;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--okuyi-grey-300);
  background: #ffffff;
  color: var(--okuyi-grey-700);
  font-size: 0.68rem;
  font-weight: 700;
}

.workspace-member-role-label {
  display: inline-flex;
  align-items: center;
  border: none;
  background: var(--okuyi-blue-050);
}

.workspace-member-remove {
  padding: 6px 7px;
  border: none;
  background: transparent;
  color: #a62626;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.workspace-activity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--okuyi-grey-100);
}

.workspace-activity-row:last-child {
  border-bottom: none;
}

.workspace-activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--okuyi-blue-700);
}

.workspace-activity-row p {
  color: var(--okuyi-grey-700);
  font-size: 0.78rem;
  line-height: 1.45;
}

.workspace-activity-row span {
  display: block;
  margin-top: 3px;
  color: var(--okuyi-grey-500);
  font-size: 0.67rem;
}

.workspace-empty-state {
  padding: 20px;
  border: 1px dashed var(--okuyi-grey-300);
  background: #fafcfe;
  color: var(--okuyi-grey-500);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: center;
}

.workspace-form-modal {
  position: relative;
}

.workspace-form-modal select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--okuyi-grey-300);
  border-radius: 4px;
  background: #ffffff;
  color: var(--okuyi-grey-900);
  font: inherit;
}

/* Team controls attached to each recorded observation. */
.pin-issue-card__header {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(320px, auto);
  align-items: center;
  gap: 12px;
}

.pin-issue-card__identity {
  min-width: 0;
}

.pin-issue-card__identity strong,
.pin-issue-card__identity span {
  display: block;
}

.pin-issue-card__identity strong {
  overflow: hidden;
  color: var(--okuyi-blue-950);
  font-size: 0.82rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-issue-card__identity span {
  margin-top: 2px;
  color: var(--okuyi-grey-500);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.pin-issue-card__team-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 6px;
}

.pin-issue-card__select,
.pin-issue-card__date {
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--okuyi-grey-300);
  border-radius: 4px;
  background: #ffffff;
  color: var(--okuyi-grey-700);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
}

.pin-issue-card__select:disabled,
.pin-issue-card__date:disabled {
  background: var(--okuyi-grey-100);
  cursor: not-allowed;
}

@media (max-width: 1080px) {
  .workspace-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .pin-issue-card__header {
    grid-template-columns: auto 1fr;
  }

  .pin-issue-card__team-controls {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .workspace-dashboard {
    margin-top: 20px;
  }

  .workspace-dashboard__header {
    flex-direction: column;
    padding: 24px 20px;
  }

  .workspace-dashboard__header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .workspace-dashboard__header-actions .new-project-button,
  .workspace-secondary-button {
    flex: 1;
    min-width: 145px;
  }

  .workspace-project-grid {
    grid-template-columns: 1fr;
  }

  .workspace-panel {
    padding: 18px;
  }

  .workspace-switcher {
    max-width: 170px;
  }

  .pin-issue-card__team-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .workspace-stat-grid {
    grid-template-columns: 1fr;
  }

  .workspace-dashboard__header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-dashboard__header-actions .new-project-button,
  .workspace-secondary-button,
  .workspace-icon-button {
    width: 100%;
  }

  .workspace-member-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .workspace-member-controls {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .workspace-member-role {
    max-width: none;
    flex: 1;
  }

  .pin-issue-card__header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pin-issue-card__team-controls {
    grid-template-columns: 1fr;
  }
}

/* Permanent project storage controls */
.project-toolbar__title-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.project-rename-button {
  padding: 7px 10px;
  border: 1px solid var(--okuyi-grey-300, #cbd5e1);
  border-radius: 7px;
  background: #ffffff;
  color: var(--okuyi-blue-900, #173f73);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.project-rename-button:hover:not(:disabled) {
  border-color: #9cb6d7;
  background: var(--okuyi-blue-050, #f5f9fe);
}

.project-rename-button:disabled {
  cursor: wait;
  opacity: 0.55;
}


/* =========================================================
   Legal documents, required acceptance and voice-pin deletion
   ========================================================= */

.legal-acceptance-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--okuyi-grey-300, #cbd5e1);
  border-radius: 6px;
  background: #f8fbff;
  color: var(--okuyi-grey-700, #536174);
  font-size: 0.84rem;
  line-height: 1.55;
}

.legal-acceptance-field input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--okuyi-blue-800, #1d4f91);
}

.legal-inline-link,
.site-footer__legal button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--okuyi-blue-800, #1d4f91);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.legal-inline-link:hover,
.site-footer__legal button:hover {
  color: var(--okuyi-blue-950, #102f56);
}

.legal-document-modal {
  z-index: 1300;
}

.legal-acceptance-modal {
  z-index: 1200;
}

.legal-document-card {
  width: min(94vw, 860px);
  max-height: 90vh;
  overflow: hidden;
}

.legal-acceptance-card {
  width: min(94vw, 560px);
}

.legal-document-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-right: 36px;
}

.legal-document-date {
  margin-top: 5px;
  color: var(--okuyi-grey-500, #7a8797);
  font-size: 0.78rem;
}

.legal-document-content {
  max-height: calc(90vh - 200px);
  overflow-y: auto;
  padding: 18px 20px 18px 0;
  border-top: 1px solid var(--okuyi-grey-200, #dce4ed);
  border-bottom: 1px solid var(--okuyi-grey-200, #dce4ed);
  color: var(--okuyi-grey-700, #536174);
  line-height: 1.65;
}

.legal-document-content > p:first-child {
  margin-top: 0;
}

.legal-document-content h3 {
  margin: 24px 0 7px;
  color: var(--okuyi-blue-950, #102f56);
  font-size: 1rem;
}

.legal-document-content p {
  margin: 0 0 12px;
}

.legal-document-actions {
  padding-top: 2px;
}

.legal-acceptance-field--modal {
  margin-top: 20px;
}

.legal-acceptance-actions {
  align-items: center;
}

.legal-cookie-table {
  margin: 12px 0 20px;
  border-top: 1px solid var(--okuyi-grey-300, #cbd5e1);
  border-left: 1px solid var(--okuyi-grey-300, #cbd5e1);
}

.legal-cookie-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(220px, 1.8fr) minmax(100px, 0.7fr);
}

.legal-cookie-row > * {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid var(--okuyi-grey-300, #cbd5e1);
  border-bottom: 1px solid var(--okuyi-grey-300, #cbd5e1);
  overflow-wrap: anywhere;
}

.legal-cookie-row--heading {
  background: var(--okuyi-grey-100, #edf2f7);
  color: var(--okuyi-blue-950, #102f56);
}

.site-footer__inner {
  flex-wrap: wrap;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__legal button {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.pin-issue-card__action-button--danger {
  margin-left: auto;
  border-color: #b42318;
  color: #b42318;
}

.pin-issue-card__action-button--danger:hover:not(:disabled) {
  border-color: #b42318;
  background: #b42318;
  color: #ffffff;
}

.pin-issue-card__action-button--danger:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 620px) {
  .legal-document-header {
    padding-right: 22px;
  }

  .legal-cookie-row {
    grid-template-columns: 1fr;
  }

  .legal-cookie-row--heading {
    display: none;
  }

  .legal-cookie-row > * {
    border-bottom: 0;
  }

  .legal-cookie-row > *:last-child {
    border-bottom: 1px solid var(--okuyi-grey-300, #cbd5e1);
  }

  .pin-issue-card__action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .pin-issue-card__action-button--danger {
    width: 100%;
    margin-left: 0;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Voice-pin deletion sits in the top-right utility area of its observation.
   Desktop users see it only while hovering or working inside that row. */
.picture-workspace .pin-issue-card {
  position: relative;
}

.picture-workspace .pin-issue-card.can-delete-voice-pin {
  padding-top: 66px;
}

.pin-issue-card__voice-pin-delete {
  position: absolute;
  top: 14px;
  right: 0;
  z-index: 3;

  padding: 10px 15px;
  border: 1px solid #b42318;
  border-radius: 8px;
  background: #ffffff;
  color: #b42318;

  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);

  transition:
    opacity 0.16s ease,
    visibility 0.16s ease,
    transform 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}

.pin-issue-card:hover > .pin-issue-card__voice-pin-delete,
.pin-issue-card:focus-within > .pin-issue-card__voice-pin-delete {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.pin-issue-card__voice-pin-delete:hover:not(:disabled),
.pin-issue-card__voice-pin-delete:focus-visible:not(:disabled) {
  background: #b42318;
  color: #ffffff;
}

.pin-issue-card__voice-pin-delete:focus-visible {
  outline: 3px solid rgb(180 35 24 / 20%);
  outline-offset: 2px;
}

.pin-issue-card__voice-pin-delete:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* Touch screens have no reliable hover state, so keep the permitted action
   visible there rather than making deletion inaccessible. */
@media (hover: none), (pointer: coarse) {
  .pin-issue-card > .pin-issue-card__voice-pin-delete:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 620px) {
  .picture-workspace .pin-issue-card.can-delete-voice-pin {
    padding-top: 62px;
  }

  .pin-issue-card__voice-pin-delete {
    top: 12px;
    right: 0;
  }
}


/* Audit-trail action stays visually quiet until the panel is engaged. */
#clearActivityButton:not(.hidden) {
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}

.workspace-panel[aria-labelledby="recentActivityTitle"]:hover
  #clearActivityButton:not(.hidden),
.workspace-panel[aria-labelledby="recentActivityTitle"]:focus-within
  #clearActivityButton:not(.hidden),
#clearActivityButton:focus-visible:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Uploaded images should sit on a clean surface, not graph paper. */
.picture-workspace__media {
  background-color: #ffffff;
  background-image: none;
}

/* Touch screens do not provide a dependable hover state. */
@media (hover: none), (pointer: coarse) {
  #clearActivityButton:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}


/* =========================================================
   Session reauthentication and immutable project locations
   ========================================================= */

.auth-remembered-identity {
  margin: 14px 0 2px;
  padding: 12px 14px;
  border-left: 3px solid var(--okuyi-blue-700, #2865ad);
  background: var(--okuyi-blue-050, #f5f9fe);
  color: var(--okuyi-grey-700, #536174);
  font-size: 0.88rem;
  line-height: 1.5;
}

.auth-remembered-identity strong {
  display: block;
  margin-top: 3px;
  color: var(--okuyi-blue-950, #102f56);
  overflow-wrap: anywhere;
}

#createProjectModal .modal-card {
  width: min(100%, 620px);
}

.project-location-fields {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--okuyi-grey-200, #dce4ed);
  background: var(--okuyi-blue-050, #f5f9fe);
}

.project-location-fields__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.project-location-fields__header strong {
  color: var(--okuyi-blue-950, #102f56);
  font-size: 0.94rem;
}

.project-location-fields__header span {
  color: #9b2c2c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-location-fields__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-location-field {
  display: grid;
  gap: 7px;
}

.project-location-field > span {
  color: var(--okuyi-blue-950, #102f56);
  font-size: 0.8rem;
  font-weight: 800;
}

.project-location-field .project-name-input {
  margin: 0;
}

.project-location-select {
  min-height: 46px;
  padding-right: 38px;
  font: inherit;
  cursor: pointer;
}

.project-location-select:disabled {
  background-color: var(--okuyi-grey-100, #edf2f7);
  color: var(--okuyi-grey-500, #7a8797);
  cursor: wait;
  opacity: 1;
}

.project-location-select option {
  color: var(--okuyi-grey-900, #202b38);
  background: #ffffff;
}

.project-location-lookup-status {
  min-height: 1.25rem;
  margin: -3px 0 0;
  color: var(--okuyi-grey-500, #7a8797) !important;
  font-size: 0.76rem;
  line-height: 1.45;
}

.project-location-lookup-status:empty {
  display: none;
}

.project-location-lookup-status.is-error {
  color: #9b2c2c !important;
  font-weight: 700;
}

.project-location-lock-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #b77a13;
  background: #fff8e8;
  color: #6f531f !important;
  font-size: 0.8rem;
  line-height: 1.55;
}

.project-location-notice-card {
  width: min(100%, 520px);
}

.project-location-notice-card__secondary {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--okuyi-grey-200, #dce4ed);
  background: var(--okuyi-blue-050, #f5f9fe);
  color: var(--okuyi-blue-900, #173f73) !important;
  font-weight: 700;
}

.project-location-display {
  order: 5;
  flex-basis: 100%;
  color: var(--okuyi-grey-700, #536174);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.project-location-display:not(:empty)::before {
  content: "Location: ";
  color: var(--okuyi-grey-500, #7a8797);
  font-weight: 600;
}

.workspace-project-card__location {
  display: block;
  color: var(--okuyi-blue-900, #173f73) !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .project-location-fields__grid {
    grid-template-columns: 1fr;
  }

  .project-location-fields__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}


/* Project rename modal and voice-pin participant attribution */
#renameProjectForm {
  margin-top: 18px;
}

.pin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pin-profile__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #9cb6d7;
  border-radius: 50%;
  background: var(--okuyi-blue-100);
  color: var(--okuyi-blue-900);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pin-profile__details {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pin-profile__details strong {
  color: var(--okuyi-blue-950);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.pin-profile__details span,
.pin-profile__details time {
  color: var(--okuyi-grey-500);
  font-size: 0.72rem;
  line-height: 1.35;
}

.pin-profile--recorder {
  margin: 0 0 14px 42px;
  padding: 10px 12px;
  border-left: 3px solid #8fa8c8;
  background: var(--okuyi-blue-050);
}

.pin-profile--recorder-inline {
  margin: 0;
  padding: 0;
  border-left: 0;
  background: transparent;
}

.pin-profile--recorder-inline .pin-profile__avatar {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
}

.pin-profile__processing-status {
  color: #9a6700 !important;
  font-weight: 700;
}

.pin-profile--unavailable .pin-profile__avatar {
  border-color: var(--okuyi-grey-300);
  background: var(--okuyi-grey-100);
  color: var(--okuyi-grey-700);
}

.pin-issue-card__comment-section {
  display: grid;
  gap: 6px;
}

.pin-issue-card__comment-author:empty {
  display: none;
}

.pin-comment-attribution {
  margin: 2px 0 0;
  color: var(--okuyi-grey-500, #7a8797);
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

.pin-comment-attribution time {
  color: inherit;
  font: inherit;
}

@media (max-width: 600px) {
  .pin-profile--recorder {
    margin-left: 0;
  }
}


/* Recorder identity now sits beside the numbered pin in the issue header. */
@media (max-width: 520px) {
  .pin-issue-card__header {
    align-items: start;
  }

  .pin-profile--recorder-inline {
    min-width: 0;
  }

  .pin-profile--recorder-inline .pin-profile__details strong,
  .pin-profile--recorder-inline .pin-profile__details span,
  .pin-profile--recorder-inline .pin-profile__details time {
    overflow-wrap: anywhere;
  }
}


/* User profile settings */
.profile-readonly-input {
  background: var(--okuyi-grey-100) !important;
  color: var(--okuyi-grey-700) !important;
  cursor: not-allowed;
}

.profile-settings-note {
  margin-top: 12px;
  color: var(--okuyi-grey-500) !important;
  font-size: 0.76rem;
  line-height: 1.5;
}


/* Authenticated plan upgrade */
.workspace-upgrade-button {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--okuyi-blue-800);
  border-radius: 6px;
  background: var(--okuyi-blue-050);
  color: var(--okuyi-blue-900);
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.workspace-upgrade-button:hover {
  background: var(--okuyi-blue-800);
  color: #ffffff;
  transform: translateY(-1px);
}

.upgrade-plan-modal-card {
  position: relative;
  width: min(94vw, 720px);
}

.upgrade-plan-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding: 13px 15px;
  border: 1px solid var(--okuyi-grey-200);
  background: var(--okuyi-blue-050);
}

.upgrade-plan-current span {
  color: var(--okuyi-grey-700);
  font-size: 0.82rem;
  font-weight: 700;
}

.upgrade-plan-current strong {
  color: var(--okuyi-blue-950);
}

.upgrade-plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.upgrade-plan-option {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--okuyi-grey-300);
  background: #ffffff;
}

.upgrade-plan-option__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.upgrade-plan-option__heading h3 {
  margin: 0;
  color: var(--okuyi-blue-950);
}

.upgrade-plan-option__price {
  flex-shrink: 0;
  color: var(--okuyi-blue-800) !important;
  font-size: 0.86rem;
  font-weight: 800;
}

.upgrade-plan-option__details {
  flex: 1;
  margin-top: 12px;
  color: var(--okuyi-grey-700);
  font-size: 0.86rem;
  line-height: 1.55;
}

.upgrade-plan-option__button {
  width: 100%;
  margin-top: 18px;
}

.upgrade-plan-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid var(--okuyi-grey-200);
  background: var(--okuyi-blue-050);
}

@media (max-width: 720px) {
  .upgrade-plan-options {
    grid-template-columns: 1fr;
  }

  .workspace-dashboard__header-actions .workspace-upgrade-button {
    width: 100%;
  }
}


/* =========================================================
   Smooth Stripe checkout / billing hand-off
   ========================================================= */
body.payment-transition-open {
  overflow: hidden;
}

.payment-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;

  display: grid;
  place-items: center;
  padding: 24px;

  background:
    linear-gradient(rgb(245 249 254 / 0.92), rgb(245 249 254 / 0.92)),
    linear-gradient(var(--okuyi-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-major) 1px, transparent 1px),
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px);
  background-size:
    auto,
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
  backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.payment-transition-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.payment-transition-card {
  width: min(100%, 440px);
  padding: 34px 32px 30px;
  border: 1px solid #b9cbe0;
  border-radius: 8px;
  background:
    linear-gradient(rgb(255 255 255 / 0.98), rgb(255 255 255 / 0.98)),
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px);
  background-size: auto, 20px 20px, 20px 20px;
  box-shadow: 0 28px 80px rgb(16 47 86 / 0.20);
  text-align: center;

  transform: translateY(10px) scale(0.985);
  transition: transform 0.24s ease;
}

.payment-transition-overlay.is-visible .payment-transition-card {
  transform: translateY(0) scale(1);
}

.payment-transition-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  color: var(--okuyi-blue-950);
  font-size: 1rem;
  font-weight: 800;
}

.payment-transition-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--okuyi-blue-800);
  background:
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px),
    #ffffff;
  background-size: 6px 6px;
  color: var(--okuyi-blue-800);
  font-size: 0.86rem;
}

.payment-transition-spinner {
  position: relative;
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border: 3px solid rgb(29 79 145 / 0.14);
  border-top-color: var(--okuyi-blue-800);
  border-radius: 50%;
  animation: okuyi-payment-spin 0.85s linear infinite;
}

.payment-transition-spinner span {
  position: absolute;
  inset: 12px;
  border: 1px solid rgb(29 79 145 / 0.22);
  border-radius: 50%;
  background: var(--okuyi-blue-050);
}

.payment-transition-card h2 {
  margin: 0 0 10px;
  color: var(--okuyi-blue-950);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  letter-spacing: -0.025em;
}

.payment-transition-card p {
  max-width: 340px;
  margin: 0 auto;
  color: var(--okuyi-grey-700);
  font-size: 0.94rem;
  line-height: 1.6;
}

.payment-transition-progress {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 22px 0 18px;
}

.payment-transition-progress span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--okuyi-blue-700);
  animation: okuyi-payment-dot 1.2s ease-in-out infinite;
}

.payment-transition-progress span:nth-child(2) {
  animation-delay: 0.15s;
}

.payment-transition-progress span:nth-child(3) {
  animation-delay: 0.3s;
}

.payment-transition-card small {
  display: block;
  color: var(--okuyi-grey-500);
  font-size: 0.74rem;
  line-height: 1.5;
}

@keyframes okuyi-payment-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes okuyi-payment-dot {
  0%,
  60%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@media (max-width: 520px) {
  .payment-transition-overlay {
    padding: 16px;
  }

  .payment-transition-card {
    padding: 30px 22px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .payment-transition-overlay,
  .payment-transition-card {
    transition: none;
  }

  .payment-transition-spinner,
  .payment-transition-progress span {
    animation-duration: 2s;
  }
}

/* =========================================================
   Report preparation progress before the browser print dialog
   ========================================================= */
body.report-export-open {
  overflow: hidden;
}

.report-export-overlay {
  position: fixed;
  inset: 0;
  z-index: 3100;

  display: grid;
  place-items: center;
  padding: 24px;

  background:
    linear-gradient(rgb(245 249 254 / 0.94), rgb(245 249 254 / 0.94)),
    linear-gradient(var(--okuyi-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-major) 1px, transparent 1px),
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px);
  background-size:
    auto,
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
  backdrop-filter: blur(8px);

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.report-export-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.report-export-card {
  width: min(100%, 470px);
  padding: 34px 32px 30px;
  border: 1px solid #b9cbe0;
  border-radius: 8px;
  background:
    linear-gradient(rgb(255 255 255 / 0.98), rgb(255 255 255 / 0.98)),
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px);
  background-size: auto, 20px 20px, 20px 20px;
  box-shadow: 0 28px 80px rgb(16 47 86 / 0.20);
  text-align: center;

  transform: translateY(10px) scale(0.985);
  transition: transform 0.24s ease;
}

.report-export-overlay.is-visible .report-export-card {
  transform: translateY(0) scale(1);
}

.report-export-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--okuyi-blue-950);
  font-size: 1rem;
  font-weight: 800;
}

.report-export-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--okuyi-blue-800);
  background:
    linear-gradient(var(--okuyi-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--okuyi-grid-fine) 1px, transparent 1px),
    #ffffff;
  background-size: 6px 6px;
  color: var(--okuyi-blue-800);
  font-size: 0.86rem;
}

.report-export-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border: 1px solid #b8cbe2;
  border-radius: 50%;
  background: var(--okuyi-blue-050);
  color: var(--okuyi-blue-800);
}

.report-export-card h2 {
  margin: 0 0 10px;
  color: var(--okuyi-blue-950);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  letter-spacing: -0.025em;
}

.report-export-card > p {
  max-width: 370px;
  margin: 0 auto;
  color: var(--okuyi-grey-700);
  font-size: 0.94rem;
  line-height: 1.6;
}

.report-export-progress {
  height: 10px;
  margin: 24px 0 9px;
  overflow: hidden;
  border: 1px solid #c7d5e5;
  border-radius: 999px;
  background: #edf3fa;
}

.report-export-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      var(--okuyi-blue-700),
      var(--okuyi-blue-800)
    );
  transition: width 0.35s ease;
}

.report-export-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: var(--okuyi-grey-700);
  font-size: 0.78rem;
  text-align: left;
}

.report-export-progress-meta strong {
  flex-shrink: 0;
  color: var(--okuyi-blue-900);
  font-variant-numeric: tabular-nums;
}

.report-export-card small {
  display: block;
  color: var(--okuyi-grey-500);
  font-size: 0.74rem;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .report-export-overlay {
    padding: 16px;
  }

  .report-export-card {
    padding: 30px 22px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .report-export-overlay,
  .report-export-card,
  .report-export-progress > span {
    transition: none;
  }
}


/* =========================================================
   Mobile sidebar toggle containment correction
   ========================================================= */
@media (max-width: 700px) {
  /*
    When the sidebar is collapsed its content is removed from layout. Keep a
    dedicated header-height row so the absolutely positioned control cannot
    be clipped by .notes-column's overflow boundary.
  */
  .notes-column,
  .page-layout.sidebar-collapsed .notes-column {
    min-height: 68px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .sidebar-toggle,
  .page-layout.sidebar-collapsed .sidebar-toggle {
    top: 16px;
    right: max(16px, env(safe-area-inset-right));
    z-index: 30;
    width: 36px;
    height: 36px;
    box-shadow: 0 4px 12px rgb(16 47 86 / 0.12);
  }

  /* Leave a clear lane for the control while the sidebar is expanded. */
  .sidebar-content {
    padding-right: 48px;
  }

  .page-layout.sidebar-collapsed .sidebar-content {
    padding-right: 0;
  }
}

@media (max-width: 360px) {
  .sidebar-toggle,
  .page-layout.sidebar-collapsed .sidebar-toggle {
    right: max(12px, env(safe-area-inset-right));
  }
}

/* =========================================================
   Footer legal stack and social links
   ========================================================= */
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: end;
  gap: 32px;
}

.site-footer__brand {
  justify-self: start;
}

.site-footer__legal-group {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.site-footer__copyright {
  color: var(--okuyi-grey-500);
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: center;
}

.site-footer__social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 9px;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--okuyi-grey-300);
  border-radius: 50%;
  background: #ffffff;
  color: var(--okuyi-blue-900);
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  border-color: var(--okuyi-blue-800);
  background: var(--okuyi-blue-800);
  color: #ffffff;
  transform: translateY(-2px);
}

.site-footer__social a:focus-visible {
  outline: 3px solid rgb(40 101 173 / 18%);
  outline-offset: 2px;
}

.site-footer__social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__social a[aria-label*="Facebook"] svg path {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .site-footer__brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-footer__legal-group {
    grid-column: 1;
    grid-row: 2;
    justify-items: start;
  }

  .site-footer__legal {
    justify-content: flex-start;
  }

  .site-footer__copyright {
    text-align: left;
  }

  .site-footer__social {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
  }
}

@media (max-width: 560px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer__brand,
  .site-footer__legal-group,
  .site-footer__social {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .site-footer__social {
    justify-content: flex-start;
  }
}


/* =========================================================
   Mobile project image workspace
   Give field photos substantially more room while keeping the
   microphone comfortable to tap without dominating the toolbar.
   ========================================================= */
@media (max-width: 700px) {
  /* The mobile page already has 20px padding. Pull only the active project
     canvas into that space so the dashboard and marketing pages are unchanged. */
  #projectCanvas:not(.hidden) {
    width: calc(100% + 24px);
    margin-inline: -12px;
  }

  #projectCanvas:not(.hidden) .project-actions {
    gap: 10px;
    padding: 10px 12px 12px;
  }

  #projectCanvas:not(.hidden) .project-media-area {
    gap: 10px;
    min-height: 0;
    padding: 10px 0 18px;
  }

  #projectCanvas:not(.hidden) .recording-status {
    padding-inline: 12px;
    font-size: 0.82rem;
  }

  #projectCanvas:not(.hidden) .picture-workspace {
    width: 100%;
    max-width: none;
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  #projectCanvas:not(.hidden) .picture-workspace__media {
    width: 100%;
    min-height: 0;
    padding: 6px;
  }

  #projectCanvas:not(.hidden) .picture-frame {
    display: block;
    width: 100%;
    max-width: none;
  }

  #projectCanvas:not(.hidden) .picture-preview {
    width: 100%;
    max-width: none;
    max-height: 72dvh;
    border-radius: 8px;
    object-fit: contain;
  }

  #projectCanvas:not(.hidden) .voice-pin-button {
    width: 46px;
    height: 46px;
    border-width: 3px;
    box-shadow:
      0 0 0 1px rgb(214 40 40 / 30%),
      0 5px 13px rgb(214 40 40 / 22%);
  }

  #projectCanvas:not(.hidden) .voice-pin-button svg {
    width: 20px;
    height: 20px;
  }

  #projectCanvas:not(.hidden) .voice-pin-button.is-recording::before {
    width: 14px;
    height: 14px;
    border-radius: 3px;
  }
}

@media (max-width: 420px) {
  #projectCanvas:not(.hidden) {
    width: calc(100% + 32px);
    margin-inline: -16px;
  }

  #projectCanvas:not(.hidden) .project-toolbar {
    padding-inline: 14px;
  }

  #projectCanvas:not(.hidden) .picture-workspace__media {
    padding: 4px;
  }

  #projectCanvas:not(.hidden) .picture-workspace .pin-issues-section {
    padding-inline: 14px;
  }
}


/* Free-team collaboration and per-user voice-pin colours */
.invite-member-capacity-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--okuyi-blue-700, #2865ad);
  background: var(--okuyi-blue-050, #f5f9fe);
  color: var(--okuyi-blue-950, #102f56) !important;
  font-size: 0.86rem;
  font-weight: 700;
}

.report-pin-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 9px;
  color: #536174;
  font-size: 0.74rem;
}

.report-pin-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.report-pin-legend__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: var(--pin-colour, #b32121);
  box-shadow: 0 0 0 1px rgb(16 47 86 / 25%);
}

.workspace-secondary-button:disabled,
.workspace-text-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}


/* Secure workspace invitation states */
.workspace-member-row--pending {
  border-style: dashed;
  background: #f8fafc;
}

.workspace-member-avatar--pending {
  background: #e7eef8;
  color: #1d4f91;
  font-size: 0.95rem;
}

.workspace-member-row--pending .workspace-member-identity span {
  color: #66758a;
}

#authEmailInput[readonly] {
  background: #f3f6fa;
  color: #33465e;
}


/* =========================================================
   Optional professional cost advice
   ========================================================= */
.cost-advice-panel {
  margin: 6px 0 18px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fbff;
}

.cost-advice-panel[open] {
  border-color: #9cb6d7;
  box-shadow: 0 8px 22px rgb(29 79 145 / 8%);
}

.cost-advice-panel__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
}

.cost-advice-panel__summary::-webkit-details-marker {
  display: none;
}

.cost-advice-panel__summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--okuyi-blue-800);
  font-size: 1.25rem;
  font-weight: 800;
}

.cost-advice-panel[open] .cost-advice-panel__summary::after {
  content: "−";
}

.cost-advice-panel__summary-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.cost-advice-panel__summary-text strong {
  color: var(--okuyi-blue-950);
  font-size: 0.9rem;
}

.cost-advice-panel__summary-text small {
  color: var(--okuyi-grey-500);
  font-size: 0.74rem;
}

.cost-advice-panel__summary-value {
  margin-left: auto;
  color: var(--okuyi-grey-700);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
}

.cost-advice-panel__body {
  padding: 0 15px 16px;
  border-top: 1px solid var(--okuyi-grey-200);
}

.cost-advice-panel__guidance,
.cost-advice-quote-message,
.cost-advice-disclaimer,
.cost-advice-panel__audit {
  margin-top: 14px;
  color: var(--okuyi-grey-700);
  font-size: 0.78rem;
  line-height: 1.55;
}

.cost-advice-disclaimer {
  padding: 10px 12px;
  border-left: 3px solid #c48b20;
  background: #fffaf0;
  color: #67511f;
}

.cost-advice-panel__audit {
  color: var(--okuyi-grey-500);
}

.cost-advice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.cost-advice-grid--amounts {
  grid-template-columns: minmax(110px, 0.7fr) repeat(2, minmax(120px, 1fr)) minmax(150px, 1fr);
}

.cost-advice-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.cost-advice-field--wide {
  grid-column: 1 / -1;
}

.cost-advice-field__label {
  color: #34465a;
  font-size: 0.76rem;
  font-weight: 800;
}

.cost-advice-field__control {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #bfcbd8;
  border-radius: 8px;
  background: #ffffff;
  color: var(--okuyi-grey-900);
  font: inherit;
  font-size: 0.84rem;
  outline: none;
}

.cost-advice-field__control:focus {
  border-color: var(--okuyi-blue-700);
  box-shadow: 0 0 0 3px rgb(40 101 173 / 13%);
}

.cost-advice-field__control:disabled {
  background: #edf2f7;
  color: #687789;
  cursor: not-allowed;
}

.cost-advice-field__textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.45;
}

.cost-advice-quote-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  color: #34465a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.cost-advice-quote-check input {
  margin-top: 2px;
}

.cost-advice-quote-check.is-required-by-mode {
  color: var(--okuyi-blue-900);
}

.cost-advice-panel__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.cost-advice-save-button {
  padding: 9px 14px;
  border: 1px solid var(--okuyi-blue-900);
  border-radius: 8px;
  background: var(--okuyi-blue-800);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.cost-advice-save-button:hover:not(:disabled) {
  background: var(--okuyi-blue-900);
}

.cost-advice-save-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.cost-advice-panel__status {
  margin-top: 10px;
  color: #2e6b42;
  font-size: 0.8rem;
  font-weight: 700;
}

.cost-advice-panel__status.is-error {
  color: #b3261e;
}

.report-modal-header__main {
  min-width: 0;
}

.report-cost-summary-control {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 520px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #f8fbff;
  cursor: pointer;
}

.report-cost-summary-control.is-readonly {
  cursor: default;
  opacity: 0.75;
}

.report-cost-summary-control input {
  margin-top: 3px;
}

.report-cost-summary-control span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.report-cost-summary-control strong {
  color: var(--okuyi-blue-950);
  font-size: 0.82rem;
}

.report-cost-summary-control small {
  color: var(--okuyi-grey-700);
  font-size: 0.73rem;
  line-height: 1.4;
}

.report-cost-summary-status {
  margin-top: 7px;
  color: #2e6b42;
  font-size: 0.76rem;
  font-weight: 700;
}

.report-cost-summary-status.is-error {
  color: #b3261e;
}

.report-cost-summary {
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid #9fb5d0;
  background: #f6f9fd;
}

.report-cost-summary__heading {
  margin-bottom: 14px;
}

.report-cost-summary__title {
  margin-top: 4px;
  color: #203f63;
  font-size: 1.12rem;
}

.report-cost-summary__totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.report-cost-summary__total {
  padding: 12px;
  border: 1px solid #c5d3e3;
  background: #ffffff;
}

.report-cost-summary__total span,
.report-cost-summary__total strong {
  display: block;
}

.report-cost-summary__total span {
  color: #66788a;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.report-cost-summary__total strong {
  margin-top: 5px;
  color: #203f63;
  font-size: 1rem;
}

.report-cost-summary__total--quote {
  border-left: 4px solid #c48b20;
}

.report-cost-summary__register {
  border-top: 1px solid #c5d3e3;
}

.report-cost-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 2px;
  border-bottom: 1px solid #dce4ed;
  color: #3d4b59;
  font-size: 0.8rem;
}

.report-cost-summary__row span {
  text-align: right;
}

.report-cost-summary__empty {
  color: #66788a;
  font-size: 0.84rem;
}

.report-cost-summary__disclaimer {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 4px solid #c48b20;
  background: #fffaf0;
  color: #67511f;
  font-size: 0.76rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .cost-advice-grid,
  .cost-advice-grid--amounts {
    grid-template-columns: 1fr 1fr;
  }

  .cost-advice-panel__summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .cost-advice-panel__summary-value {
    width: calc(100% - 28px);
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .cost-advice-grid,
  .cost-advice-grid--amounts {
    grid-template-columns: 1fr;
  }

  .report-cost-summary__row {
    flex-direction: column;
    gap: 3px;
  }

  .report-cost-summary__row span {
    text-align: left;
  }
}

/* =========================================================
   SaaS readiness upgrade: connectivity, proof, onboarding
   and account data controls
   ========================================================= */
.connectivity-banner {
  position: sticky;
  top: 0;
  z-index: 4000;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #d6a84b;
  background: #fff7df;
  color: #5f4612;
  font-size: 0.86rem;
}
.product-proof-section,
.trust-faq-section { margin-top: 44px; }
.product-proof-grid,
.trust-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.product-proof-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--okuyi-grey-200, #d9e0e7);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(16 47 86 / 7%);
}
.product-proof-card__step {
  color: var(--okuyi-blue-700, #2865ad);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.product-proof-card__visual {
  position: relative;
  height: 150px;
  margin: 16px 0 18px;
  overflow: hidden;
  border: 1px solid #b9cbe0;
  background: #f5f9fe;
}
.product-proof-card__visual--image {
  background:
    linear-gradient(150deg, transparent 48%, #a8bdd4 49% 52%, transparent 53%),
    linear-gradient(35deg, transparent 47%, #c5d4e4 48% 51%, transparent 52%),
    #edf4fb;
}
.product-proof-card__pin {
  position: absolute;
  top: 34%;
  left: 40%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #b3261e;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgb(0 0 0 / 20%);
}
.product-proof-card__pin--two { top: 57%; left: 68%; background: #1d4f91; }
.product-proof-card__visual--voice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.product-proof-card__visual--voice span { width: 8px; border-radius: 999px; background: #1d4f91; }
.product-proof-card__visual--voice span:nth-child(1),
.product-proof-card__visual--voice span:nth-child(5) { height: 32px; }
.product-proof-card__visual--voice span:nth-child(2),
.product-proof-card__visual--voice span:nth-child(4) { height: 70px; }
.product-proof-card__visual--voice span:nth-child(3) { height: 108px; }
.product-proof-card__visual--report { padding: 20px; background: #fff; }
.product-proof-card__visual--report strong { display: block; margin-bottom: 22px; color: #1d4f91; font-size: 0.76rem; }
.product-proof-card__visual--report i { display: block; height: 9px; margin-top: 12px; background: #dce5ef; }
.product-proof-card__visual--report i:nth-child(3) { width: 72%; }
.product-proof-card__visual--report i:nth-child(4) { width: 86%; }
.product-proof-card h3 { margin-bottom: 8px; color: var(--okuyi-blue-950, #102f56); }
.product-proof-card p { color: var(--okuyi-grey-700, #536174); line-height: 1.6; }
.product-proof-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.product-proof-actions a { text-decoration: none; }
.product-proof-note { margin-top: 18px; padding: 12px 14px; border-left: 3px solid #9cb6d7; background: #f5f9fe; color: #536174; line-height: 1.55; }
.trust-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust-summary-grid article { display: flex; flex-direction: column; gap: 7px; padding: 18px; border: 1px solid #cbd7e3; background: #f8fbff; }
.trust-summary-grid strong { color: #102f56; }
.trust-summary-grid span { color: #536174; line-height: 1.55; }
.faq-list { display: grid; gap: 10px; margin-top: 24px; }
.faq-list details { border: 1px solid #d4dde7; border-radius: 10px; background: #fff; }
.faq-list summary { padding: 16px 18px; color: #102f56; font-weight: 800; cursor: pointer; }
.faq-list details p { padding: 0 18px 18px; color: #536174; line-height: 1.6; }
.onboarding-panel {
  margin: 22px 0;
  padding: 22px;
  border: 1px solid #b9cbe0;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, #f4f8fd);
  box-shadow: 0 12px 30px rgb(16 47 86 / 8%);
}
.onboarding-panel__header { display: grid; grid-template-columns: 1fr minmax(180px, 280px); align-items: center; gap: 24px; }
.onboarding-panel__header h2 { margin-top: 3px; color: #102f56; font-size: 1.25rem; }
.onboarding-panel__header p { margin-top: 6px; color: #66758a; }
.onboarding-progress { height: 10px; overflow: hidden; border-radius: 999px; background: #dce7f2; }
.onboarding-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: #1d4f91; transition: width 0.25s ease; }
.onboarding-checklist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 20px; list-style: none; }
.onboarding-checklist li { display: flex; gap: 10px; padding: 12px; border: 1px solid #d7e1eb; border-radius: 10px; background: #fff; }
.onboarding-checklist li > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: #e8eff7; color: #355879; font-size: 0.74rem; font-weight: 900; }
.onboarding-checklist li strong,
.onboarding-checklist li small { display: block; }
.onboarding-checklist li strong { color: #203f63; font-size: 0.82rem; }
.onboarding-checklist li small { margin-top: 4px; color: #6b7887; line-height: 1.4; }
.onboarding-checklist li.is-complete { border-color: #9bc5aa; background: #f4fbf6; }
.onboarding-checklist li.is-complete > span { background: #2e6b42; color: #fff; font-size: 0; }
.onboarding-checklist li.is-complete > span::before { content: "✓"; font-size: 0.78rem; }
.onboarding-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.onboarding-panel__actions a { display: inline-flex; text-decoration: none; }
.profile-data-tools { margin-top: 22px; padding-top: 20px; border-top: 1px solid #dde4eb; }
.profile-data-tools h3 { color: #203f63; font-size: 1rem; }
.profile-data-tools p { margin-top: 7px; font-size: 0.85rem; }
.profile-data-tools__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.destructive-account-card { position: relative; }
@media (max-width: 1000px) {
  .product-proof-grid { grid-template-columns: 1fr; }
  .onboarding-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .trust-summary-grid { grid-template-columns: 1fr; }
  .onboarding-panel__header { grid-template-columns: 1fr; }
  .onboarding-checklist { grid-template-columns: 1fr; }
  .connectivity-banner { align-items: center; flex-direction: column; text-align: center; }
}

/* =========================================================
   AI scope assistant and practice rate library
   ========================================================= */
.workspace-settings-modal-card {
  width: min(96vw, 920px);
  max-height: 92vh;
  overflow-y: auto;
}

.workspace-rate-library {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--okuyi-grey-200, #dce4ed);
}

.workspace-rate-library__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.workspace-rate-library__header h3 {
  margin: 6px 0 7px;
  color: var(--okuyi-blue-950, #102f56);
  font-size: 1.15rem;
}

.workspace-rate-library__header p {
  max-width: 630px;
  color: var(--okuyi-grey-700, #536174);
  font-size: 0.88rem;
  line-height: 1.55;
}

.cost-rate-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.cost-rate-list__empty {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  border: 1px dashed #b8c7d8;
  background: #f7faff;
}

.cost-rate-list__empty strong {
  color: var(--okuyi-blue-950, #102f56);
}

.cost-rate-list__empty span {
  color: var(--okuyi-grey-700, #536174);
  font-size: 0.84rem;
  line-height: 1.5;
}

.cost-rate-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 15px;
  border: 1px solid #cad6e3;
  background: #ffffff;
}

.cost-rate-card.is-inactive {
  opacity: 0.62;
  background: #f4f5f7;
}

.cost-rate-card__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.cost-rate-card__main strong {
  color: var(--okuyi-blue-950, #102f56);
}

.cost-rate-card__main span,
.cost-rate-card__main small {
  color: var(--okuyi-grey-700, #536174);
  line-height: 1.45;
}

.cost-rate-card__main span {
  font-size: 0.82rem;
}

.cost-rate-card__main small {
  font-size: 0.75rem;
}

.cost-rate-card__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cost-rate-form {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #aebfd2;
  background: #f7faff;
}

.cost-rate-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cost-rate-form__wide {
  grid-column: 1 / -1;
}

.cost-rate-form select,
.cost-rate-form input,
.cost-rate-form textarea {
  width: 100%;
}

.cost-rate-active-check,
.ai-scope-review-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 15px;
  color: var(--okuyi-grey-700, #536174);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cost-rate-active-check input,
.ai-scope-review-check input {
  flex-shrink: 0;
  margin-top: 2px;
}

.cost-rate-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.workspace-rate-library__notice {
  margin-top: 15px;
  padding: 12px 14px;
  border-left: 4px solid #6c86a5;
  background: #f1f5f9;
  color: #536174;
  font-size: 0.78rem;
  line-height: 1.55;
}

.ai-scope-assistant {
  margin: 17px 0;
  padding: 17px;
  border: 1px solid #aebfd2;
  background:
    linear-gradient(rgb(248 251 255 / 0.96), rgb(248 251 255 / 0.96)),
    linear-gradient(rgb(49 101 169 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(49 101 169 / 0.08) 1px, transparent 1px);
  background-size: auto, 18px 18px, 18px 18px;
}

.ai-scope-assistant__header h4,
.ai-scope-result__header h4 {
  margin: 4px 0 6px;
  color: var(--okuyi-blue-950, #102f56);
  font-size: 1rem;
}

.ai-scope-assistant__header p {
  color: var(--okuyi-grey-700, #536174);
  font-size: 0.82rem;
  line-height: 1.55;
}

.ai-scope-assistant__kicker {
  color: var(--okuyi-blue-700, #2865ad);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ai-scope-notes-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 15px;
}

.ai-scope-notes-field > span {
  color: #34485e;
  font-size: 0.78rem;
  font-weight: 800;
}

.ai-scope-notes-field textarea {
  width: 100%;
  min-height: 82px;
  padding: 10px 12px;
  border: 1px solid #b9c7d6;
  background: #ffffff;
  color: #202b38;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.ai-scope-notes-field textarea:focus {
  border-color: var(--okuyi-blue-700, #2865ad);
  box-shadow: 0 0 0 3px rgb(40 101 173 / 0.12);
  outline: none;
}

.ai-scope-assistant__actions,
.ai-scope-apply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ai-scope-generate-button,
.ai-scope-apply-button,
.ai-scope-quote-button {
  padding: 10px 14px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.ai-scope-generate-button,
.ai-scope-apply-button {
  border: 1px solid var(--okuyi-blue-900, #173f73);
  background: var(--okuyi-blue-800, #1d4f91);
  color: #ffffff;
}

.ai-scope-quote-button {
  border: 1px solid #697b8e;
  background: #ffffff;
  color: #2f4257;
}

.ai-scope-generate-button:disabled,
.ai-scope-apply-button:disabled,
.ai-scope-quote-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.ai-scope-assistant__status,
.ai-scope-assistant__hint,
.ai-scope-assistant__unavailable {
  margin-top: 12px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.ai-scope-assistant__status {
  color: #34485e;
  font-weight: 700;
}

.ai-scope-assistant__status.is-error {
  color: #a52222;
}

.ai-scope-assistant__status.is-success {
  color: #23733b;
}

.ai-scope-assistant__hint,
.ai-scope-assistant__unavailable {
  padding: 10px 12px;
  border-left: 3px solid #7188a4;
  background: #eef3f8;
  color: #536174;
}

.ai-scope-result {
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid #c8d4e0;
}

.ai-scope-result__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.ai-scope-result__header span {
  color: #7a8797;
  font-size: 0.7rem;
}

.ai-scope-result__summary {
  margin-top: 7px;
  color: #34485e;
  font-size: 0.86rem;
  line-height: 1.55;
}

.ai-scope-result__section {
  margin-top: 15px;
}

.ai-scope-result__section h5 {
  margin-bottom: 7px;
  color: #203f63;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-scope-result__section ol,
.ai-scope-result__section ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.ai-scope-result__section li {
  color: #34485e;
  font-size: 0.8rem;
  line-height: 1.45;
}

.ai-scope-result__section li strong,
.ai-scope-result__section li span,
.ai-scope-result__section li p,
.ai-scope-result__section li small {
  display: block;
}

.ai-scope-result__section li span,
.ai-scope-result__section li p,
.ai-scope-result__section li small {
  margin-top: 3px;
}

.ai-scope-result__section li span,
.ai-scope-result__section li p {
  color: #5a6979;
}

.ai-scope-result__rate-match {
  color: #23733b;
  font-weight: 700;
}

.ai-scope-result__rate-missing {
  color: #9b5a00;
  font-weight: 700;
}

.ai-scope-result__section.is-warning {
  padding: 11px 12px;
  border: 1px solid #e1c98d;
  background: #fffaf0;
}

.ai-scope-result__empty {
  color: #7a8797;
  font-size: 0.78rem;
  font-style: italic;
}

.ai-cost-proposal {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #92aac5;
  background: #ffffff;
}

.ai-cost-proposal > span {
  color: #617286;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ai-cost-proposal > strong {
  color: var(--okuyi-blue-950, #102f56);
  font-size: 1.12rem;
}

.ai-cost-proposal > p {
  color: #5a6979;
  font-size: 0.78rem;
  line-height: 1.45;
}

.ai-scope-assistant__disclaimer {
  margin-top: 13px;
  color: #687687;
  font-size: 0.72rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .workspace-rate-library__header,
  .cost-rate-card,
  .ai-scope-result__header {
    align-items: stretch;
    flex-direction: column;
  }

  .cost-rate-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cost-rate-form__wide {
    grid-column: 1 / -1;
  }

  .cost-rate-card__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .cost-rate-form__grid {
    grid-template-columns: 1fr;
  }

  .cost-rate-form__wide {
    grid-column: auto;
  }

  .cost-rate-form__actions,
  .ai-scope-assistant__actions,
  .ai-scope-apply-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cost-rate-form__actions button,
  .ai-scope-assistant__actions button,
  .ai-scope-apply-actions button {
    width: 100%;
  }
}


/* =========================================================
   Professional report review, approval and print workflow
   ========================================================= */
.report-review-modal-card {
  width: min(96vw, 1120px);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.report-review-modal-card .report-modal-header { margin-bottom: 14px; }
.report-modal-intro { max-width: 760px; margin-top: 7px; color: var(--okuyi-grey-700); }
.report-review-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.report-review-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--okuyi-grey-200);
  background: #f8fafc;
  color: var(--okuyi-grey-500);
  font-size: .8rem;
}
.report-review-steps li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
}
.report-review-steps li.is-active { border-color: #8eb0d8; background: var(--okuyi-blue-050); color: var(--okuyi-blue-900); }
.report-review-steps li.is-complete span { background: var(--okuyi-blue-800); color: #fff; border-color: var(--okuyi-blue-800); }
.report-review-toolbar { display: grid; gap: 10px; margin-bottom: 12px; }
.report-review-warnings {
  padding: 12px 14px;
  border-left: 4px solid #c48b20;
  background: #fffaf0;
  color: #67511f;
  font-size: .84rem;
}
.report-review-warnings ul { margin: 7px 0 0 18px; }
.report-review-content { flex: 1; max-height: none; min-height: 260px; padding: 2px 10px 12px 2px; }
.report-review-section {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #cbd7e4;
  background: #fff;
}
.report-review-section__heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.report-review-section__heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  background: var(--okuyi-blue-900);
  color: #fff;
  font-weight: 800;
  font-size: .78rem;
}
.report-review-section__heading h3 { color: var(--okuyi-blue-950); font-size: 1rem; }
.report-review-section__heading p { margin-top: 3px; font-size: .78rem; color: var(--okuyi-grey-700); }
.report-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-review-grid--cost { margin-top: 12px; }
.report-review-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.report-review-field__label { color: #38536f; font-size: .76rem; font-weight: 800; }
.report-review-field small { color: #708092; font-size: .72rem; line-height: 1.4; }
.report-review-input,
.report-review-select,
.report-review-textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #b9c7d5;
  border-radius: 5px;
  background: #fff;
  color: #243443;
  font: inherit;
  font-size: .86rem;
}
.report-review-textarea { resize: vertical; line-height: 1.5; }
.report-review-input:focus,
.report-review-select:focus,
.report-review-textarea:focus { outline: 3px solid rgb(29 79 145 / 14%); border-color: var(--okuyi-blue-700); }
.report-review-input:disabled,
.report-review-select:disabled,
.report-review-textarea:disabled { background: #f1f4f7; color: #5c6976; opacity: 1; cursor: not-allowed; }
.report-review-image-section .report-figure { max-width: 720px; margin-bottom: 14px; }
.report-review-observation { margin-top: 16px; padding: 15px; border: 1px solid #b7c6d5; background: #fbfdff; }
.report-review-observation > header { display: flex; justify-content: space-between; gap: 12px; margin: -15px -15px 14px; padding: 11px 13px; background: #203f63; color: #fff; }
.report-review-observation > header strong,
.report-review-observation > header span { display: block; }
.report-review-observation > header span,
.report-review-observation > header small { color: #e7edf2; font-size: .72rem; }
.report-review-observation > .report-review-field { margin-top: 12px; }
.report-review-cost { margin-top: 14px; border: 1px solid #d7c89f; background: #fffdf7; }
.report-review-cost summary { padding: 10px 12px; cursor: pointer; color: #6b531b; font-weight: 800; }
.report-review-cost > .report-review-grid { padding: 0 12px 12px; }
.report-review-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #dce4ed; color: #66758a; font-size: .72rem; }
.report-review-word-count { align-self: flex-end; }
.report-review-word-count.is-error { color: #b3261e; font-weight: 800; }
.report-review-status { margin: 0 0 10px; padding: 10px 12px; border: 1px solid #b9c7d5; background: #f5f9fe; color: #38536f; font-size: .82rem; }
.report-review-status.is-error { border-color: #dfb0ac; background: #fff5f4; color: #9f2a22; }
.report-review-status.is-success { border-color: #acd0b5; background: #f4fbf6; color: #28643a; }
.report-review-actions { align-items: center; flex-wrap: wrap; margin-top: 0; }
.report-approval-control { display: inline-flex; align-items: flex-start; gap: 8px; flex: 1 1 300px; padding: 9px 10px; border: 1px solid #cbd7e4; background: #f8fafc; color: #394b5e; font-size: .78rem; line-height: 1.35; }
.report-approval-control input { margin-top: 2px; }
.report-content.is-approved-preview { background: #fff; }
.report-cost-summary-control.is-approved { opacity: .72; }
@media (max-width: 720px) {
  .report-review-modal-card { width: 100%; max-height: 96vh; padding: 16px; }
  .report-review-steps { grid-template-columns: 1fr; }
  .report-review-grid { grid-template-columns: 1fr; }
  .report-review-observation > header { flex-direction: column; }
  .report-review-actions { align-items: stretch; flex-direction: column; }
  .report-review-actions > * { width: 100%; }
}


/* Paid-plan and annual billing presentation */
.upgrade-plan-option__price-wrap { min-width: 0; text-align: right; }
.upgrade-plan-option__billing-detail {
  display: block;
  max-width: 240px;
  margin-top: 4px;
  color: var(--okuyi-grey-500);
  font-size: 0.7rem;
  line-height: 1.4;
}
@media (max-width: 1120px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .billing-period-panel,
  .upgrade-billing-choice { align-items: stretch; flex-direction: column; }
  .billing-period-toggle { width: 100%; }
  .billing-period-toggle button { flex: 1; justify-content: center; }
  .pricing-grid { grid-template-columns: 1fr; }
  .upgrade-plan-option__heading { align-items: flex-start; flex-direction: column; }
  .upgrade-plan-option__price-wrap { text-align: left; }
}


/* No-account browser trial note */
.product-proof-note--trial {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--okuyi-blue-700, #2865ad);
  background: rgb(234 242 252 / 0.72);
  color: var(--okuyi-grey-700, #536174);
}


/* Subscription cancellation and tutorial-channel update */
.subscription-cancellation-note {
  margin-top: 14px;
  padding: 13px 15px;
  border-left: 3px solid var(--okuyi-blue-700);
  background: var(--okuyi-blue-050);
  color: var(--okuyi-grey-700);
  font-size: 0.84rem;
  line-height: 1.6;
}

.subscription-cancellation-note strong {
  color: var(--okuyi-blue-950);
}

.profile-subscription-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #dde4eb;
}

.profile-subscription-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-subscription-section__header h3 {
  color: #203f63;
  font-size: 1rem;
}

.profile-subscription-section__header p,
.profile-subscription-copy {
  margin-top: 7px;
  color: var(--okuyi-grey-700);
  font-size: 0.85rem;
  line-height: 1.55;
}

.profile-subscription-plan {
  flex-shrink: 0;
  padding: 6px 9px;
  border: 1px solid #b9cbe0;
  border-radius: 999px;
  background: var(--okuyi-blue-050);
  color: var(--okuyi-blue-900);
  font-size: 0.75rem;
  font-weight: 800;
}

.profile-subscription-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.profile-subscription-actions .workspace-text-button--danger {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #d9a7a7;
  border-radius: 5px;
  background: #fff8f8;
}

.profile-subscription-actions .workspace-text-button--danger:hover {
  border-color: #b42318;
  background: #fff0f0;
}

@media (max-width: 520px) {
  .profile-subscription-section__header {
    flex-direction: column;
  }

  .profile-subscription-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-subscription-actions button {
    width: 100%;
  }
}
