:root {
  --ink: #05070b;
  --panel: #0c1118;
  --panel-2: #111821;
  --line: rgba(255, 255, 255, 0.12);
  --white: #fff;
  --muted: #8b97a8;
  --blue: #1f64ff;
  --green: #25d366;
  --danger: #ff4d67;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 0%, rgba(31, 100, 255, 0.16), transparent 30%),
    var(--ink);
  font-family: var(--body);
}

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

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.admin-grid {
  position: fixed;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 76px 76px;
}

.session-screen {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--ink);
}

.session-card {
  width: min(430px, 100%);
  padding: 42px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
}

.session-card > img {
  width: 145px;
  margin: 0 auto 30px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
}

.session-card h1 {
  margin: 9px 0 14px;
  font-family: var(--display);
  font-size: 42px;
  line-height: 0.95;
  text-transform: uppercase;
}

.session-card p {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.session-kicker,
.admin-kicker {
  color: #4b8aff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.loading-ring {
  width: 36px;
  height: 36px;
  display: block;
  margin: 0 auto 17px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.text-link {
  display: block;
  margin-top: 18px;
  color: #8995a6;
  font-size: 11px;
  text-decoration: none;
}

.login-card {
  text-align: left;
}

.login-card > img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.login-card > .session-kicker,
.login-card > h1,
.login-card > p,
.login-card > .text-link {
  text-align: center;
}

.login-form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}

.login-form label {
  display: grid;
  gap: 7px;
}

.login-form label span {
  color: #a3adbb;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  padding: 13px 14px;
  color: var(--white);
  background: #070b10;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}

.login-form input:focus {
  border-color: #4b8aff;
}

.login-error {
  padding: 11px 13px;
  color: #ffb5c0;
  background: rgba(255, 77, 103, .1);
  border: 1px solid rgba(255, 77, 103, .3);
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.admin-header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: rgba(5, 7, 11, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.admin-brand > span {
  width: 70px;
  height: 47px;
  display: grid;
  place-items: center;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 9px;
}

.admin-brand img {
  max-width: 100%;
  max-height: 40px;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand strong {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-brand small {
  margin-top: 5px;
  color: #778395;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.admin-user small,
.admin-user strong {
  display: block;
}

.admin-user small {
  color: #758194;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-user strong {
  max-width: 220px;
  margin-top: 2px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-site {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.view-site span {
  color: #4b8aff;
}

.admin-main {
  position: relative;
  z-index: 2;
  width: min(1420px, calc(100% - clamp(36px, 8vw, 116px)));
  margin: 0 auto;
  padding: 70px 0 100px;
}

.admin-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.55fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 48px;
}

.admin-intro h1 {
  margin: 13px 0 0;
  font-family: var(--display);
  font-size: clamp(52px, 6vw, 86px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-transform: uppercase;
}

.admin-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.content-editor-card {
  margin-bottom: 22px;
  background:
    radial-gradient(circle at 90% 0%, rgba(31, 100, 255, 0.13), transparent 29%),
    rgba(12, 17, 24, 0.96);
  border: 1px solid var(--line);
  border-radius: 23px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.content-editor-card > summary {
  min-height: 104px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px clamp(22px, 3vw, 34px);
  cursor: pointer;
  list-style: none;
}

.content-editor-card > summary::-webkit-details-marker,
.content-service-panel > summary::-webkit-details-marker {
  display: none;
}

.content-editor-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #83adff;
  background: rgba(31, 100, 255, 0.12);
  border: 1px solid rgba(75, 138, 255, 0.26);
  border-radius: 14px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
}

.content-editor-card > summary > span:nth-child(2) {
  min-width: 0;
  display: block;
}

.content-editor-card > summary small,
.content-editor-card > summary strong,
.content-editor-card > summary em {
  display: block;
}

.content-editor-card > summary small {
  color: #4b8aff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.content-editor-card > summary strong {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.content-editor-card > summary em {
  margin-top: 7px;
  color: #718094;
  font-size: 9px;
  font-style: normal;
  line-height: 1.5;
}

.content-editor-card > summary > b {
  color: #778498;
  font-size: 23px;
  font-weight: 400;
  transition: transform 220ms ease, color 220ms ease;
}

.content-editor-card[open] > summary > b {
  color: #4b8aff;
  transform: rotate(45deg);
}

.content-editor-form {
  padding: 30px clamp(22px, 3vw, 34px) 34px;
  border-top: 1px solid var(--line);
}

.content-global-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: 0 16px;
}

.content-intro-field {
  grid-column: 1 / -1;
}

.content-services-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin: 16px 0 15px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.content-services-heading span {
  color: #4b8aff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.content-services-heading h3 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.content-services-heading p {
  max-width: 360px;
  margin: 0;
  color: #6e7a8c;
  font-size: 8px;
  line-height: 1.6;
  text-align: right;
}

.content-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.content-service-panel {
  background: #090e15;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
}

.content-service-panel > summary {
  min-height: 65px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
}

.content-service-panel > summary > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #76a4ff;
  background: rgba(31, 100, 255, 0.12);
  border-radius: 50%;
  font: 700 11px var(--display);
}

.content-service-panel > summary > strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.content-service-panel > summary > b {
  color: #657184;
  font-size: 18px;
  font-weight: 400;
  transition: transform 180ms ease, color 180ms ease;
}

.content-service-panel[open] {
  border-color: rgba(75, 138, 255, 0.3);
}

.content-service-panel[open] > summary > b {
  color: #4b8aff;
  transform: rotate(45deg);
}

.content-service-fields {
  padding: 17px 15px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.content-callout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.content-save-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.content-save-row p {
  margin: 0;
  color: #687487;
  font-size: 8px;
  line-height: 1.6;
}

.content-save-button {
  flex: 0 0 auto !important;
  min-width: 250px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(480px, 0.9fr) minmax(480px, 1.1fr);
  gap: 22px;
  align-items: start;
}

.admin-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.editor-card,
.projects-card {
  background: rgba(12, 17, 24, 0.94);
  border: 1px solid var(--line);
  border-radius: 23px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.security-card {
  padding: 0 25px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.security-card summary {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}

.security-card summary::-webkit-details-marker {
  display: none;
}

.security-card summary span {
  display: grid;
  gap: 4px;
}

.security-card summary small {
  color: #4b8aff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.security-card summary strong {
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
}

.security-card summary > b {
  color: #748196;
  font-size: 20px;
  transition: transform 180ms ease;
}

.security-card[open] summary > b {
  transform: rotate(45deg);
}

.security-card form {
  padding: 22px 0 25px;
  border-top: 1px solid var(--line);
}

.editor-card {
  padding: clamp(22px, 3vw, 34px);
}

.projects-card {
  min-height: 560px;
  padding: clamp(22px, 3vw, 30px);
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.card-heading span {
  color: #4b8aff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-heading h2 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #95a0b1;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.admin-field {
  margin-bottom: 18px;
}

.admin-field > label {
  display: block;
  margin: 0 0 8px 2px;
  color: #9ca7b6;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.admin-field > small {
  display: block;
  margin: 7px 0 0 2px;
  color: #667284;
  font-size: 8px;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  color: var(--white);
  background: #111821;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.admin-field input,
.admin-field select {
  height: 50px;
  padding: 0 14px;
}

.admin-field textarea {
  padding: 13px 14px;
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 100, 255, 0.12);
}

.admin-field ::placeholder {
  color: #596575;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 16px;
  align-items: center;
}

.publish-switch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: center;
  margin-top: 7px;
  cursor: pointer;
}

.publish-switch input {
  position: absolute;
  opacity: 0;
}

.publish-switch > span {
  position: relative;
  width: 44px;
  height: 25px;
  background: #303947;
  border-radius: 999px;
  transition: background 180ms ease;
}

.publish-switch > span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 17px;
  height: 17px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 180ms ease;
}

.publish-switch input:checked + span {
  background: var(--green);
}

.publish-switch input:checked + span::after {
  transform: translateX(19px);
}

.publish-switch strong,
.publish-switch small {
  display: block;
}

.publish-switch strong {
  font-size: 10px;
}

.publish-switch small {
  color: #687486;
  font-size: 8px;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 5px;
}

.photo-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 26px 0 13px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.photo-section-heading span,
.piece-editor-heading span {
  color: #4b8aff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.photo-section-heading h3,
.piece-editor-heading h3 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.photo-section-heading > p {
  max-width: 210px;
  margin: 0;
  color: #6f7b8d;
  font-size: 8px;
  line-height: 1.6;
  text-align: right;
}

.upload-box {
  min-width: 0;
  cursor: pointer;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.upload-preview {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 22px;
  background: #10161e center / cover no-repeat;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease;
}

.upload-box:hover .upload-preview {
  border-color: #4b8aff;
}

.upload-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(5, 7, 11, 0.48);
  opacity: 0;
}

.upload-preview.has-image::after {
  opacity: 1;
}

.upload-preview > * {
  position: relative;
  z-index: 1;
}

.upload-preview b {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 7px;
  color: var(--white);
  background: var(--blue);
  border-radius: 5px;
  font-size: 7px;
  letter-spacing: 0.1em;
}

.upload-preview i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: #4b8aff;
  background: rgba(31, 100, 255, 0.12);
  border-radius: 50%;
  font-style: normal;
  font-size: 20px;
}

.upload-preview strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

.upload-preview small {
  margin-top: 6px;
  color: #657184;
  font-size: 7px;
}

.edit-photo-note {
  margin: 10px 0 0;
  padding: 11px 13px;
  color: #8f9aab;
  background: rgba(31, 100, 255, 0.08);
  border: 1px solid rgba(31, 100, 255, 0.18);
  border-radius: 9px;
  font-size: 8px;
  line-height: 1.6;
}

.piece-editor {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.piece-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.piece-editor-heading > div > p {
  max-width: 430px;
  margin: 9px 0 0;
  color: #707c8e;
  font-size: 8px;
  line-height: 1.65;
}

.add-piece-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  flex: 0 0 auto;
  color: #dce5f2;
  background: rgba(31, 100, 255, .1);
  border: 1px solid rgba(75, 138, 255, .3);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}

.add-piece-button span {
  color: #6ba0ff;
  font-size: 15px;
  line-height: 1;
}

.add-piece-button:hover:not(:disabled) {
  background: rgba(31, 100, 255, .2);
  border-color: #4b8aff;
}

.add-piece-button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.piece-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.piece-list-empty {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 22px;
  color: #657184;
  background: rgba(255, 255, 255, .018);
  border: 1px dashed rgba(255, 255, 255, .13);
  border-radius: 12px;
}

.piece-list-empty span {
  color: #4b8aff;
  font-size: 23px;
}

.piece-list-empty p {
  max-width: 330px;
  margin: 0;
  font-size: 8px;
  line-height: 1.65;
}

.comparison-piece {
  padding: 16px;
  background: #0a0f16;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 14px;
}

.comparison-piece-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 13px;
}

.piece-sequence {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #70a2ff;
  background: rgba(31, 100, 255, .12);
  border-radius: 50%;
  font: 700 11px var(--display);
}

.comparison-piece-head input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--white);
  background: #111821;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  outline: none;
  font-size: 9px;
}

.comparison-piece-head input:focus {
  border-color: #4b8aff;
  box-shadow: 0 0 0 3px rgba(31, 100, 255, .12);
}

.remove-piece {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #8894a6;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
}

.remove-piece:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.piece-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.piece-upload-grid .upload-preview {
  min-height: 150px;
  padding: 16px;
  border-radius: 11px;
}

.piece-upload-grid .upload-preview i {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  font-size: 17px;
}

.piece-upload-grid .upload-preview strong {
  font-size: 15px;
}

.piece-upload-grid .upload-preview small {
  max-width: 150px;
}

.piece-limit {
  margin: 11px 2px 0;
  color: #586477;
  font-size: 7px;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.admin-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.admin-button.primary {
  flex: 1;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(31, 100, 255, 0.22);
}

.admin-button.secondary {
  color: #aab4c2;
  background: transparent;
  border: 1px solid var(--line);
}

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

.project-count {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white) !important;
  background: rgba(31, 100, 255, 0.18);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 16px !important;
}

.admin-projects {
  display: grid;
  gap: 11px;
}

.admin-project {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 9px;
  background: #10161e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
}

.admin-project-images {
  position: relative;
  height: 92px;
  overflow: hidden;
  background: #1a2029;
  border-radius: 9px;
}

.admin-project-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-project-images img:last-child {
  clip-path: inset(0 0 0 50%);
}

.admin-project-images::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--white);
}

.admin-project-copy {
  min-width: 0;
}

.admin-project-copy span,
.admin-project-copy strong,
.admin-project-copy small {
  display: block;
}

.admin-project-copy span {
  color: #4b8aff;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-project-copy strong {
  margin-top: 4px;
  overflow: hidden;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-project-copy small {
  margin-top: 7px;
  color: #687486;
  font-size: 8px;
}

.status-pill {
  display: inline-flex !important;
  width: max-content;
  margin-top: 7px;
  padding: 3px 6px;
  color: #58db83 !important;
  background: rgba(37, 211, 102, 0.1);
  border-radius: 999px;
}

.status-pill.draft {
  color: #f1b84b !important;
  background: rgba(241, 184, 75, 0.1);
}

.project-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.project-actions button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #9aa5b5;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.project-actions button:hover {
  color: var(--white);
  border-color: #4b8aff;
}

.project-actions .delete:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.admin-empty {
  min-height: 370px;
  display: grid;
  place-content: center;
  padding: 30px;
  color: #697587;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  text-align: center;
}

.admin-empty span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin: 0 auto 13px;
  color: #4b8aff;
  background: rgba(31, 100, 255, 0.1);
  border-radius: 50%;
  font-size: 21px;
}

.admin-empty strong {
  color: #aab4c2;
  font-family: var(--display);
  font-size: 22px;
  text-transform: uppercase;
}

.admin-empty p {
  max-width: 280px;
  margin: 7px auto 0;
  font-size: 9px;
  line-height: 1.6;
}

.admin-toast {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100% - 44px));
  padding: 14px 18px;
  color: var(--white);
  background: #17212d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.admin-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast.is-error {
  border-color: rgba(255, 77, 103, 0.4);
}

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

@media (max-width: 1050px) {
  .admin-layout,
  .admin-intro {
    grid-template-columns: 1fr;
  }

  .content-services-grid {
    grid-template-columns: 1fr;
  }

  .admin-intro {
    gap: 24px;
  }

  .admin-intro p {
    max-width: 620px;
  }
}

@media (max-width: 680px) {
  .admin-header {
    min-height: 68px;
  }

  .admin-brand div,
  .admin-user,
  .view-site {
    display: none;
  }

  .admin-main {
    width: calc(100% - 28px);
    padding: 48px 0 70px;
  }

  .admin-intro h1 {
    font-size: 54px;
  }

  .admin-form-grid,
  .upload-grid,
  .piece-upload-grid,
  .content-global-grid,
  .content-callout-grid {
    grid-template-columns: 1fr;
  }

  .content-intro-field {
    grid-column: auto;
  }

  .content-editor-card > summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 18px;
  }

  .content-editor-card > summary em {
    display: none;
  }

  .content-editor-form {
    padding: 22px 18px 24px;
  }

  .content-services-heading,
  .content-save-row {
    display: grid;
  }

  .content-services-heading p {
    max-width: none;
    text-align: left;
  }

  .content-save-button {
    width: 100%;
    min-width: 0;
  }

  .photo-section-heading,
  .piece-editor-heading {
    display: grid;
  }

  .photo-section-heading > p {
    max-width: none;
    text-align: left;
  }

  .add-piece-button {
    width: 100%;
    justify-content: center;
  }

  .upload-preview {
    min-height: 185px;
  }

  .form-actions {
    flex-direction: column;
  }

  .admin-project {
    grid-template-columns: 100px 1fr;
  }

  .project-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
}
