:root {
  --paper: #ffffff;
  --wash: #f7f8f9;
  --mist: #eceff0;
  --line: #dfe3e3;
  --ink: #242529;
  --muted: #6f777d;
  --cloud: #8ea8b8;
  --lilac: #b7b3c9;
  --sage: #9aaa9c;
  --stone: #a69f97;
  --pearl: #fdfbf7;
  --shadow: 0 20px 70px rgba(40, 44, 48, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12px 18px, rgba(142, 168, 184, 0.18) 0 1px, transparent 1.5px),
    linear-gradient(135deg, #ffffff 0%, #f7f8f8 45%, #fbfaf7 100%);
  background-size: 84px 84px, auto;
  color: var(--ink);
  font-family: "Nunito", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.chat-open,
body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(183, 179, 201, 0.18) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 0 48%, rgba(142, 168, 184, 0.16) 49% 51%, transparent 52%);
  background-size: 140px 140px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 72%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--mist);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 6px;
  background: #020202;
  border-radius: var(--radius);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a,
.nav-link-button {
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  cursor: pointer;
}

.nav-links a:hover,
.nav-link-button:hover {
  color: var(--ink);
}

.admin-chat-nav {
  border: 1px solid #d6e0e1;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover,
.nav-button:hover {
  transform: translateY(-1px);
  border-color: #c9d2d4;
  box-shadow: 0 10px 28px rgba(55, 63, 68, 0.12);
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.button.ghost {
  background: #f9faf9;
}

.button.danger {
  border-color: #ead5d5;
  background: #fff7f7;
  color: #8b3f3f;
}

.button.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.button > i,
.nav-button > i,
.social-links a > i {
  margin-right: 8px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.section-grid,
.section-block,
.social-strip,
.dashboard-shell,
.narrow-page,
.auth-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(18px, 3vw, 32px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(44px, 7vw, 96px) 70px;
}

.hero-copy,
.logo-card {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cloud);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0;
  line-height: 1.02;
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  font-size: clamp(48px, 8vw, 92px);
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
}

h3 {
  font-size: 22px;
}

.hero-text,
.section-heading p,
.terms-page p,
.quiet {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 650px;
  margin: 24px 0;
  font-size: 19px;
}

.hero-actions,
.social-links,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logo-card {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: clamp(18px, 4vw, 44px);
}

.logo-card img {
  width: min(470px, 88%);
  filter: drop-shadow(0 22px 30px rgba(41, 46, 50, 0.18));
  transform: translateY(-78px);
}

.section-block {
  padding-block: 48px 80px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading p {
  max-width: 420px;
  margin: 0;
}

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

.art-card,
.panel,
.auth-card,
.terms-page,
.social-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 44px rgba(41, 46, 50, 0.08);
  backdrop-filter: blur(12px);
}

.art-card {
  overflow: hidden;
}

.art-card img,
.empty-art {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(142, 168, 184, 0.22), rgba(154, 170, 156, 0.2)),
    #f5f6f6;
}

.empty-art::after {
  content: "";
  display: block;
  width: 45%;
  height: 45%;
  margin: 28% auto 0;
  border: 1px solid rgba(36, 37, 41, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
}

.art-card-body {
  padding: 18px;
}

.art-card-body p {
  min-height: 48px;
  color: var(--muted);
  line-height: 1.6;
}

.tag-row span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
  color: #4e575c;
  font-size: 12px;
  font-weight: 900;
}

.social-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 80px;
  padding: 24px;
  background: #fbfcfc;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  text-decoration: none;
  font-weight: 900;
}

.narrow-page {
  max-width: 880px;
  margin-top: 52px;
  margin-bottom: 80px;
  padding: clamp(22px, 4vw, 44px);
}

.terms-page h1 {
  margin-bottom: 28px;
  font-size: clamp(44px, 7vw, 76px);
}

.terms-page h2 {
  margin-top: 30px;
  font-size: 30px;
}

.terms-page h3 {
  font-family: "Nunito", Arial, sans-serif;
  font-size: 17px;
}

.terms-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.terms-columns > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 150px);
  padding: 48px 0;
}

.auth-card {
  width: min(450px, 100%);
  padding: 30px;
}

.auth-card img {
  width: 106px;
  margin-bottom: 20px;
  padding: 10px;
  background: #020202;
  border-radius: var(--radius);
}

.auth-card h1 {
  font-size: 40px;
  margin-bottom: 22px;
}

.auth-card form,
.stacked-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #3e4449;
  font-size: 14px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
  color: var(--ink);
  padding: 12px 12px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cloud);
  box-shadow: 0 0 0 3px rgba(142, 168, 184, 0.18);
}

textarea {
  resize: vertical;
}

[hidden] {
  display: none !important;
}

.file-picker {
  display: grid;
  gap: 8px;
}

.file-picker-control {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 247, 0.96));
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.file-picker-control:hover,
.file-picker:focus-within .file-picker-control,
.file-picker.has-files .file-picker-control {
  border-color: #c5d5d7;
  box-shadow: 0 10px 26px rgba(41, 46, 50, 0.08);
}

.file-picker-control input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.file-picker-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.upload-preview-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 18px rgba(41, 46, 50, 0.06);
}

.upload-preview-card img,
.upload-file-icon {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
}

.upload-preview-card img {
  object-fit: cover;
  background: var(--mist);
}

.upload-file-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #edf1f1, #faf9f5);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.upload-preview-card span:last-child {
  overflow: hidden;
  color: #4d555a;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-picker-compact {
  align-self: stretch;
  min-width: 150px;
}

.file-picker-compact > span:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.file-picker-compact .file-picker-control {
  min-height: 100%;
}

.file-picker-compact .file-picker-button {
  min-height: 40px;
}

.file-picker-compact .file-preview {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notice {
  margin: 14px 0 0;
  padding: 12px;
  border-radius: var(--radius);
  background: #f3f6f4;
  color: #4c5a51;
  line-height: 1.5;
}

.notice:empty {
  display: none;
}

.notice.error {
  background: #f8eeee;
  color: #8b3f3f;
}

.auth-switch {
  color: var(--muted);
}

.dashboard-shell {
  max-width: 1340px;
  padding-block: 38px 80px;
}

.dashboard-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-top h1 {
  font-size: clamp(42px, 6vw, 74px);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-grid article {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 246, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(183, 179, 201, 0.1) 28px 29px);
  box-shadow: 0 12px 34px rgba(41, 46, 50, 0.07);
}

.metric-grid article::after,
.panel::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(90deg, transparent 43%, rgba(142, 168, 184, 0.45) 44% 56%, transparent 57%),
    linear-gradient(0deg, transparent 43%, rgba(142, 168, 184, 0.45) 44% 56%, transparent 57%);
  opacity: 0.45;
}

.metric-grid article::after,
.action-launch-card::after,
.users-overview::after {
  display: none;
}

.metric-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--cloud);
  font-size: 22px;
  opacity: 0.62;
}

.metric-grid span {
  display: block;
  margin-bottom: 6px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 42px;
  font-weight: 700;
}

.metric-grid strong {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.studio-actions,
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.studio-actions .wide {
  grid-column: 1 / -1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-main {
  display: grid;
  gap: 18px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.panel h2 {
  margin-bottom: 16px;
  font-size: 30px;
}

.panel-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.action-panel {
  min-height: 100%;
}

.action-launch-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-launch-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  align-content: start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 247, 0.92)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(183, 179, 201, 0.1) 18px 19px);
}

.action-launch-card h2 {
  margin-bottom: 0;
}

.action-launch-card p:not(.eyebrow) {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.action-launch-card .button {
  justify-self: start;
  margin-top: auto;
}

.action-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(213, 226, 227, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--cloud);
  font-size: 18px;
  box-shadow: 0 12px 28px rgba(41, 46, 50, 0.06);
}

.users-overview {
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 249, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(142, 168, 184, 0.08) 34px 35px);
}

.users-overview .panel-title {
  align-items: center;
}

.user-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.user-stat-strip article {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.user-stat-strip i {
  color: var(--cloud);
  font-size: 18px;
}

.user-stat-strip span {
  font-family: "Fraunces", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
}

.user-stat-strip strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.record-list,
.order-list {
  display: grid;
  gap: 12px;
}

.record-row,
.order-summary,
.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.record-row,
.order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.order-summary {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 249, 0.95));
  box-shadow: 0 10px 24px rgba(41, 46, 50, 0.05);
}

.order-summary-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.order-summary-main h3 {
  overflow: hidden;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-summary-main .status-pill {
  justify-self: start;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.order-meta span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.row-actions form {
  margin: 0;
}

.record-row span,
.order-summary-main p,
.order-head p {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.order-detail-shell {
  max-width: 1280px;
}

.order-detail-grid {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.order-side {
  display: grid;
  gap: 14px;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mist);
}

.detail-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.danger-zone {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid #ead5d5;
}

.order-detail-panel {
  display: grid;
  gap: 16px;
}

.order-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 250, 250, 0.94));
}

.order-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.inline-edit {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.4fr auto;
  gap: 8px;
}

.delivery-gallery,
.delivery-block,
.revision-panel,
.delivery-form,
.revision-form {
  display: grid;
  gap: 12px;
}

.delivery-block,
.revision-panel,
.delivery-form,
.revision-form {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.file-grid,
.check-file-grid,
.message-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.file-tile,
.message-attachment {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.file-tile img,
.message-attachment img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--mist);
}

.file-tile span,
.message-attachment span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-icon {
  display: grid;
  place-items: center;
  min-height: 70px;
  border-radius: 6px;
  background: linear-gradient(135deg, #edf1f1, #faf9f5);
  color: var(--muted);
}

.check-file {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.check-file .file-tile {
  padding: 0;
  border: 0;
}

.attach-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.attach-button input {
  display: none;
}

.action-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(26, 29, 32, 0.34);
  backdrop-filter: blur(8px);
}

.action-modal.is-open {
  display: flex;
}

.action-modal-card {
  width: min(680px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid rgba(213, 226, 227, 0.92);
  border-radius: 10px;
  background: white;
  box-shadow: 0 28px 90px rgba(36, 37, 41, 0.24);
}

.action-modal-card-wide {
  width: min(980px, calc(100vw - 48px));
}

.action-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 249, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(183, 179, 201, 0.1) 30px 31px);
}

.action-modal-header h2 {
  margin: 0;
  font-size: 30px;
}

.action-modal-body {
  max-height: calc(100vh - 170px);
  overflow: auto;
  padding: 20px;
  background: #fff;
}

.users-modal-body {
  background: #f7f8f8;
}

.user-list {
  display: grid;
  gap: 12px;
}

.user-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #fff, #fbfcfc);
  box-shadow: 0 10px 26px rgba(41, 46, 50, 0.06);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(213, 226, 227, 0.9);
  border-radius: var(--radius);
  background: var(--avatar, #a7b4ad);
  color: white;
  font-size: 18px;
  font-weight: 900;
}

.user-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.user-meta strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-mini-stats,
.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.user-mini-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f9f9;
  color: #64737a;
  font-size: 12px;
  font-weight: 900;
}

.user-actions {
  justify-content: flex-end;
}

.user-actions form {
  margin: 0;
}

.user-actions .notice {
  display: none;
}

.chat-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(26, 29, 32, 0.34);
  backdrop-filter: blur(8px);
}

.chat-drawer.is-open {
  display: flex;
}

.chat-panel {
  display: grid;
  grid-template-areas:
    "header"
    "reply"
    "messages"
    "form";
  grid-template-rows: auto auto minmax(260px, 1fr) auto;
  width: min(760px, calc(100vw - 48px));
  height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(213, 226, 227, 0.9);
  border-radius: 10px;
  background: white;
  box-shadow: 0 28px 90px rgba(36, 37, 41, 0.24);
}

.chat-header {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.chat-header h2 {
  overflow: hidden;
  max-width: 420px;
  font-size: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messages {
  grid-area: messages;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background: #f7f8f8;
}

.message {
  max-width: 86%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.message.mine {
  align-self: flex-end;
  background: #eef4f4;
  border-color: #d5e2e3;
}

.message strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.message p {
  margin: 0;
  line-height: 1.45;
  white-space: pre-wrap;
}

.message time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.message-actions button,
.reply-preview button {
  border: 0;
  background: transparent;
  color: #647783;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.reply-chip,
.reply-preview {
  border-left: 3px solid var(--cloud);
  background: #f6f9f9;
  color: var(--muted);
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 12px;
}

.reply-preview {
  grid-area: reply;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  border-radius: 0;
}

.reply-preview span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.reply-preview small {
  overflow: hidden;
  max-width: 360px;
  color: #7c8c96;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-form {
  grid-area: form;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat-form textarea {
  min-height: 46px;
  max-height: 120px;
  padding: 12px 13px;
  line-height: 1.35;
}

.chat-form .button {
  align-self: center;
  min-height: 46px;
  padding-inline: 18px;
}

.chat-form .file-picker-compact {
  align-self: center;
  width: min(210px, 28vw);
  min-width: 154px;
}

.chat-form .file-picker-compact .file-picker-control {
  min-height: 46px;
}

.chat-form .file-picker-compact .file-picker-button {
  min-height: 34px;
}

.chat-form .file-picker-compact .file-picker-name {
  max-width: 92px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--mist);
  color: var(--muted);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero,
  .dashboard-grid,
  .metric-grid,
  .studio-actions,
  .user-stat-strip,
  .workspace-grid,
  .order-detail-grid,
  .terms-columns,
  .art-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .social-strip,
  .dashboard-top,
  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .inline-edit {
    grid-template-columns: 1fr;
  }

  .logo-card {
    transform: none;
  }

  .logo-card img {
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: start;
    flex-direction: column;
    padding: 12px 10px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 5px;
    width: 100%;
    font-size: 14px;
  }

  .nav-links a {
    padding: 8px 6px;
  }

  .nav-links .nav-button {
    padding: 8px 10px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-copy,
  .section-heading {
    max-width: calc(100vw - 36px);
  }

  .hero-text,
  .section-heading p {
    max-width: min(100%, 320px);
  }

  .logo-card {
    min-height: 300px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-drawer {
    padding: 8px;
  }

  .action-modal {
    padding: 8px;
  }

  .chat-panel {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .action-modal-card {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .action-modal-card-wide {
    width: calc(100vw - 16px);
  }

  .chat-header {
    align-items: start;
    flex-wrap: wrap;
    padding: 14px;
  }

  .action-modal-header {
    padding: 14px;
  }

  .chat-header h2 {
    max-width: calc(100vw - 120px);
    font-size: 24px;
  }

  .action-modal-header h2 {
    font-size: 24px;
  }

  .action-modal-body {
    max-height: calc(100vh - 132px);
    padding: 14px;
  }

  .chat-form .file-picker-compact {
    width: 100%;
    min-width: 0;
  }

  .chat-form .file-picker-compact .file-picker-name {
    max-width: none;
  }

  .file-grid,
  .check-file-grid,
  .message-attachments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-row,
  .order-summary,
  .order-head,
  .user-row {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .user-avatar {
    width: 44px;
    height: 44px;
  }

  .user-actions {
    justify-content: flex-start;
  }

  .order-summary-main h3 {
    white-space: normal;
  }
}
