:root {
  --bg: hsl(150 6% 7%);
  --sidebar: hsl(150 8% 5%);
  --fg: hsl(0 0% 98%);
  --muted: hsl(150 5% 72%);
  --faint: hsl(150 4% 62%);
  --primary: #59ba47;
  --primary-ink: hsl(150 25% 8%);
  --card: #ffffff;
  --card-fg: hsl(150 10% 9%);
  --line: hsl(150 6% 16%);
  --card-line: hsl(0 0% 90%);
  --danger: hsl(0 72% 42%);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  --radius: 16px;
  --font: "Montserrat", "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
}

a { color: inherit; }

button, input, select, textarea { font: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.landing, .login-body {
  min-height: 100vh;
  background: #050605;
}

.landing-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050605;
}

.landing-shade {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0.88)),
    radial-gradient(circle at 20% 10%, rgba(89, 186, 71, 0.18), transparent 32%);
}

.landing-bar, .landing-hero, .landing-footer { position: relative; z-index: 1; }

.landing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 7vw;
}

.brand-logo { height: 54px; width: auto; display: block; }

.landing-hero {
  min-height: calc(100vh - 180px);
  display: grid;
  align-content: center;
  padding: 4vh 7vw 8vh;
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
}

.landing-hero .button { justify-self: start; }

.landing-hero h1, .login-card h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.landing-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 7vw 28px;
  color: var(--faint);
  font-size: 0.92rem;
}

.landing-footer a { color: white; }

.login-body {
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: rgba(8, 10, 8, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.login-card .brand-logo { height: 46px; margin-bottom: 22px; }

.login-card h1 { font-size: 3rem; }

.form-error {
  min-height: 1.4em;
  color: #9f1239;
  margin: 0 0 8px;
}

.login-card .form-error { color: #ffb4b4; }
.login-card .notice { color: #d7efd2; font-weight: 600; }

label { display: block; font-size: 0.92rem; font-weight: 600; margin: 14px 0 6px; }

input, select, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--card-line);
  background: white;
  color: var(--card-fg);
  padding: 10px 12px;
}

textarea { min-height: 120px; resize: vertical; }

.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button-ghost, button.button.button-ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.button-line, button.button.button-line, a.button.button-line {
  background: white;
  color: var(--card-fg);
  border: 1px solid var(--card-line);
}

.button-danger, button.button.button-danger {
  background: white;
  color: var(--danger);
  border: 1px solid #f0c7c7;
}

.button[disabled] { opacity: 0.6; cursor: not-allowed; }

.shell { min-height: 100vh; display: flex; }

.sidebar {
  width: 260px;
  flex: 0 0 260px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.wordmark {
  display: block;
  padding: 22px 22px 0;
  text-decoration: none;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
}

.wordmark span { color: var(--primary); }

.company-link {
  display: block;
  margin: 2px 22px 14px;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.company-link:hover { color: white; }

.brand-link { display: inline-flex; }

.text-link { color: #59ba47; font-weight: 600; }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.nav-label {
  margin: 8px 22px 0;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list { display: grid; gap: 4px; padding: 8px 12px; }
.nav-divider { height: 1px; margin: 10px 14px; background: hsl(150 5% 28%); }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }

.nav-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.nav-list a .icon { color: var(--primary); }

.nav-list a[aria-current="page"] {
  background: var(--primary);
  color: var(--primary-ink);
}

.nav-list a[aria-current="page"] .icon { color: var(--primary-ink); }

.sidebar-user {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.logout {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: default;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar-actions .icon-button { color: var(--fg); }

.card h2, .muted.with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h2 .icon { color: #59ba47; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(89, 186, 71, 0.18);
  color: var(--primary);
  font-weight: 700;
}

.sidebar-user p { margin: 0; }
.sidebar-user .email { color: var(--faint); font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; }

.workspace { flex: 1; min-width: 0; }

.topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(12, 14, 12, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.menu-button { display: none; align-items: center; justify-content: center; background: transparent; color: white; border: 0; padding: 8px; cursor: pointer; }
.menu-button .icon { width: 1.5rem; height: 1.5rem; }

.content { padding: 28px 22px 48px; max-width: 1040px; margin: 0 auto; }

.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; }
.page-head h1 { margin: 0 0 6px; font-size: 1.8rem; }
.page-head p { margin: 0; color: var(--muted); }

.staff-banner-wrap { padding: 18px 22px 0; max-width: 1040px; margin: 0 auto; }
.staff-banner-wrap .banner { margin: 0; }
.row-link { color: #59ba47; font-weight: 700; }

.banner, .card, .stat {
  background: var(--card);
  color: var(--card-fg);
  border-radius: var(--radius);
}

.banner {
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid #d7efd2;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }

.stat { padding: 16px; }
a.stat { display: block; color: inherit; text-decoration: none; }
.stat span { display: flex; align-items: center; gap: 8px; color: #5d675f; font-size: 0.82rem; font-weight: 600; }
.stat .icon { color: #59ba47; }
.stat strong { display: block; margin-top: 8px; font-size: 1.5rem; }
.stat em { font-style: normal; color: #5d675f; font-size: 0.85rem; }

.grid-2 { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 14px; }
.card { padding: 18px; border: 1px solid var(--card-line); }
.card h2 { margin: 0 0 8px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.card h2 .icon { color: #59ba47; }
.with-icon { display: flex; align-items: flex-start; gap: 8px; }
.with-icon .icon { color: #59ba47; margin-top: 2px; }
.button .icon, .button-line .icon { width: 1.05rem; height: 1.05rem; }
.card p { color: #3e463f; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button.button[aria-selected="true"] { background: var(--primary); color: var(--primary-ink); border-color: transparent; }

.job, .doc, .property, .reward {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--card-line);
}

.job:first-of-type, .doc:first-of-type { border-top: 0; }
.muted { color: #5d675f; margin: 4px 0 0; }
.status { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: #59ba47; }

.filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.filters label { color: var(--fg); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.choice button.button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: transparent; }

.check { display: flex; align-items: center; gap: 8px; color: var(--card-fg); font-weight: 500; }
.check input { width: auto; }

.notice { color: #59ba47; font-weight: 600; }
.points { font-size: 2.4rem; margin: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--card-line); vertical-align: top; }
.hidden { display: none; }

@media (max-width: 900px) {
  .stats, .grid-2, .filters { grid-template-columns: 1fr 1fr; }
  .sidebar { position: fixed; z-index: 5; transform: translateX(-105%); transition: transform 0.2s ease; }
  .sidebar.is-open { transform: none; }
  .menu-button { display: inline-flex; }
}

@media (max-width: 640px) {
  .stats, .grid-2, .filters, .choice { grid-template-columns: 1fr; }
  .landing-bar, .landing-hero, .landing-footer { padding-left: 20px; padding-right: 20px; }
}

.manage-portfolio-page {
  max-width: none;
  margin: 0;
  background: #f3f3f3;
  color: #1a1a1a;
  min-height: calc(100vh - 57px);
}
.manage-portfolio-page .page-head h1 { color: #1a1a1a; font-weight: 500; font-size: 2rem; }
.manage-portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.1rem 0.7rem;
}
.manage-card { display: block; color: #1a1a1a; text-decoration: none; }
.manage-card .shot {
  display: flex;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #fff;
  align-items: center;
  justify-content: center;
}
.manage-card img { width: 100%; height: 100%; object-fit: cover; }
.manage-card h2 { margin: 0.45rem 0 0; font-size: 0.92rem; font-weight: 500; line-height: 1.35; }
.manage-add .shot { flex-direction: column; gap: 0.35rem; border: 1px solid #e4e4e4; font-size: 0.85rem; }
.manage-add .icon { width: 2rem; height: 2rem; }
.portfolio-form { max-width: 720px; }
.portfolio-images { display: grid; gap: 12px; margin-top: 8px; }
.portfolio-image {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 10px;
}
.portfolio-image img { width: 96px; height: 128px; object-fit: cover; background: #eee; }
.portfolio-image label { margin: 4px 0; font-weight: 500; }
.portfolio-image input[type="radio"], .portfolio-image input[type="file"] { width: auto; }
.portfolio-image .remove-image {
  margin-top: 8px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  font-weight: 700;
}
.visibility { border: 0; margin: 18px 0 4px; padding: 0; }
.visibility legend { font-size: 0.92rem; font-weight: 600; margin-bottom: 8px; }
.visibility .choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.visibility label {
  position: relative;
  margin: 0;
  padding: 12px 10px;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
}
.visibility input { position: absolute; opacity: 0; }
.visibility label:has(input:checked) {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: transparent;
}
.visibility .muted { margin: 8px 0 0; color: #5d675f; font-size: 0.85rem; font-weight: 500; }
@media (max-width: 640px) {
  .visibility .choice { grid-template-columns: 1fr; }
}
.manage-card .place { display: block; margin-top: 0.15rem; color: #6a6a6a; font-size: 0.75rem; font-weight: 600; }
.portfolio-form input[type="file"] { width: auto; padding: 8px 0; border: 0; background: transparent; }
