@import url("/assets/fonts.css");
:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #171713;
  background: #faf9f6;
  font-synthesis: none;
  --brand-blue: #2526b3;
  --brand-yellow: #ffc83a;
  --muted: #74747e;
  --border: #e5e5eb;
  --ink: #171713;
  --paper: #fff;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: transparent;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #74747e;
  outline-offset: 3px;
}
button svg {
  pointer-events: none;
}
svg.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.primary {
  background: var(--brand-blue);
  color: white;
  box-shadow: 0 2px 3px #1717130f;
}
.primary:hover {
  background: #2526b3;
}
.secondary {
  background: white;
  border: 1px solid var(--border);
}
.secondary:hover {
  background: #faf9f6;
}
.quiet {
  color: #74747e;
}
.danger {
  color: #a13a32;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
}
.icon-btn:hover {
  background: #f5f0e7;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand img {
  width: 35px;
  height: 35px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-left: 3px;
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 4px;
}
.initial-loading {
  padding: 80px;
  text-align: center;
}
.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  border-right: 1px solid var(--border);
  background: #faf9f6;
  padding: 30px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.sidebar .brand {
  padding: 0 6px;
}
.workspace-tag {
  background: white;
  border: 1px solid var(--border);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}
.workspace-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #f5f0e7;
  color: #171713;
  border-radius: 8px;
  font-size: 12px;
}
.nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #74747e;
  padding: 0 12px;
  margin-bottom: 12px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
}
.nav-item.active {
  background: #f5f0e7;
  color: #2526b3;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  padding: 15px;
  border: 1px dashed #e2dfd8;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: #74747e;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 22px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5f0e7;
  color: #171713;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.profile-name {
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 108px;
}
.profile small {
  font-size: 10px;
  color: var(--muted);
}
.page {
  min-width: 0;
}
.topbar {
  height: 82px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: #ffffff82;
  font-size: 13px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.breadcrumb strong {
  color: #171713;
  font-weight: 550;
}
.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #74747e;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #74747e;
  border-radius: 50%;
}
.dashboard {
  padding: 38px 44px;
  max-width: 1500px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 0 0 8px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.45px;
  margin: 0;
}
.page-heading p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.welcome {
  background: #f5f0e7;
  border: 1px solid #f5f0e7;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}
.welcome-copy {
  max-width: 510px;
}
.welcome .eyebrow {
  color: #171713;
  margin-bottom: 12px;
}
.welcome h2 {
  font-size: 25px;
  line-height: 1.25;
}
.welcome p {
  line-height: 1.65;
  color: #74747e;
  font-size: 13px;
  margin: 12px 0 0;
}
.welcome-illustration {
  width: 180px;
  flex-shrink: 0;
  position: relative;
  display: grid;
  place-items: center;
  transform: rotate(-5deg);
}
.mini-sheet {
  width: 143px;
  height: 116px;
  background: #fffdf5;
  border: 1px solid #e2dfd8;
  border-radius: 9px;
  padding: 15px;
  box-shadow: 8px 10px 0 #f5f0e7;
}
.mini-line {
  height: 5px;
  width: 80%;
  background: #f5f0e7;
  border-radius: 5px;
  margin: 8px 0;
}
.mini-image {
  height: 37px;
  background: #f5f0e7;
  border-radius: 4px;
}
.mini-pin {
  position: absolute;
  border: 4px solid #f5f0e7;
  display: grid;
  place-items: center;
  background: var(--brand-blue);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 12px;
  right: 24px;
  top: 13px;
  transform: rotate(5deg);
}
.mini-comment {
  position: absolute;
  bottom: 7px;
  left: -14px;
  background: white;
  border: 1px solid #e2dfd8;
  padding: 9px 14px;
  font-size: 11px;
  border-radius: 7px;
  transform: rotate(5deg);
  box-shadow: 0 3px 12px #2526b308;
}
.mini-comment span {
  color: #74747e;
  margin-right: 5px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.stat {
  padding: 20px 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
}
.stat-value {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 600;
  margin-top: 7px;
}
.stat-icon {
  width: 43px;
  height: 43px;
  background: #f5f0e7;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #74747e;
}
.project-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
}
.count-pill {
  font-size: 11px;
  font-weight: 600;
  background: #f5f0e7;
  color: #74747e;
  padding: 3px 7px;
  border-radius: 5px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #74747e;
}
.search-box input {
  border: 0;
  background: transparent;
  min-height: 40px;
  padding: 8px 0;
  min-width: 0;
  width: 200px;
  font-size: 12px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 20px;
}
.project-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px #1717130b;
}
.project-preview {
  height: 170px;
  background: #f5f0e7;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.folder-preview {
  width: 87px;
  height: 62px;
  background: #f5f0e7;
  border: 1px solid #e2dfd8;
  border-radius: 5px 12px 12px 12px;
  position: relative;
  display: grid;
  place-items: center;
  color: #74747e;
}
.folder-preview:before {
  content: "";
  position: absolute;
  top: -10px;
  left: -1px;
  width: 37px;
  height: 12px;
  border: 1px solid #e2dfd8;
  border-bottom: 0;
  border-radius: 5px 7px 0 0;
  background: #f5f0e7;
}
.project-info {
  padding: 18px;
}
.project-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}
.project-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 19px;
  padding-top: 14px;
  border-top: 1px solid #f5f0e7;
  font-size: 11px;
  color: var(--muted);
}
.empty {
  background: white;
  border: 1px dashed #e2dfd8;
  border-radius: 14px;
  text-align: center;
  padding: 47px 24px;
}
.empty-icon {
  width: 60px;
  height: 60px;
  background: #f5f0e7;
  display: grid;
  place-items: center;
  margin: 0 auto 19px;
  color: #74747e;
  border-radius: 16px;
}
.empty h2 {
  font-size: 19px;
}
.empty p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 360px;
  margin: 12px auto 22px;
}
.footnote {
  text-align: center;
  font-size: 11px;
  color: #74747e;
  margin: 25px 0;
}
.auth-page {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100dvh;
}
.auth-story {
  background: #f5f0e7;
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-story .brand {
  margin-bottom: 100px;
}
.auth-story h1 {
  font-size: clamp(36px, 4vw, 58px);
  letter-spacing: -2px;
  line-height: 1.1;
  max-width: 530px;
}
.auth-story > p {
  font-size: 16px;
  line-height: 1.8;
  color: #74747e;
  max-width: 440px;
  margin-top: 20px;
}
.auth-art {
  margin: 40px 0 20px;
  width: 100%;
  max-width: 420px;
  background: #fefef9;
  border: 1px solid #e2dfd8;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 16px 18px 0 #f5f0e7;
  transform: rotate(-3deg);
}
.art-header {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #f5f0e7;
  padding-bottom: 12px;
}
.art-header i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e2dfd8;
}
.art-content {
  display: flex;
  gap: 16px;
  padding: 20px 0 6px;
}
.art-block {
  width: 47%;
  height: 112px;
  background: #f5f0e7;
  border-radius: 7px;
}
.art-copy {
  flex: 1;
  padding-top: 16px;
}
.art-copy b {
  font-size: 20px;
  letter-spacing: -0.7px;
}
.art-feedback {
  background: #2526b3;
  color: white;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  max-width: 250px;
  padding: 12px 15px;
  margin: 8px 0 0 auto;
  transform: rotate(3deg);
  font-size: 12px;
}
.auth-footer {
  font-size: 11px;
  color: #74747e;
  margin-top: auto;
  padding-top: 40px;
}
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf9f6;
  padding: 50px 30px;
}
.auth-card {
  width: 100%;
  max-width: 375px;
}
.auth-card h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.auth-card > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 30px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 19px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 13px;
  background: white;
  border: 1px solid #e2dfd8;
  border-radius: 8px;
  min-height: 46px;
  font-size: 14px;
  color: #171713;
}
.field textarea {
  min-height: 100px;
  line-height: 1.5;
  resize: vertical;
}
.field small {
  font-size: 11px;
  color: var(--muted);
}
input:user-invalid,
textarea:user-invalid {
  border-color: #af5649;
}
.auth-card .primary {
  width: 100%;
  margin-top: 4px;
}
.auth-switch {
  text-align: center;
  font-size: 12px;
  margin-top: 24px;
  color: var(--muted);
}
.text-link {
  font-size: 12px;
  font-weight: 650;
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.error {
  color: #a34438;
  font-size: 12px;
  line-height: 1.5;
}
.error:empty {
  display: none;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 16px;
  width: min(460px, calc(100% - 32px));
  padding: 28px;
  color: inherit;
  box-shadow: 0 20px 80px #2526b326;
}
dialog::backdrop {
  background: #2526b34d;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.modal-head h2 {
  font-size: 21px;
}
.modal-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #171713;
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  max-width: calc(100% - 30px);
  box-shadow: 0 5px 25px #2526b323;
  transition:
    opacity 0.18s,
    transform 0.18s;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.project-page {
  padding: 38px 44px;
}
.project-parent {
  margin: 0 0 14px;
  font-size: 13px;
}
.project-parent a {
  color: #171713;
  text-decoration: none;
  font-weight: 650;
}
.subprojects {
  margin: 6px 0 28px;
}
.subprojects .project-controls {
  margin-bottom: 12px;
}
.upload-zone {
  width: 100%;
  padding: 38px 20px;
  background: #f5f0e7;
  border: 1px dashed #e2dfd8;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #171713;
}
.upload-zone strong {
  font-size: 15px;
  color: #171713;
}
.upload-zone small {
  font-size: 12px;
  color: var(--muted);
}
.upload-zone.dragging {
  background: #f5f0e7;
  outline: 3px solid #74747e;
}
.asset-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  overflow: hidden;
  text-align: left;
}
.asset-thumb {
  height: 190px;
  background: #f5f0e7;
  display: grid;
  place-items: center;
}
.asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.asset-details {
  padding: 17px;
}
.asset-details strong {
  font-size: 13px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-details span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 7px;
}
.pdf-badge {
  background: #fbfaf3;
  padding: 20px;
  border: 1px solid #e2dfd8;
  border-radius: 5px;
  box-shadow: 5px 5px 0 #e2dfd8;
  color: #74747e;
}
.pdf-badge span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 7px;
}
.upload-progress {
  margin: -16px 0 25px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}
progress {
  width: 100%;
  height: 8px;
  accent-color: var(--brand-blue);
}
.share-row {
  display: flex;
  gap: 8px;
}
.share-row input {
  min-width: 0;
  flex: 1;
}
.share-warning {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 18px 0;
}
.review-shell {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f5f0e7;
}
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 74px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.review-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.review-heading h1 {
  font-size: 14px;
  letter-spacing: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 350px;
}
.review-heading small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.review-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.asset-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #171713;
  font-size: 12px;
  font-weight: 650;
}
.asset-navigation .icon-btn:disabled,
.zoom-controls .icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.zoom-controls select {
  min-height: 34px;
  max-width: 154px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
  color: var(--ink);
}
.thumbnail-strip {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  max-width: 100%;
  overflow-x: auto;
  padding: 8px 18px;
  border-bottom: 1px solid var(--border);
  background: #faf9f6;
}
.file-thumbnail {
  width: 100px;
  flex: 0 0 100px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.file-thumbnail[aria-current="true"] {
  border: 2px solid var(--brand-blue);
  background: #faf9f6;
}
.file-thumbnail > span:last-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  margin-top: 4px;
}
.thumbnail-preview {
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
}
.thumbnail-preview img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 62px;
  object-fit: contain;
}
.review-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 355px;
}
.canvas-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  position: relative;
}
.canvas-toolbar {
  min-height: 57px;
  height: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 18px;
  flex-shrink: 0;
  font-size: 12px;
  color: #74747e;
  gap: 10px;
}
.viewer-scroll {
  flex: 1 1 1px;
}
.viewer-stage {
  margin-inline: auto;
}
.page-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #faf9f6;
  border: 1px solid #f5f0e7;
  border-radius: 8px;
  padding: 2px 5px;
  font-size: 11px;
}
.page-controls .icon-btn {
  width: 30px;
  height: 30px;
}
.viewer-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px 35px 80px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.viewer-stage {
  position: relative;
  max-width: none;
  box-shadow: 0 8px 34px #2526b317;
  background: white;
  line-height: 0;
  flex-shrink: 0;
  margin-inline: auto;
}
.viewer-stage canvas,
.viewer-stage img {
  display: block;
  width: 100%;
  height: auto;
}
.viewer-stage.annotating {
  cursor: crosshair;
}
.pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pin {
  pointer-events: auto;
  position: absolute;
  left: calc(var(--x) * 100%);
  top: calc(var(--y) * 100%);
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 3px solid white;
  background: var(--brand-blue);
  color: white;
  border-radius: 50% 50% 50% 5px;
  box-shadow: 0 2px 9px #17171340;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
  touch-action: none;
  cursor: grab;
}
.pin.selected {
  background: #e7c35e;
  color: #171713;
  width: 37px;
  height: 37px;
  z-index: 1;
}
.pin.resolved {
  background: #74747e;
}
.canvas-bottom {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid #e2dfd8;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 4px 20px #1717130f;
  font-size: 12px;
  white-space: nowrap;
}
.canvas-bottom .btn {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12px;
}
.canvas-bottom .active {
  background: #f5f0e7;
  color: #2526b3;
}
.canvas-bottom .divider {
  height: 20px;
  width: 1px;
  background: var(--border);
  margin: 0 7px;
}
.comment-panel {
  background: #fff;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.comment-panel-header {
  padding: 24px 21px 16px;
}
.comment-panel-header h2 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-panel-header p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 9px 0 15px;
}
.tabs {
  display: flex;
  gap: 3px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.tab {
  padding: 10px 12px;
  font-size: 12px;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}
.tab.active {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  font-weight: 650;
}
.discussion-list {
  overflow: auto;
  flex: 1;
  padding: 0 17px 22px;
}
.discussion-empty {
  text-align: center;
  padding: 60px 18px;
  color: var(--muted);
}
.discussion-empty .empty-icon {
  width: 48px;
  height: 48px;
}
.discussion-empty strong {
  font-size: 13px;
  font-weight: 550;
  color: #171713;
}
.discussion-empty p {
  font-size: 12px;
  line-height: 1.7;
}
.comment-card {
  padding: 17px 6px;
  border-bottom: 1px solid #f5f0e7;
}
.comment-card.selected {
  background: #faf9f6;
  margin: 0 -8px;
  padding: 17px 14px;
  border-radius: 8px;
}
.comment-top {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}
.comment-number {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5f0e7;
  color: #2526b3;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.comment-top strong {
  font-size: 11px;
  font-weight: 650;
}
.comment-top time {
  font-size: 10px;
  color: #74747e;
}
.comment-top .resolve-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #f5f0e7;
  color: #74747e;
}
.comment-top .resolve-btn.done {
  background: #f5f0e7;
  color: #2526b3;
}
.comment-text {
  font-size: 12px;
  line-height: 1.75;
  margin: 11px 0;
  color: #171713;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-location {
  font-size: 10px;
  color: #74747e;
}
.reply {
  border-left: 2px solid #f5f0e7;
  padding: 2px 0 2px 11px;
  margin: 14px 0 0 12px;
}
.reply strong {
  font-size: 10px;
}
.reply p {
  font-size: 11px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 5px 0;
  color: #74747e;
}
.reply-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 13px;
}
.reply-form textarea {
  border: 1px solid #e2dfd8;
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 12px;
  min-height: 38px;
  resize: vertical;
  width: 100%;
}
.reply-form .btn {
  min-height: 29px;
  padding: 6px 10px;
  font-size: 10px;
  align-self: flex-end;
}
.reply-toggle {
  font-size: 11px;
  color: #171713;
  padding: 6px 0;
}
.comment-draft {
  padding: 17px;
  background: #faf9f6;
  margin: 0 -3px 15px;
  border: 1px solid #e2dfd8;
  border-radius: 9px;
}
.comment-draft h3 {
  font-size: 12px;
  margin: 0 0 12px;
}
.comment-draft .field {
  margin: 0 0 11px;
}
.comment-draft textarea {
  font-size: 12px;
  padding: 10px;
  min-height: 90px;
}
.comment-draft .modal-actions {
  margin-top: 9px;
}
.comment-draft .btn {
  font-size: 11px;
  padding: 8px 11px;
  min-height: 34px;
}
.guest-footer {
  border-top: 1px solid var(--border);
  padding: 15px 21px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.guest-footer .brand {
  font-size: 15px;
}
.guest-footer img {
  width: 22px;
  height: 22px;
}
.mobile-tabs {
  display: none;
}
.error-screen {
  max-width: 480px;
  padding: 70px 25px;
  margin: auto;
  text-align: center;
}
.error-screen p {
  color: var(--muted);
  line-height: 1.7;
}
.viewer-message {
  font-size: 13px;
  line-height: 1.6;
  padding: 60px 30px;
  color: var(--muted);
}
.help-list {
  font-size: 13px;
  line-height: 1.85;
  color: #74747e;
  padding-left: 18px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 48px;
}
.password-wrap button {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .dashboard,
  .project-page {
    padding: 45px 60px;
  }
  .review-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 25px 14px;
  }
  .dashboard,
  .project-page {
    padding: 30px 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .welcome-illustration {
    width: 140px;
  }
  .review-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .viewer-scroll {
    padding: 20px 20px 80px;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story .brand {
    margin-bottom: 75px;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
  }
  .sidebar .brand {
    font-size: 21px;
  }
  .sidebar nav,
  .workspace-tag,
  .sidebar-note,
  .nav-label,
  .sidebar-bottom > .profile small {
    display: none;
  }
  .sidebar-bottom {
    margin: 0;
  }
  .profile {
    border: 0;
    padding: 0;
    margin: 0;
  }
  .profile-name {
    display: none;
  }
  .topbar {
    height: 60px;
    padding: 0 20px;
  }
  .dashboard,
  .project-page {
    padding: 25px 20px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading .btn {
    font-size: 12px;
    padding: 10px 12px;
    min-height: 40px;
  }
  .welcome {
    padding: 23px;
  }
  .welcome h2 {
    font-size: 21px;
  }
  .welcome-illustration {
    display: none;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 16px 12px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-value {
    font-size: 23px;
  }
  .stat-icon {
    display: none;
  }
  .project-controls {
    flex-wrap: wrap;
  }
  .search-box input {
    width: 160px;
  }
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 26px 28px;
  }
  .auth-story .brand {
    margin-bottom: 32px;
  }
  .auth-story h1 {
    font-size: 35px;
    letter-spacing: -1px;
  }
  .auth-story > p {
    font-size: 13px;
    margin-bottom: 0;
  }
  .auth-art,
  .auth-footer {
    display: none;
  }
  .auth-panel {
    padding: 36px 28px;
  }
  .auth-card h2 {
    font-size: 23px;
  }
  .review-header {
    padding: 8px 12px;
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .review-heading {
    gap: 8px;
  }
  .review-heading h1 {
    font-size: 12px;
    max-width: 190px;
  }
  .review-heading small {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
  }
  .review-header-actions {
    gap: 5px;
    margin-left: auto;
  }
  .review-header-actions .btn {
    font-size: 11px;
    padding: 9px;
    min-height: 36px;
  }
  .review-header-actions .status-pill {
    display: none;
  }
  .review-header .brand {
    display: none;
  }
  .review-layout {
    display: flex;
    flex-direction: column;
  }
  .canvas-area {
    flex: 1;
  }
  .comment-panel {
    flex: 1;
    border-left: 0;
    display: none;
  }
  .review-shell.show-discussion .canvas-area {
    display: none;
  }
  .review-shell.show-discussion .comment-panel {
    display: flex;
  }
  .mobile-tabs {
    display: flex;
    gap: 4px;
    background: #fff;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    padding: 4px;
  }
  .mobile-tabs .btn {
    min-height: 34px;
    padding: 8px 25px;
    font-size: 12px;
  }
  .mobile-tabs .active {
    background: #f5f0e7;
  }
  .viewer-scroll {
    padding: 18px 12px 80px;
  }
  .canvas-toolbar {
    padding: 6px 10px;
    font-size: 10px;
    gap: 6px;
  }
  .canvas-toolbar > #viewer-hint {
    flex: 1 1 100%;
  }
  .asset-navigation {
    order: 1;
  }
  .zoom-controls {
    order: 2;
  }
  #thumbnails-toggle {
    order: 3;
  }
  #download-file,
  #fullscreen-toggle {
    order: 4;
  }
  #review-file {
    max-width: 120px;
  }
  .thumbnail-strip {
    padding: 6px 10px;
  }
  .file-thumbnail {
    width: 78px;
    flex-basis: 78px;
  }
  .thumbnail-preview {
    height: 50px;
  }
  .thumbnail-preview img {
    max-height: 50px;
  }
  .guest-footer {
    padding: 12px 21px;
  }
  .canvas-bottom {
    bottom: 15px;
  }
  .project-page > .page-heading {
    flex-wrap: wrap;
  }
  .share-row .btn {
    padding: 10px;
  }
  .auth-card .field input {
    font-size: 16px;
  }
  .comment-draft textarea {
    font-size: 16px;
  }
  .reply-form textarea {
    font-size: 16px;
  }
  .comment-top strong {
    font-size: 12px;
  }
  .comment-text {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#review-file {
  font-size: 11px;
  max-width: 200px;
  min-width: 75px;
  background: #faf9f6;
  color: #74747e;
  border: 1px solid #f5f0e7;
  border-radius: 7px;
  min-height: 34px;
  padding: 5px 8px;
}
@media (max-width: 760px) {
  #review-file {
    max-width: 120px;
  }
  .canvas-toolbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
    padding-block: 8px;
  }
  #viewer-hint {
    width: 100%;
    font-size: 10px;
  }
}

/* Casepoint internal feedback: white workspace, blue actions, yellow accents. */
:root {
  --brand-blue: #2526b3;
  --brand-yellow: #ffc83a;
  --brand-beige: #f5f0e7;
  color: #171713;
  background: #faf9f6;
}
.brand > span {
  color: var(--brand-yellow);
}
.primary:hover {
  background: #1b1c8f;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-color: var(--brand-blue);
}
.review-shell {
  background: #fff;
}
.review-header {
  height: 66px;
  gap: 12px;
}
.review-header-actions .status-pill {
  display: none;
}
.review-layout {
  grid-template-columns: 300px minmax(0, 1fr) 164px;
}
.review-layout.files-hidden {
  grid-template-columns: 300px minmax(0, 1fr);
}
.comment-panel {
  border-left: 0;
  border-right: 1px solid var(--border);
}
.review-project-title {
  padding: 24px 22px;
  border-bottom: 1px solid var(--border);
}
.review-project-title h2 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
  margin: 0 0 8px;
}
.review-project-title span {
  font-size: 11px;
  color: var(--muted);
}
.comment-panel-header {
  padding: 20px 22px 14px;
}
.comment-panel-header > p {
  display: none;
}
.comment-card {
  border-radius: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 22px;
}
.comment-card.selected {
  background: #f6f6ff;
  box-shadow: inset 3px 0 var(--brand-blue);
}
.discussion-list {
  padding: 0;
}
.comment-number {
  background: var(--brand-blue);
  color: white;
  border-radius: 50%;
}
.files-panel {
  border-left: 1px solid var(--border);
  background: #fff;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.files-panel[hidden] {
  display: none;
}
.files-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  min-height: 58px;
  border-bottom: 1px solid var(--border);
}
.files-panel h2 {
  font-size: 13px;
  margin: 0;
}
.thumbnail-strip {
  flex-direction: column;
  border: 0;
  background: white;
  padding: 16px 12px;
  overflow: auto;
  min-height: 0;
}
.file-thumbnail {
  flex: 0 0 auto;
  width: 100%;
  padding: 6px;
  border-color: transparent;
  border-radius: 6px;
}
.file-thumbnail[aria-current="true"] {
  background: #f5f5ff;
  border: 2px solid var(--brand-blue);
}
.thumbnail-preview {
  height: 86px;
  background: #f6f6f8;
  border-radius: 3px;
}
.thumbnail-preview img {
  max-height: 86px;
  max-width: 100%;
}
.file-thumbnail > span:last-child {
  margin-top: 8px;
}
.canvas-toolbar {
  background: #f6f6f8;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  padding: 10px 16px;
  color: #74747e;
}
#viewer-hint {
  width: 100%;
  font-size: 11px;
}
.viewer-scroll {
  background: white;
  padding: 24px 28px;
}
.viewer-stage {
  box-shadow: none;
}
.asset-navigation {
  gap: 12px;
  color: #74747e;
}
.canvas-bottom.review-mode {
  position: static;
  transform: none;
  padding: 3px;
  border-radius: 8px;
  box-shadow: none;
}
.review-mode .btn {
  min-height: 32px;
  padding: 6px 14px;
  font-size: 12px;
}
.review-mode .btn.active {
  color: #fff;
  background: var(--brand-blue);
}
.pin,
.pin.selected,
.pin.resolved {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  border: 2px solid white;
  box-shadow:
    0 0 0 1px var(--brand-blue),
    0 4px 16px #2526b320;
  background: var(--brand-blue);
  color: white;
  font-size: 12px;
}
.pin.selected {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
.pin.resolved {
  background: #6666a0;
}
.pin.draft-pin {
  background: var(--brand-yellow);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--brand-yellow);
}
.pin-preview,
dialog.pin-dialog {
  position: fixed;
  inset: auto;
  margin: 0;
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px #17171318;
  width: min(430px, calc(100vw - 24px));
  z-index: 20;
  padding: 20px;
  font-size: 13px;
  line-height: 1.6;
  overflow: auto;
  max-height: calc(100dvh - 130px);
}
.pin-preview {
  width: min(350px, calc(100vw - 24px));
  max-height: 280px;
}
.pin-preview[hidden] {
  display: none;
}
.pin-preview-author {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.pin-preview time,
.pin-preview small {
  color: var(--muted);
  font-size: 11px;
}
.pin-preview p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 14px 0 0;
}
.pin-preview .preview-status {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.pin-dialog .modal-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.pin-dialog .modal-head h2 {
  font-size: 13px;
  font-weight: 600;
}
.pin-dialog .modal-description {
  margin-bottom: 14px;
  font-size: 11px;
}
.pin-dialog textarea {
  min-height: 72px;
  background: #f6f6f8;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px;
}
.pin-dialog textarea:focus {
  border-color: var(--brand-blue);
}
.pin-dialog .conversation-text {
  margin: 0 0 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.pin-dialog .conversation-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.pin-dialog .conversation-actions .btn {
  min-height: 30px;
  font-size: 11px;
  padding: 6px 10px;
}
.pin-dialog .modal-actions {
  margin-top: 14px;
}
.pin-dialog .btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}
@media (min-width: 1700px) {
  .review-layout {
    grid-template-columns: 340px minmax(0, 1fr) 184px;
  }
  .review-layout.files-hidden {
    grid-template-columns: 340px minmax(0, 1fr);
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .review-layout {
    grid-template-columns: 250px minmax(0, 1fr) 128px;
  }
  .review-layout.files-hidden {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .review-heading h1 {
    max-width: 210px;
  }
  .review-mode .btn {
    padding: 6px 9px;
  }
}
@media (max-width: 760px) {
  .review-layout,
  .review-layout.files-hidden {
    display: flex;
  }
  .comment-panel {
    border-right: 0;
  }
  .files-panel {
    flex: 0 0 auto;
    border-left: 0;
    border-top: 1px solid var(--border);
    max-height: 132px;
  }
  .files-panel > header {
    display: none;
  }
  .thumbnail-strip {
    flex-direction: row;
    padding: 6px 10px;
  }
  .file-thumbnail {
    width: 100px;
    flex: 0 0 100px;
  }
  .thumbnail-preview,
  .thumbnail-preview img {
    height: 62px;
    max-height: 62px;
  }
  .review-shell.show-discussion .files-panel {
    display: none;
  }
  .asset-navigation {
    gap: 6px;
  }
  .review-mode .btn {
    font-size: 11px;
    min-height: 28px;
    padding: 5px 9px;
  }
  .pin-dialog,
  .pin-preview {
    max-height: calc(100dvh - 150px);
  }
  .viewer-scroll {
    padding: 16px;
  }
}
.guest-footer {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 22px;
}
.guest-footer > span {
  font-size: 10px;
}
.reply-toggle {
  margin-right: 12px;
  margin-top: 10px;
}
.pin-dialog .modal-description {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.pin-dialog .modal-description strong {
  color: var(--ink);
  font-size: 13px;
}
.pin-dialog .modal-head .conversation-actions {
  margin: 0 6px 0 auto;
}
.pin-dialog #toggle-resolved {
  width: 30px;
  padding: 4px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.new-pin-dialog .modal-description {
  display: none;
}
.new-pin-dialog .field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (min-width: 761px) and (max-width: 1100px) {
  .canvas-toolbar {
    gap: 6px;
    padding: 8px 12px;
  }
  .canvas-toolbar .icon-btn {
    width: 30px;
    height: 30px;
  }
  .zoom-controls select {
    max-width: 120px;
  }
  #image-size {
    display: none;
  }
  #thumbnails-toggle {
    min-height: 32px;
    padding: 5px 8px;
  }
}
/* Compact Pinpoint review and file management. */
.dashboard,
.project-page {
  padding: 24px 28px;
}
.page-heading {
  margin-bottom: 22px;
}
.page-heading h1 {
  font-size: 25px;
}
.page-heading p {
  font-size: 12px;
}
.project-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.project-preview,
.asset-thumb {
  height: 160px;
  background: #f0f0f3;
}
.project-preview img,
.asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-info,
.asset-details {
  padding: 12px 14px;
}
.project-info h3,
.asset-details strong {
  font-size: 13px;
}
.project-meta,
.project-footer,
.asset-details span {
  font-size: 11px;
}
.upload-zone {
  padding: 20px;
  margin-bottom: 22px;
}
.upload-zone strong {
  font-size: 13px;
}
.asset-card,
.file-thumbnail {
  position: relative;
}
.asset-card > a {
  display: block;
}
.asset-actions {
  display: flex;
  gap: 4px;
  position: absolute;
  right: 6px;
  top: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s;
}
.asset-card:hover .asset-actions,
.file-thumbnail:hover .asset-actions,
.asset-card:focus-within .asset-actions,
.file-thumbnail:focus-within .asset-actions {
  opacity: 1;
  pointer-events: auto;
}
.asset-actions .icon-btn {
  width: 27px;
  height: 27px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
  box-shadow: 0 2px 8px #17171312;
}
.asset-actions svg {
  width: 15px;
  height: 15px;
}
.file-select {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}
.file-select > span:last-child {
  display: block;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 5px;
}
.comment-panel[hidden],
.pins-layer[hidden] {
  display: none;
}
.review-layout.discussion-hidden {
  grid-template-columns: minmax(0, 1fr) 164px;
}
.review-layout.discussion-hidden.files-hidden {
  grid-template-columns: minmax(0, 1fr);
}
#discussion-toggle {
  position: fixed;
  left: 300px;
  top: 50%;
  width: 22px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 0 6px 6px 0;
  background: white;
  z-index: 4;
  padding: 2px;
}
.review-shell.discussion-collapsed #discussion-toggle {
  left: 0;
}
.pin-preview {
  width: min(290px, calc(100vw - 24px));
  padding: 14px;
}
dialog.pin-dialog {
  width: min(330px, calc(100vw - 24px));
  padding: 14px;
  font-size: 12px;
}
.pin-dialog .modal-head {
  padding-bottom: 8px;
  margin-bottom: 9px;
}
.pin-dialog .modal-description {
  margin-bottom: 10px;
  gap: 8px;
}
.pin-dialog .conversation-text {
  font-size: 13px;
  margin-bottom: 14px;
}
.pin-dialog .field {
  margin-bottom: 8px;
}
.pin-dialog textarea {
  min-height: 44px;
  padding: 9px;
  font-size: 12px;
}
.pin-dialog .btn {
  min-height: 29px;
  padding: 5px 9px;
  font-size: 11px;
}
.pin-dialog .modal-actions {
  margin-top: 8px;
}
.pin,
.pin.selected,
.pin.resolved {
  width: 27px;
  height: 27px;
  font-size: 11px;
}
.pin.draft-pin {
  background: var(--brand-blue);
  color: white;
  box-shadow: 0 0 0 1px var(--brand-blue);
}
dialog.file-dialog {
  width: min(360px, calc(100vw - 24px));
  padding: 20px;
}
.file-dialog .modal-head h2 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.file-dialog .modal-description {
  font-size: 12px;
  margin-bottom: 16px;
}
.file-dialog .btn {
  min-height: 32px;
  padding: 7px 12px;
  font-size: 12px;
}
@media (min-width: 1700px) {
  #discussion-toggle {
    left: 340px;
  }
  .review-layout.discussion-hidden {
    grid-template-columns: minmax(0, 1fr) 184px;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  #discussion-toggle {
    left: 250px;
  }
  .review-layout.discussion-hidden {
    grid-template-columns: minmax(0, 1fr) 128px;
  }
}
@media (max-width: 760px) {
  #discussion-toggle {
    display: none;
  }
  .dashboard,
  .project-page {
    padding: 20px;
  }
  .review-layout.discussion-hidden {
    display: flex;
  }
}
@media (hover: none) {
  .asset-actions {
    opacity: 1;
    pointer-events: auto;
  }
}
#review-file {
  width: 140px;
  max-width: 30%;
  min-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-heading .btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}
#discussion-toggle {
  width: 24px;
  height: 40px;
}
/* Keep review controls and card metadata in separate, compact rows. */
.topbar {
  height: 48px;
  min-height: 48px;
  padding: 0 24px;
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover,
.review-title a:hover {
  text-decoration: underline;
}
.btn,
.page-heading .btn {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.page-heading {
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}
.page-heading > div:last-child {
  flex-wrap: wrap;
}
.page-heading h1 {
  font-size: 23px;
}
.project-page .eyebrow {
  margin-bottom: 5px !important;
  font-size: 10px;
}
.project-parent {
  margin-bottom: 12px;
  font-size: 12px;
}
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100px;
  padding: 16px;
}
.upload-zone small {
  font-size: 11px;
}
.asset-card > a {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.asset-thumb {
  height: 160px;
  flex: 0 0 160px;
  overflow: hidden;
}
.asset-thumb img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.asset-details {
  position: static;
  background: #fff;
  min-height: 64px;
  width: 100%;
  flex: 0 0 auto;
}
.asset-details strong,
.asset-details span {
  position: static;
  line-height: 1.4;
}
.project-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 280px));
}
.review-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  height: 52px;
  min-height: 52px;
  padding: 0 16px;
  gap: 10px;
}
.review-heading {
  min-width: 0;
  gap: 8px;
}
.review-title {
  min-width: 0;
}
.review-heading h1 {
  max-width: 100%;
  font-size: 12px;
}
.review-heading small {
  margin-top: 2px;
  font-size: 10px;
}
.review-title a {
  color: inherit;
}
.review-header-actions {
  justify-self: end;
}
.asset-navigation {
  grid-column: 2;
  gap: 5px;
}
.canvas-bottom.review-mode {
  border-radius: 6px;
  padding: 2px;
}
.review-mode .btn {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 11px;
}
.icon-btn {
  width: 30px;
  height: 30px;
}
.review-header .icon {
  width: 20px;
  height: 20px;
}
.canvas-toolbar {
  min-height: 44px;
  padding: 5px 10px;
  gap: 5px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
#viewer-hint {
  width: auto;
  flex: 1 1 auto;
  min-width: 100px;
  max-width: 300px;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#review-file {
  flex: 0 1 160px;
  width: 160px;
  min-width: 90px;
  min-height: 28px;
  font-size: 10px;
}
.zoom-controls select {
  min-height: 28px;
  font-size: 11px;
  max-width: 128px;
}
.zoom-controls {
  flex-shrink: 0;
  gap: 1px;
}
.canvas-toolbar .icon-btn {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  font-size: 19px;
}
.canvas-toolbar .icon {
  width: 21px;
  height: 21px;
}
#thumbnails-toggle {
  min-height: 28px;
  padding: 4px;
  font-size: 10px;
}
#image-size,
#zoom-label {
  font-size: 10px;
  white-space: nowrap;
}
.review-layout {
  grid-template-columns: 270px minmax(0, 1fr) 132px;
}
.review-layout.files-hidden {
  grid-template-columns: 270px minmax(0, 1fr);
}
.review-layout.discussion-hidden {
  grid-template-columns: minmax(0, 1fr) 132px;
}
.review-layout.discussion-hidden.files-hidden {
  grid-template-columns: minmax(0, 1fr);
}
#discussion-toggle {
  left: 270px;
}
.files-panel > header {
  min-height: 44px;
  padding: 5px 10px;
}
.thumbnail-strip {
  padding: 10px 7px;
  gap: 10px;
}
.thumbnail-preview,
.thumbnail-preview img {
  max-height: 72px;
  height: 72px;
}
.review-project-title {
  padding: 15px 16px;
}
.review-project-title h2 {
  font-size: 14px;
  margin-bottom: 4px;
}
.comment-panel-header {
  padding: 14px 16px 8px;
}
.comment-card {
  padding: 16px;
}
.comment-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--border);
}
.comment-tools input {
  grid-column: 1 / -1;
}
.comment-tools input,
.comment-tools select {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 5px 7px;
  font-size: 10px;
}
.resolve-btn.done,
#toggle-resolved.done {
  color: #168347;
  background: #e9f7ee;
  border-color: #a6d7b7;
}
.pin.resolved,
.timeline-marker.done {
  background: #168347;
  box-shadow: 0 0 0 1px #168347;
  color: #fff;
}
.pin-dialog .modal-head > h2 {
  display: none;
}
.conversation-navigation {
  display: flex;
  gap: 3px;
  margin-right: auto;
}
.conversation-navigation .icon-btn,
.pin-dialog .modal-head .icon-btn {
  width: 27px;
  height: 27px;
}
.conversation-navigation button:disabled {
  opacity: 0.3;
}
#conversation-reply .field {
  display: flex;
  gap: 6px;
  align-items: end;
  margin: 0;
}
#conversation-reply textarea {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  max-height: 90px;
  border: 0;
  background: #f6f6f8;
}
#conversation-reply button[type="submit"] {
  width: 30px;
  height: 36px;
  padding: 6px;
  min-height: 36px;
  font-size: 0;
}
#conversation-reply button[type="submit"]::after {
  content: "➜";
  font-size: 19px;
}
#conversation-reply .error {
  margin: 5px 0 0;
}
.replacement-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--muted);
  border-radius: 8px;
  padding: 28px 12px;
}
.replacement-drop.dragging {
  border-color: var(--brand-blue);
  background: #f3f3ff;
}
.replacement-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.replacement-drop:focus-within {
  outline: 2px solid var(--brand-blue);
}
#replacement-name {
  font-size: 11px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.video-review video {
  display: block;
  max-width: none;
}
.video-review .pins-layer {
  pointer-events: none;
  bottom: 44px;
}
.video-review .pins-layer .pin {
  pointer-events: auto;
}
.video-controls {
  padding: 10px 24px;
  background: #f6f6f8;
  border-top: 1px solid var(--border);
}
#video-markers {
  height: 25px;
  position: relative;
  margin: 0 12px 4px;
}
.timeline-marker {
  position: absolute;
  transform: translateX(-50%);
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: white;
  font-size: 10px;
  border: 1px solid white;
}
#video-seek {
  width: 100%;
  accent-color: var(--brand-blue);
  height: 16px;
  padding: 0;
  min-height: 0;
}
.video-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.video-actions .icon-btn {
  width: 32px;
  font-size: 11px;
}
#video-comment {
  margin-left: auto;
  font-size: 11px;
}
@media (min-width: 1700px) {
  .review-layout {
    grid-template-columns: 290px minmax(0, 1fr) 140px;
  }
  .review-layout.files-hidden {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .review-layout.discussion-hidden {
    grid-template-columns: minmax(0, 1fr) 140px;
  }
  #discussion-toggle {
    left: 290px;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .review-layout {
    grid-template-columns: 240px minmax(0, 1fr) 112px;
  }
  .review-layout.files-hidden {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .review-layout.discussion-hidden {
    grid-template-columns: minmax(0, 1fr) 112px;
  }
  #discussion-toggle {
    left: 240px;
  }
  #viewer-hint {
    display: none;
  }
}
@media (max-width: 760px) {
  .review-header {
    height: auto;
    min-height: 80px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 6px 12px;
    gap: 4px;
  }
  .review-header-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .asset-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }
  .review-heading h1 {
    font-size: 11px;
  }
  .canvas-toolbar {
    padding: 5px 8px;
  }
  #viewer-hint {
    display: none;
  }
  .review-layout {
    display: flex;
  }
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .project-page,
  .dashboard {
    padding: 16px;
  }
  .video-controls {
    padding: 10px 16px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1100px) {
  #viewer-hint {
    display: inline;
    min-width: 70px;
    max-width: 120px;
    flex: 0 1 120px;
    font-size: 9px;
  }
}
.workspace-project-toolbar {
  border-block: 1px solid var(--border);
  margin-bottom: 22px;
  padding: 8px 0;
}
.project-toolbar-row,
.project-tool-icons,
#project-selection {
  display: flex;
  align-items: center;
  gap: 6px;
}
.project-toolbar-row {
  flex-wrap: wrap;
}
.project-toolbar-row > .section-title {
  margin-right: auto;
  font-size: 13px;
}
.project-tool-icons .active {
  background: #f1f1ff;
  outline: 1px solid var(--brand-blue);
}
#project-selection {
  font-size: 12px;
}
#project-selection-count {
  background: #f5f5f8;
  padding: 6px 8px;
  border-radius: 5px;
}
.project-filter-row,
.project-find-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.project-filter-row {
  padding-top: 8px;
}
.project-filter-row > span {
  color: var(--muted);
  font-size: 11px;
}
.project-filter-row select,
#project-sort {
  min-height: 30px;
  width: auto;
  padding: 4px 8px;
  font-size: 11px;
  border: 0;
  background: transparent;
}
.project-find-row:has(> :not([hidden])) {
  padding-top: 8px;
}
#project-search-box {
  max-width: 250px;
}
#project-search {
  min-height: 30px;
  font-size: 12px;
}
.selectable-project {
  position: relative;
  min-width: 0;
  border-radius: 14px;
}
.selectable-project .project-card {
  height: 100%;
}
.selectable-project.selected {
  outline: 2px solid var(--brand-blue);
  outline-offset: 1px;
}
.project-select-hit {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
}
.project-select-hit input {
  accent-color: var(--brand-blue);
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  cursor: pointer;
  background: white;
}
.selectable-project:hover .project-select-hit,
.selectable-project:focus-within .project-select-hit,
.selectable-project.selected .project-select-hit {
  opacity: 1;
}
.archive-label {
  font-size: 10px;
  color: var(--muted);
}
@media (hover: none) {
  .project-select-hit {
    opacity: 1;
  }
}
@media (max-width: 760px) {
  .project-toolbar-row > .section-title {
    width: 100%;
  }
  .project-filter-row {
    gap: 4px;
  }
}
.video-review .pins-layer {
  bottom: 0;
}
.video-actions {
  flex-wrap: wrap;
}
#video-speed {
  width: 62px;
  min-height: 28px;
  padding: 3px 5px;
  font-size: 11px;
}
#video-volume {
  width: 70px;
  min-height: 0;
  height: 16px;
  padding: 0;
  accent-color: var(--brand-blue);
}
#video-mute.muted {
  opacity: 0.45;
}
.video-actions .icon {
  width: 19px;
  height: 19px;
}
@media (max-width: 760px) {
  #video-comment {
    width: 100%;
    justify-content: center;
  }
}
#asset-version {
  min-height: 28px;
  width: 120px;
  flex: 0 0 120px;
  padding: 3px 5px;
  font-size: 10px;
}
.history-view #viewer-hint {
  color: var(--brand-blue);
  font-weight: 600;
}
.history-view .viewer-stage.annotating {
  cursor: default;
}
.history-view .pin {
  cursor: pointer;
  touch-action: auto;
}
.project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 1px solid #dedee5;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}
.project-card .project-preview {
  flex: 0 0 160px;
  width: 100%;
}
.project-card .project-info {
  flex: 1;
  background: #fff;
}
.selectable-project .project-card {
  height: 100%;
}
dialog.compression-dialog {
  width: min(900px, calc(100vw - 24px));
  max-height: 90dvh;
  padding: 22px;
}
.compress-settings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}
.compress-settings input {
  width: 80px;
  min-height: 30px;
  padding: 5px;
}
.compress-files {
  max-height: 180px;
  overflow: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.compress-files label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
}
.compress-files input {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--brand-blue);
}
.compress-files span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compress-files small {
  white-space: nowrap;
  color: var(--muted);
}
.compression-status {
  font-size: 12px;
  color: var(--muted);
}
.compression-result {
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 12px;
}
.compression-preview-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.compression-preview-pair figure {
  margin: 10px 0 0;
  min-width: 0;
}
.compression-preview-pair img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f5f5f8;
}
.compression-preview-pair figcaption {
  padding-top: 6px;
  font-size: 11px;
  color: var(--muted);
}
.compression-dialog .modal-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  z-index: 1;
}

.compression-preview-pair video {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f5f5f8;
}

.viewer-stage iframe {
  display: block;
  border: 0;
  background: #171713;
}
.sharepoint-controls {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  font-size: 12px;
}
.sharepoint-controls input {
  width: 90px;
}
.sharepoint-controls small,
.sharepoint-controls details {
  flex-basis: 100%;
  color: var(--muted);
}
.sharepoint-controls details p {
  margin-top: 8px;
}

.viewer-stage.linked-video .pins-layer {
  display: none;
}
