:root {
  color-scheme: dark;
  --bg: #0c0c0f;
  --panel: #15151a;
  --panel-2: #1c1c23;
  --text: #f4f4f6;
  --muted: #92929e;
  --line: rgba(255, 255, 255, .09);
  --violet: #ef57f2;
  --blue: #4486bf;
  --green: #58d6a2;
  --yellow: #edc45a;
  --red: #ff7782;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0, rgba(239, 87, 242, .12), transparent 28%),
    radial-gradient(circle at 100% 80%, rgba(68, 134, 191, .1), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 8px; color: var(--muted); letter-spacing: .16em; font-size: 10px; font-weight: 700; }
.muted { color: var(--muted); }

.brand { display: flex; align-items: center; gap: 12px; }
.mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; background: linear-gradient(145deg, rgba(239,87,242,.24), rgba(68,134,191,.13)); font-weight: 800; }
.mark.small { width: 38px; height: 38px; }

.login { min-height: 100vh; display: grid; grid-template-columns: 1.2fr .8fr; }
.hero { padding: 48px 7vw; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.hero-copy h1 { margin: 0; font-size: clamp(54px, 7vw, 94px); line-height: .96; letter-spacing: -.06em; }
.hero-copy h1 span { background: linear-gradient(90deg, var(--violet), #9a70ef, var(--blue)); background-clip: text; color: transparent; }
.hero-copy > p:last-child { max-width: 620px; color: #b0b0ba; font-size: 17px; line-height: 1.7; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features article { padding-top: 18px; border-top: 1px solid var(--line); }
.features h3 { margin: 8px 0; font-size: 14px; }
.features p { margin: 0; color: var(--muted); font-size: 11px; }
.login-side { display: grid; place-items: center; padding: 32px; background: rgba(12,12,15,.68); }
.card { width: min(100%, 420px); padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: rgba(21,21,26,.92); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.card h2 { margin: 0 0 8px; font-size: 32px; }
.card label { display: block; margin-top: 18px; font-size: 12px; }
.card input, .toolbar input, .toolbar select { width: 100%; margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); color: var(--text); outline: none; }
.password-wrap { position: relative; }
.password-wrap button { position: absolute; right: 10px; top: 18px; border: 0; background: transparent; color: var(--muted); }
.primary, .secondary { padding: 14px; border-radius: 11px; font-weight: 700; }
.primary { width: 100%; margin-top: 20px; display: flex; justify-content: space-between; border: 0; background: linear-gradient(100deg, #d94edd, var(--violet), #8a66ea); color: #150f16; }
.secondary { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); }
.compact { padding: 10px 14px; }
.primary:disabled, .secondary:disabled { opacity: .5; cursor: not-allowed; }
.note, .error { margin-top: 15px; padding: 13px; border-radius: 11px; font-size: 11px; }
.note { border: 1px solid rgba(68,134,191,.2); background: rgba(68,134,191,.07); color: #aeb8c3; }
.error { border: 1px solid rgba(255,119,130,.25); background: rgba(255,119,130,.08); color: #ffb1b7; }

.portal { min-height: 100vh; display: grid; grid-template-columns: 245px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 245px; padding: 24px 15px; display: flex; flex-direction: column; background: rgba(14,14,18,.96); border-right: 1px solid var(--line); }
.sidebar nav { display: grid; gap: 6px; margin-top: 32px; }
.nav { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; border-radius: 10px; background: transparent; color: #aaaab5; text-align: left; }
.nav:hover, .nav.active { background: rgba(239,87,242,.12); color: #f0b0f2; }
.danger { color: #ff949d; }
.sidebar-bottom { margin-top: auto; }
.workspace { grid-column: 2; }
.topbar { position: sticky; top: 0; z-index: 20; height: 72px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(12,12,15,.9); }
.breadcrumb { display: flex; gap: 9px; color: var(--muted); font-size: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(145deg, #6f3a72, #2e2632); font-size: 11px; font-weight: 800; }
.user-chip strong, .user-chip span { display: block; }
.user-chip strong { font-size: 11px; }
.user-chip span { color: var(--muted); font-size: 9px; }
.menu-button { display: none; }
.content { max-width: 1460px; margin: auto; padding: 38px 32px 70px; }
.heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.heading h1 { margin: 0 0 6px; font-size: 46px; letter-spacing: -.05em; }
.heading h1 span { color: #e997eb; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.stat { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,.028), rgba(255,255,255,.01)); }
.stat span, .stat small { display: block; }
.stat span { color: var(--muted); font-size: 11px; }
.stat strong { display: block; margin: 7px 0; font-size: 29px; }
.stat small { color: #71717b; }
.section-title { display: flex; justify-content: space-between; align-items: flex-end; margin: 42px 0 16px; }
.section-title h2 { margin: 0; }
.text-button, .back-button { border: 0; background: transparent; color: #caa0e6; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); transition: transform .2s; }
.project:hover { transform: translateY(-4px); }
.visual { position: relative; height: 180px; padding: 20px; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, rgba(239,87,242,.25), transparent 28%), linear-gradient(135deg, #18121a, #302036); font-size: 24px; font-weight: 800; text-align: center; }
.visual.blue { background: radial-gradient(circle at 70% 20%, rgba(68,134,191,.28), transparent 28%), linear-gradient(135deg, #11161a, #213744); }
.visual.gold { background: radial-gradient(circle at 25% 15%, rgba(237,196,90,.25), transparent 28%), linear-gradient(135deg, #18130f, #3a2b1a); }
.badge { position: absolute; top: 13px; left: 13px; padding: 6px 9px; border-radius: 99px; font-size: 9px; text-transform: uppercase; }
.badge.active, .badge.client { background: rgba(239,87,242,.13); color: #efa3f1; }
.badge.completed, .badge.available { background: rgba(88,214,162,.13); color: #9de6c5; }
.badge.draft, .badge.quarantined { background: rgba(237,196,90,.13); color: #f0d88f; }
.badge.deleted { background: rgba(255,119,130,.13); color: #ffb1b7; }
.badge.internal, .badge.archived { background: rgba(146,146,158,.13); color: #bdbdc7; }
.pbody { padding: 16px; }
.pbody small { color: var(--muted); }
.pbody h3 { margin: 6px 0 14px; }
.meta { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: #777782; font-size: 9px; }
.toolbar { display: grid; grid-template-columns: 1fr 220px; gap: 12px; margin-bottom: 18px; }
.toolbar input, .toolbar select { margin: 0; }
.table { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.row { width: 100%; padding: 16px 18px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 30px; gap: 12px; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: #c4c4cb; text-align: left; }
.row:last-child { border-bottom: 0; }
.row strong, .row small { display: block; }
.row small { margin-top: 4px; color: var(--muted); }
.empty { padding: 42px; text-align: center; color: var(--muted); }

.detail-hero { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(circle at 80% 0, rgba(239,87,242,.2), transparent 30%), linear-gradient(145deg, #18151d, #111116); }
.detail-hero h1 { margin: 22px 0 10px; font-size: 48px; }
.detail-grid { display: grid; grid-template-columns: 1fr 310px; gap: 18px; margin-top: 18px; }
.detail-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.detail-card dl div { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: 10px; }
.detail-card dd { margin: 0; }
.permissions { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
.permission { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.permission span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }

.file-list { display: grid; gap: 10px; }
.compact-list { margin-top: 16px; }
.file-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.018); }
.file-main { min-width: 0; display: flex; align-items: center; gap: 13px; }
.file-main > div:last-child { min-width: 0; }
.file-main strong, .file-main small { display: block; }
.file-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-main small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.file-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(68,134,191,.1); color: #8db9df; }
.file-badges { display: flex; gap: 5px; margin-top: 8px; }
.file-badges .badge { position: static; display: inline-flex; }
.file-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.approve { border-color: rgba(88,214,162,.3); color: #9de6c5; }
.reject { border-color: rgba(255,119,130,.3); color: #ffb1b7; }
.uploader { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.uploader input[type=file] { width: 100%; margin: 8px 0 10px; padding: 13px; border: 1px dashed rgba(239,87,242,.35); border-radius: 11px; background: var(--panel-2); color: var(--muted); }
.uploader .primary { max-width: 280px; }
.uploader > small { display: block; margin-top: 10px; color: var(--muted); }
.upload-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.upload-progress progress { width: min(100%, 480px); height: 10px; accent-color: var(--violet); }
.upload-progress span { color: var(--muted); font-size: 11px; }

/* BEGIN admin-create-1.0.6 */
.admin-form{margin-bottom:22px;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.form-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.form-heading h2{margin:0}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.form-grid label{display:grid;gap:8px;min-width:0;color:#c4c4cb;font-size:12px}
.form-grid input,.form-grid select,.form-grid textarea{box-sizing:border-box;width:100%;min-width:0;padding:13px 14px;border:1px solid var(--line);border-radius:11px;background:var(--panel-2);color:var(--text);outline:none}
.form-grid textarea{resize:vertical}
.form-field-wide{grid-column:1/-1}
.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
.form-actions .primary{width:auto;min-width:170px;margin-top:0}
.admin-form-help{margin:14px 0 0;font-size:12px}
button:disabled{cursor:not-allowed;opacity:.55}
@media(max-width:720px){.form-heading{flex-direction:column}.form-grid{grid-template-columns:1fr}.form-field-wide{grid-column:auto}.form-actions{flex-direction:column-reverse}.form-actions .primary,.form-actions .secondary{width:100%}}
/* END admin-create-1.0.6 */

.loading { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 14px; background: rgba(8,8,10,.75); }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--violet); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 110; transform: translateX(-50%); padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #27272f; }
.toast-error { border-color: rgba(255,119,130,.35); color: #ffb1b7; }

@media (max-width: 980px) {
  .login { grid-template-columns: 1fr; }
  .hero { display: none; }
  .login-side { min-height: 100vh; }
  .projects { grid-template-columns: 1fr 1fr; }
  .summary, .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .portal { display: block; }
  .sidebar { transform: translateX(-102%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .workspace { grid-column: auto; }
  .menu-button { display: block; }
  .breadcrumb { display: none; }
  .content { padding: 28px 16px; }
  .projects, .toolbar { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr auto; }
  .row > span:nth-child(2), .row > span:nth-child(3), .row > span:nth-child(4) { display: none; }
  .heading { align-items: flex-start; flex-direction: column; }
  .heading h1, .detail-hero h1 { font-size: 36px; }
  .file-item { align-items: flex-start; flex-direction: column; }
  .file-actions { width: 100%; justify-content: flex-start; }
}

/* BEGIN project-access-controls-1.0.6 */
.project-access-panel {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.access-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.access-heading h2 {
  margin: 0 0 7px;
}

.access-heading .muted {
  margin: 0;
}

.access-users {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.access-user {
  display: grid;
  grid-template-columns:
    minmax(190px, 1.1fr)
    minmax(280px, 1.6fr)
    auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.access-user-main {
  min-width: 0;
}

.access-user-main strong,
.access-user-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.access-user-main small {
  margin-top: 4px;
  color: var(--muted);
}

.access-state {
  display: inline-flex;
  width: fit-content;
  margin-top: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.access-state.active {
  color: #9ef0bd;
  background: rgba(43, 176, 99, .13);
}

.access-state.revoked {
  color: #ffabab;
  background: rgba(229, 75, 75, .13);
}

.access-state.unassigned {
  color: #c6c6ce;
  background: rgba(255, 255, 255, .07);
}

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

.access-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
}

.access-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #a657df;
}

.access-option span,
.access-option strong,
.access-option small {
  display: block;
  min-width: 0;
}

.access-option small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.access-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.access-actions .secondary {
  white-space: nowrap;
}

.access-revoke {
  color: #ff9696;
}

@media (max-width: 1050px) {
  .access-user {
    grid-template-columns: 1fr;
  }

  .access-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

@media (max-width: 650px) {
  .access-options {
    grid-template-columns: 1fr;
  }

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

  .access-actions button {
    width: 100%;
  }
}
/* END project-access-controls-1.0.6 */


/* BEGIN responsive-navigation-20260727 */

.topbar {
  justify-content: flex-start;
  gap: 14px;
}

.breadcrumb {
  min-width: 0;
  margin-right: auto;
}

.sidebar-bottom {
  display: grid;
  gap: 6px;
}

.external-nav {
  text-decoration: none;
}

.film-art-link {
  min-height: 40px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(239, 87, 242, .25);
  border-radius: 11px;
  background: rgba(239, 87, 242, .08);
  color: #eeb0f0;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.film-art-link:hover {
  border-color: rgba(239, 87, 242, .55);
  background: rgba(239, 87, 242, .15);
}

.film-art-short {
  display: none;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 25;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(2px);
}

.menu-button:focus-visible,
.film-art-link:focus-visible,
.nav:focus-visible,
.primary:focus-visible,
.secondary:focus-visible,
.text-button:focus-visible,
.back-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(239, 87, 242, .8);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .portal,
  .workspace,
  .content,
  .page {
    min-width: 0;
  }

  .sidebar {
    width: min(82vw, 300px);
    max-width: 300px;
    padding: 20px 14px;
    box-shadow: 18px 0 45px rgba(0, 0, 0, .42);
  }

  .sidebar-backdrop.open {
    display: block;
  }

  .topbar {
    height: 64px;
    padding: 0 12px;
    gap: 8px;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
    color: var(--text);
    font-size: 19px;
  }

  .topbar-film-art {
    min-height: 42px;
    padding: 9px 10px;
  }

  .film-art-long {
    display: none;
  }

  .film-art-short {
    display: inline;
  }

  .user-chip {
    min-width: 0;
    max-width: 47vw;
    margin-left: auto;
    padding-right: 8px;
  }

  .user-chip > div:last-child {
    min-width: 0;
  }

  .user-chip strong {
    max-width: 115px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content {
    padding: 22px 14px 48px;
  }

  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
  }

  .heading > div {
    min-width: 0;
    width: 100%;
  }

  .heading h1,
  .detail-hero h1 {
    overflow-wrap: anywhere;
    font-size: clamp(32px, 10vw, 38px);
    line-height: 1.04;
  }

  .heading > .compact {
    width: 100%;
    min-height: 46px;
  }

  .summary,
  .projects,
  .toolbar,
  .detail-grid,
  .form-grid {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .summary,
  .projects {
    gap: 12px;
  }

  .project,
  .stat,
  .detail-card {
    min-width: 0;
  }

  .project:hover {
    transform: none;
  }

  .visual {
    height: 150px;
    padding: 16px;
  }

  .pbody h3,
  .pbody small,
  .meta,
  .row strong,
  .row small {
    overflow-wrap: anywhere;
  }

  .meta {
    gap: 8px 14px;
    flex-wrap: wrap;
  }

  .toolbar {
    gap: 10px;
  }

  .toolbar input,
  .toolbar select {
    min-height: 48px;
  }

  .table {
    min-width: 0;
    overflow: visible;
  }

  .row {
    min-width: 0;
    padding: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

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

  .detail-hero {
    padding: 22px 18px;
  }

  .detail-card {
    padding: 18px;
  }

  .detail-card dl div {
    gap: 10px;
  }

  .detail-card dd {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
  }

  .file-item {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    flex-direction: column;
  }

  .file-main {
    min-width: 0;
    width: 100%;
  }

  .file-main strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .file-badges {
    flex-wrap: wrap;
  }

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

  .file-actions button,
  .file-actions .secondary {
    min-height: 44px;
    flex: 1 1 140px;
  }

  .uploader .primary {
    width: 100%;
    max-width: none;
  }

  .upload-progress {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .form-actions button {
    min-height: 46px;
  }

  .access-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .toast {
    width: calc(100% - 28px);
    max-width: 520px;
    box-sizing: border-box;
    text-align: center;
  }

  .login-side {
    padding-left: 14px;
    padding-right: 14px;
  }

  .card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .user-chip span {
    display: none;
  }

  .avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }

  .detail-card dl div {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-card dd {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .topbar {
    padding: 0 9px;
    gap: 6px;
  }

  .user-chip {
    max-width: 42vw;
  }

  .user-chip strong {
    max-width: 72px;
  }
}

/* END responsive-navigation-20260727 */


/* BEGIN entity-edit-20260727 */

.row-edit-button {
  width: auto;
  min-width: 76px;
  margin: 0;
  justify-self: end;
}

.project-row {
  cursor: pointer;
}

.project-row:hover {
  background: rgba(255, 255, 255, .025);
}

.user-mobile-details {
  display: none;
}

.edit-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 24px;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(5, 5, 8, .78);
  backdrop-filter: blur(5px);
}

.edit-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #15151a;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55);
}

.edit-form {
  padding: 24px;
}

.edit-form .form-heading {
  margin-bottom: 22px;
}

.edit-help {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(68, 134, 191, .2);
  border-radius: 11px;
  background: rgba(68, 134, 191, .07);
  font-size: 11px;
  line-height: 1.5;
}

.edit-form input:disabled,
.edit-form select:disabled {
  cursor: not-allowed;
  opacity: .65;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .row-edit-button {
    min-width: 82px;
    min-height: 44px;
  }

  .user-row {
    padding: 16px;
    align-items: start;
  }

  .user-row > span:nth-child(2),
  .user-row > span:nth-child(3),
  .user-row > span:nth-child(4) {
    display: none;
  }

  .user-main {
    min-width: 0;
  }

  .user-mobile-details {
    margin: 16px 0 0;
    display: grid;
    gap: 0;
  }

  .user-mobile-details div {
    min-width: 0;
    padding: 9px 0;
    display: grid;
    grid-template-columns: minmax(90px, .75fr) minmax(0, 1.25fr);
    gap: 12px;
    border-top: 1px solid var(--line);
  }

  .user-mobile-details dt {
    color: var(--muted);
    font-size: 10px;
  }

  .user-mobile-details dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #c4c4cb;
    font-size: 10px;
    text-align: right;
  }

  .technical-value {
    font-family: monospace;
    font-size: 9px !important;
  }

  .edit-modal {
    padding: 10px;
    align-items: end;
  }

  .edit-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 18px 18px 12px 12px;
  }

  .edit-form {
    padding: 20px 16px;
  }

  .edit-form .form-heading {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .user-mobile-details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .user-mobile-details dd {
    text-align: left;
  }

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

  .user-row .row-edit-button {
    width: 100%;
    justify-self: stretch;
  }
}

/* END entity-edit-20260727 */


/* BEGIN project-cards-20260727 */

.project-catalog {
  align-items: stretch;
}

.project-catalog-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-catalog-card:focus-visible {
  outline: 2px solid rgba(239, 87, 242, .85);
  outline-offset: 3px;
}

.project-catalog-card .visual {
  flex: 0 0 auto;
}

.project-card-visual-title {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.project-catalog-card .pbody {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-client {
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-catalog-card h3 {
  overflow-wrap: anywhere;
}

.project-card-info {
  margin-bottom: 15px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.project-card-info span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-card-footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.project-view-link {
  color: #9b9ba6;
  font-size: 10px;
}

.project-card-edit {
  flex: 0 0 auto;
  min-width: 76px;
  min-height: 38px;
}

.project-catalog-empty {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

@media (max-width: 980px) {
  .project-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .project-catalog {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-catalog-card .visual {
    height: 165px;
  }

  .project-card-footer {
    gap: 10px;
  }

  .project-card-edit {
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .project-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .project-card-edit {
    width: 100%;
  }
}

/* END project-cards-20260727 */


/* BEGIN DEON-VIDEO-PLAYER-20260802-V5 */
.video-player-modal.hidden { display: none; }
.video-player-modal { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 24px; background: rgba(2,4,8,.88); backdrop-filter: blur(14px); }
.video-player-dialog { width: min(1180px,100%); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 28px 80px rgba(0,0,0,.58); }
.video-player-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.video-player-heading > div { min-width: 0; }
.video-player-heading h2 { overflow: hidden; margin: 4px 0 0; text-overflow: ellipsis; white-space: nowrap; }
.video-player-heading .muted { margin: 7px 0 0; overflow-wrap: anywhere; }
.video-player-close { flex: 0 0 auto; }
.video-player-stage { display: grid; place-items: center; min-height: 260px; padding: 18px; background: radial-gradient(circle at 50% 15%,rgba(239,87,242,.09),transparent 42%),#050608; }
.video-player-stage video { display: block; width: 100%; max-height: min(72vh,760px); border-radius: 12px; background: #000; box-shadow: 0 16px 42px rgba(0,0,0,.45); }
.video-player-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px 17px; border-top: 1px solid var(--line); }
.video-player-footer p { margin: 0; }
.video-player-help { max-width: 520px; text-align: right; }
body.video-player-open { overflow: hidden; }
@media (max-width:720px) {
  .video-player-modal { padding: 0; }
  .video-player-dialog { width: 100%; min-height: 100%; max-height: 100vh; border: 0; border-radius: 0; }
  .video-player-heading { align-items: center; padding: 14px; }
  .video-player-heading h2 { max-width: calc(100vw - 120px); font-size: 18px; }
  .video-player-stage { min-height: 220px; padding: 0; }
  .video-player-stage video { max-height: 68vh; border-radius: 0; }
  .video-player-footer { align-items: flex-start; flex-direction: column; padding: 13px 14px 18px; }
  .video-player-help { text-align: left; }
}
/* END DEON-VIDEO-PLAYER-20260802-V5 */

/* BEGIN DEON-ACCESS-HISTORY-20260818-V3 */

.access-summary {
  margin-bottom: 20px;
}


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


.access-item {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}


.access-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}


.access-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}


.access-head small,
.access-ua {
  color: var(--muted);
  overflow-wrap: anywhere;
}


.access-badge {
  flex: 0 0 auto;
  height: max-content;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}


.access-badge.success {
  color: #9fe1b8;
}


.access-badge.failed,
.access-badge.blocked {
  color: #ffb0b0;
}


.access-badge.logout {
  color: #b4d0ff;
}


.access-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 9px;
}


.access-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}


.access-grid span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}


.access-grid strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}


.access-reason,
.access-ua {
  margin: 10px 0 0;
  font-size: 11px;
}


.access-reason {
  color: #e8c9c9;
}


.access-ua {
  font-size: 10px;
  opacity: .72;
}


.access-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}


@media (max-width: 900px) {

  .access-grid {

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


@media (max-width: 620px) {

  .access-head {
    flex-direction: column;
  }


  .access-grid {
    grid-template-columns: 1fr;
  }


  .access-pages {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }


  .access-pages span {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }
}

/* END DEON-ACCESS-HISTORY-20260818-V3 */

/* BEGIN DEON-DOWNLOAD-PROGRESS-20260819-V1 */

.download-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 8, 10, .82);
  backdrop-filter: blur(6px);
}

.download-progress-card {
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #18181d;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(255, 255, 255, .02);
}

.download-progress-card h2 {
  margin: 4px 0 8px;
}

.download-progress-file {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.download-progress-card progress {
  display: block;
  width: 100%;
  height: 12px;
  margin: 0;
  accent-color: var(--violet);
}

.download-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
}

.download-progress-meta strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.download-progress-meta span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.download-progress-status {
  margin: 18px 0 0;
  font-size: 12px;
}

@media (max-width: 720px) {
  .download-progress-overlay {
    padding: 16px;
  }

  .download-progress-card {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .download-progress-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .download-progress-meta span {
    text-align: left;
  }
}

/* END DEON-DOWNLOAD-PROGRESS-20260819-V1 */
