@import url("https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800&display=swap");

:root {
  --black: rgb(0, 0, 0);
  --black-raised: rgb(10, 10, 10);
  --black-soft: rgb(16, 16, 16);
  --surface: rgb(18, 18, 18);
  --surface-soft: rgb(24, 24, 24);
  --surface-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018) 48%, rgba(69, 176, 163, 0.035)), var(--surface);
  --surface-gradient-accent: radial-gradient(circle at 82% 30%, rgba(69, 176, 163, 0.13), transparent 32%), linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)), var(--surface);
  --accent: rgb(69, 176, 163);
  --accent-soft: rgba(69, 176, 163, 0.12);
  --accent-line: rgba(69, 176, 163, 0.42);
  --gray: rgb(192, 192, 192);
  --gray-soft: rgba(192, 192, 192, 0.1);
  --gray-line: rgba(192, 192, 192, 0.18);
  --gray-muted: rgba(192, 192, 192, 0.62);
  --gray-faint: rgba(192, 192, 192, 0.38);
  --light: rgb(242, 242, 242);
  --support-red: rgb(214, 44, 44);
  --support-red-soft: rgba(214, 44, 44, 0.14);
  --support-red-line: rgba(214, 44, 44, 0.55);
  --danger: rgb(69, 176, 163);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.48);
  --troppart-scrollbar-size: 10px;
  --troppart-scrollbar-track: rgba(0, 0, 0, 0.34);
  --troppart-scrollbar-thumb: rgba(69, 176, 163, 0.54);
  --troppart-scrollbar-thumb-hover: rgba(69, 176, 163, 0.82);
  --troppart-dropdown-visible-items: 15;
  --site-hd-scale: 1;
  --site-hd-scale-inverse: 1;
  color: var(--light);
  background: var(--black);
  font-family: "Urbanist", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--light);
  background: var(--black);
}
html.site-hd-scaling {
  overflow-x: hidden;
}

html.site-hd-scaling body {
  width: calc(100vw * var(--site-hd-scale-inverse, 1));
  min-height: calc(100vh * var(--site-hd-scale-inverse, 1));
  transform-origin: 0 0;
  zoom: var(--site-hd-scale, 1);
}

button,
input,
select,
textarea {
  font: inherit;
  font-family: "Urbanist", sans-serif;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.project-suggestions,
.troppart-select__menu,
.field__control select,
.troppart-datepicker,
.modal__card--history,
.modal__card--support-list,
.support-ticket-list,
.project-filter-nav,
.user-jobs-list,
.table-wrap {
  scrollbar-width: thin;
  scrollbar-color: var(--troppart-scrollbar-thumb) var(--troppart-scrollbar-track);
}

.project-suggestions::-webkit-scrollbar,
.troppart-select__menu::-webkit-scrollbar,
.field__control select::-webkit-scrollbar,
.troppart-datepicker::-webkit-scrollbar,
.modal__card--history::-webkit-scrollbar,
.modal__card--support-list::-webkit-scrollbar,
.support-ticket-list::-webkit-scrollbar,
.project-filter-nav::-webkit-scrollbar,
.user-jobs-list::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: var(--troppart-scrollbar-size);
  height: var(--troppart-scrollbar-size);
}

.project-suggestions::-webkit-scrollbar-track,
.troppart-select__menu::-webkit-scrollbar-track,
.field__control select::-webkit-scrollbar-track,
.troppart-datepicker::-webkit-scrollbar-track,
.modal__card--history::-webkit-scrollbar-track,
.modal__card--support-list::-webkit-scrollbar-track,
.support-ticket-list::-webkit-scrollbar-track,
.project-filter-nav::-webkit-scrollbar-track,
.user-jobs-list::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: var(--troppart-scrollbar-track);
}

.project-suggestions::-webkit-scrollbar-thumb,
.troppart-select__menu::-webkit-scrollbar-thumb,
.field__control select::-webkit-scrollbar-thumb,
.troppart-datepicker::-webkit-scrollbar-thumb,
.modal__card--history::-webkit-scrollbar-thumb,
.modal__card--support-list::-webkit-scrollbar-thumb,
.support-ticket-list::-webkit-scrollbar-thumb,
.project-filter-nav::-webkit-scrollbar-thumb,
.user-jobs-list::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--troppart-scrollbar-thumb-hover), var(--troppart-scrollbar-thumb));
  background-clip: padding-box;
}

.project-suggestions::-webkit-scrollbar-thumb:hover,
.troppart-select__menu::-webkit-scrollbar-thumb:hover,
.field__control select::-webkit-scrollbar-thumb:hover,
.troppart-datepicker::-webkit-scrollbar-thumb:hover,
.modal__card--history::-webkit-scrollbar-thumb:hover,
.modal__card--support-list::-webkit-scrollbar-thumb:hover,
.support-ticket-list::-webkit-scrollbar-thumb:hover,
.project-filter-nav::-webkit-scrollbar-thumb:hover,
.user-jobs-list::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--troppart-scrollbar-thumb-hover);
  background-clip: padding-box;
}

.is-hidden {
  display: none !important;
}

.view {
  min-height: 100vh;
}

.view.view-entering {
  animation: view-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.view.view-entering .app-header {
  animation: header-enter 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.view.view-entering .sidebar {
  animation: sidebar-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.view.view-entering .app-main > * {
  animation: content-enter 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.view.view-entering .app-main > *:nth-child(2) {
  animation-delay: 45ms;
}

.view.view-entering .app-main > *:nth-child(3) {
  animation-delay: 90ms;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--light);
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-panel .brand__logo {
  width: 260px;
}

.app-header .brand__logo {
  width: 180px;
}

.legal-shell .brand__logo {
  width: 260px;
}

.brand--mobile {
  display: none;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.9px;
  line-height: 1.4;
  text-transform: uppercase;
}

.avatar {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  color: var(--gray);
  background: var(--gray-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.avatar--admin {
  border-color: var(--accent-line);
  color: var(--black);
  background: var(--accent);
}

/* Login */

.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 46%) 1fr;
}

.brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--gray-line);
  padding: 50px 62px 38px;
  background:
    radial-gradient(circle at 12% 86%, rgba(69, 176, 163, 0.12), transparent 28%),
    var(--black);
}

.brand-panel > .brand-panel__video,
.brand-panel > .brand-panel__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.brand-panel > .brand-panel__video {
  z-index: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
}

.brand-panel.has-video > .brand-panel__video {
  opacity: 0.58;
}

.brand-panel > .brand-panel__overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 58%);
}

.brand-panel__video-placeholder {
  position: absolute;
  z-index: 1;
  right: 34px;
  bottom: 34px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  transition: opacity 220ms ease;
}

.brand-panel__video-placeholder span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brand-panel__video-placeholder small {
  color: var(--gray-muted);
  font-size: 9px;
}

.brand-panel.has-video .brand-panel__video-placeholder {
  opacity: 0;
}

.brand-panel::after {
  position: absolute;
  right: -130px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(69, 176, 163, 0.025),
    0 0 0 96px rgba(69, 176, 163, 0.018);
  content: "";
}

.brand-panel > *:not(.brand-panel__video):not(.brand-panel__overlay):not(.brand-panel__video-placeholder) {
  position: relative;
  z-index: 2;
}

.brand-panel__content {
  width: min(100%, 560px);
  margin: auto 0;
  padding: 65px 0;
}

.brand-panel h1 {
  margin: 0;
  font-size: clamp(52px, 5.5vw, 78px);
  font-weight: 800;
  letter-spacing: -4px;
  line-height: 0.98;
}

.brand-panel h1 span {
  color: var(--accent);
}

.brand-panel__content > p:not(.eyebrow) {
  max-width: 445px;
  margin: 28px 0 0;
  color: var(--gray-muted);
  font-size: 15px;
  line-height: 1.75;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 54px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-item__number {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
}

.feature-item strong,
.feature-item small {
  display: block;
}

.feature-item strong {
  margin-bottom: 4px;
  color: var(--light);
  font-size: 13px;
  font-weight: 700;
}

.feature-item small {
  color: var(--gray-muted);
  font-size: 11px;
}

.brand-panel__footer {
  margin: 0;
  color: var(--gray-faint);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px;
  background:
    radial-gradient(circle at 86% 7%, rgba(69, 176, 163, 0.08), transparent 22%),
    var(--black-raised);
}

.login-card {
  width: min(100%, 420px);
}

.login-card__heading {
  margin-bottom: 34px;
}

.login-card__heading h2,
.modal__card h2 {
  margin: 0;
  color: var(--light);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.1;
}

.login-card__heading > p:last-child {
  margin: 12px 0 0;
  color: var(--gray-muted);
  font-size: 13px;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
}

.field-note {
  display: block;
  color: var(--gray-faint);
  font-size: 9px;
  line-height: 1.45;
}

.field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.field__control > svg {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gray-faint);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  pointer-events: none;
}

.field__control input,
.field__control select,
.field__control textarea {
  width: 100%;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--light);
  background: var(--black);
  font-size: 13px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.field__control input,
.field__control select {
  height: 50px;
  padding: 0 47px 0 45px;
}

.edit-job-download-field .field__control {
  min-height: 50px;
}

.edit-job-download-field .field__control input[type="file"] {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 12px 56px 12px 45px;
  line-height: 1.2;
  cursor: pointer;
}

.edit-job-download-control.is-dragover,
.edit-job-download-control.has-file {
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 18px rgba(69, 176, 163, 0.12);
}

.edit-job-download-action {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.78);
  transform: translateY(-50%);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.edit-job-download-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.edit-job-download-action--delete {
  right: 52px;
  color: #ff5a5a;
}

.edit-job-download-action--upload {
  right: 14px;
  color: var(--accent);
}

.edit-job-download-action:hover,
.edit-job-download-action:focus-visible {
  border-color: currentColor;
  background: rgba(69, 176, 163, 0.14);
}

.edit-job-download-action--delete:hover,
.edit-job-download-action--delete:focus-visible {
  background: rgba(255, 90, 90, 0.12);
}

.edit-job-download-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.edit-job-download-progress {
  width: 100%;
  margin-top: 8px;
}

.edit-job-download-files {
  display: grid;
  width: 100%;
  margin-top: 5px;
  border-top: 1px solid rgba(192, 192, 192, 0.13);
}

.edit-job-download-files.is-hidden {
  display: none;
}

.edit-job-download-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 28px;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  border-bottom: 1px solid rgba(192, 192, 192, 0.1);
  color: var(--gray-muted);
  font-size: 0.5vw;
}

.edit-job-download-file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--light);
  font-size: 0.6vw;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edit-job-download-file-row time,
.edit-job-download-file-row > span {
  white-space: nowrap;
}

.edit-job-download-file-delete {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  color: #ff5a5a;
  background: transparent;
  cursor: pointer;
}

.edit-job-download-file-delete svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.edit-job-download-file-delete:hover,
.edit-job-download-file-delete:focus-visible {
  color: #ff7a7a;
  background: rgba(255, 90, 90, 0.1);
}

.edit-job-download-file-delete:disabled {
  cursor: wait;
  opacity: 0.4;
}

.edit-job-download-field .field__control input[type="file"]::file-selector-button {
  height: 28px;
  margin-right: 12px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-xs);
  color: var(--accent);
  background: rgba(69, 176, 163, 0.12);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.edit-job-download-field .field__control input[type="file"]:hover::file-selector-button,
.edit-job-download-field .field__control input[type="file"]:focus::file-selector-button {
  border-color: var(--accent);
  background: rgba(69, 176, 163, 0.2);
}

.upload-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
  pointer-events: none;
}

.pdf-dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  margin-top: 10px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius-md);
  padding: 15px;
  color: var(--gray);
  background:
    linear-gradient(135deg, rgba(69, 176, 163, 0.1), transparent 54%),
    var(--black);
  outline: none;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.pdf-dropzone:hover,
.pdf-dropzone:focus-visible,
.pdf-dropzone.is-dragover {
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(69, 176, 163, 0.18);
  transform: translateY(-1px);
}

.pdf-dropzone.has-file {
  border-style: solid;
  border-color: var(--accent);
  background:
    linear-gradient(135deg, rgba(69, 176, 163, 0.28), transparent 58%),
    rgba(69, 176, 163, 0.08);
  box-shadow:
    0 0 0 3px rgba(69, 176, 163, 0.14),
    0 18px 38px rgba(69, 176, 163, 0.16);
}

.pdf-dropzone.is-invalid {
  border-color: var(--support-red-line);
  box-shadow: 0 0 0 3px var(--support-red-soft);
}

.pdf-dropzone__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  color: var(--black);
  background: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pdf-dropzone__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdf-dropzone__icon--file {
  color: var(--accent);
  background: rgba(0, 0, 0, 0.78);
}

.pdf-dropzone__text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pdf-dropzone__text strong {
  color: var(--light);
  font-size: 14px;
}

.pdf-dropzone.has-file .pdf-dropzone__text strong {
  color: var(--accent);
  font-size: 16px;
}

.pdf-dropzone__text small,
.pdf-upload-name {
  color: var(--gray-muted);
}

.pdf-dropzone.has-file .pdf-dropzone__text small {
  color: var(--gray);
  font-size: 11px;
}

.pdf-dropzone__filename,
.pdf-dropzone__reference {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-upload-name {
  display: block;
  margin-top: 8px;
}

.upload-progress {
  display: grid;
  gap: 8px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(69, 176, 163, 0.12), transparent 62%),
    rgba(0, 0, 0, 0.44);
}

.upload-progress.is-hidden {
  display: none;
}

.upload-progress__track {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(192, 192, 192, 0.14);
}

.upload-progress__track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(69, 176, 163, 0.55), var(--accent));
  box-shadow: 0 0 18px rgba(69, 176, 163, 0.45);
  transition: width 180ms ease;
}

.upload-progress.is-indeterminate .upload-progress__track span {
  animation: upload-progress-indeterminate 1.15s ease-in-out infinite;
}

.upload-progress.is-complete {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(69, 176, 163, 0.1);
}

.upload-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upload-progress__meta strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.upload-progress__meta small {
  color: var(--gray-faint);
  font-size: 10px;
  text-align: right;
}

.field__control textarea {
  min-height: 150px;
  padding: 14px;
  line-height: 1.5;
  resize: vertical;
}

.field__control input:-webkit-autofill,
.field__control input:-webkit-autofill:hover,
.field__control input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--light);
  box-shadow: 0 0 0 1000px var(--black) inset;
  caret-color: var(--light);
  transition: background-color 9999s ease-in-out 0s;
}

.field__control select {
  appearance: none;
  cursor: pointer;
}

.field__control--select {
  isolation: isolate;
}

.field__control--select > svg {
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.field__control--select.is-troppart-select {
  display: flex;
  z-index: auto;
}

.field__control--select.is-troppart-select.is-select-open {
  z-index: 60;
}

.field__control--select select {
  border-color: rgba(192, 192, 192, 0.16);
  color: var(--light);
  background:
    linear-gradient(135deg, rgba(69, 176, 163, 0.08), transparent 58%),
    rgba(0, 0, 0, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(0, 0, 0, 0.16);
  color-scheme: dark;
}

.field__control--select select option {
  color: var(--light);
  background: #050505;
}

.field__control--select select:disabled {
  color: var(--gray-faint);
  cursor: not-allowed;
  opacity: 0.62;
}

.field__control--select.is-troppart-select select.troppart-select__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.troppart-select__button {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  border: 1px solid rgba(192, 192, 192, 0.16);
  border-radius: var(--radius-sm);
  padding: 0 47px 0 45px;
  color: var(--light);
  background: var(--black);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 0 1px rgba(0, 0, 0, 0.16);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.troppart-select__button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.troppart-select__button:hover,
.troppart-select__button:focus-visible,
.field__control--select.is-select-open .troppart-select__button {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(69, 176, 163, 0.1);
}

.troppart-select__native.is-invalid + .troppart-select__button {
  border-color: var(--accent);
  background: rgba(69, 176, 163, 0.035);
}

.troppart-select__button:disabled {
  color: var(--gray-faint);
  cursor: not-allowed;
  opacity: 0.62;
}

.troppart-select__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  width: 100%;
  max-height: min(calc((34px * var(--troppart-dropdown-visible-items)) + 12px), calc(100vh - 180px));
  overflow-y: auto;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  padding: 6px;
  background: var(--surface-gradient);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.troppart-select__option {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--gray);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.troppart-select__empty {
  padding: 9px 10px;
  color: var(--gray-faint);
  font-size: 14px;
}

.troppart-select__option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.troppart-select__option .troppart-select__checkbox {
  position: relative;
  display: inline-flex;
  width: clamp(13px, 0.78vw, 16px);
  min-width: clamp(13px, 0.78vw, 16px);
  height: clamp(13px, 0.78vw, 16px);
  flex: 0 0 clamp(13px, 0.78vw, 16px);
  margin-right: 9px;
  overflow: visible;
  border: 1px solid rgba(192, 192, 192, 0.42);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.troppart-select__option .troppart-select__checkbox::after {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 4px;
  height: 7px;
  border-right: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  content: "";
  opacity: 0;
  transform: translate(-50%, -58%) rotate(45deg);
}

.troppart-select__option.is-selected .troppart-select__checkbox {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(69, 176, 163, 0.12);
}

.troppart-select__option.is-selected .troppart-select__checkbox::after {
  opacity: 1;
}

.troppart-select__option:hover,
.troppart-select__option:focus-visible,
.troppart-select__option.is-selected {
  outline: none;
  color: var(--accent);
  background: var(--accent-soft);
}

.troppart-select__option.is-selected {
  box-shadow: inset 3px 0 0 var(--accent);
}

.field__control--select::after {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--gray);
  border-bottom: 1px solid var(--gray);
  content: "";
  pointer-events: none;
  transform: translateY(-60%) rotate(45deg);
}

.field__control input::placeholder,
.field__control textarea::placeholder {
  color: var(--gray-faint);
}

.field__control input:hover,
.field__control select:hover,
.field__control textarea:hover {
  border-color: rgba(192, 192, 192, 0.34);
}

.field__control--select:hover::after,
.field__control--select:focus-within::after,
.field__control--select.is-select-open::after {
  border-color: var(--accent);
}

.field__control input:focus,
.field__control select:focus,
.field__control textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(69, 176, 163, 0.1);
}

.field__control input.is-invalid,
.field__control select.is-invalid,
.field__control textarea.is-invalid {
  border-color: var(--accent);
  background: rgba(69, 176, 163, 0.035);
}

.project-picker {
  position: relative;
  z-index: 20;
  display: block;
}

.project-picker > svg {
  top: 50%;
  transform: translateY(-50%);
}

.project-suggestions {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  display: grid;
  max-height: min(calc((34px * var(--troppart-dropdown-visible-items)) + 12px), calc(100vh - 180px));
  overflow-y: auto;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  padding: 6px;
  background: var(--surface-gradient);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.project-suggestion {
  display: flex;
  width: 100%;
  align-items: center;
  border: 0;
  border-radius: 9px;
  padding: 9px 10px;
  color: var(--gray);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.project-suggestion:hover,
.project-suggestion:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
}

.project-suggestions__empty {
  padding: 9px 10px;
  color: var(--gray-faint);
  font-size: 14px;
}

.password-toggle {
  position: absolute;
  right: 9px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--gray-faint);
  background: transparent;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.password-toggle:hover,
.password-toggle.is-visible {
  color: var(--accent);
  background: var(--accent-soft);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.field__control--date input[type="date"] {
  padding-right: 14px;
  padding-left: 56px;
}

.field__control--date input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
}

.field__control--date > svg {
  display: none;
}

.date-picker-trigger {
  position: absolute;
  left: 11px;
  z-index: 2;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  color: var(--accent);
  background: rgba(69, 176, 163, 0.08);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.date-picker-trigger:hover,
.date-picker-trigger:focus-visible {
  border-color: var(--accent);
  background: rgba(69, 176, 163, 0.16);
  box-shadow: 0 0 0 3px rgba(69, 176, 163, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.date-picker-trigger svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.troppart-datepicker {
  position: fixed;
  z-index: 2000;
  width: 284px;
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  padding: 12px;
  color: var(--gray);
  background:
    linear-gradient(145deg, rgba(69, 176, 163, 0.13), transparent 60%),
    rgba(11, 11, 11, 0.98);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.44);
}

.troppart-datepicker.is-hidden {
  display: none;
}

.troppart-datepicker__header {
  display: grid;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
}

.troppart-datepicker__header strong {
  color: var(--light);
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  text-transform: capitalize;
}

.troppart-datepicker__center {
  display: grid;
  gap: 5px;
  min-width: 0;
  justify-items: center;
}

.troppart-datepicker__year {
  display: inline-grid;
  align-items: center;
  gap: 5px;
  grid-template-columns: 24px 70px 24px;
}

.troppart-datepicker__year-input {
  width: 70px;
  height: 28px;
  border: 1px solid rgba(69, 176, 163, 0.32);
  border-radius: 9px;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.42);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  outline: none;
}

.troppart-datepicker__year-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(69, 176, 163, 0.12);
}

.troppart-datepicker__header button,
.troppart-datepicker__day,
.troppart-datepicker__today {
  border: 1px solid rgba(192, 192, 192, 0.14);
  color: var(--gray);
  background: rgba(192, 192, 192, 0.04);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.troppart-datepicker__header button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
}

.troppart-datepicker__header .troppart-datepicker__year-button {
  width: 24px;
  height: 28px;
  border-radius: 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.troppart-datepicker__header button:hover,
.troppart-datepicker__day:hover,
.troppart-datepicker__today:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(69, 176, 163, 0.13);
}

.troppart-datepicker__header svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.troppart-datepicker__weekdays,
.troppart-datepicker__grid {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(7, 1fr);
}

.troppart-datepicker__weekdays {
  margin-bottom: 6px;
  color: var(--gray-faint);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.troppart-datepicker__day {
  display: grid;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
}

.troppart-datepicker__day.is-muted {
  color: rgba(192, 192, 192, 0.28);
}

.troppart-datepicker__day.is-today {
  border-color: rgba(69, 176, 163, 0.48);
}

.troppart-datepicker__day.is-selected {
  border-color: var(--accent);
  color: var(--black);
  background: var(--accent);
}

.troppart-datepicker__today {
  width: 100%;
  min-height: 36px;
  margin-top: 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 850;
}

.form-options {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: -2px;
}

.form-options > span {
  max-width: 190px;
  color: var(--gray-faint);
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--gray);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  user-select: none;
}

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

.checkbox__box {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--accent-line);
  border-radius: 8px;
  background: var(--black);
  box-shadow: 0 0 0 3px rgba(69, 176, 163, 0.08);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.checkbox__box svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--black);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  opacity: 0;
}

.checkbox input:checked + .checkbox__box {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(69, 176, 163, 0.18);
}

.checkbox input:checked + .checkbox__box svg {
  opacity: 1;
}

.checkbox:hover .checkbox__box,
.checkbox input:focus-visible + .checkbox__box {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.checkbox.is-invalid {
  color: var(--light);
}

.checkbox.is-invalid .checkbox__box {
  border-color: var(--support-red);
  box-shadow: 0 0 0 4px var(--support-red-soft);
}

.checkbox.is-invalid .policy-link {
  color: var(--support-red);
}

.policy-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-link:hover {
  color: var(--gray);
}

.optional-label {
  color: var(--gray-faint);
  font-size: 9px;
  font-weight: 500;
}

.primary-button,
.secondary-button,
.light-button,
.header-settings-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.primary-button {
  min-height: 50px;
  gap: 10px;
  border: 1px solid var(--accent);
  padding: 0 18px;
  color: var(--black);
  background: var(--accent);
  box-shadow: 0 10px 25px rgba(69, 176, 163, 0.14);
  font-size: 12px;
}

.primary-button:hover {
  box-shadow: 0 13px 30px rgba(69, 176, 163, 0.24);
  transform: translateY(-1px);
}

.primary-button:active,
.secondary-button:active,
.light-button:active,
.header-settings-button:active {
  transform: translateY(0);
}

.primary-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.primary-button--compact {
  min-height: 41px;
  padding: 0 15px;
  font-size: 11px;
}

.primary-button.is-loading {
  cursor: wait;
  opacity: 0.75;
}

.primary-button.is-loading > svg {
  display: none;
}

.button-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.primary-button.is-loading .button-spinner {
  display: inline-block;
}

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

.secondary-button {
  min-height: 42px;
  border: 1px solid var(--accent-line);
  padding: 0 16px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 11px;
}

.secondary-button:hover {
  border-color: var(--accent);
  background: rgba(69, 176, 163, 0.18);
  transform: translateY(-1px);
}

.form-status {
  min-height: 16px;
  margin: -5px 0 0;
  color: var(--accent);
  font-size: 10px;
  line-height: 1.45;
}

.login-card .form-status {
  text-align: center;
}

.form-status.is-success {
  color: var(--gray);
}

.login-card .form-status.is-blocking {
  color: var(--support-red);
  font-size: 15px;
  font-weight: 850;
}

.account-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--gray-soft);
}

.account-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.account-note p {
  margin: 0;
  color: var(--gray-muted);
  font-size: 10px;
  line-height: 1.5;
}

/* Shared application layout */

.app-view {
  background: var(--black);
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 70px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-line);
  padding: 0 30px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-user__text {
  display: grid;
  justify-items: end;
  margin-right: 3px;
}

.header-user__text strong {
  color: var(--light);
  font-size: 12px;
  font-weight: 850;
}

.header-user__text small {
  margin-top: 2px;
  color: var(--gray-faint);
  font-size: 9px;
}

.app-header .avatar {
  display: none;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  place-items: center;
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  color: var(--gray-muted);
  background: var(--black);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.icon-button:hover {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-settings-button {
  min-height: 33px;
  border: 1px solid var(--accent-line);
  padding: 0 11px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 9px;
}

.header-settings-button:hover {
  border-color: var(--accent);
}

.app-shell {
  display: grid;
  min-height: calc(100vh - 70px);
  grid-template-columns: 226px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 70px;
  display: flex;
  height: calc(100vh - 70px);
  flex-direction: column;
  border-right: 1px solid var(--gray-line);
  padding: 28px 17px 22px;
  background: var(--surface-gradient);
}

.sidebar__label {
  margin: 0 0 12px 11px;
  color: var(--gray-faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
}

.sidebar-link {
  display: flex;
  width: 100%;
  min-height: 41px;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 11px;
  color: var(--gray-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-link:hover {
  color: var(--gray);
  background: var(--gray-soft);
  transform: translateX(3px);
}

.sidebar-link.is-active {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 8px 24px rgba(69, 176, 163, 0.08);
  font-weight: 700;
  transform: translateX(4px);
}

.sidebar-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nav-badge {
  display: inline-flex;
  min-width: 0;
  height: auto;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  font-size: 0.7vw;
  font-weight: 900;
  line-height: 1;
}

.nav-badge.is-empty {
  color: var(--gray-faint);
}

.sidebar-card {
  margin-top: auto;
  border: 1px solid var(--gray-line);
  border-radius: 13px;
  padding: 14px;
  background: var(--surface-gradient);
}

#dashboardView .sidebar-support {
  display: grid;
  width: 100%;
  margin-top: auto;
  gap: 8px;
}

#dashboardView .sidebar-support .light-button {
  width: 100%;
  justify-content: center;
}

#dashboardView .sidebar-support .support-ticket-note {
  justify-self: stretch;
  text-align: center;
}

#dashboardView .sidebar-card {
  margin-top: 10px;
}

.sidebar-card span,
.sidebar-card strong {
  display: block;
}

.sidebar-card span {
  color: var(--gray-faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.sidebar-card strong {
  margin-top: 7px;
  color: var(--accent);
  font-size: 11px;
}

.sidebar-card p {
  margin: 7px 0 0;
  color: var(--gray-faint);
  font-size: 9px;
  line-height: 1.5;
}

.sidebar-card .sidebar-subscription-end {
  display: grid;
  gap: 2px;
}

.sidebar-card .sidebar-subscription-end span {
  color: var(--gray-faint);
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0;
  line-height: inherit;
  text-transform: none;
}

.sidebar-card .sidebar-subscription-end time {
  display: block;
  color: var(--accent);
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
  font-variant-numeric: tabular-nums;
}

.app-main {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 40px 42px 58px;
}

.app-main > * {
  min-width: 0;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.page-heading-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.page-heading-actions .primary-button--compact {
  gap: 8px;
  white-space: nowrap;
}

.page-heading-actions .primary-button--compact svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.page-heading h1 {
  margin: 0;
  color: var(--light);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.1;
}

.page-heading > div > p:last-child {
  margin: 10px 0 0;
  color: var(--gray-muted);
  font-size: 12px;
}

.stat-grid {
  display: grid;
  gap: 15px;
  margin-top: 29px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card {
  position: relative;
  display: flex;
  min-height: 122px;
  align-items: flex-start;
  gap: 15px;
  overflow: hidden;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  padding: 19px;
  background: var(--surface-gradient);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-card--button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
}

.stat-card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(-3px);
}

.stat-card--button:focus-visible {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(69, 176, 163, 0.12),
    0 14px 36px rgba(0, 0, 0, 0.22);
}

.stat-card--button:active {
  transform: translateY(-1px);
}

#dashboardView .stat-card {
  align-items: center;
}

#dashboardView .stat-card > div {
  display: flex;
  min-width: 0;
  align-self: stretch;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

#dashboardView .stat-card__index {
  align-self: center;
}

.stat-card::after {
  position: absolute;
  right: -23px;
  bottom: -35px;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(69, 176, 163, 0.09);
  border-radius: 50%;
  content: "";
}

.stat-card__index {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 9px;
  font-weight: 800;
}

.stat-card__index svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.stat-card small {
  margin-top: 1px;
  color: var(--gray-muted);
  font-size: 9px;
  font-weight: 600;
}

.stat-card strong {
  margin-top: 8px;
  color: var(--light);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.stat-card div > span {
  margin-top: 8px;
  color: var(--gray-faint);
  font-size: 8px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--surface-gradient);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
}

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

.panel__header .eyebrow {
  margin-bottom: 5px;
  font-size: 8px;
}

.panel__header h2 {
  margin: 0;
  color: var(--light);
  font-size: 15px;
  font-weight: 800;
}

.panel__meta {
  color: var(--gray-faint);
  font-size: 9px;
  font-weight: 700;
}

.users-panel-tools {
  display: inline-flex;
  min-width: min(100%, 360px);
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.user-filter-control {
  width: min(28vw, 250px);
  min-width: 180px;
}

.user-filter-control input {
  height: 36px;
  padding-right: 16px;
  font-size: 11px;
}

.user-filter-control > svg {
  left: 13px;
  width: 15px;
  height: 15px;
}

.dashboard-search {
  display: block;
  width: min(100%, 330px);
}

.dashboard-search label {
  color: var(--gray-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.storage-usage {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--storage-usage-color, var(--accent));
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.storage-usage.is-danger {
  color: var(--support-red);
}

.stat-card--storage > div {
  min-width: 0;
  flex: 1;
}

#dashboardView .stat-card--storage strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

#userStorageUsed {
  color: var(--accent);
}

.user-storage-separator,
#userStorageTotal {
  color: var(--gray-faint);
}

.user-storage-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(192, 192, 192, 0.16);
  border-radius: 4px;
  background: rgba(192, 192, 192, 0.1);
}

.user-storage-progress__bar,
.stat-card .user-storage-progress > .user-storage-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  margin: 0;
  border-radius: 3px;
  background: var(--accent);
  font-size: 0;
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease;
}

.user-storage-progress.is-warning .user-storage-progress__bar {
  background: #e88c26;
}

.user-storage-progress.is-danger .user-storage-progress__bar {
  background: var(--support-red);
}

.storage-usage span {
  color: var(--gray-faint);
}

.text-button {
  border: 0;
  padding: 3px 0;
  color: var(--accent);
  background: transparent;
  font-size: 9px;
  font-weight: 800;
}

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

/* Admin */

.stat-grid--admin {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.admin-grid {
  display: grid;
  gap: 17px;
  margin-top: 17px;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
}

#usersSection.admin-grid {
  grid-template-columns: minmax(230px, 0.44fr) minmax(0, 1.56fr);
}

.admin-section {
  scroll-margin-top: 70px;
}

.admin-section.admin-section-entering {
  animation: content-enter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.admin-section.is-admin-hidden {
  display: none;
}

.create-user-panel .form-stack {
  gap: 14px;
}

.create-user-panel .form-row--dates,
.create-user-panel .form-row--plan-storage,
.edit-user-form .form-row--dates,
.edit-user-form .form-row--plan-storage {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.create-user-panel .form-row--dates {
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.create-user-panel .form-row--dates .field,
.create-user-panel .form-row--dates .field__control {
  min-width: 0;
}

.create-user-panel .form-row--dates .field {
  gap: 5px;
}

.create-user-panel .form-row--dates label {
  overflow: hidden;
  font-size: 8px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.create-user-panel .form-row--dates .field__control input {
  height: 40px;
  min-width: 0;
  padding-right: 7px;
  padding-left: 36px;
  font-size: 10px;
}

.create-user-panel .form-row--dates .date-picker-trigger {
  left: 7px;
  width: 25px;
  height: 25px;
  border-radius: 8px;
}

.create-user-panel .form-row--dates .date-picker-trigger svg {
  width: 14px;
  height: 14px;
}

.create-user-panel .primary-button {
  margin-top: 3px;
}

.jobs-admin-grid {
  margin-top: 17px;
  grid-template-columns: minmax(230px, 0.44fr) minmax(0, 1.56fr);
}

.create-job-panel {
  padding: 18px;
}

.create-job-panel .panel__header {
  margin-bottom: 14px;
}

.create-job-panel .form-stack {
  gap: 10px;
}

.create-job-panel .field {
  gap: 5px;
}

.create-job-panel .field__control input,
.create-job-panel .field__control select,
.create-job-panel .field__control .troppart-select__button {
  height: 42px;
}

.create-job-panel .field-note {
  font-size: 8px;
  line-height: 1.35;
}

.create-job-panel .pdf-dropzone {
  min-height: 70px;
  margin-top: 5px;
  padding: 12px;
}

.create-job-panel .pdf-dropzone__icon {
  width: 40px;
  height: 40px;
}

.create-job-panel .pdf-dropzone__text strong {
  font-size: 12px;
}

.create-job-panel .pdf-dropzone.has-file .pdf-dropzone__text strong {
  font-size: 13px;
}

.create-job-panel .pdf-dropzone__text small {
  font-size: 9px;
}

.create-job-panel .primary-button {
  min-height: 42px;
  margin-top: 0;
}

#createJobForm.is-uploading > button[type="submit"] {
  display: none;
}

#createJobForm.is-uploading #jobUploadProgress {
  margin-top: 0;
}

.jobs-admin-panel {
  min-width: 0;
}

.jobs-panel-storage {
  color: var(--accent);
  font-weight: 900;
  white-space: nowrap;
}

.jobs-admin-grid,
.jobs-admin-grid .field label,
.jobs-admin-grid .field-note,
.jobs-admin-grid .field__control input,
.jobs-admin-grid .field__control select,
.jobs-admin-grid .panel__meta,
.jobs-admin-grid .form-status,
.jobs-admin-grid .job-link-preview,
.jobs-admin-grid .job-scale-preview,
.jobs-admin-grid .job-size,
.jobs-admin-grid .job-upload-date,
.jobs-admin-grid .pdf-dropzone__text strong,
.jobs-admin-grid .pdf-dropzone__text small,
.jobs-admin-grid .file-type-icon--text {
  font-size: max(13px, 1em);
}

.jobs-filter-bar {
  display: grid;
  align-items: end;
  gap: 10px;
  margin-bottom: 18px;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.jobs-filter-bar .field {
  gap: 5px;
}

.jobs-filter-bar .field label {
  font-size: 9px;
}

.jobs-filter-bar .field__control input,
.jobs-filter-bar .field__control select,
.jobs-filter-bar .field__control .troppart-select__button {
  height: 42px;
  font-size: 11px;
}

.jobs-filter-reset {
  width: 100%;
  min-height: 42px;
  white-space: nowrap;
}

.job-name {
  display: block;
  color: var(--gray);
  font-size: 10px;
}

.job-project {
  display: block;
  margin-top: 4px;
  color: var(--gray-faint);
  font-size: 8px;
}

.job-link-preview {
  display: block;
  max-width: 230px;
  overflow: hidden;
  color: var(--accent);
  font-size: 9px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-link-preview:hover {
  text-decoration: underline;
}

.job-link-preview--protected {
  color: var(--gray);
  text-decoration: none;
}

.job-link-preview--protected:hover {
  text-decoration: none;
}

.job-scale-preview {
  display: block;
  margin-top: 5px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.2px;
}

.job-size {
  display: inline-flex;
  min-width: 86px;
  align-items: center;
  justify-content: flex-start;
  color: var(--gray);
  font-weight: 800;
}

.job-upload-date {
  display: inline-flex;
  min-width: 132px;
  align-items: center;
  justify-content: flex-start;
  color: var(--gray);
  font-weight: 750;
}

.secondary-data {
  color: var(--gray-faint);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.1px;
}

.job-type-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 13px;
  font-weight: 800;
}

.job-type-cell .file-type-icon {
  width: auto;
  height: auto;
}

.jobs-admin-panel .users-table .job-type-column {
  text-align: center;
}

.jobs-admin-panel .users-table th.job-type-column .sortable-heading {
  justify-content: center;
}

.jobs-admin-panel .job-type-cell {
  width: 100%;
  justify-content: center;
}

.users-panel {
  min-width: 0;
}

.table-wrap {
  min-width: 0;
  overflow-x: auto;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.jobs-admin-panel .users-table tbody tr.is-new-job-highlight {
  animation: new-job-row-enter 560ms cubic-bezier(0.22, 0.82, 0.2, 1) both;
}

.jobs-admin-panel .users-table tbody tr.is-new-job-highlight td {
  animation: new-job-highlight-fade 5s ease forwards;
  background: rgba(69, 176, 163, 0.16);
}

.users-table th {
  border-bottom: 1px solid var(--gray-line);
  padding: 0 10px 10px;
  color: var(--gray-faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
}

.sortable-heading {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sort-symbol {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: inherit;
  line-height: 1;
  opacity: 0.62;
  transition:
    color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.sort-symbol:hover,
.sort-symbol.is-active {
  color: var(--accent);
  opacity: 1;
}

.sort-symbol:active {
  transform: translateY(1px);
}

.users-table td {
  border-bottom: 1px solid rgba(192, 192, 192, 0.1);
  padding: 12px 10px;
  color: var(--gray-muted);
  font-size: 10px;
}

.users-table tr:last-child td {
  border-bottom: 0;
}

.jobs-admin-panel .users-table tbody tr {
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.jobs-admin-panel .users-table tbody tr:hover {
  background: rgba(69, 176, 163, 0.1);
  box-shadow: inset 3px 0 0 var(--accent);
  filter: brightness(1.08);
}

.user-identity {
  display: flex;
  align-items: center;
  gap: 0;
}

.user-identity .avatar {
  display: none;
}

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

.user-identity strong {
  color: var(--light);
  font-size: 12px;
  font-weight: 850;
}

.user-identity small {
  margin-top: 2px;
  color: var(--gray-faint);
  font-size: 9px;
  font-weight: 650;
}

.role-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 700;
}

.role-pill {
  color: var(--gray);
  background: var(--gray-soft);
}

.status-pill {
  gap: 5px;
  color: var(--gray-muted);
}

.status-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(69, 176, 163, 0.1);
}

.last-access {
  color: var(--gray-muted);
  font-size: 9px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-button {
  min-height: 27px;
  border: 1px solid var(--gray-line);
  border-radius: 8px;
  padding: 0 8px;
  color: var(--gray-muted);
  background: transparent;
  font-size: 8px;
  font-weight: 700;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.table-button:hover {
  border-color: rgba(192, 192, 192, 0.34);
  color: var(--gray);
  background: var(--gray-soft);
}

.table-button--icon {
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0;
}

.table-button--icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.table-button--primary {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

.table-button--primary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(69, 176, 163, 0.18);
}

.table-button--download {
  border-color: var(--accent-line);
  color: var(--accent);
  background: rgba(69, 176, 163, 0.1);
}

.table-button--download:hover,
.table-button--download:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(69, 176, 163, 0.18);
}

.table-button--download[data-user-job-download] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.table-button--download[data-user-job-download]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(69, 176, 163, 0.48);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
}

.table-button--download[data-user-job-download] > svg {
  position: relative;
  z-index: 1;
}

.table-button--download[data-user-job-download].is-download-starting {
  cursor: wait;
}

.table-button--download[data-user-job-download].is-download-starting::before {
  animation: user-job-download-progress 3000ms linear forwards;
}

@keyframes user-job-download-progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.table-button--download:disabled,
.table-button--download.is-disabled {
  position: relative;
  border-color: rgba(192, 192, 192, 0.18);
  color: rgba(192, 192, 192, 0.42);
  background: rgba(192, 192, 192, 0.05);
  cursor: not-allowed;
  opacity: 1;
}

.table-button--download:disabled::after,
.table-button--download.is-disabled::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-38deg);
  pointer-events: none;
}

.table-button--download:disabled:hover,
.table-button--download.is-disabled:hover {
  border-color: rgba(192, 192, 192, 0.18);
  color: rgba(192, 192, 192, 0.42);
  background: rgba(192, 192, 192, 0.05);
}

.table-button--delete {
  border-color: rgba(192, 192, 192, 0.28);
  color: var(--gray);
}

.table-button--delete:hover {
  border-color: var(--accent);
  color: var(--black);
  background: var(--accent);
}

.table-button--support {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
}

.table-button__count {
  position: absolute;
  right: -5px;
  top: -7px;
  display: grid;
  min-width: 22px;
  height: 17px;
  place-items: center;
  border: 1px solid rgba(242, 242, 242, 0.32);
  border-radius: 999px;
  padding: 0 5px;
  overflow: hidden;
  color: var(--light);
  background: var(--support-red);
  font-size: 7px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-button--support-alert {
  position: relative;
  border-color: var(--support-red-line);
  color: var(--light);
  background: var(--support-red-soft);
}

.table-button--support-alert .table-button__count {
  color: rgba(242, 242, 242, 0.72);
}

.table-button--support-alert:hover {
  border-color: var(--support-red);
  color: var(--light);
  background: rgba(214, 44, 44, 0.28);
}

.app-view .jobs-admin-panel .users-table th {
  font-size: 13px;
}

.app-view .jobs-admin-panel .users-table td,
.app-view .jobs-admin-panel .user-identity strong,
.app-view .jobs-admin-panel .user-identity small,
.app-view .jobs-admin-panel .job-name,
.app-view .jobs-admin-panel .job-project,
.app-view .jobs-admin-panel .job-link-preview,
.app-view .jobs-admin-panel .job-scale-preview,
.app-view .jobs-admin-panel .job-size,
.app-view .jobs-admin-panel .job-upload-date,
.app-view .jobs-admin-panel .job-type-cell {
  color: var(--gray);
  font-size: 15.5px;
  font-weight: 700;
}

.app-view .jobs-admin-panel .user-identity small,
.app-view .jobs-admin-panel .job-project,
.app-view .jobs-admin-panel .job-link-preview,
.app-view .jobs-admin-panel .job-scale-preview,
.app-view .jobs-admin-panel .job-size,
.app-view .jobs-admin-panel .job-upload-date {
  font-size: 13px;
}

.app-view .jobs-admin-panel .job-type-cell .file-type-icon--text {
  font-size: 11.5px;
}

.app-view .jobs-admin-panel .user-identity .avatar {
  display: none;
}

.app-view .jobs-admin-panel .user-identity strong {
  color: var(--light);
  font-size: 16px;
  font-weight: 850;
}

.app-view .jobs-admin-panel .user-identity small {
  color: var(--gray-faint);
  font-weight: 650;
}

.app-view .jobs-admin-panel .row-actions {
  flex-wrap: nowrap;
  align-items: center;
}

.app-view .jobs-admin-panel .table-button {
  display: inline-flex;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
}

.users-panel .users-table tbody tr {
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.users-panel .users-table tbody tr:hover {
  background: rgba(69, 176, 163, 0.1);
  box-shadow: inset 3px 0 0 var(--accent);
  filter: brightness(1.08);
}

.users-panel .users-table tbody tr.is-user-suspended {
  background: rgba(214, 44, 44, 0.08);
}

.subscription-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  color: var(--gray-muted);
  font-size: 10px;
  font-weight: 800;
}

.subscription-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.subscription-switch > span {
  position: relative;
  display: inline-block;
  width: 43px;
  height: 24px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.subscription-switch > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transition:
    background 180ms ease,
    transform 180ms ease;
}

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

.subscription-switch.is-suspended > span {
  border-color: var(--support-red-line);
  background: var(--support-red-soft);
}

.subscription-switch.is-suspended > span::after {
  background: var(--support-red);
}

.empty-table {
  height: 90px;
  color: var(--gray-faint) !important;
  text-align: center;
}

.admin-password-panel {
  margin-top: 17px;
}

.pdf-pro-admin-panel {
  margin-top: 17px;
}

.appearance-admin-panel {
  margin-top: 17px;
}

.appearance-admin-intro {
  margin-bottom: 17px;
}

.appearance-active-badge {
  display: inline-flex;
  min-width: 68px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 850;
}

.appearance-active-badge.is-pending {
  border-color: var(--gray-line);
  color: var(--gray-muted);
  background: var(--gray-soft);
}

.appearance-settings-form {
  display: grid;
  gap: 15px;
}

.appearance-settings-main {
  display: grid;
  align-items: stretch;
  gap: 16px;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
}

.appearance-theme-field {
  align-self: center;
}

.appearance-theme-summary {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--gray-line);
  border-radius: 8px;
  padding: 15px 17px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(69, 176, 163, 0.045)), var(--surface);
}

.appearance-theme-copy {
  min-width: 0;
}

.appearance-theme-copy span,
.appearance-theme-copy small {
  display: block;
  color: var(--gray-faint);
  font-size: 10px;
  font-weight: 700;
}

.appearance-theme-copy strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--light);
  font-size: 17px;
  font-weight: 850;
}

.appearance-palette {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.appearance-palette span {
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--appearance-swatch);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.3);
}

.appearance-save-button {
  justify-self: start;
}

@media (max-width: 820px) {
  .appearance-settings-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .appearance-theme-summary {
    min-height: 82px;
  }
}

@media (max-width: 520px) {
  .appearance-theme-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .appearance-save-button {
    width: 100%;
  }
}

.pdf-pro-admin-intro {
  max-width: 820px;
  margin: -8px 0 20px;
  color: var(--gray-muted);
  font-size: 11px;
  line-height: 1.6;
}

.pdf-pro-command-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 19px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pdf-pro-command-summary article {
  border: 1px solid var(--gray-line);
  border-radius: 14px;
  padding: 15px;
  background:
    radial-gradient(circle at top right, rgba(69, 176, 163, 0.14), transparent 46%),
    var(--surface);
}

.pdf-pro-command-summary span {
  display: block;
  color: var(--gray-faint);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pdf-pro-command-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
}

.pdf-pro-command-table td:nth-child(2) {
  max-width: 520px;
  white-space: normal;
}

.shortcut-editor {
  display: flex;
  align-items: center;
  gap: 7px;
}

.shortcut-editor input {
  width: 46px;
  height: 31px;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  padding: 0 8px;
  color: var(--accent);
  background: var(--black);
  font-size: 10px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  outline: none;
}

.shortcut-editor input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(69, 176, 163, 0.12);
}

.shortcut-editor .table-button {
  min-height: 31px;
}

.shortcut-key,
.shortcut-key--empty {
  display: inline-grid;
  min-width: 32px;
  min-height: 27px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  padding: 0 8px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 9px;
  font-weight: 900;
}

.shortcut-key--empty {
  min-width: 96px;
  border-color: var(--gray-line);
  color: var(--gray-faint);
  background: transparent;
  font-size: 8px;
}

.password-form {
  display: grid;
  max-width: 1120px;
  align-items: end;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.password-form .form-status {
  grid-column: 1 / -1;
}

/* Dashboard */

.admin-preview-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--accent-soft);
}

.admin-preview-bar > span {
  border-radius: 7px;
  padding: 4px 7px;
  color: var(--black);
  background: var(--accent);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-preview-bar p {
  margin: 0;
  color: var(--gray-muted);
  font-size: 10px;
}

.admin-preview-bar strong {
  color: var(--gray);
}

.content-grid {
  display: grid;
  gap: 17px;
  margin-top: 17px;
  grid-template-columns: minmax(0, 1.16fr) minmax(min(100%, 300px), 0.84fr);
}

.content-grid .panel {
  min-height: 315px;
}

.file-list,
.activity-list {
  display: grid;
}

.file-item {
  display: flex;
  min-height: 59px;
  align-items: center;
  gap: 11px;
  border-top: 1px solid rgba(192, 192, 192, 0.1);
}

.file-item:first-child {
  border-top: 0;
}

.file-item__icon {
  display: grid;
  min-width: 38px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  padding: 0 6px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 7px;
  font-weight: 800;
}

.file-item__text {
  min-width: 0;
}

.file-item__text strong,
.file-item__text small {
  display: block;
}

.file-item__text strong {
  overflow: hidden;
  color: var(--gray);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-item__text small {
  margin-top: 4px;
  color: var(--gray-faint);
  font-size: 8px;
}

.file-category {
  flex: 0 0 auto;
  margin-left: auto;
  border-radius: 7px;
  padding: 4px 7px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 7px;
  font-weight: 800;
}

.file-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed var(--gray-line);
  border-radius: 11px;
  color: var(--gray-faint);
  font-size: 10px;
  text-align: center;
}

.activity-item {
  position: relative;
  display: grid;
  min-height: 57px;
  gap: 3px;
  border-left: 1px solid var(--gray-line);
  margin-left: 7px;
  padding: 0 0 16px 19px;
}

.activity-item:last-child {
  min-height: auto;
  border-left-color: transparent;
  padding-bottom: 0;
}

.activity-item::before {
  position: absolute;
  top: 1px;
  left: -4px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--black-raised);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-line);
  content: "";
}

.activity-item--gray::before {
  background: var(--gray);
  box-shadow: 0 0 0 1px var(--gray-line);
}

.activity-item strong {
  color: var(--gray);
  font-size: 10px;
  font-weight: 700;
}

.activity-item span {
  color: var(--gray-faint);
  font-size: 8px;
}

.banner-card {
  position: relative;
  display: flex;
  min-height: 128px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  margin-top: 17px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-md);
  padding: 26px 29px;
  background: var(--surface-gradient-accent);
}

.user-jobs-panel {
  margin-top: 17px;
  scroll-margin-top: 95px;
}

.user-jobs-panel .panel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 330px) minmax(0, 1fr);
  align-items: center;
}

.user-jobs-heading {
  min-width: 0;
}

.user-jobs-panel .panel__header > .dashboard-search {
  width: 100%;
  min-width: 0;
  justify-self: center;
}

.user-jobs-panel .panel__header > .panel__meta {
  justify-self: end;
}

#dashboardView .user-jobs-panel .dashboard-search input:placeholder-shown:not(:focus) {
  border-color: rgba(192, 192, 192, 0.1);
  background: rgba(255, 255, 255, 0.018);
  color: var(--gray-muted);
  box-shadow: none;
}

#dashboardView .user-jobs-panel .dashboard-search input:placeholder-shown:not(:focus)::placeholder {
  color: rgba(192, 192, 192, 0.42);
}

#dashboardView .user-jobs-panel .dashboard-search .field__control > svg {
  stroke: rgba(192, 192, 192, 0.42);
}

#dashboardView .user-jobs-panel .dashboard-search .field__control:focus-within > svg {
  stroke: var(--accent);
}

.user-projects-banner {
  margin-bottom: 14px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.user-projects-banner.is-hidden {
  display: none;
}

.selected-project-heading {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 1vw;
  font-weight: 900;
  letter-spacing: 0;
}

.selected-project-heading.is-hidden {
  display: none;
}

.user-jobs-list {
  display: grid;
  min-height: 100px;
  gap: 10px;
  grid-template-columns: 1fr;
  opacity: 1;
  transform: none;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
  will-change: opacity, transform;
}

.user-jobs-list.is-switching {
  opacity: 0;
  transform: translateY(8px) scale(0.992);
}

.user-jobs-list.is-revealing {
  opacity: 1;
  transform: none;
}

.user-jobs-list.is-revealing .user-jobs-table-wrap,
.user-jobs-list.is-revealing .user-jobs-empty {
  animation: job-card-enter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.user-jobs-list.is-revealing .user-job-row {
  animation: job-card-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--job-index, 0) * 22ms);
}

.project-filter-nav {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-filter-button {
  display: flex;
  width: 100%;
  min-height: 40px;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--gray-line);
  border-radius: 11px;
  padding: 8px 11px;
  color: var(--gray-muted);
  background: transparent;
  text-align: left;
  transition: none;
}

.project-filter-button:hover,
.project-filter-button.is-active {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

.project-filter-button:active {
  animation: project-filter-press 140ms ease-out both;
}

.project-filter-button strong,
.project-filter-button small {
  display: block;
}

.project-filter-button > span {
  display: grid;
  align-items: center;
  gap: 2px 10px;
  grid-template-columns: auto minmax(0, 1fr);
}

.project-filter-button strong {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
}

.project-filter-button small {
  margin-top: 4px;
  color: var(--gray-faint);
  font-size: 9px;
  grid-column: 2;
}

.project-filter-icon,
.file-type-icon {
  display: inline-flex;
  width: auto;
  min-width: 0;
  height: auto;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--gray);
  background: transparent;
  line-height: 1;
}

.project-filter-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

.project-filter-icon svg,
.file-type-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.file-type-icon svg {
  width: 20px;
  height: 20px;
}

.job-type-cell .file-type-icon svg {
  width: 22px;
  height: 22px;
}

.file-type-icon--cloud {
  color: var(--accent);
  background: transparent;
}

.file-type-icon--text {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.file-type-icon--pdf {
  color: var(--accent);
  background: transparent;
}

.file-type-icon--cad {
  color: var(--gray);
  background: transparent;
}

.file-type-icon--other {
  color: var(--gray-muted);
  background: transparent;
}

.user-jobs-table-wrap {
  grid-column: 1 / -1;
}

.user-jobs-table {
  min-width: 880px;
}

.user-job-updated-mobile {
  display: none;
}

#dashboardView .user-job-updated-column .last-access {
  font-size: 13px;
}

.user-job-row {
  cursor: pointer;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.user-job-row:hover,
.user-job-row:focus-visible {
  outline: none;
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.user-job-row:active {
  transform: translateY(1px);
}

.user-job-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.user-job-name strong {
  overflow: hidden;
  color: var(--gray);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-job-action-placeholder {
  color: var(--accent);
  font-weight: 800;
}

.user-jobs-empty {
  display: grid;
  min-height: 100px;
  grid-column: 1 / -1;
  place-items: center;
  border: 1px dashed var(--gray-line);
  border-radius: 11px;
  color: var(--gray-faint);
  font-size: 10px;
  text-align: center;
}

.banner-card::after {
  position: absolute;
  right: -28px;
  bottom: -78px;
  width: 185px;
  height: 185px;
  border: 1px solid rgba(69, 176, 163, 0.12);
  border-radius: 50%;
  content: "";
}

.banner-card > * {
  position: relative;
  z-index: 1;
}

.banner-card .eyebrow {
  margin-bottom: 6px;
  font-size: 8px;
}

.banner-card h2 {
  margin: 0;
  color: var(--light);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.banner-card p:last-child {
  margin: 7px 0 0;
  color: var(--gray-faint);
  font-size: 9px;
}

.light-button {
  min-height: 35px;
  flex: 0 0 auto;
  border: 1px solid var(--accent);
  padding: 0 13px;
  color: var(--black);
  background: var(--accent);
  font-size: 9px;
}

.light-button:hover {
  box-shadow: 0 8px 22px rgba(69, 176, 163, 0.2);
  transform: translateY(-1px);
}

.support-action {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.support-ticket-note {
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.38);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Modal and notifications */

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal:not(.is-hidden) .modal__backdrop {
  animation: modal-backdrop-enter 220ms ease both;
}

.modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--surface-gradient);
  box-shadow: var(--shadow);
}

.modal:not(.is-hidden) .modal__card {
  animation: modal-card-enter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal__card--wide {
  width: min(100%, 720px);
}

.modal__card--history {
  width: min(100%, 920px);
  max-height: min(720px, calc(100vh - 40px));
  overflow-y: auto;
}

.modal__card--confirm {
  width: min(100%, 520px);
}

.modal__card--support {
  width: min(100%, 560px);
}

.modal__card--support-list {
  width: min(100%, 720px);
  height: auto;
  max-height: min(900px, calc(100vh - 40px));
  overflow-y: auto;
}

.modal__card--pdf-choice {
  width: min(100%, 720px);
}

.modal__card--job {
  width: min(100%, 940px);
  max-height: none;
  overflow: visible;
}

#editJobModal {
  align-items: center;
  justify-items: center;
  overflow: hidden;
}

#editJobModal .modal__card--job {
  margin-block: 0;
  padding: 18px 22px;
}

#editJobModal .eyebrow {
  margin-bottom: 5px;
}

#editJobModal .modal__card h2 {
  font-size: 1vw;
}

#editJobModal .modal__intro {
  margin: 6px 0 12px;
  font-size: 0.6vw;
  line-height: 1.35;
}

#editJobModal .field {
  gap: 5px;
}

#editJobModal .field label {
  font-size: 0.6vw;
}

#editJobModal .field__control > svg {
  left: 12px;
  width: 15px;
  height: 15px;
}

#editJobModal .field__control input,
#editJobModal .field__control select,
#editJobModal .troppart-select__button {
  height: 38px;
  min-height: 38px;
  padding-left: 38px;
  font-size: 0.7vw;
}

#editJobModal .troppart-select__button {
  padding-right: 38px;
}

#editJobModal .troppart-select__option {
  font-size: 0.7vw;
}

#editJobModal .edit-job-download-field .field__control input[type=file] {
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  padding: 4px 56px 4px 38px;
  line-height: 28px;
}

#editJobModal .edit-job-download-field .field__control input[type=file]::file-selector-button {
  height: 28px;
  margin: 0 12px 0 0;
  vertical-align: middle;
  font-size: 0.7vw;
}

#editJobModal .field-note {
  font-size: 0.5vw;
  line-height: 1.25;
}

#editJobModal .edit-job-form__button.primary-button {
  height: 25px;
  min-height: 25px;
  padding: 0 12px;
  font-size: 0.6vw;
  line-height: 1;
}

.modal__card h2 {
  font-size: 25px;
}

.modal__intro {
  margin: 10px 0 22px;
  color: var(--gray-muted);
  font-size: 11px;
  line-height: 1.5;
}

.modal__intro strong {
  color: var(--accent);
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--gray-line);
  border-radius: 9px;
  color: var(--gray-muted);
  background: transparent;
}

.modal__close:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}

.modal__close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.confirm-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--accent-line);
  border-radius: 13px;
  padding: 14px;
  color: var(--gray);
  background: var(--surface-gradient);
}

.confirm-card strong {
  color: var(--accent);
  font-size: 12px;
}

.confirm-card span {
  color: var(--gray-muted);
  font-size: 10px;
  line-height: 1.5;
}

.confirm-target {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(69, 176, 163, 0.42);
  border-radius: 14px;
  padding: 15px 16px;
  background:
    linear-gradient(135deg, rgba(69, 176, 163, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.38);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.confirm-target span {
  color: var(--gray-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.confirm-target strong {
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: clamp(18px, 3.2vw, 27px);
  font-weight: 950;
  line-height: 1.08;
}

.confirm-target small {
  color: var(--gray-muted);
  font-size: 11px;
  line-height: 1.45;
}

.confirm-target b {
  color: var(--gray);
  font-weight: 900;
}

.confirm-target--job {
  gap: 8px;
}

.confirm-target--job .confirm-target__association {
  margin-top: 5px;
  border-top: 1px solid rgba(69, 176, 163, 0.22);
  padding-top: 10px;
  color: var(--gray-muted);
}

.confirm-target--job .confirm-target__secondary {
  color: var(--gray);
  font-size: clamp(16px, 2.8vw, 24px);
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.confirm-delete-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.edit-job-form {
  display: grid;
  gap: 9px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edit-job-form .edit-job-field--full,
.edit-job-page-scales,
.edit-job-form__button,
.edit-job-form .form-status {
  grid-column: 1 / -1;
}

.edit-job-form__button {
  min-height: 24px;
  margin-top: 0;
  padding-block: 7px;
  font-size: 11px;
}

.edit-job-page-scales {
  display: grid;
  gap: 6px;
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.edit-job-page-scales__header,
.edit-job-page-scale-row {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: 26px minmax(0, 1fr) minmax(104px, 142px) auto;
}

.edit-job-page-scales__header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.edit-job-page-scales__header strong {
  color: var(--gray);
  font-size: 11px;
  font-weight: 900;
}

.edit-job-page-scales__header span {
  color: var(--gray-muted);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.edit-job-page-scales__list {
  display: grid;
  max-height: 238px;
  overflow-y: auto;
  gap: 5px;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.edit-job-page-scale-row {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.edit-job-page-scale-row.is-dragging {
  border-color: rgba(69, 176, 163, 0.62);
  background: rgba(69, 176, 163, 0.12);
  opacity: 0.74;
}

.edit-job-page-scale-drag {
  display: inline-grid;
  width: 24px;
  height: 26px;
  place-content: center;
  gap: 3px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  cursor: grab;
  background: transparent;
}

.edit-job-page-scale-drag:active {
  cursor: grabbing;
}

.edit-job-page-scale-drag:disabled {
  cursor: default;
  opacity: 0.35;
}

.edit-job-page-scale-drag span {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: rgba(216, 222, 224, 0.78);
}

.edit-job-page-scale-row input {
  width: 100%;
  height: 28px;
  border: 1px solid var(--gray-line);
  border-radius: 8px;
  padding: 0 9px;
  color: var(--gray);
  background: rgba(0, 0, 0, 0.28);
  font: inherit;
  font-size: 0.7vw;
  font-weight: 800;
}

.edit-job-page-name-input {
  min-width: 0;
}

.edit-job-page-scale-input {
  text-align: center;
}

.edit-job-page-scale-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(69, 176, 163, 0.16);
}

.edit-job-page-scale-row.is-deleting {
  pointer-events: none;
  opacity: 0.48;
}

.edit-job-page-admin-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.edit-job-page-icon-button,
.edit-job-page-measure-toggle {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(216, 222, 224, 0.26);
  border-radius: 8px;
  background: rgba(216, 222, 224, 0.055);
}

.edit-job-page-icon-button {
  appearance: none;
  padding: 0;
  color: rgba(216, 222, 224, 0.78);
  cursor: pointer;
}

.edit-job-page-icon-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.edit-job-page-icon-button:hover,
.edit-job-page-icon-button:focus-visible {
  border-color: rgba(69, 176, 163, 0.55);
  color: var(--gray);
  background: rgba(69, 176, 163, 0.1);
  outline: none;
}

.edit-job-page-icon-button--hide.is-active {
  border-color: rgba(69, 176, 163, 0.62);
  color: var(--accent);
  background: rgba(69, 176, 163, 0.14);
  box-shadow: 0 0 0 2px rgba(69, 176, 163, 0.1);
}

.edit-job-page-icon-button--delete {
  border-color: rgba(216, 222, 224, 0.3);
}

.edit-job-page-measure-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

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

.pdf-choice-card {
  display: grid;
  min-height: 154px;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--gray-line);
  border-radius: 16px;
  padding: 19px;
  color: var(--gray);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.035), transparent 52%),
    var(--surface);
  text-align: left;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pdf-choice-card:hover,
.pdf-choice-card:focus-visible {
  outline: none;
  border-color: var(--accent-line);
  background:
    radial-gradient(circle at 86% 0%, rgba(69, 176, 163, 0.16), transparent 34%),
    var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgba(69, 176, 163, 0.08);
  transform: translateY(-2px);
}

.pdf-choice-card:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.pdf-choice-card--pro {
  border-color: var(--accent-line);
  background:
    radial-gradient(circle at 86% 0%, rgba(69, 176, 163, 0.18), transparent 36%),
    var(--accent-soft),
    var(--black);
}

.pdf-choice-card__tag {
  width: fit-content;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.38);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.pdf-choice-card strong {
  color: var(--light);
  font-size: 18px;
  font-weight: 850;
}

.pdf-choice-card small {
  max-width: 24ch;
  color: var(--gray-muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.55;
}

.edit-user-form {
  display: grid;
  align-items: end;
  gap: 15px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edit-user-form__button,
.edit-user-form .form-status {
  grid-column: 1 / -1;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-entry {
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  padding: 13px;
  background: var(--black);
}

.history-entry__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(192, 192, 192, 0.1);
  padding-bottom: 10px;
}

.history-entry__heading span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.history-entry__heading strong {
  color: var(--gray);
  font-size: 10px;
}

.history-day {
  overflow: hidden;
  padding: 0;
}

.history-day__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45vw;
  padding: 0.35vw 0.5vw;
  cursor: pointer;
  list-style: none;
  transition: background 160ms ease, color 160ms ease;
}

.history-day__summary:hover,
.history-day__summary:focus-visible {
  outline: none;
  background: rgba(69, 176, 163, 0.08);
}

.history-day__summary::-webkit-details-marker {
  display: none;
}

.history-day__summary::marker {
  content: "";
}

.history-day__toggle {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.history-day__toggle::before {
  content: "+";
}

.history-day[open] .history-day__toggle::before {
  content: "-";
}

.history-day__title,
.history-day__stats {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 0.35vw;
}

.history-day__title {
  align-items: center;
}

.history-day__delete {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
}

.history-day__delete svg {
  width: 13px;
  height: 13px;
}

.history-day__title > span {
  color: var(--gray-faint);
  font-size: 0.4vw;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.history-day__title strong {
  overflow: hidden;
  color: var(--accent);
  font-size: 0.6vw;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-day__stats {
  justify-items: end;
  text-align: right;
}

.history-day__stats strong {
  color: var(--accent);
  font-size: 0.6vw;
  font-weight: 900;
}

.history-day__stats span,
.history-day__stats small {
  color: var(--gray-faint);
  font-size: 0.4vw;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.history-entry.history-day ul {
  margin: 0;
  padding: 0 0.5vw 0.45vw;
}

.history-entry ul {
  display: grid;
  gap: 0.28vw;
  margin: 0.35vw 0 0;
  padding: 0;
  list-style: none;
}

.history-entry li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45vw;
  border-radius: 8px;
  padding: 0.28vw 0.38vw;
  background: var(--gray-soft);
}

.history-entry li strong {
  color: var(--gray);
  font-size: 0.6vw;
}

.history-entry li div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.history-entry li small {
  color: var(--gray-faint);
  font-size: 0.6vw;
  line-height: 1.35;
}

.history-entry li span {
  color: var(--gray-faint);
  font-size: 0.6vw;
}

.history-filters {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  align-items: end;
  grid-template-columns: auto repeat(2, minmax(0, 1fr));
}

.history-modal-intro-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 22px;
}

.history-modal-intro-row .modal__intro {
  min-width: 0;
  flex: 1;
  margin: 0;
}

.history-clear-all {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-color: rgba(255, 82, 82, 0.32);
  color: #ff6b6b;
  background: rgba(255, 82, 82, 0.06);
}

.history-clear-filter-button {
  min-width: 54px;
  height: 39px;
  border: 1px solid rgba(192, 192, 192, 0.18);
  border-radius: 9px;
  padding: 0 10px;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.28);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.history-clear-filter-button:hover,
.history-clear-filter-button:focus-visible {
  outline: none;
  border-color: var(--accent-line);
  color: var(--light);
  background: rgba(69, 176, 163, 0.14);
}

.history-clear-filter-button:active {
  transform: translateY(1px);
}

.history-summary,
.history-detail {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.history-summary h3 {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 850;
}

.history-modal-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-right: 44px;
}

.history-total-usage {
  color: var(--light);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.1;
  white-space: nowrap;
}

.history-section {
  display: grid;
  gap: 10px;
}

.history-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-section--detail {
  gap: 11px;
}

.history-detail-sort {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.history-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  background: var(--black);
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.history-table th {
  border-bottom: 1px solid rgba(192, 192, 192, 0.14);
  padding: 0;
  color: var(--gray-faint);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.9px;
  text-align: left;
  text-transform: uppercase;
}

.history-sort-button {
  display: inline-flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  border: 0;
  padding: 10px 12px;
  color: inherit;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  line-height: 1.15;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.history-sort-button:hover,
.history-sort-button:focus-visible,
.history-sort-button.is-active {
  outline: none;
  color: var(--accent);
  background: rgba(69, 176, 163, 0.08);
}

.history-sort-button__icon {
  margin-left: auto;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.72;
}

.history-detail-sort .history-sort-button {
  width: auto;
  min-height: 28px;
  border: 1px solid rgba(192, 192, 192, 0.16);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--gray-faint);
  background: rgba(0, 0, 0, 0.22);
  font-size: 8px;
}

.history-detail-sort .history-sort-button.is-active,
.history-detail-sort .history-sort-button:hover,
.history-detail-sort .history-sort-button:focus-visible {
  border-color: var(--accent-line);
  color: var(--accent);
}

.history-table td {
  border-bottom: 1px solid rgba(192, 192, 192, 0.08);
  padding: 10px 12px;
  color: var(--gray-muted);
  font-size: 10px;
  font-weight: 650;
}

.history-table tbody tr:last-child td {
  border-bottom: 0;
}

.history-table td strong {
  color: var(--light);
  font-weight: 850;
}

.history-table-actions-heading {
  width: 1%;
  padding: 10px 12px;
  text-align: right;
  white-space: nowrap;
}

.history-table td.history-table-actions {
  padding: 7px 10px;
}

.history-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.history-row-action {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(192, 192, 192, 0.16);
  border-radius: 8px;
  color: var(--gray-faint);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    opacity 160ms ease;
}

.history-row-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-row-action:hover,
.history-row-action:focus-visible {
  outline: none;
  border-color: var(--accent-line);
  color: var(--accent);
  background: rgba(69, 176, 163, 0.1);
  transform: translateY(-1px);
}

.history-row-action--delete:hover,
.history-row-action--delete:focus-visible {
  border-color: rgba(255, 82, 82, 0.56);
  color: #ff6b6b;
  background: rgba(255, 82, 82, 0.1);
}

.history-row-action:disabled {
  pointer-events: none;
  opacity: 0.45;
}

.history-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.history-summary-card {
  display: grid;
  min-height: 84px;
  gap: 4px;
  border: 1px solid var(--gray-line);
  border-radius: 13px;
  padding: 12px;
  color: var(--gray);
  background: var(--surface-gradient);
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.history-summary-card:hover,
.history-summary-card:focus-visible {
  outline: none;
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.history-summary-card span {
  color: var(--gray-faint);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.history-summary-card strong {
  color: var(--light);
  font-size: 24px;
  font-weight: 900;
}

.history-summary-card small,
.history-summary-empty {
  color: var(--gray-muted);
  font-size: 11px;
  line-height: 1.35;
}

.history-summary-empty {
  border: 1px dashed var(--gray-line);
  border-radius: 13px;
  padding: 14px;
}

.history-summary-list {
  display: grid;
  gap: 8px;
}

.history-summary-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(52px, auto) minmax(120px, auto);
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--gray);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(69, 176, 163, 0.035));
  text-align: left;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.history-summary-list-row:hover,
.history-summary-list-row:focus-visible {
  outline: none;
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: translateX(2px);
}

.history-summary-list-name {
  min-width: 0;
  color: var(--light);
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-summary-list-metric {
  justify-self: end;
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
}

.history-summary-list-detail {
  justify-self: end;
  color: var(--gray-muted);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
}

.history-entry .history-entry__empty,
.history-empty {
  color: var(--gray-faint);
  font-size: 10px;
  text-align: center;
}

.history-empty {
  border: 1px dashed var(--gray-line);
  border-radius: 12px;
  padding: 28px 16px;
}

.support-ticket-list {
  display: grid;
  gap: 12px;
  max-height: min(900px, calc(100vh - 190px));
  overflow-y: auto;
  padding-right: 4px;
}

.support-ticket-list,
.support-ticket-list * {
  font-size: max(13px, 1em);
}

.support-ticket-section {
  display: grid;
  gap: 8px;
}

.support-ticket-section + .support-ticket-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(192, 192, 192, 0.12);
}

.support-ticket-section h3 {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.support-ticket-card {
  display: grid;
  gap: 0;
  border: 1px solid var(--gray-line);
  border-radius: 13px;
  padding: 0;
  background: var(--surface-gradient);
  overflow: hidden;
}

.support-ticket-card--archived {
  opacity: 0.72;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(192, 192, 192, 0.025));
}

.support-ticket-card__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  padding: 11px 12px;
  color: var(--gray);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.support-ticket-card__summary:hover,
.support-ticket-card__summary:focus-visible {
  outline: none;
  background: rgba(69, 176, 163, 0.08);
}

.support-ticket-card__summary-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.support-ticket-card__summary-main strong {
  color: var(--light);
  font-size: 13px;
  font-weight: 900;
}

.support-ticket-card__summary-main small,
.support-ticket-row__archived,
.support-ticket-card__summary-hint {
  color: var(--gray);
  font-size: 13px;
  font-weight: 700;
}

.support-ticket-card__summary-hint {
  color: var(--accent);
  font-weight: 850;
}

.support-ticket-card__content {
  display: none;
  gap: 12px;
  border-top: 1px solid rgba(192, 192, 192, 0.1);
  padding: 12px;
}

.support-ticket-card.is-expanded .support-ticket-card__content {
  display: grid;
}

.support-ticket-card p {
  margin: 0;
  color: var(--gray-muted);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.support-ticket-card__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.support-ticket-card__actions .table-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.support-ticket-card .table-button {
  justify-self: end;
  min-height: 34px;
  font-size: 13px;
}

/* Policy and privacy */

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(69, 176, 163, 0.1), transparent 24%),
    var(--black);
}

.legal-shell {
  width: min(100% - 40px, 900px);
  margin: 0 auto;
  padding: 40px 0 64px;
}

.legal-card {
  margin-top: 42px;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-lg);
  padding: 42px;
  background: var(--surface-gradient);
}

.legal-card h1 {
  margin: 0;
  color: var(--light);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -2px;
}

.legal-card__intro {
  max-width: 640px;
  margin: 14px 0 32px;
  color: var(--gray-muted);
  font-size: 13px;
  line-height: 1.7;
}

.legal-card section {
  border-top: 1px solid var(--gray-line);
  padding: 20px 0;
}

.legal-card section h2 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.legal-card section p {
  margin: 0;
  color: var(--gray-muted);
  font-size: 12px;
  line-height: 1.75;
}

.legal-card__note {
  margin: 22px 0 0;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  padding: 12px;
  color: var(--gray);
  background: var(--accent-soft);
  font-size: 10px;
  line-height: 1.55;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  max-width: 330px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--gray);
  background: var(--surface-gradient);
  box-shadow: var(--shadow);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

@keyframes view-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes header-enter {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sidebar-enter {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes project-filter-press {
  0% {
    transform: scale(1);
  }

  55% {
    transform: scale(0.985);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes job-card-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes new-job-highlight-fade {
  0%,
  28% {
    background:
      linear-gradient(90deg, rgba(69, 176, 163, 0.24), rgba(69, 176, 163, 0.08)),
      rgba(69, 176, 163, 0.11);
    box-shadow:
      inset 3px 0 0 var(--accent),
      inset 0 0 0 1px rgba(69, 176, 163, 0.22);
  }

  72% {
    background:
      linear-gradient(90deg, rgba(69, 176, 163, 0.12), rgba(69, 176, 163, 0.04)),
      rgba(69, 176, 163, 0.05);
    box-shadow:
      inset 3px 0 0 rgba(69, 176, 163, 0.5),
      inset 0 0 0 1px rgba(69, 176, 163, 0.1);
  }

  100% {
    background: transparent;
    box-shadow:
      inset 0 0 0 rgba(69, 176, 163, 0),
      inset 0 0 0 1px rgba(69, 176, 163, 0);
  }
}

@keyframes new-job-row-enter {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  60% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-backdrop-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes upload-progress-indeterminate {
  0% {
    left: -45%;
    width: 42%;
  }

  50% {
    left: 34%;
    width: 54%;
  }

  100% {
    left: 100%;
    width: 42%;
  }
}

@keyframes modal-card-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Area riservata: testo aumentato del 25% senza modificare gli elementi grafici */

.app-view .eyebrow,
#editUserModal .eyebrow,
#historyModal .eyebrow {
  font-size: 12.5px;
}

.app-view .header-user__text strong {
  font-size: 15px;
}

.app-view .header-user__text small,
.app-view .header-settings-button {
  font-size: 11.25px;
}

.app-view .app-header .avatar {
  display: none;
}

.app-view .sidebar__label {
  font-size: 11.25px;
}

.app-view .sidebar-link {
  font-size: 13.75px;
}

.app-view .nav-badge {
  font-size: 0.7vw;
}

.app-view .sidebar-card span {
  font-size: 10px;
}

.app-view .sidebar-card strong {
  font-size: 13.75px;
}

.app-view .sidebar-card p {
  font-size: 11.25px;
}

.app-view .page-heading h1 {
  font-size: 45px;
}

.app-view .page-heading > div > p:last-child {
  font-size: 15px;
}

.app-view .primary-button {
  font-size: 15px;
}

.app-view .primary-button--compact,
.app-view .secondary-button {
  font-size: 13.75px;
}

.app-view .stat-card__index,
.app-view .stat-card small {
  font-size: 11.25px;
}

.app-view .stat-card strong {
  font-size: 25px;
}

.app-view .stat-card div > span,
.app-view .panel__header .eyebrow,
.app-view .banner-card .eyebrow {
  font-size: 10px;
}

.app-view .panel__header h2 {
  font-size: 18.75px;
}

.app-view .panel__meta,
.app-view .text-button {
  font-size: 11.25px;
}

.app-view .field label,
#editUserModal .field label {
  font-size: 13.75px;
}

.app-view .field__control input,
.app-view .field__control select,
#editUserModal .field__control input,
#editUserModal .field__control select {
  font-size: 16.25px;
}

.app-view .create-user-panel .form-row--dates .field__control input {
  height: 40px;
  font-size: 10.75px;
}

.app-view .create-user-panel .form-row--dates .date-picker-trigger {
  width: 25px;
  height: 25px;
  border-radius: 8px;
}

.app-view .optional-label {
  font-size: 11.25px;
}

.app-view .form-status,
#editUserModal .form-status {
  font-size: 12.5px;
}

.app-view .job-name,
.app-view .project-filter-button strong,
.app-view .user-job-name strong,
.app-view .users-table td,
.app-view .user-identity strong {
  font-size: 12.5px;
}

.app-view .job-link-preview,
.app-view .job-project,
.app-view .last-access {
  font-size: 11.25px;
}

.app-view .users-table th,
.app-view .user-identity .avatar,
.app-view .user-identity small,
.app-view .role-pill,
.app-view .status-pill,
.app-view .table-button {
  font-size: 10px;
}

.app-view .jobs-admin-grid,
.app-view .jobs-admin-grid .field label,
.app-view .jobs-admin-grid .field-note,
.app-view .jobs-admin-grid .field__control input,
.app-view .jobs-admin-grid .field__control select,
.app-view .jobs-admin-grid .panel__meta,
.app-view .jobs-admin-grid .form-status,
.app-view .jobs-admin-grid .users-table th,
.app-view .jobs-admin-grid .users-table td,
.app-view .jobs-admin-grid .job-link-preview,
.app-view .jobs-admin-grid .job-project,
.app-view .jobs-admin-grid .job-name,
.app-view .jobs-admin-grid .job-scale-preview,
.app-view .jobs-admin-grid .job-size,
.app-view .jobs-admin-grid .job-upload-date,
.app-view .jobs-admin-grid .pdf-dropzone__text strong,
.app-view .jobs-admin-grid .pdf-dropzone__text small,
.app-view .jobs-admin-grid .file-type-icon--text {
  font-size: 13px;
}

.app-view .table-button--icon,
.app-view .jobs-admin-panel .table-button--icon,
.app-view .users-panel .table-button--icon {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
}

.app-view .users-panel .users-table th,
.app-view .users-panel .users-table td,
.app-view .users-panel .user-identity strong,
.app-view .users-panel .user-identity small,
.app-view .users-panel .last-access,
.app-view .users-panel .role-pill,
.app-view .users-panel .status-pill,
.app-view .users-panel .job-size,
.app-view .users-panel .secondary-data {
  font-size: 13px;
}

.app-view .users-panel .users-table td,
.app-view .users-panel .user-identity strong,
.app-view .users-panel .role-pill {
  color: var(--gray);
  font-weight: 750;
}

.app-view .users-panel .user-identity strong {
  color: var(--light);
  font-size: 15px;
  font-weight: 850;
}

.app-view .users-panel .user-identity small,
.app-view .users-panel .last-access,
.app-view .users-panel .secondary-data {
  color: var(--gray-faint);
  font-weight: 650;
}

.app-view .users-panel .user-identity small {
  font-size: 11.5px;
}

.app-view .users-panel .user-identity .avatar {
  display: none;
}

.app-view .user-filter-control input {
  height: 38px;
  font-size: 13px;
}

.app-view .jobs-admin-grid .secondary-data,
.app-view .jobs-admin-grid .job-size.secondary-data {
  color: var(--gray-faint);
  font-size: 13px;
  font-weight: 650;
}

.app-view .admin-preview-bar > span {
  font-size: 10px;
}

.app-view .admin-preview-bar p,
.app-view .file-item__text strong,
.app-view .file-empty,
.app-view .activity-item strong,
.app-view .user-jobs-empty {
  font-size: 12.5px;
}

.app-view .file-item__icon,
.app-view .file-category {
  font-size: 8.75px;
}

.app-view .file-item__text small,
.app-view .activity-item span,
.app-view .project-filter-button small {
  font-size: 10px;
}

.app-view .banner-card h2 {
  font-size: 26.25px;
}

.app-view .banner-card p:last-child,
.app-view .light-button {
  font-size: 11.25px;
}

#editUserModal .modal__card h2,
#historyModal .modal__card h2,
#historyModal .history-total-usage {
  font-size: 31.25px;
}

#editUserModal .modal__intro,
#historyModal .modal__intro {
  font-size: 13.75px;
}

#editUserModal .primary-button {
  font-size: 15px;
}

#editUserModal .edit-user-form__password {
  grid-column: 1 / -1;
}

#editUserModal .edit-user-form__wide {
  grid-column: 1 / -1;
}

#historyModal .history-entry__heading span {
  font-size: 11.25px;
}

#historyModal .history-entry li strong {
  font-size: 0.6vw;
}

#historyModal .history-section h3 {
  font-size: 15px;
}

#historyModal .history-table th {
  font-size: 10px;
}

#historyModal .history-table td {
  font-size: 12px;
}

#historyModal .history-entry__heading strong,
#historyModal .history-entry .history-entry__empty,
#historyModal .history-empty {
  font-size: 12.5px;
}

#historyModal .history-entry li span,
#historyModal .history-entry li small {
  font-size: 0.6vw;
}

.toast {
  font-size: 12.5px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .table-button--download[data-user-job-download].is-download-starting::before {
    animation-duration: 3000ms !important;
  }
}

@media (max-width: 1080px) {
  .auth-shell {
    grid-template-columns: minmax(360px, 42%) 1fr;
  }

  .brand-panel {
    padding: 42px;
  }

  .brand-panel h1 {
    font-size: 54px;
  }

  .app-main {
    padding: 36px 28px 50px;
  }

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

  #usersSection.admin-grid {
    grid-template-columns: 1fr;
  }

  .users-panel .panel__header {
    align-items: stretch;
    flex-direction: column;
  }

  .users-panel-tools {
    width: 100%;
    justify-content: space-between;
  }

  .user-filter-control {
    width: min(100%, 280px);
  }

  .jobs-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jobs-filter-reset {
    width: 100%;
  }

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

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

@media (max-width: 780px) {
  .auth-shell {
    display: block;
  }

  .brand-panel {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 32px 21px;
  }

  .brand--mobile {
    display: inline-flex;
    margin-bottom: 58px;
  }

  .app-header {
    height: 62px;
    padding: 0 17px;
  }

  .app-header .brand__logo {
    width: 150px;
  }

  .header-user__text {
    display: none;
  }

  .app-shell {
    display: block;
    min-height: calc(100vh - 62px);
  }

  .sidebar {
    position: sticky;
    z-index: 15;
    top: 62px;
    display: block;
    height: auto;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--gray-line);
    padding: 8px 13px;
    white-space: nowrap;
  }

  .sidebar__label,
  .sidebar-card {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    width: max-content;
    gap: 4px;
  }

  .sidebar-link {
    width: auto;
    min-height: 37px;
    padding: 0 10px;
  }

  .app-main {
    padding: 28px 17px 42px;
  }

  #dashboardView .sidebar,
  #dashboardView #adminPreviewBar,
  #dashboardView .page-heading,
  #dashboardView #dashboardBanner {
    display: none !important;
  }

  #dashboardView .app-header {
    display: flex;
    justify-content: space-between;
  }

  #dashboardView .app-shell {
    min-height: calc(100vh - 62px);
  }

  #dashboardView .app-main {
    padding: 12px;
  }

  #dashboardView #dashboardStatsGrid {
    display: block;
    margin-bottom: 12px;
  }

  #dashboardView #dashboardStatsGrid .stat-card {
    display: none !important;
  }

  #dashboardView #dashboardStatsGrid .stat-card--storage {
    display: flex !important;
    min-height: 84px;
  }

  #dashboardView #userProjectsBanner:not(.is-hidden) {
    display: block;
    margin-bottom: 12px;
  }

  #dashboardView .user-jobs-panel {
    margin: 0;
  }

  .page-heading {
    align-items: flex-start;
  }

  .page-heading h1 {
    font-size: 31px;
  }

  .app-view .page-heading h1 {
    font-size: 38.75px;
  }

  .page-heading > div > p:last-child {
    max-width: 280px;
    line-height: 1.5;
  }

  .primary-button--compact span {
    display: none;
  }

  .primary-button--compact {
    width: 41px;
    flex: 0 0 auto;
    padding: 0;
  }

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

  .stat-grid--admin,
  .user-jobs-list {
    grid-template-columns: 1fr;
  }

  #dashboardView .project-filter-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  #dashboardView .user-jobs-panel.has-selected-project .user-job-project-column,
  #dashboardView .user-jobs-panel.has-selected-project .user-job-action-column {
    display: none;
  }

  .stat-card {
    min-height: 105px;
  }

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

  .create-user-panel .form-row--plan-storage,
  .edit-user-form .form-row--dates,
  .edit-user-form .form-row--plan-storage {
    grid-template-columns: 1fr;
  }

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

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

  .edit-job-page-scales__header {
    grid-template-columns: 1fr;
  }

  .edit-job-page-scale-row {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .edit-job-page-scale-input,
  .edit-job-page-admin-controls {
    grid-column: 2;
  }

  .edit-job-page-scales__header span {
    text-align: left;
  }

  .legal-card {
    padding: 28px;
  }
}

/* System log administration */
.system-log-panel {
  margin-top: 17px;
}

.system-log-panel__header {
  align-items: center;
}

.system-log-status-badge {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--gray-line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--gray-muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 9px;
  font-weight: 800;
}

.system-log-status-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-faint);
  content: "";
}

.system-log-status-badge.is-ready {
  border-color: var(--accent-line);
  color: var(--accent);
}

.system-log-status-badge.is-ready::before {
  background: var(--accent);
}

.system-log-status-badge.is-recording {
  border-color: var(--support-red-line);
  color: var(--support-red);
  background: var(--support-red-soft);
}

.system-log-status-badge.is-recording::before {
  background: var(--support-red);
  box-shadow: 0 0 0 4px rgba(214, 44, 44, 0.12);
}

.system-log-panel__body {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(190px, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--gray-line);
  padding-top: 20px;
}

.system-log-switch {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.system-log-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.system-log-switch__track {
  position: relative;
  width: 46px;
  height: 25px;
  border: 1px solid var(--gray-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, background 180ms ease;
}

.system-log-switch__track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--gray-muted);
  content: "";
  transition: background 180ms ease, transform 180ms ease;
}

.system-log-switch input:checked + .system-log-switch__track {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.system-log-switch input:checked + .system-log-switch__track::after {
  background: var(--accent);
  transform: translateX(21px);
}

.system-log-switch input:focus-visible + .system-log-switch__track {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.system-log-switch__label,
.system-log-session-state,
.system-log-date {
  display: grid;
  gap: 3px;
}

.system-log-switch__label strong,
.system-log-session-state strong,
.system-log-date strong {
  color: var(--gray);
  font-size: 11px;
}

.system-log-switch__label small,
.system-log-session-state span,
.system-log-session-state small,
.system-log-date small {
  color: var(--gray-faint);
  font-size: 9px;
}

.system-log-switch__label small {
  color: var(--accent);
  font-weight: 800;
}

.system-log-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.system-log-actions button {
  min-height: 38px;
  gap: 8px;
  padding: 0 13px;
  white-space: nowrap;
}

.system-log-actions button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.system-log-record-button.is-recording {
  border-color: var(--support-red-line);
  color: #fff;
  background: var(--support-red);
}

.system-log-archive-button strong {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  color: var(--black);
  background: var(--accent);
  font-size: 9px;
}

.modal__card--system-log {
  width: min(100%, 850px);
  max-height: min(720px, calc(100vh - 40px));
  overflow: hidden;
}

.system-log-modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-right: 40px;
}

.system-log-modal-heading h2 {
  margin: 0;
}

.system-log-table-wrap {
  max-height: min(480px, calc(100vh - 245px));
  overflow: auto;
  border: 1px solid var(--gray-line);
  border-radius: 8px;
}

.system-log-table {
  min-width: 650px;
}

.system-log-table thead {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--surface);
}

.system-log-table th:last-child,
.system-log-table td:last-child {
  width: 100px;
  text-align: center;
}

.system-log-row-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.system-log-icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--gray-line);
  border-radius: 8px;
  padding: 0;
  color: var(--gray-muted);
  background: transparent;
}

.system-log-icon-button:hover {
  border-color: var(--accent-line);
  color: var(--accent);
  background: var(--accent-soft);
}

.system-log-icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.system-log-icon-button--delete:hover,
.system-log-icon-button--delete.is-confirming {
  border-color: var(--support-red-line);
  color: var(--support-red);
  background: var(--support-red-soft);
}

@media (max-width: 900px) {
  .system-log-panel__body {
    grid-template-columns: 1fr;
  }

  .system-log-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 500px) {
  .brand--mobile {
    margin-bottom: 45px;
  }

  .login-card__heading h2 {
    font-size: 32px;
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .form-options > span {
    max-width: none;
    text-align: left;
  }

  .panel {
    padding: 18px;
  }

  .admin-preview-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .header-settings-button {
    width: 33px;
    overflow: hidden;
    padding: 0;
    color: transparent;
  }

  .header-settings-button::before {
    color: var(--accent);
    content: "←";
    font-size: 14px;
  }

  .banner-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    padding: 23px;
  }

  .support-action {
    justify-items: start;
  }

  .jobs-filter-bar {
    grid-template-columns: 1fr;
  }

  .modal__card {
    padding: 24px 20px;
  }

  .pdf-choice-grid {
    grid-template-columns: 1fr;
  }

  .pdf-choice-card {
    min-height: 126px;
  }

  .legal-shell {
    width: min(100% - 28px, 900px);
    padding-top: 28px;
  }

  .legal-card {
    margin-top: 30px;
    padding: 22px 18px;
  }

  .legal-card h1 {
    font-size: 33px;
  }
}


.project-filter-button strong,
.app-view .project-filter-button strong {
  font-size: 0.7vw;
}

.user-jobs-panel .panel__header .eyebrow,
.app-view .user-jobs-panel .panel__header .eyebrow {
  margin-bottom: 0;
  font-size: 15.36px;
}

/* Tipografia dashboard desktop: equivalenti fissi dei valori vw richiesti su base 1920px. */
@media (min-width: 781px) {
  #dashboardView .page-heading h1 {
    font-size: 42.24px;
  }

  #dashboardView .stat-card:not(.stat-card--storage) strong {
    font-size: 24.96px;
  }

  #dashboardView .dashboard-search input {
    font-size: 17.28px;
  }

  #dashboardView .header-user__text strong,
  #dashboardView .page-heading > div > p:last-child,
  #dashboardView #userStorageUsage {
    font-size: 15.36px;
  }

  #dashboardView .sidebar-link,
  #dashboardView .sidebar-card strong {
    font-size: 15.36px;
  }

  #dashboardView .job-type-cell,
  #dashboardView .file-type-icon--text {
    font-size: 15.36px;
  }

  #dashboardView .page-heading .eyebrow,
  #dashboardView .user-job-name strong,
  #dashboardView .user-jobs-table td {
    font-size: 15.36px;
  }

  #dashboardView .header-user__text small,
  #dashboardView .panel__meta,
  #dashboardView .job-project,
  #dashboardView .secondary-data,
  #dashboardView .user-job-updated-column .last-access,
  #dashboardView .light-button,
  #dashboardView .sidebar-card p,
  #dashboardView .nav-badge {
    font-size: 13.44px;
  }

  #dashboardView .stat-card small {
    font-size: 13.44px;
  }

  #dashboardView .user-jobs-panel .panel__header .eyebrow,
  #dashboardView .project-filter-button strong {
    font-size: 15.36px;
  }

  #dashboardView .selected-project-heading {
    font-size: 19.2px;
  }

  #dashboardView .project-filter-button small,
  #dashboardView .user-jobs-table th,
  #dashboardView .table-button {
    font-size: 13.44px;
  }

  #dashboardView .dashboard-search label,
  #dashboardView .support-ticket-note,
  #dashboardView .sidebar-card > span {
    font-size: 11.52px;
  }
}

/* Mobile: cartelle progetto e tabella lavori selezionati */
@media (max-width: 780px) {
  #dashboardView .user-jobs-panel .panel__header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  #dashboardView .user-jobs-heading {
    grid-column: 1;
    grid-row: 1;
  }

  #dashboardView .user-jobs-panel .panel__header > .dashboard-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: min(100%, 330px);
    min-width: 0;
    justify-self: center;
  }

  #dashboardView .user-jobs-panel .dashboard-search .field__control,
  #dashboardView .user-jobs-panel .dashboard-search input {
    min-width: 0;
  }

  #dashboardView .user-jobs-panel .panel__header > .panel__meta {
    grid-column: 2;
    grid-row: 1;
  }

  #dashboardView .user-jobs-panel .panel__header .eyebrow {
    font-size: 4vw;
  }

  #dashboardView .project-filter-button strong {
    font-size: 4vw;
  }

  #dashboardView .project-filter-button small {
    display: none;
  }

  #dashboardView .selected-project-heading {
    font-size: 4vw;
    text-align: center;
  }

  #dashboardView .user-jobs-panel.is-grouped-by-project:not(.has-selected-project) .user-jobs-list {
    display: none;
  }

  #dashboardView .user-jobs-panel.has-selected-project .user-jobs-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
  }

  #dashboardView .user-jobs-panel.has-selected-project .user-jobs-table th,
  #dashboardView .user-jobs-panel.has-selected-project .user-jobs-table td {
    padding-right: 4px;
    padding-left: 4px;
  }

  #dashboardView .user-jobs-panel.has-selected-project .user-job-type-column,
  #dashboardView .user-jobs-panel.has-selected-project .user-job-size-column,
  #dashboardView .user-jobs-panel.has-selected-project .user-job-updated-column {
    width: 1%;
    white-space: nowrap;
  }

  #dashboardView .user-jobs-panel.has-selected-project .user-job-name-column {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  #dashboardView .user-jobs-panel.has-selected-project .user-job-name,
  #dashboardView .user-jobs-panel.has-selected-project .user-job-name strong {
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  #dashboardView .user-jobs-panel.has-selected-project th.user-job-type-column .sortable-heading > span:first-child,
  #dashboardView .user-jobs-panel.has-selected-project th.user-job-size-column .sortable-heading > span:first-child,
  #dashboardView .user-jobs-panel.has-selected-project th.user-job-updated-column .sortable-heading > span:first-child {
    display: none;
  }

  #dashboardView .user-jobs-panel.has-selected-project th.user-job-type-column .sortable-heading::before {
    content: "Tipo";
  }

  #dashboardView .user-jobs-panel.has-selected-project th.user-job-size-column .sortable-heading::before {
    content: "Mb";
  }

  #dashboardView .user-jobs-panel.has-selected-project th.user-job-updated-column .sortable-heading::before {
    content: "Agg.";
  }

  #dashboardView .user-jobs-panel.has-selected-project .user-job-updated-full {
    display: none;
  }

  #dashboardView .user-jobs-panel.has-selected-project .user-job-updated-mobile {
    display: inline;
  }
}
