:root {
  --night: #030b10;
  --night-soft: #07151b;
  --panel: #0a1a21;
  --panel-light: #102831;
  --cream: #f3eadb;
  --muted: #b8afa3;
  --teal: #6fa6a7;
  --teal-dark: #355f62;
  --orange: #e85b20;
  --orange-dark: #b94213;
  --gold: #c7b36b;
  --line: rgba(243, 234, 219, 0.12);
  --line-strong: rgba(111, 166, 167, 0.48);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background: var(--night);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--night);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 5%, rgba(111, 166, 167, 0.14), transparent 28%),
    radial-gradient(circle at 96% 26%, rgba(232, 91, 32, 0.14), transparent 24%),
    var(--night);
  color: var(--cream);
}

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

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

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

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 50px;
  height: 44px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

.brand-name {
  display: grid;
  gap: 2px;
  font-family: "Arial Narrow", "Avenir Next Condensed", sans-serif;
  line-height: 0.95;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-name strong {
  font-size: 1.02rem;
}

.brand-name small {
  font-size: 0.78rem;
  font-weight: 500;
}

.brand-large .brand-mark {
  width: 66px;
  height: 58px;
}

.brand-large .brand-name strong {
  font-size: 1.26rem;
}

.brand-large .brand-name small {
  font-size: 0.94rem;
}

.eyebrow,
.app-kicker {
  margin: 0 0 11px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 3px;
  margin-right: 9px;
  background: currentColor;
  vertical-align: middle;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}

h3 {
  font-size: 1rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--orange);
  background: linear-gradient(135deg, #f06a24, #c94412);
  color: var(--cream);
  box-shadow: 0 14px 34px rgba(232, 91, 32, 0.2);
}

.button-outline {
  border-color: rgba(111, 166, 167, 0.55);
  background: rgba(111, 166, 167, 0.06);
}

.button-outline:hover {
  background: rgba(111, 166, 167, 0.14);
}

.text-button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
}

.reset-back-link {
  display: block;
  margin-top: 18px;
  text-align: center;
  text-decoration: none;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.login-view {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  min-height: 100vh;
}

.login-art {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(36px, 5vw, 76px);
  border-right: 1px solid rgba(111, 166, 167, 0.18);
  background:
    linear-gradient(110deg, rgba(3, 11, 16, 0.42), rgba(3, 11, 16, 0.12)),
    radial-gradient(circle at 76% 34%, rgba(111, 166, 167, 0.25), transparent 28%),
    linear-gradient(145deg, #030b10 0%, #0b2028 58%, #0d171b 100%);
}

.login-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 234, 219, 0.02) 1px, transparent 1px);
  background-size: 6px 6px, 80px 80px;
}

.login-art > * {
  position: relative;
  z-index: 1;
}

.login-statement {
  max-width: 760px;
  margin: auto 0;
}

.login-statement h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.8rem, 7.2vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.login-statement h1 span {
  color: var(--teal);
}

.login-statement > p:last-child {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.login-shape {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.shape-one {
  right: -13%;
  bottom: -30%;
  width: min(40vw, 600px);
  aspect-ratio: 1;
  border: 1px solid rgba(232, 91, 32, 0.26);
  background: radial-gradient(circle at 30% 30%, rgba(232, 91, 32, 0.45), rgba(232, 91, 32, 0.06) 58%, transparent 70%);
}

.shape-two {
  right: 13%;
  top: 20%;
  width: min(24vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(111, 166, 167, 0.22);
}

.login-panel {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 84px);
  background: rgba(3, 11, 16, 0.84);
}

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

.mobile-brand {
  display: none;
}

.login-card h2 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
}

.login-intro {
  margin: 0 0 34px;
  color: var(--muted);
}

.login-card > label,
.modal label {
  display: block;
  margin: 18px 0 8px;
  color: rgba(243, 234, 219, 0.84);
  font-size: 0.82rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(243, 234, 219, 0.16);
  border-radius: 5px;
  outline: 0;
  background: rgba(243, 234, 219, 0.055);
  color: var(--cream);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

select {
  cursor: pointer;
  color-scheme: dark;
}

select:hover {
  border-color: rgba(111, 166, 167, 0.62);
  background-color: rgba(111, 166, 167, 0.08);
}

select option {
  background: #f3eadb;
  color: #07151b;
  font-weight: 600;
}

select option:checked {
  background: #6fa6a7;
  color: #030b10;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(111, 166, 167, 0.2);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 64px;
}

.icon-button {
  position: absolute;
  right: 8px;
  top: 50%;
  min-height: 36px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 0.75rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 28px;
  font-size: 0.78rem;
}

.login-access-help {
  margin: -12px 0 28px;
  color: var(--muted);
  font-size: 0.78rem;
}

.login-access-help .text-button {
  margin-left: 4px;
}

.check-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.check-label input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--orange);
}

.login-submit {
  width: 100%;
  justify-content: space-between;
}

.demo-note {
  margin: 18px 0 0;
  color: rgba(184, 175, 163, 0.65);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 5%, rgba(232, 91, 32, 0.09), transparent 24%),
    radial-gradient(circle at 18% 30%, rgba(111, 166, 167, 0.1), transparent 28%),
    var(--night);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: 255px;
  flex-direction: column;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  background: rgba(3, 11, 16, 0.95);
  backdrop-filter: blur(18px);
}

.side-nav {
  display: grid;
  gap: 6px;
  margin-top: 64px;
}

.nav-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(111, 166, 167, 0.28);
  background: rgba(111, 166, 167, 0.1);
  color: var(--cream);
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--orange);
}

.nav-symbol {
  color: var(--teal);
  font-family: Georgia, serif;
  font-size: 0.72rem;
}

.nav-badge {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(232, 91, 32, 0.18);
  color: #ff8a58;
  font-size: 0.62rem;
  font-weight: 800;
}

.sidebar-project {
  margin-top: auto;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(243, 234, 219, 0.035);
}

.sidebar-project p,
.sidebar-project span {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.sidebar-project strong {
  display: block;
  margin: 3px 0;
  font-family: Georgia, serif;
  font-size: 1.05rem;
}

.logout-button {
  min-height: 40px;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: rgba(184, 175, 163, 0.72);
  text-align: left;
  cursor: pointer;
}

.logout-button:hover {
  color: var(--orange);
}

.main-content {
  min-width: 0;
  margin-left: 255px;
  padding: 0 clamp(28px, 4vw, 68px) 64px;
}

.app-header {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.app-header h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.app-kicker {
  color: var(--teal);
}

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

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(232, 91, 32, 0.55);
  border-radius: 50%;
  background: rgba(232, 91, 32, 0.11);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.app-view {
  display: none;
  padding-top: 36px;
  animation: fade-in 220ms ease both;
}

.app-view.active {
  display: block;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.status-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(111, 166, 167, 0.28);
  border-radius: 7px;
  background:
    radial-gradient(circle at 92% 18%, rgba(232, 91, 32, 0.17), transparent 28%),
    linear-gradient(135deg, rgba(111, 166, 167, 0.12), rgba(243, 234, 219, 0.025)),
    var(--night-soft);
  box-shadow: var(--shadow);
}

.status-band h2 {
  max-width: 660px;
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.status-band > div:first-child > p:last-child {
  margin: 17px 0 0;
  color: var(--muted);
}

.invoice-top,
.invoice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-link {
  color: var(--cream);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-link:hover {
  color: var(--orange);
}

.site-summary {
  display: grid;
  gap: 18px;
  padding-left: 28px;
  border-left: 1px solid rgba(111, 166, 167, 0.28);
}

.site-summary > div {
  display: grid;
  gap: 6px;
}

.site-summary span {
  color: var(--muted);
  font-size: 0.72rem;
}

.site-summary strong {
  color: var(--cream);
  font-size: 0.92rem;
}

.site-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-state i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #73c39b;
  box-shadow: 0 0 0 5px rgba(115, 195, 155, 0.1);
}

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

.quick-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(243, 234, 219, 0.035);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.quick-action:hover {
  border-color: rgba(111, 166, 167, 0.48);
  background: rgba(111, 166, 167, 0.08);
  transform: translateY(-2px);
}

.action-number {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 0.76rem;
}

.quick-action strong,
.quick-action small {
  display: block;
}

.quick-action small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.quick-action b {
  color: var(--teal);
  font-size: 1.2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
}

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

.maintenance-card {
  display: flex;
  flex-direction: column;
}

.maintenance-card > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.maintenance-card .button {
  width: 100%;
  margin-top: auto;
}

.panel,
.invoice-card,
.request-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(243, 234, 219, 0.055), rgba(243, 234, 219, 0.025)),
    rgba(7, 21, 27, 0.78);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.panel {
  padding: 24px;
}

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

.panel-heading h2 {
  font-size: 1.55rem;
}

.activity-list {
  display: grid;
}

.activity-item,
.file-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 68px;
  border-top: 1px solid rgba(243, 234, 219, 0.08);
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream);
}

.activity-dot.teal {
  background: var(--teal);
}

.activity-dot.orange {
  background: var(--orange);
}

.activity-item strong,
.activity-item small,
.file-row strong,
.file-row small {
  display: block;
}

.activity-item strong,
.file-row strong {
  font-size: 0.83rem;
}

.activity-item small,
.file-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.status {
  display: inline-flex;
  width: max-content;
  min-height: 25px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(199, 179, 107, 0.25);
  border-radius: 3px;
  background: rgba(199, 179, 107, 0.08);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
}

.status-review {
  border-color: rgba(111, 166, 167, 0.3);
  background: rgba(111, 166, 167, 0.1);
  color: var(--teal);
}

.status-done {
  border-color: rgba(111, 166, 167, 0.23);
  background: rgba(111, 166, 167, 0.08);
  color: #9bc6b0;
}

.status-pending {
  border-color: rgba(232, 91, 32, 0.3);
  background: rgba(232, 91, 32, 0.1);
  color: #f28b58;
}

.invoice-summary {
  display: flex;
  flex-direction: column;
}

.invoice-label {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.invoice-amount {
  margin: 6px 0 12px;
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
}

.invoice-meta {
  align-items: flex-start;
  flex-direction: column;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.72rem;
}

.invoice-summary .button {
  width: 100%;
  margin-top: auto;
}

.secure-note {
  margin: 9px 0 0;
  color: rgba(184, 175, 163, 0.55);
  font-size: 0.67rem;
  text-align: center;
}

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

.page-heading h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.page-heading p:last-child {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
}

.drop-zone {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed rgba(111, 166, 167, 0.55);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 50%, rgba(111, 166, 167, 0.13), transparent 44%),
    rgba(111, 166, 167, 0.035);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: var(--orange);
  background-color: rgba(232, 91, 32, 0.05);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.drop-zone strong {
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

.drop-zone small {
  margin-top: 10px;
  color: rgba(184, 175, 163, 0.56);
  font-size: 0.7rem;
}

.drop-symbol {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 6px;
  border: 1px solid rgba(232, 91, 32, 0.5);
  border-radius: 4px;
  color: var(--orange);
  font-size: 1.7rem;
}

.files-panel {
  margin-top: 18px;
}

.file-count {
  color: var(--muted);
  font-size: 0.72rem;
}

.file-row {
  min-height: 72px;
}

.file-type {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(111, 166, 167, 0.3);
  border-radius: 3px;
  color: var(--teal);
  font-size: 0.62rem;
  font-weight: 800;
}

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

.request-card {
  display: block;
  min-height: 112px;
  padding: 22px 24px;
}

.request-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(243, 234, 219, 0.09);
}

.request-topic {
  min-width: 0;
}

.request-id {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-card h3 {
  font-size: 1.28rem;
}

.request-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

.request-side {
  display: grid;
  min-width: 88px;
  justify-items: end;
  gap: 9px;
}

.request-side small {
  color: var(--muted);
  font-size: 0.78rem;
}

.request-thread {
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.request-message {
  width: min(82%, 760px);
  padding: 17px 20px;
  border-radius: 16px;
}

.request-message-client {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: linear-gradient(135deg, #d94d17, var(--orange));
  color: #fff9f1;
}

.request-message-studio {
  justify-self: start;
  border: 1px solid rgba(111, 166, 167, 0.42);
  border-bottom-left-radius: 4px;
  background: #dbe7e4;
  color: #102831;
}

.request-message-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.request-message-meta strong {
  font-size: 0.84rem;
}

.request-message-meta time {
  color: currentColor;
  font-size: 0.76rem;
  opacity: 0.66;
}

.request-message p {
  margin: 0;
  color: inherit;
  white-space: pre-wrap;
}

.request-card-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 36px;
  text-align: center;
}

.request-card-empty > div {
  width: min(100%, 520px);
}

.request-card-empty h3 {
  margin-bottom: 9px;
}

.request-card-empty p {
  color: var(--muted);
}

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

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

.stat-card {
  display: grid;
  min-height: 170px;
  align-content: space-between;
  gap: 12px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 166, 167, 0.12), transparent 42%),
    rgba(7, 21, 27, 0.78);
}

.stat-card > span {
  color: var(--muted);
  font-size: 0.74rem;
}

.stat-card strong {
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1;
}

.stat-card small {
  color: rgba(184, 175, 163, 0.65);
  font-size: 0.68rem;
  line-height: 1.45;
}

.stat-card small.positive {
  color: #8fc7ac;
}

.traffic-panel {
  margin-top: 0;
}

.traffic-chart {
  display: grid;
  height: 280px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 24px);
  align-items: end;
  padding-top: 16px;
}

.traffic-chart > div {
  display: grid;
  height: 100%;
  grid-template-rows: 18px 1fr 18px;
  gap: 8px;
  align-items: end;
  color: var(--muted);
  font-size: 0.66rem;
  text-align: center;
}

.traffic-chart i {
  display: block;
  width: 100%;
  height: var(--value);
  min-height: 10px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--orange), rgba(111, 166, 167, 0.68));
}

.traffic-chart strong {
  color: var(--cream);
  font-size: 0.7rem;
}

.stats-note {
  margin: 22px 0 0;
  color: rgba(184, 175, 163, 0.56);
  font-size: 0.68rem;
}

.invoice-card {
  padding: clamp(24px, 3vw, 38px);
}

.invoice-card.invoice-due {
  border-color: rgba(232, 91, 32, 0.38);
  background:
    radial-gradient(circle at 90% 5%, rgba(232, 91, 32, 0.14), transparent 34%),
    rgba(7, 21, 27, 0.82);
}

.invoice-top strong {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.invoice-card h3 {
  margin-top: 28px;
  font-size: 1.15rem;
}

.invoice-card > p {
  margin: 7px 0 26px;
  color: var(--muted);
  font-size: 0.78rem;
}

.invoice-card dl {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
}

.invoice-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(243, 234, 219, 0.08);
  font-size: 0.78rem;
}

.invoice-card dt {
  color: var(--muted);
}

.invoice-card dd {
  margin: 0;
}

.invoice-card .button {
  width: 100%;
}

.payment-assurance {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 680px;
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 2px solid var(--teal);
  background: rgba(111, 166, 167, 0.05);
}

.payment-assurance > span {
  color: var(--teal);
}

.payment-assurance p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.mobile-nav {
  display: none;
}

.modal {
  width: min(92vw, 620px);
  max-height: 90vh;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(111, 166, 167, 0.36);
  border-radius: 7px;
  background:
    radial-gradient(circle at 95% 5%, rgba(232, 91, 32, 0.13), transparent 26%),
    #07151b;
  color: var(--cream);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
}

.modal::backdrop {
  background: rgba(0, 5, 8, 0.82);
  backdrop-filter: blur(6px);
}

.modal form,
.payment-modal > div {
  padding: clamp(24px, 5vw, 42px);
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-close {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}

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

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

.payment-modal {
  text-align: center;
}

.payment-modal .modal-close {
  margin-left: auto;
}

.payment-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 2px auto 22px;
  border: 1px solid rgba(111, 166, 167, 0.5);
  border-radius: 50%;
  background: rgba(111, 166, 167, 0.1);
  color: var(--teal);
  font-size: 1.3rem;
}

.payment-modal p:not(.eyebrow) {
  max-width: 470px;
  margin: 18px auto 26px;
  color: var(--muted);
  line-height: 1.6;
}

.payment-modal .button {
  width: 100%;
}

.payment-modal .text-button {
  margin-top: 16px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 16px;
  border: 1px solid rgba(111, 166, 167, 0.42);
  border-radius: 5px;
  background: #102831;
  box-shadow: var(--shadow);
  color: var(--cream);
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

@media (max-width: 1050px) {
  .login-view {
    grid-template-columns: 1fr 430px;
  }

  .login-statement h1 {
    font-size: clamp(3.3rem, 7.5vw, 5.8rem);
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 780px) {
  body {
    padding-bottom: 70px;
  }

  .login-view {
    display: block;
    min-height: 100vh;
  }

  .login-art {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    padding: 28px 20px;
    background:
      radial-gradient(circle at 90% 12%, rgba(232, 91, 32, 0.14), transparent 24%),
      radial-gradient(circle at 10% 72%, rgba(111, 166, 167, 0.14), transparent 28%),
      var(--night);
  }

  .mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 60px;
  }

  .login-card h2 {
    font-size: 2.6rem;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 0 18px 32px;
  }

  .app-header {
    min-height: 92px;
  }

  .app-header h1 {
    font-size: 1.7rem;
  }

  .app-kicker {
    margin-bottom: 5px;
    font-size: 0.63rem;
  }

  .header-actions .button {
    display: none;
  }

  .app-view {
    padding-top: 22px;
  }

  .status-band {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 24px 20px;
  }

  .status-band h2 {
    font-size: 2.15rem;
    line-height: 1;
  }

  .site-summary {
    padding: 22px 0 0;
    border-top: 1px solid rgba(111, 166, 167, 0.28);
    border-left: 0;
  }

  .quick-actions {
    gap: 10px;
    margin: 12px 0;
  }

  .quick-action {
    min-height: 76px;
    padding: 14px;
  }

  .panel {
    padding: 19px 16px;
  }

  .panel-heading {
    align-items: center;
  }

  .activity-item,
  .file-row {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px 0;
  }

  .activity-item .status,
  .file-row .status {
    grid-column: 2;
  }

  .page-heading,
  .page-heading-actions {
    display: grid;
    align-items: start;
  }

  .page-heading h2 {
    font-size: 2.5rem;
  }

  .page-heading-actions .button {
    width: 100%;
  }

  .drop-zone {
    min-height: 220px;
    padding: 24px 18px;
  }

  .request-card {
    display: grid;
    gap: 18px;
    padding: 20px 17px;
  }

  .request-card-head {
    display: grid;
    align-items: start;
  }

  .request-side {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
  }

  .request-message {
    width: 100%;
    padding: 16px 17px;
  }

  .request-message-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .request-card p {
    font-size: 1rem;
  }

  .request-message-meta strong {
    font-size: 0.88rem;
  }

  .request-message-meta time {
    font-size: 0.8rem;
  }

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

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

  .stat-card {
    min-height: 140px;
  }

  .traffic-chart {
    height: 235px;
    gap: 7px;
  }

  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 66px;
    border-top: 1px solid rgba(243, 234, 219, 0.12);
    background: rgba(3, 11, 16, 0.97);
    backdrop-filter: blur(18px);
  }

  .mobile-nav button {
    position: relative;
    display: grid;
    place-items: center;
    gap: 2px;
    padding: 8px 3px 6px;
    border: 0;
    background: transparent;
    color: rgba(184, 175, 163, 0.72);
    font-size: 0.62rem;
  }

  .mobile-nav button span {
    color: var(--teal);
    font-family: Georgia, serif;
    font-size: 0.62rem;
  }

  .mobile-nav button.active {
    box-shadow: inset 0 2px 0 var(--orange);
    color: var(--cream);
  }

  .mobile-nav .mobile-nav-badge {
    position: absolute;
    top: 6px;
    right: max(4px, 12%);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    color: #ffb08c;
    font-family: inherit;
    font-size: 0.56rem;
  }

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

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-actions .button {
    width: 100%;
  }

  .toast {
    right: 16px;
    bottom: 82px;
  }
}

@media (max-width: 430px) {
  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-header {
    gap: 12px;
  }

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

  .status-band h2 {
    font-size: 1.9rem;
  }

  .quick-action {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }

  .panel-heading {
    align-items: flex-start;
  }

  .invoice-card dl div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

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