:root {
  --bg: #090a0f;
  --panel: #151821;
  --panel-soft: #1d2230;
  --line: #2c3446;
  --text: #f7f7fb;
  --muted: #9aa4b7;
  --accent: #c79a42;
  --accent-strong: #9f7330;
  --accent-soft: rgba(199, 154, 66, .18);
  --green: #31d07f;
  --gold: #f5c451;
}

html.light-mode {
  --bg: #f6f3ed;
  --panel: #ffffff;
  --panel-soft: #f1eee7;
  --line: #ded5c5;
  --text: #17130d;
  --muted: #6d6559;
  --accent: #b98532;
  --accent-strong: #80551f;
  --accent-soft: rgba(185, 133, 50, .16);
  --green: #0f7a4c;
  --gold: #b98532;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, rgba(199, 154, 66, .16), transparent 28%), var(--bg);
  font-family: Inter, Segoe UI, system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}

html.light-mode body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(246, 243, 237, .94)),
    radial-gradient(circle at 16% 0%, rgba(185, 133, 50, .18), transparent 30%),
    var(--bg);
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

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

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: rgba(9, 10, 15, .92);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

html.light-mode .side-nav {
  background: rgba(255, 255, 255, .88);
  box-shadow: 18px 0 44px rgba(72, 55, 30, .08);
}

html.light-mode .user-strip {
  background: transparent;
  border-top-color: rgba(128, 85, 31, .16);
}

.nav-toggle {
  display: none;
}

.mobile-nav-head {
  display: contents;
}

.nav-menu {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding-right: 4px;
}

.nav-menu::-webkit-scrollbar {
  width: 6px;
}

.nav-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(199, 154, 66, .28);
}

.hamburger-button {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.brand-logo {
  width: min(144px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35));
}

.login-logo {
  width: min(188px, 72%);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .42));
}

.nav-stack {
  display: grid;
  gap: 10px;
}

.nav-stack a {
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nav-stack a:hover {
  color: var(--text);
  background: var(--panel-soft);
}

.nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b0803;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.theme-toggle {
  min-height: 44px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(199, 154, 66, .24);
  border-radius: 8px;
  color: var(--text);
  background: rgba(199, 154, 66, .08);
  font-weight: 800;
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset -5px -4px 0 rgba(9, 10, 15, .92);
}

html.light-mode .theme-toggle-icon {
  box-shadow: 0 0 0 4px rgba(184, 134, 47, .18);
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.language-switcher a {
  min-height: 38px;
  border: 1px solid rgba(199, 154, 66, .28);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(18, 21, 30, .72);
  font-weight: 900;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.language-switcher a.active {
  color: #110d06;
  background: linear-gradient(135deg, #f2d27a 0%, var(--accent) 100%);
  box-shadow: 0 14px 26px rgba(184, 134, 47, .18);
}

html.light-mode .language-switcher a {
  color: #5b6272;
  background: #fffdf8;
}

html.light-mode .language-switcher a.active {
  color: #110d06;
}

.daily-quote {
  margin: 0;
  min-width: 0;
  color: var(--muted);
}

.daily-quote blockquote {
  margin: 0;
  color: rgba(247, 247, 251, .9);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
}

.daily-quote figcaption {
  display: block;
  margin-top: 7px;
  color: rgba(245, 196, 81, .82);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.daily-quote-desktop {
  flex: 0 0 auto;
  order: 2;
  max-height: 150px;
  overflow: hidden;
  padding: 13px;
  border: 1px solid rgba(199, 154, 66, .22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(199, 154, 66, .08), rgba(21, 24, 33, .42));
}

.daily-quote-desktop blockquote {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.daily-quote-mobile {
  display: none;
}

.user-strip {
  order: 3;
  margin-top: 0;
  position: static;
  display: grid;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(199, 154, 66, .14);
  background: transparent;
  color: var(--muted);
  font-size: .9rem;
}

.user-strip strong,
.user-strip span {
  display: block;
}

.content {
  padding: 34px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content-full {
  grid-column: 1 / -1;
  padding: 0;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(199, 154, 66, .24), transparent 30%),
    linear-gradient(135deg, #090a0f 0%, #151821 54%, #08090d 100%);
}

.public-login-screen {
  min-height: calc(100svh - 220px);
  place-items: start center;
  padding-block: clamp(34px, 5vw, 64px);
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 196, 81, .11), transparent 28%),
    linear-gradient(135deg, rgba(15, 17, 24, .28), rgba(9, 10, 15, .02));
}

.login-panel {
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: minmax(210px, .78fr) minmax(0, 1.22fr);
  gap: 0;
  padding: 0;
  border: 1px solid rgba(199, 154, 66, .24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 196, 81, .14), transparent 34%),
    linear-gradient(180deg, rgba(12, 13, 18, .96), rgba(8, 9, 13, .94));
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
}

.login-screen:not(.public-login-screen) .login-panel {
  width: min(520px, 100%);
  display: block;
  padding: 28px;
  overflow: visible;
}

.login-screen:not(.public-login-screen) .login-logo-wrap {
  min-height: 142px;
  border-bottom: 1px solid rgba(199, 154, 66, .16);
}

.login-back-link {
  position: fixed;
  top: 22px;
  left: 22px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(199, 154, 66, .24);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(21, 24, 33, .78);
  font-weight: 800;
  z-index: 2;
}

.login-back-link::before {
  content: "<";
  margin-right: 8px;
  color: var(--gold);
}

.login-back-link:hover {
  color: var(--text);
  background: rgba(199, 154, 66, .12);
}

.login-secondary-action {
  margin-top: 12px;
}

.login-brand-column,
.login-content-column {
  display: grid;
  align-content: center;
}

.login-brand-column {
  gap: 18px;
  padding: 30px;
  border-right: 1px solid rgba(199, 154, 66, .16);
  background:
    radial-gradient(circle at 50% 20%, rgba(245, 196, 81, .16), transparent 42%),
    rgba(199, 154, 66, .04);
}

.login-content-column {
  gap: 18px;
  padding: 34px;
}

.login-topline {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(199, 154, 66, .18);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(245, 196, 81, .07);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-lock {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #110d06;
  background: linear-gradient(135deg, #f2d27a 0%, var(--accent) 100%);
  box-shadow: 0 12px 26px rgba(184, 134, 47, .22);
}

.login-lock svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.login-logo-wrap {
  min-height: 180px;
  display: grid;
  place-items: center;
  border-bottom: 0;
}

.login-logo-wrap img {
  width: min(170px, 82%);
  height: auto;
}

.login-copy {
  display: grid;
  gap: 10px;
  margin: 0;
  text-align: left;
}

.login-copy .eyebrow {
  margin: 0;
}

.login-copy h1 {
  max-width: 430px;
  font-size: clamp(2.15rem, 4.4vw, 3.7rem);
  line-height: 1;
}

.login-copy p:not(.eyebrow) {
  margin: 0;
  max-width: 440px;
  color: var(--muted);
  line-height: 1.62;
}

.login-security-note {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(199, 154, 66, .18);
  border-radius: 8px;
  background: rgba(21, 24, 33, .72);
}

.login-security-note strong {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.login-security-note span {
  color: var(--muted);
  line-height: 1.55;
}

.welcome-text {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: .86rem;
  letter-spacing: .24em;
}

.login-actions {
  margin-top: 0;
}

.google-signin-button {
  min-height: 52px;
  gap: 10px;
  justify-content: center;
  font-size: 1rem;
}

.google-signin-button span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #111;
  background: rgba(255, 255, 255, .82);
  font-weight: 900;
}

.app-footer {
  margin-top: auto;
  padding: 34px 0 6px;
  color: rgba(245, 196, 81, .78);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.footer-main {
  width: 100%;
  min-height: 128px;
  margin: 0 0 18px;
  padding: 24px clamp(22px, 4vw, 54px);
  display: grid;
  grid-template-columns: minmax(90px, 180px) minmax(260px, .55fr) minmax(220px, auto);
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(199, 154, 66, .14);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

.footer-brand-block {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
}

.footer-brand img {
  width: 74px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .28));
}

.footer-nav-block,
.footer-social-block {
  display: grid;
  gap: 12px;
  align-content: center;
}

.footer-nav-block {
  justify-self: center;
}

.footer-social-block {
  justify-self: end;
}

.footer-label {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 10px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 700;
  white-space: nowrap;
}

.footer-social-link {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  border: 1px solid rgba(199, 154, 66, .22);
  border-radius: 8px;
  background: rgba(21, 24, 33, .72);
}

.footer-social-link:hover {
  color: #110d06;
  background: linear-gradient(135deg, #f2d27a 0%, var(--accent) 100%);
}

.footer-social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-self: stretch;
  gap: 10px;
}

.footer-links a {
  color: var(--text);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-live-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 10px;
  color: rgba(247, 247, 251, .82);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.footer-live-info span {
  white-space: nowrap;
}

.content-full .app-footer {
  padding: 0 0 22px;
  border-top: 1px solid rgba(199, 154, 66, .14);
  background: #090a0f;
}

html.light-mode .content-full .app-footer {
  border-top-color: rgba(128, 85, 31, .14);
  background: #ffffff;
}

h1,
h2 {
  margin: 0;
  font-weight: 800;
}

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

h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

p {
  color: var(--muted);
}

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

.page-actions,
.ticket-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ticket-actions form,
.page-actions form {
  margin: 0;
}

.dashboard-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.period-switch {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin: -8px 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 24, 33, .78);
}

.period-switch a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 900;
}

.period-switch a.active {
  color: #0d0904;
  background: linear-gradient(135deg, #f2d27a 0%, var(--accent) 100%);
}

.month-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.month-picker label {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.month-picker input {
  min-width: 172px;
  padding: 0 12px;
}

.month-picker input[type="month"]::-webkit-calendar-picker-indicator,
.month-picker input[type="date"]::-webkit-calendar-picker-indicator,
.ticket-filter input[type="month"]::-webkit-calendar-picker-indicator,
.ticket-filter input[type="date"]::-webkit-calendar-picker-indicator,
.compare-form input[type="month"]::-webkit-calendar-picker-indicator,
.compare-form input[type="date"]::-webkit-calendar-picker-indicator,
.leave-request-form input[type="date"]::-webkit-calendar-picker-indicator,
.leave-request-form input[type="month"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  width: 18px;
  height: 18px;
  opacity: 1;
  filter: none;
  background:
    url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='4' y='5.5' width='16' height='14' rx='2.6' stroke='%23f5c451' stroke-width='2'/%3E%3Cpath d='M8 3.5V7.5M16 3.5V7.5M4.8 10H19.2' stroke='%23f5c451' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M8 13.5H9.5M11.25 13.5H12.75M14.5 13.5H16M8 16.5H9.5M11.25 16.5H12.75M14.5 16.5H16' stroke='%23c79a42' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 18px 18px no-repeat;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .76rem;
}

.panel,
.table-panel,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 24, 33, .88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.panel {
  padding: 24px;
}

.narrow {
  max-width: 520px;
}

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

.grid.one {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  gap: 20px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.metric {
  padding: 22px;
}

.metric span,
.timestamp,
.muted {
  color: var(--muted);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.9rem;
}

.metric small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}

.worker-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 14px;
  margin-bottom: 22px;
}

.worker-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.worker-tools:has(.ticket-filter) {
  grid-template-columns: 1fr;
}

.worker-card,
.ticket-filter,
.ticket-search,
.admin-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 24, 33, .78);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .2);
}

.worker-card {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px;
}

.worker-card span,
.ticket-filter label,
.ticket-search label,
.admin-message span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.worker-card strong {
  font-size: 1.35rem;
}

.worker-card small {
  color: rgba(245, 196, 81, .78);
  font-weight: 800;
}

.worker-card.attention {
  border-color: rgba(245, 196, 81, .38);
  background: linear-gradient(180deg, rgba(199, 154, 66, .12), rgba(21, 24, 33, .78));
}

.ticket-search {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.ticket-filter {
  display: grid;
  grid-template-columns: auto minmax(150px, 180px) auto minmax(150px, 180px) auto auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  justify-content: start;
  width: 100%;
  max-width: 100%;
}

.ticket-filter input {
  min-height: 46px;
  padding: 0 12px;
}

.ticket-filter .ghost-button {
  min-height: 46px;
}

.compare-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 24, 33, .88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  padding: 16px;
}

.compare-form {
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(280px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

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

.compare-field > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.file-input-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-input-shell {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--text);
  background: #0f1219;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
}

.file-input-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 14px;
  color: #0d0b07;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  white-space: nowrap;
}

.file-input-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 700;
}

.compare-export-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

.ticket-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.ticket-search input {
  padding: 0 12px;
}

.ticket-search .ghost-button {
  min-height: 46px;
}

.admin-message {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 13px 15px;
  border-color: rgba(199, 154, 66, .26);
  background: rgba(199, 154, 66, .08);
}

.admin-message strong {
  font-size: .95rem;
}

.primary-button,
.ghost-button {
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-button {
  color: #110d06;
  background: linear-gradient(135deg, #f2d27a 0%, var(--accent) 54%, #8b6328 100%);
  box-shadow: 0 12px 28px rgba(199, 154, 66, .22);
}

.primary-button:hover {
  color: #080604;
  background: linear-gradient(135deg, #ffe08d 0%, #d4a84d 54%, var(--accent-strong) 100%);
}

.primary-button:disabled {
  opacity: .45;
}

.ghost-button {
  color: var(--text);
  background: var(--panel-soft);
}

.wide {
  width: 100%;
}

.control-dark {
  min-height: 46px;
  color: var(--text);
  background: #0f1219;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.control-dark:focus {
  color: var(--text);
  background: #10141d;
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem var(--accent-soft);
}

.work-select {
  padding-right: 44px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23f5c451' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.table-panel {
  overflow-x: auto;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 18, 25, .72);
}

.table-toolbar strong {
  color: var(--gold);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.table-toolbar span {
  color: var(--muted);
  font-weight: 800;
}

.empty-state {
  padding: 26px 18px !important;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.ticket-table {
  min-width: 0;
  table-layout: fixed;
  font-size: .8rem;
}

.data-table.ticket-table th,
.data-table.ticket-table td {
  padding: 12px 10px;
  overflow-wrap: normal;
  word-break: normal;
}

.ticket-table th {
  line-height: 1.35;
}

.ticket-table td {
  line-height: 1.45;
}

.ticket-table .ticket-id-cell,
.ticket-table .status-cell,
.ticket-table .metric-cell,
.ticket-table .price-cell,
.ticket-table .action-cell {
  white-space: nowrap;
}

.ticket-table .customer-cell,
.ticket-table .technician-cell,
.ticket-table .work-cell {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ticket-table .ticket-id-cell {
  width: 4.4%;
}

.ticket-table .customer-cell {
  width: 8%;
}

.ticket-table .technician-cell {
  width: 8.4%;
}

.ticket-table .work-cell {
  width: 14.4%;
}

.ticket-table .time-cell {
  width: 8.4%;
  white-space: normal;
}

.ticket-table .metric-cell {
  width: 6.2%;
}

.ticket-table .price-cell {
  width: 6.1%;
}

.ticket-table .action-cell {
  width: 7.2%;
}

.ticket-table .ticket-date-line,
.ticket-table .ticket-time-line {
  display: block;
  color: var(--text);
  font-size: .8rem;
  line-height: 1.35;
  white-space: nowrap;
}

.ticket-table .ticket-time-line {
  color: rgba(247, 247, 251, .78);
}

.ticket-table .action-cell .ticket-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ticket-table .action-cell form {
  width: 100%;
}

.data-table th,
.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table th {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
}

.data-table td span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
}

.data-table td[data-label="Employee"] a,
.data-table td[data-label="Employee"] span,
.data-table td[data-label="User"] a,
.data-table td[data-label="User"] span {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ticket-action {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(199, 154, 66, .34);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(199, 154, 66, .09);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.ticket-action:hover {
  color: #100d07;
  background: linear-gradient(135deg, #f2d27a 0%, var(--accent) 100%);
}

.ticket-action.danger,
.danger-button {
  color: #ffb8b8;
  border: 1px solid rgba(255, 120, 120, .34);
  background: rgba(255, 90, 90, .08);
}

.ticket-action.danger:hover,
.danger-button:hover {
  color: #3a0505;
  border-color: rgba(255, 120, 120, .52);
  background: #ffb8b8;
}

.duplicate-warning,
.open-order-warning {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 196, 81, .36);
  border-radius: 8px;
  background: rgba(245, 196, 81, .1);
}

.open-order-warning {
  margin-top: 0;
  margin-bottom: 16px;
}

.duplicate-warning strong,
.open-order-warning strong {
  color: var(--gold);
}

.duplicate-warning span,
.open-order-warning span {
  color: var(--muted);
  font-weight: 700;
}

.modal-open {
  overflow: hidden;
}

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

.confirm-modal[hidden] {
  display: none;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .68);
  backdrop-filter: blur(8px);
}

.confirm-modal-panel {
  position: relative;
  width: min(430px, 100%);
  padding: 24px;
  border: 1px solid rgba(199, 154, 66, .28);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 24, 33, .98), rgba(9, 10, 15, .98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .52);
}

.confirm-modal-panel h2 {
  margin-bottom: 10px;
}

.confirm-modal-panel p:not(.eyebrow) {
  margin: 0;
  line-height: 1.55;
}

.confirm-modal-panel strong {
  color: var(--gold);
}

.confirm-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 6, 10, .42);
  backdrop-filter: blur(8px);
}

.app-loader[hidden] {
  display: none;
}

.app-loader-ring {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(245, 196, 81, 0), rgba(245, 196, 81, .35), var(--gold), var(--accent), rgba(245, 196, 81, 0));
  box-shadow:
    0 0 0 1px rgba(245, 196, 81, .18),
    0 0 34px rgba(245, 196, 81, .28);
  animation: loaderSpin .82s linear infinite;
}

.app-loader-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: var(--bg);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .42);
}

.app-loader-ring::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: inherit;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(245, 196, 81, .55);
}

@keyframes loaderSpin {
  to {
    transform: rotate(1turn);
  }
}

html.light-mode .confirm-modal-backdrop {
  background: rgba(35, 25, 13, .35);
}

html.light-mode .confirm-modal-panel {
  border-color: rgba(128, 85, 31, .2);
  background: linear-gradient(180deg, #ffffff, #fff8ec);
  box-shadow: 0 28px 90px rgba(72, 55, 30, .18);
}

html.light-mode .app-loader {
  background: rgba(246, 240, 229, .58);
}

html.light-mode .app-loader-ring::before {
  background: var(--bg);
  box-shadow: inset 0 0 18px rgba(72, 55, 30, .16);
}

.pagination-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.pagination-summary {
  color: var(--muted);
  font-weight: 800;
}

.pagination-summary span {
  margin-left: 10px;
  color: rgba(245, 196, 81, .78);
}

.pagination-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-number,
.page-link-button {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(21, 24, 33, .88);
  font-weight: 800;
  font-size: .86rem;
}

.page-link-button {
  min-width: 76px;
}

.page-ellipsis {
  min-width: 24px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 800;
}

.page-number.active,
.page-number:hover,
.page-link-button:hover {
  color: #100d07;
  border-color: rgba(199, 154, 66, .8);
  background: linear-gradient(135deg, #f2d27a 0%, var(--accent) 100%);
}

.page-link-button.disabled {
  pointer-events: none;
  opacity: .38;
}

.status {
  display: inline-flex;
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(49, 208, 127, .12);
  font-weight: 800;
  font-size: .82rem;
}

.status.large {
  font-size: 1rem;
}

.status-accepted {
  color: #f5c451;
  background: rgba(245, 196, 81, .13);
}

.status-started {
  color: #71c7ff;
  background: rgba(113, 199, 255, .13);
}

.status-work-saved {
  color: #d9b8ff;
  background: rgba(217, 184, 255, .13);
}

.status-finished {
  color: var(--green);
  background: rgba(49, 208, 127, .12);
}

.status-rejected {
  color: #ffb8b8;
  background: rgba(255, 90, 90, .12);
}

.status-cancelled {
  color: #d5c7af;
  background: rgba(213, 199, 175, .12);
}

.detail-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 18px;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
}

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

.work-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.work-type-option {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1219;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.work-type-option:hover {
  border-color: rgba(245, 196, 81, .42);
  background: rgba(245, 196, 81, .08);
}

.work-type-option:has(input:checked) {
  border-color: rgba(245, 196, 81, .72);
  background: rgba(245, 196, 81, .14);
  box-shadow: inset 0 0 0 1px rgba(245, 196, 81, .22);
}

.work-type-option input {
  accent-color: var(--gold);
}

.saved-work {
  display: grid;
  gap: 12px;
  margin: -4px 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(49, 208, 127, .24);
  border-radius: 8px;
  background: rgba(49, 208, 127, .08);
}

.saved-work span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.saved-work strong {
  color: var(--text);
}

.saved-work-list {
  display: grid;
  gap: 10px;
}

.saved-work-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(49, 208, 127, .16);
}

.saved-work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-work-actions form {
  margin: 0;
}

.mini-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(199, 154, 66, .36);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(199, 154, 66, .08);
  font-weight: 800;
}

.mini-action:hover {
  color: #0d0904;
  background: var(--gold);
}

.mini-action.danger {
  color: #ffb8b8;
  border-color: rgba(255, 120, 120, .34);
  background: rgba(255, 90, 90, .08);
}

.leave-cell-stack,
.reject-form {
  display: grid;
  gap: 8px;
}

.reject-reason {
  min-height: 34px;
  width: min(220px, 100%);
  padding: 7px 10px;
  font-size: 13px;
}

.leave-warning-text {
  color: #ffca6a;
  font-weight: 900;
}

.leave-ok-text {
  color: var(--muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inline-form {
  display: inline-flex;
}

.field-row {
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.work-type-row {
  max-width: none;
}

.install-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.install-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.install-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(245, 196, 81, .85), rgba(245, 196, 81, .18));
}

.install-options label,
.segmented label {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1219;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.locked {
  border-color: rgba(245, 196, 81, .4);
}

.leave-metrics .metric {
  min-height: 132px;
}

.leave-balance-card strong {
  color: var(--gold);
}

.leave-calendar-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(21, 24, 33, .88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.leave-calendar-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 18, 25, .76);
}

.leave-calendar-head h2 {
  margin-bottom: 0;
}

.leave-calendar-head span {
  max-width: 440px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  text-align: right;
}

.leave-weekdays,
.leave-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.leave-weekdays span {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.leave-day {
  min-height: 142px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 18, 25, .54);
}

.leave-day:nth-child(7n) {
  border-right: 0;
}

.leave-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.leave-day-top strong {
  font-size: 1rem;
}

.leave-day-top span {
  color: var(--gold);
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.muted-day {
  opacity: .45;
}

.weekend-day {
  background: rgba(199, 154, 66, .06);
}

.holiday-day {
  background: linear-gradient(180deg, rgba(199, 154, 66, .13), rgba(15, 18, 25, .54));
}

.today-day {
  position: relative;
  z-index: 1;
  border-color: rgba(245, 196, 81, .96);
  background:
    radial-gradient(circle at 20% 16%, rgba(245, 196, 81, .34), transparent 35%),
    linear-gradient(180deg, rgba(245, 196, 81, .22), rgba(15, 18, 25, .68));
  box-shadow:
    inset 0 0 0 2px rgba(245, 196, 81, .62),
    0 0 0 1px rgba(245, 196, 81, .24),
    0 18px 38px rgba(199, 154, 66, .18);
}

.today-day::after {
  content: "";
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(245, 196, 81, .34);
  border-radius: 8px;
}

.today-day .leave-day-top strong {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #0e0a04;
  background: linear-gradient(135deg, #f2d27a, var(--accent));
  font-size: 1.12rem;
  box-shadow:
    0 10px 26px rgba(199, 154, 66, .34),
    0 0 0 6px rgba(245, 196, 81, .12);
}

.today-day .leave-day-top span {
  padding: 6px 9px;
  border: 1px solid rgba(245, 196, 81, .42);
  border-radius: 999px;
  color: #0e0a04;
  background: linear-gradient(135deg, #f6d978, #c79635);
  box-shadow: 0 8px 22px rgba(199, 154, 66, .22);
  font-size: .66rem;
  letter-spacing: .08em;
}

.leave-holiday-name {
  margin: -3px 0 8px;
  color: rgba(245, 196, 81, .86);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.25;
}

.leave-items {
  display: grid;
  gap: 6px;
}

.leave-pill {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid rgba(49, 208, 127, .24);
  border-radius: 8px;
  overflow: hidden;
  color: #d7ffe9;
  background: rgba(49, 208, 127, .12);
  font-size: .72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leave-pill.pending {
  border-color: rgba(245, 196, 81, .34);
  color: var(--gold);
  background: rgba(245, 196, 81, .12);
}

.leave-pill-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leave-pill-status {
  width: max-content;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 999px;
  color: #0e0a04;
  background: linear-gradient(135deg, #f2d27a, var(--accent));
  font-size: .58rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leave-history-panel {
  margin-top: 22px;
}

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

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

.leave-mode-toggle {
  max-width: 420px;
}

.leave-mode-toggle label:has(input:checked) {
  border-color: rgba(245, 196, 81, .72);
  background: rgba(245, 196, 81, .14);
  box-shadow: inset 0 0 0 1px rgba(245, 196, 81, .22);
}

.leave-note-row {
  max-width: 720px;
}

.leave-note-row textarea {
  min-height: 106px;
  padding: 12px;
}

.custom-date-field {
  position: relative;
  width: min(420px, 100%);
}

.custom-date-field .control-dark {
  width: 100%;
  padding-right: 48px;
}

.date-picker-button {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  color: var(--gold);
  background: transparent;
  display: inline-grid;
  place-items: center;
}

.date-picker-button::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-shadow: inset 0 5px 0 rgba(245, 196, 81, .22);
}

.date-picker-button::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 10px;
  width: 12px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.date-picker-button:hover {
  background: rgba(245, 196, 81, .12);
}

.date-native-proxy {
  position: absolute;
  right: 10px;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.leave-certificate-alert {
  width: min(620px, 100%);
  padding: 13px 15px;
  border: 1px solid rgba(245, 196, 81, .38);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(245, 196, 81, .1);
  font-weight: 900;
}

html.light-mode .login-screen {
  background:
    radial-gradient(circle at 18% 18%, rgba(184, 134, 47, .18), transparent 30%),
    linear-gradient(135deg, #f4f6fb 0%, #ffffff 58%, #edf1f8 100%);
}

html.light-mode .public-login-screen {
  background:
    radial-gradient(circle at 20% 10%, rgba(184, 134, 47, .13), transparent 28%),
    linear-gradient(135deg, rgba(244, 246, 251, .8), rgba(255, 255, 255, .92));
}

html.light-mode .login-panel,
html.light-mode .panel,
html.light-mode .table-panel,
html.light-mode .compare-panel,
html.light-mode .leave-calendar-panel,
html.light-mode .metric,
html.light-mode .worker-card,
html.light-mode .ticket-filter,
html.light-mode .ticket-search,
html.light-mode .admin-message {
  border-color: rgba(128, 85, 31, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 252, 247, .94));
  box-shadow: 0 18px 42px rgba(72, 55, 30, .1);
}

html.light-mode .login-back-link {
  color: var(--text);
  border-color: rgba(128, 85, 31, .22);
  background: rgba(255, 255, 255, .82);
}

html.light-mode .login-topline,
html.light-mode .login-security-note {
  border-color: rgba(128, 85, 31, .18);
  background: rgba(255, 253, 248, .82);
}

html.light-mode .data-table tr,
html.light-mode .control-dark,
html.light-mode .period-switch,
html.light-mode .table-toolbar,
html.light-mode .work-type-option,
html.light-mode .install-options label,
html.light-mode .segmented label,
html.light-mode .saved-work,
html.light-mode .page-number,
html.light-mode .page-link-button,
html.light-mode .hamburger-button {
  background: #fffdf8;
}

html.light-mode .data-table th {
  color: #7b6040;
  background: #f5efe4;
}

html.light-mode .leave-calendar-head,
html.light-mode .leave-weekdays span {
  background: #f5efe4;
}

html.light-mode .leave-day {
  background: #fffdf8;
}

html.light-mode .weekend-day {
  background: rgba(185, 133, 50, .08);
}

html.light-mode .holiday-day {
  background: linear-gradient(180deg, rgba(185, 133, 50, .15), #fffdf8);
}

html.light-mode .today-day {
  background:
    radial-gradient(circle at 20% 16%, rgba(185, 133, 50, .24), transparent 35%),
    linear-gradient(180deg, rgba(185, 133, 50, .2), #fff9ed);
  box-shadow:
    inset 0 0 0 2px rgba(185, 133, 50, .42),
    0 14px 32px rgba(128, 85, 31, .16);
}

html.light-mode .leave-pill {
  color: #0f7a4c;
}

html.light-mode .data-table td {
  border-bottom-color: #e6ddce;
}

html.light-mode .control-dark,
html.light-mode .control-dark:focus {
  color: var(--text);
  border-color: #d6c8b4;
  background: #fffdf8;
}

html.light-mode .file-input-shell {
  color: var(--text);
  border-color: #d6c8b4;
  background: #fffdf8;
}

html.light-mode .file-input-name {
  color: #776a59;
}

html.light-mode .daily-quote-desktop {
  border-color: rgba(128, 85, 31, .2);
  background: linear-gradient(180deg, rgba(185, 133, 50, .12), rgba(255, 252, 247, .9));
}

html.light-mode .daily-quote blockquote {
  color: #182033;
}

html.light-mode .ghost-button {
  color: var(--text);
  background: #eee7dc;
}

html.light-mode .ghost-button:hover {
  color: #0e0b06;
  background: #e3d5c2;
}

html.light-mode .ticket-action,
html.light-mode .mini-action {
  color: #80551f;
  border-color: rgba(128, 85, 31, .26);
  background: rgba(185, 133, 50, .1);
}

html.light-mode .footer-live-info {
  color: rgba(16, 21, 34, .76);
}

html.light-mode .ticket-table .ticket-date-line {
  color: var(--text);
}

html.light-mode .ticket-table .ticket-time-line {
  color: #6d7484;
}

html.light-mode .footer-main {
  border-bottom-color: rgba(128, 85, 31, .16);
}

html.light-mode .footer-social-row,
html.light-mode .footer-social-link,
html.light-mode .footer-links a {
  color: var(--text);
}

html.light-mode .footer-social-link {
  border-color: rgba(128, 85, 31, .22);
  background: #fffdf8;
}

html.light-mode .nav-stack a:hover,
html.light-mode .nav-stack a:focus-visible {
  background: #f1eadf;
}

html.light-mode .theme-toggle {
  border-color: rgba(128, 85, 31, .24);
  background: linear-gradient(180deg, rgba(185, 133, 50, .13), rgba(255, 252, 247, .86));
}

html.light-mode .public-language-switcher {
  border-color: rgba(128, 85, 31, .2);
  background: rgba(255, 253, 248, .84);
}

html.light-mode .worker-card.attention {
  background: linear-gradient(180deg, rgba(185, 133, 50, .15), rgba(255, 252, 247, .95));
}

html.light-mode .page-number.active,
html.light-mode .page-number:hover,
html.light-mode .page-link-button:hover,
html.light-mode .ticket-action:hover,
html.light-mode .mini-action:hover {
  color: #100d07;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(90px, 180px) minmax(0, 1fr) minmax(260px, auto);
  align-items: center;
  gap: 20px;
  padding: 10px clamp(22px, 4vw, 54px);
  border-bottom: 1px solid rgba(199, 154, 66, .14);
  background: rgba(9, 10, 15, .94);
  backdrop-filter: blur(18px);
}

html.light-mode .public-nav {
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 36px rgba(72, 55, 30, .08);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.public-brand img {
  width: 64px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28));
}

.public-links {
  display: grid;
  grid-column: 2 / 4;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  gap: 8px;
  min-width: 0;
}

.public-main-links,
.public-utility-links {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.public-main-links {
  justify-content: center;
}

.public-utility-links {
  justify-content: flex-end;
  gap: 10px;
}

.public-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: .9rem;
  white-space: nowrap;
}

.public-links a:hover {
  color: var(--text);
  background: var(--panel-soft);
}

.public-login-link {
  color: #110d06 !important;
  background: linear-gradient(135deg, #f2d27a 0%, var(--accent) 100%);
  box-shadow: 0 14px 28px rgba(184, 134, 47, .16);
}

.public-links .public-login-link:hover,
.public-links .public-login-link:focus-visible {
  color: #110d06 !important;
  background: linear-gradient(135deg, #ffe08a 0%, #c99638 100%);
  box-shadow: 0 16px 32px rgba(184, 134, 47, .24);
}

.public-theme-toggle {
  width: 42px;
  min-height: 42px;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-radius: 999px;
}

.public-language-switcher {
  display: inline-grid;
  width: 82px;
  min-height: 42px;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
  padding: 3px;
  border: 1px solid rgba(199, 154, 66, .24);
  border-radius: 999px;
  background: rgba(18, 21, 30, .72);
}

.public-language-switcher a {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  font-size: .76rem;
}

.public-language-switcher a.active {
  box-shadow: none;
}

.public-theme-toggle [data-theme-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.public-nav-toggle {
  display: none;
}

.public-hero,
.public-section,
.public-band,
.public-page-head,
.faq-list,
.contact-grid {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.public-hero {
  min-height: calc(100svh - 170px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  padding: clamp(48px, 8vw, 96px) 0;
}

.public-hero-copy {
  display: grid;
  gap: 18px;
}

.public-hero h1,
.public-page-head h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 4.9vw, 4.55rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.public-hero p:not(.eyebrow),
.public-page-head p,
.public-band p {
  max-width: 680px;
  font-size: 1.04rem;
  line-height: 1.7;
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.public-hero-panel {
  min-height: 520px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(199, 154, 66, .24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 10%, rgba(245, 196, 81, .15), transparent 34%),
    linear-gradient(180deg, rgba(21, 24, 33, .88), rgba(9, 10, 15, .94));
  box-shadow: 0 30px 88px rgba(0, 0, 0, .36);
}

.hero-logo-frame {
  min-height: 285px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(199, 154, 66, .18);
}

.hero-logo-frame img {
  width: min(240px, 74%);
  height: auto;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, .4));
}

.hero-stat-grid {
  display: grid;
  gap: 10px;
}

.hero-stat-grid div,
.public-feature,
.contact-card,
.faq-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 24, 33, .78);
}

.hero-stat-grid div {
  padding: 15px;
}

.hero-stat-grid span,
.public-feature span,
.contact-card span {
  display: block;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-stat-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
}

.public-section,
.public-page-head {
  padding: 54px 0 18px;
}

.public-section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.public-section h2,
.public-band h2 {
  max-width: 720px;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1;
}

.public-feature-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.public-feature,
.contact-card,
.faq-list article {
  padding: 22px;
}

.public-feature h3,
.contact-card h2,
.faq-list h2 {
  margin: 14px 0 10px;
  font-size: 1.14rem;
}

.public-feature p,
.contact-card p,
.faq-list p {
  margin: 0;
  line-height: 1.62;
}

.contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.contact-lines a {
  color: var(--text);
  font-size: .98rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-lines a:hover {
  color: var(--gold);
}

.public-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  margin-bottom: 44px;
  padding: 28px;
  border: 1px solid rgba(199, 154, 66, .28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(199, 154, 66, .14), rgba(21, 24, 33, .8));
}

.company-hero {
  min-height: calc(100svh - 190px);
}

.company-visual-panel {
  align-content: stretch;
}

.hero-text-stack {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.hero-text-stack p {
  margin: 0;
}

.company-image-card {
  min-height: 360px;
  border: 1px solid rgba(245, 196, 81, .2);
  border-radius: 14px;
  background: rgba(12, 14, 20, .86);
  overflow: hidden;
  position: relative;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .26);
}

.company-image-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
  filter: saturate(.96) contrast(1.05);
}

.company-image-card::after,
.company-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, .08), rgba(5, 6, 10, .68)),
    radial-gradient(circle at 18% 12%, rgba(245, 196, 81, .2), transparent 34%);
  pointer-events: none;
}

.company-photo-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

.company-mini-grid div {
  min-height: 106px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 24, 33, .78);
}

.company-mini-grid strong {
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.company-mini-grid span {
  color: var(--muted);
  font-weight: 800;
}

.company-intro {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: stretch;
  gap: 18px;
  padding: 12px 0 34px;
}

.company-intro-card {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(199, 154, 66, .28);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(245, 196, 81, .14), transparent 32%),
    rgba(21, 24, 33, .78);
}

.company-intro-card h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.company-intro-card p:not(.eyebrow) {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.72;
}

.welcome-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.welcome-highlight-grid div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(199, 154, 66, .26);
  border-radius: 8px;
  background: rgba(6, 8, 13, .38);
}

.welcome-highlight-grid strong {
  color: var(--gold);
  font-size: 1.55rem;
  line-height: 1;
}

.welcome-highlight-grid span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.35;
}

.about-text-only {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: stretch;
}

.about-principle-grid {
  display: grid;
  gap: 14px;
}

.about-principle-grid article {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 196, 81, .1), transparent 42%),
    rgba(21, 24, 33, .72);
}

.about-principle-grid span {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.about-principle-grid strong {
  font-size: 1.1rem;
}

.about-principle-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.company-photo-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 24, 33, .72);
  overflow: hidden;
  position: relative;
}

.company-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: block;
  object-fit: cover;
  filter: saturate(.95) contrast(1.04);
}

.service-card-grid,
.home-route-grid {
  display: grid;
  gap: 14px;
}

.service-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  display: grid;
  min-height: 290px;
  padding: 1px;
  border: 0;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(245, 196, 81, .5), rgba(245, 196, 81, .06) 32%, rgba(91, 110, 144, .22));
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .18);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 16% 10%, rgba(245, 196, 81, .16), transparent 34%),
    linear-gradient(180deg, rgba(21, 24, 33, .94), rgba(10, 12, 18, .92));
}

.service-card::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(245, 196, 81, .28);
  background:
    radial-gradient(circle, rgba(245, 196, 81, .62), transparent 47%),
    rgba(245, 196, 81, .08);
  box-shadow: 0 0 48px rgba(245, 196, 81, .14);
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-visual {
  height: 220px;
  min-height: 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(199, 154, 66, .18);
  background: rgba(15, 18, 26, .94);
  position: relative;
  overflow: hidden;
}

.service-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(1.06);
}

.service-visual.telecom img {
  object-position: center 34%;
}

.service-visual.electrical img {
  object-position: center 42%;
}

.service-visual.construction img,
.service-visual.software img {
  object-position: center 38%;
}

.service-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, .04), rgba(5, 6, 10, .44)),
    linear-gradient(135deg, rgba(245, 196, 81, .16), transparent 42%);
  pointer-events: none;
}

.service-card span,
.home-route-card span {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.service-card-body {
  position: relative;
  z-index: 1;
  min-height: 290px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 18px;
  padding: 30px;
}

.service-card h3 {
  margin: 0;
  max-width: 260px;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1;
}

.service-card p {
  margin: 0;
  align-self: end;
  max-width: 340px;
  color: var(--muted);
  line-height: 1.68;
}

.company-gallery-section {
  padding-top: 42px;
}

.gallery-head {
  margin-bottom: 14px;
}

.company-gallery-showcase {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(199, 154, 66, .18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 0, rgba(245, 196, 81, .18), transparent 28%),
    linear-gradient(135deg, rgba(245, 196, 81, .08), transparent 38%),
    rgba(21, 24, 33, .46);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 28px 70px rgba(0, 0, 0, .2);
}

.company-gallery-showcase::before,
.company-gallery-showcase::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(140px, 18vw);
  pointer-events: none;
}

.company-gallery-showcase::before {
  left: 0;
  background: linear-gradient(90deg, rgba(9, 10, 15, .98), transparent);
}

.company-gallery-showcase::after {
  right: 0;
  background: linear-gradient(270deg, rgba(9, 10, 15, .98), transparent);
}

.gallery-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: gallery-scroll 48s linear infinite;
}

.company-gallery-showcase:hover .gallery-track {
  animation-play-state: paused;
}

.gallery-card {
  width: clamp(210px, 20vw, 310px);
  height: clamp(260px, 28vw, 390px);
  display: block;
  padding: 0;
  border: 1px solid rgba(199, 154, 66, .2);
  border-radius: 14px;
  background: rgba(8, 10, 16, .78);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .26);
  overflow: hidden;
  transform: translateZ(0);
}

.gallery-card-large {
  width: clamp(260px, 28vw, 440px);
}

.gallery-card-wide {
  width: clamp(300px, 32vw, 520px);
  height: clamp(220px, 22vw, 320px);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  filter: saturate(.98) contrast(1.04);
  transition: transform .5s ease, filter .5s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.08);
}

.gallery-placeholder {
  width: clamp(180px, 18vw, 260px);
  height: clamp(220px, 24vw, 330px);
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(245, 196, 81, .18), transparent 48%),
    repeating-linear-gradient(135deg, rgba(245, 196, 81, .12) 0 1px, transparent 1px 14px),
    rgba(8, 10, 16, .78);
}

.gallery-placeholder::before {
  content: "";
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(245, 196, 81, .38);
  background:
    radial-gradient(circle, rgba(245, 196, 81, .62), transparent 48%),
    rgba(245, 196, 81, .05);
  box-shadow: 0 0 42px rgba(245, 196, 81, .18);
}

@keyframes gallery-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 7px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    animation: none;
    overflow-x: auto;
  }
}

.compact-actions {
  margin-top: 18px;
}

.privacy-return {
  align-items: center;
}

.home-route-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 50px 0 10px;
}

.home-route-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-route-card {
  min-height: 142px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(21, 24, 33, .78);
}

.home-route-card:hover {
  color: var(--text);
  border-color: rgba(245, 196, 81, .42);
  background: rgba(245, 196, 81, .1);
  transform: translateY(-2px);
}

.home-route-card strong {
  font-size: 1.08rem;
  line-height: 1.3;
}

.home-route-card.protected {
  border-color: rgba(245, 196, 81, .34);
  background: linear-gradient(135deg, rgba(245, 196, 81, .16), rgba(21, 24, 33, .78));
}

.public-page-head {
  display: grid;
  gap: 10px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 0 54px;
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 24px 0 40px;
}

.contact-band {
  grid-template-columns: minmax(0, 1fr) auto;
}

.faq-page {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 68px;
}

.faq-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 28px;
  text-align: center;
}

.faq-head > span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 8px;
  color: #110d06;
  background: linear-gradient(135deg, #f2d27a 0%, var(--accent) 100%);
  font-size: .72rem;
  font-weight: 900;
}

.faq-head h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 1;
}

.faq-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.faq-accordion {
  display: grid;
  gap: 14px;
}

.faq-accordion details {
  border: 1px solid rgba(199, 154, 66, .14);
  border-radius: 8px;
  background: rgba(21, 24, 33, .74);
  overflow: hidden;
}

.faq-accordion summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--gold);
  transition: transform .18s ease;
}

.faq-accordion details[open] summary::before {
  transform: rotate(90deg);
}

.faq-accordion p {
  margin: 0;
  padding: 0 18px 18px 39px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-cta {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 50px;
  text-align: center;
}

.faq-cta h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1;
}

.faq-cta p {
  margin: 0 0 8px;
  color: var(--muted);
}

.contact-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 70px;
}

.contact-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 26px;
  text-align: center;
}

.contact-head h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2.45rem, 4.8vw, 4.6rem);
  line-height: 1;
}

.contact-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, .34fr) minmax(0, .66fr);
  gap: 18px;
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 98px;
}

.contact-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.contact-info-card {
  min-height: 134px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(199, 154, 66, .24);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(245, 196, 81, .14), transparent 42%),
    rgba(21, 24, 33, .82);
}

.contact-info-card span,
.contact-form-panel label > span {
  color: var(--text);
  font-weight: 900;
}

.contact-info-card a {
  width: fit-content;
  color: var(--text);
  font-weight: 700;
}

.contact-info-card a:hover {
  color: var(--gold);
}

.contact-form-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(21, 24, 33, .92), rgba(9, 10, 15, .84)),
    radial-gradient(circle at 0 0, rgba(245, 196, 81, .1), transparent 34%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .22);
}

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

.contact-form-panel label {
  display: grid;
  gap: 8px;
}

.contact-form-panel input:not([type="checkbox"]),
.contact-form-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(10, 12, 18, .9);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.contact-form-panel input:not([type="checkbox"]) {
  min-height: 48px;
  padding: 0 14px;
}

.contact-form-panel textarea {
  min-height: 172px;
  resize: vertical;
  padding: 14px;
}

.contact-form-panel input:focus,
.contact-form-panel textarea:focus {
  outline: none;
  border-color: rgba(245, 196, 81, .78);
  box-shadow: 0 0 0 3px rgba(245, 196, 81, .16);
}

.privacy-consent {
  display: grid !important;
  width: 100%;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: center;
  gap: 12px !important;
  padding: 14px;
  border: 1px solid rgba(199, 154, 66, .24);
  border-radius: 8px;
  background: rgba(199, 154, 66, .06);
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.privacy-consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.privacy-check {
  grid-column: 1;
  grid-row: 1;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(245, 196, 81, .58);
  border-radius: 6px;
  background: rgba(9, 10, 15, .72);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12);
}

.privacy-consent-text {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  display: block !important;
  color: var(--text) !important;
  font-size: .94rem;
  font-weight: 800 !important;
  line-height: 1.55;
  overflow-wrap: normal;
  word-break: normal;
}

.privacy-check::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(-45deg) scale(0);
  transition: transform .16s ease;
}

.privacy-consent input:checked + .privacy-check {
  border-color: transparent;
  background: linear-gradient(135deg, #f2d27a 0%, var(--accent) 100%);
  box-shadow: 0 8px 18px rgba(184, 134, 47, .18);
}

.privacy-consent input:checked + .privacy-check::after {
  transform: rotate(-45deg) scale(1);
}

.privacy-consent input:focus-visible + .privacy-check {
  outline: 3px solid rgba(245, 196, 81, .2);
  outline-offset: 2px;
}

.privacy-consent a {
  color: var(--gold);
  font-weight: 900;
}

.privacy-link-button {
  display: inline;
  border: 0;
  padding: 0 0 2px;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 196, 81, .72);
  cursor: pointer;
}

.privacy-link-button:hover {
  color: var(--gold-strong);
}

.recaptcha-box {
  min-height: 78px;
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 12px;
  border: 1px solid rgba(199, 154, 66, .22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 196, 81, .1), transparent 36%),
    linear-gradient(135deg, rgba(13, 14, 20, .92), rgba(5, 5, 8, .96));
  box-shadow: 0 18px 52px rgba(0, 0, 0, .22);
  overflow: hidden;
}

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

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.privacy-modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(199, 154, 66, .32);
  border-radius: 8px;
  background:
    radial-gradient(circle at top left, rgba(245, 196, 81, .12), transparent 34%),
    linear-gradient(180deg, rgba(21, 24, 33, .98), rgba(9, 10, 15, .98));
  box-shadow: 0 34px 120px rgba(0, 0, 0, .54);
  overflow: hidden;
}

.privacy-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.privacy-modal-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.privacy-close-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(245, 196, 81, .42);
  border-radius: 999px;
  background: rgba(245, 196, 81, .1);
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(199, 154, 66, .12);
}

.privacy-close-button:hover,
.privacy-close-button:focus-visible {
  outline: none;
  border-color: rgba(245, 196, 81, .72);
  background: var(--gold);
  color: #090a0f;
}

.privacy-modal-content {
  display: grid;
  gap: 12px;
  padding: 20px 24px;
  overflow: auto;
}

.privacy-modal-content article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 10, 15, .5);
}

.privacy-modal-content h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.privacy-modal-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.privacy-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
}

.privacy-modal-actions .primary-button,
.privacy-modal-actions .ghost-button {
  min-height: 44px;
}

.field-validation,
.validation-summary {
  color: #ffb8bf;
  font-size: .86rem;
  font-weight: 800;
}

.contact-success {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(72, 187, 120, .34);
  border-radius: 8px;
  color: #baf4d2;
  background: rgba(24, 82, 55, .28);
  font-weight: 900;
}

.contact-submit {
  width: 100%;
  min-height: 48px;
}

.contact-message-list {
  margin-top: 22px;
}

.table-card-head,
.contact-message-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.table-card-head {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.table-card-head h2 {
  font-size: 1rem;
}

.message-list {
  display: grid;
}

.contact-message-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.contact-message-card:last-child {
  border-bottom: 0;
}

.contact-message-card h2 {
  margin: 10px 0 8px;
  font-size: 1.35rem;
}

.contact-message-card p {
  margin: 0;
  max-width: 980px;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
}

.contact-message-card small,
.contact-message-meta {
  color: var(--muted);
  font-weight: 800;
}

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

.contact-message-meta a {
  color: var(--muted);
}

.contact-message-meta a:hover {
  color: var(--gold);
}

.contact-message-card.is-unread {
  background: rgba(245, 196, 81, .05);
}

.status-pill,
.metric-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}

.ok-pill {
  color: #bdebd1;
  background: rgba(25, 103, 70, .42);
}

.warning-pill,
.metric-pill {
  color: var(--gold);
  background: rgba(245, 196, 81, .14);
}

html.light-mode .public-hero-panel,
html.light-mode .hero-stat-grid div,
html.light-mode .public-feature,
html.light-mode .company-image-card,
html.light-mode .company-mini-grid div,
html.light-mode .company-intro-card,
html.light-mode .about-principle-grid article,
html.light-mode .company-photo-card,
html.light-mode .service-card,
html.light-mode .company-gallery-showcase,
html.light-mode .gallery-card,
html.light-mode .home-route-card,
html.light-mode .contact-card,
html.light-mode .contact-info-card,
html.light-mode .contact-form-panel,
html.light-mode .contact-message-card,
html.light-mode .faq-accordion details,
html.light-mode .faq-list article,
html.light-mode .public-band {
  border-color: rgba(128, 85, 31, .18);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 252, 247, .94));
  box-shadow: 0 18px 42px rgba(72, 55, 30, .1);
}

html.light-mode .public-band {
  background: linear-gradient(135deg, rgba(185, 133, 50, .14), rgba(255, 252, 247, .96));
}

html.light-mode .service-visual {
  background: #f7f0e2;
}

html.light-mode .service-card::before {
  background:
    radial-gradient(circle at 16% 10%, rgba(185, 133, 50, .12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 250, 242, .94));
}

html.light-mode .service-card::after {
  border-color: rgba(185, 133, 50, .28);
  background:
    radial-gradient(circle, rgba(185, 133, 50, .52), transparent 47%),
    rgba(185, 133, 50, .08);
}

html.light-mode .gallery-placeholder {
  border-color: rgba(128, 85, 31, .24);
  background:
    radial-gradient(circle at 20% 12%, rgba(185, 133, 50, .14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 252, 247, .94));
  box-shadow: 0 18px 42px rgba(72, 55, 30, .08);
}

html.light-mode .contact-form-panel input:not([type="checkbox"]),
html.light-mode .contact-form-panel textarea {
  border-color: #d6c8b4;
  background: #fffdf8;
  color: var(--text);
}

html.light-mode .privacy-consent {
  border-color: rgba(128, 85, 31, .18);
  background: rgba(185, 133, 50, .08);
}

html.light-mode .privacy-check {
  background: #fffdf8;
  box-shadow: inset 0 0 0 2px rgba(128, 85, 31, .06);
}

html.light-mode .privacy-modal-backdrop {
  background: rgba(35, 25, 13, .38);
}

html.light-mode .privacy-modal-panel {
  border-color: rgba(128, 85, 31, .24);
  background:
    radial-gradient(circle at top left, rgba(199, 154, 66, .12), transparent 34%),
    linear-gradient(180deg, #ffffff, #fff8ec);
  box-shadow: 0 28px 90px rgba(72, 55, 30, .2);
}

html.light-mode .privacy-modal-content article {
  border-color: rgba(128, 85, 31, .16);
  background: rgba(255, 255, 255, .72);
}

html.light-mode .faq-head > span {
  box-shadow: 0 12px 26px rgba(185, 133, 50, .22);
}

@media (max-width: 900px) {
  body {
    background: var(--bg);
  }

  html.light-mode body {
    background: var(--bg);
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    height: auto;
    padding: 12px 14px;
    gap: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 10, 15, .98);
  }

  html.light-mode .side-nav {
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 34px rgba(72, 55, 30, .08);
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    justify-content: flex-start;
    width: auto;
  }

  .brand-logo {
    width: 76px;
  }

  .daily-quote-desktop {
    display: none;
  }

  .daily-quote-mobile {
    min-height: 42px;
    max-width: min(52vw, 230px);
    display: grid;
    align-content: center;
    justify-self: center;
    padding: 0 8px;
    text-align: center;
  }

  .daily-quote-mobile blockquote {
    display: block;
    overflow: visible;
    color: rgba(247, 247, 251, .9);
    font-size: clamp(.56rem, 1.9vw, .7rem);
    line-height: 1.18;
  }

  .daily-quote-mobile figcaption {
    margin-top: 3px;
    overflow: hidden;
    color: rgba(245, 196, 81, .78);
    font-size: clamp(.5rem, 1.8vw, .58rem);
    letter-spacing: .05em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hamburger-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    gap: 4px;
    padding: 11px;
    border: 1px solid rgba(199, 154, 66, .34);
    border-radius: 8px;
    background: rgba(21, 24, 33, .92);
    cursor: pointer;
  }

  .hamburger-button span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--gold);
  }

  .public-nav {
    min-height: 76px;
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 12px 14px;
  }

  .public-brand img {
    width: 62px;
  }

  .public-hamburger {
    display: inline-grid;
  }

  .public-links {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 10px;
  }

  .public-main-links,
  .public-utility-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .public-nav-toggle:checked ~ .public-links {
    display: grid;
  }

  .public-links a {
    min-height: 44px;
    border: 1px solid var(--line);
    background: var(--panel);
  }

  .public-theme-toggle {
    width: 100%;
    justify-content: center;
    border-radius: 8px;
    gap: 10px;
  }

  .public-theme-toggle [data-theme-label] {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .public-language-switcher {
    width: 100%;
    min-height: 44px;
    border-radius: 8px;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .public-language-switcher a {
    min-height: 36px;
    border-radius: 7px;
  }

  .public-login-link {
    border-color: rgba(199, 154, 66, .36) !important;
    color: #110d06 !important;
    background: linear-gradient(135deg, #f2d27a 0%, var(--accent) 100%) !important;
  }

  .public-hero,
  .public-section,
  .public-band,
  .public-page-head,
  .faq-list,
  .contact-grid {
    width: calc(100% - 28px);
  }

  .public-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 34px 0 28px;
    gap: 22px;
  }

  .public-hero h1,
  .public-page-head h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 9.2vw, 2.55rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .public-hero p:not(.eyebrow),
  .public-page-head p,
  .public-band p {
    font-size: .98rem;
    overflow-wrap: anywhere;
  }

  .public-actions,
  .public-band,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .company-intro,
  .service-card-grid,
  .home-route-grid {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
  }

  .company-intro {
    padding: 4px 0 20px;
  }

  .company-mini-grid {
    grid-template-columns: 1fr;
  }

  .company-image-card {
    min-height: 260px;
  }

  .company-photo-card,
  .service-visual {
    min-height: 160px;
  }

  .service-visual {
    height: 180px;
  }

  .service-card-body {
    min-height: 0;
  }

  .welcome-highlight-grid,
  .about-text-only {
    grid-template-columns: 1fr;
  }

  .company-gallery-showcase {
    padding: 10px;
    border-radius: 10px;
  }

  .gallery-card {
    width: min(64vw, 260px);
    height: 240px;
  }

  .gallery-card-large,
  .gallery-card-wide {
    width: min(76vw, 320px);
    height: 220px;
  }

  .public-actions {
    display: grid;
  }

  .public-hero-panel {
    min-height: auto;
    padding: 20px;
  }

  .hero-logo-frame {
    min-height: 180px;
  }

  .hero-logo-frame img {
    width: 150px;
  }

  .public-section,
  .public-page-head {
    padding: 36px 0 12px;
  }

  .contact-page {
    width: calc(100% - 28px);
    padding: 30px 0 46px;
  }

  .faq-page {
    width: calc(100% - 28px);
    padding: 30px 0 46px;
  }

  .faq-head h1 {
    font-size: clamp(2rem, 10vw, 2.85rem);
    line-height: 1.05;
  }

  .contact-head h1 {
    font-size: clamp(2rem, 10vw, 2.9rem);
    line-height: 1.05;
  }

  .contact-head {
    justify-items: start;
    text-align: left;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    position: static;
    grid-template-columns: 1fr;
  }

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

  .contact-form-panel {
    padding: 20px;
  }

  .privacy-modal {
    padding: 12px;
  }

  .privacy-modal-head,
  .privacy-modal-content,
  .privacy-modal-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .privacy-modal-actions {
    display: grid;
  }

  .privacy-modal-actions .primary-button,
  .privacy-modal-actions .ghost-button {
    width: 100%;
  }

  .contact-message-main {
    display: grid;
  }

  .contact-message-main .ghost-button {
    width: 100%;
  }

  .public-feature-grid,
  .faq-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .public-band {
    margin-top: 28px;
    padding: 20px;
  }

  .nav-menu {
    display: none;
    flex: initial;
    min-height: 0;
    padding-top: 14px;
    gap: 14px;
    overflow: visible;
    padding-right: 0;
  }

  .nav-toggle:checked ~ .nav-menu {
    display: grid;
  }

  .nav-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav-stack a {
    min-height: 44px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--panel);
    border: 1px solid var(--line);
    font-size: .9rem;
  }

  html.light-mode .nav-stack a {
    background: #fffdf8;
  }

  .user-strip {
    margin-top: 0;
    position: static;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    background: transparent;
  }

  .user-strip span {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .content {
    padding: 14px 14px 28px;
  }

  .content .login-screen {
    min-height: calc(100svh - 106px);
  }

  .app-footer {
    padding-top: 22px;
    font-size: .68rem;
    letter-spacing: .14em;
    line-height: 1.7;
  }

  .footer-main {
    width: 100%;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 12px;
    padding: 24px 18px 20px;
    text-align: center;
  }

  .footer-brand {
    justify-self: center;
  }

  .footer-brand img {
    width: 58px;
  }

  .footer-social-row {
    justify-content: center;
    justify-self: center;
    font-size: .92rem;
  }

  .footer-nav-block,
  .footer-social-block {
    justify-self: stretch;
    justify-items: center;
    gap: 10px;
  }

  .footer-links {
    width: min(260px, 100%);
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    justify-self: center;
    text-align: center;
  }

  .footer-links a {
    min-height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(199, 154, 66, .14);
    border-radius: 8px;
    background: rgba(21, 24, 33, .42);
    font-size: .84rem;
  }

  .footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 999px;
  }

  .footer-live-info {
    display: grid;
    gap: 4px;
    margin-bottom: 8px;
    font-size: .62rem;
    line-height: 1.45;
    letter-spacing: .06em;
  }

  .footer-live-info span {
    white-space: normal;
  }

  .page-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    margin-bottom: 18px;
  }

  .worker-tools {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .worker-summary {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .worker-tools:has(.ticket-filter) .worker-summary {
    grid-template-columns: 1fr;
  }

  .worker-card {
    min-height: 86px;
    padding: 14px;
  }

  .worker-card strong {
    font-size: 1.18rem;
  }

  .ticket-search > div {
    grid-template-columns: 1fr;
  }

  .ticket-filter {
    grid-template-columns: 1fr;
  }

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

  .compare-export-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .file-input-shell {
    grid-template-columns: 1fr;
  }

  .file-input-button {
    width: 100%;
  }

  .ticket-filter .ghost-button,
  .ticket-search .ghost-button,
  .clear-search {
    width: 100%;
  }

  .admin-message {
    padding: 12px 13px;
  }

  .dashboard-tools,
  .month-picker {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .period-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .table-toolbar {
    display: grid;
    align-items: start;
  }

  .month-picker input {
    width: 100%;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.05;
  }

  h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
    min-height: 48px;
  }

  .panel {
    padding: 18px;
  }

  .grid.two,
  .grid.one,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    gap: 10px;
    margin-bottom: 18px;
  }

  .metric {
    padding: 16px;
  }

  .metric strong {
    font-size: 1.45rem;
  }

  .table-panel {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  html.light-mode .table-panel {
    background: transparent;
    box-shadow: none;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(21, 24, 33, .92);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
  }

  .ticket-table {
    min-width: 0;
    table-layout: auto;
    font-size: 1rem;
  }

  .ticket-table th,
  .ticket-table td {
    width: 100%;
    max-width: none;
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .ticket-table .ticket-id-cell,
  .ticket-table .customer-cell,
  .ticket-table .technician-cell,
  .ticket-table .status-cell,
  .ticket-table .work-cell,
  .ticket-table .time-cell,
  .ticket-table .metric-cell,
  .ticket-table .price-cell,
  .ticket-table .action-cell {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  html.light-mode .data-table tr {
    background: linear-gradient(180deg, #ffffff, #fffaf2);
    box-shadow: 0 12px 28px rgba(72, 55, 30, .1);
  }

  .data-table td {
    min-height: 42px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(44, 52, 70, .72);
    display: grid;
    grid-template-columns: minmax(104px, max-content) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    text-align: right;
  }

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

  .data-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: left;
    overflow-wrap: normal;
    word-break: normal;
  }

  .data-table td a,
  .data-table td span {
    justify-self: end;
  }

  .ticket-table .ticket-id-cell,
  .ticket-table .status-cell,
  .ticket-table .time-cell,
  .ticket-table .metric-cell,
  .ticket-table .price-cell,
  .ticket-table .action-cell {
    white-space: normal;
  }

  .ticket-table .customer-cell,
  .ticket-table .technician-cell,
  .ticket-table .work-cell,
  .ticket-table .time-cell,
  .ticket-table .metric-cell,
  .ticket-table .price-cell {
    overflow-wrap: anywhere;
  }

  .ticket-table .action-cell {
    position: static;
    min-width: 0;
    background: transparent;
    box-shadow: none;
  }

  .ticket-table th:last-child {
    position: static;
    background: transparent;
    box-shadow: none;
  }

  .ticket-table .ticket-date-line,
  .ticket-table .ticket-time-line {
    font-size: .95rem;
  }

  .ticket-action {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
  }

  .ticket-actions,
  .page-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ticket-actions form,
  .page-actions form,
  .danger-button {
    width: 100%;
  }

  .pagination-shell,
  .pagination-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pagination-shell {
    gap: 10px;
    margin-top: 14px;
  }

  .pagination-summary {
    text-align: center;
    font-size: .86rem;
  }

  .pagination-summary span {
    display: block;
    margin: 3px 0 0;
  }

  .pagination-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .page-number,
  .page-link-button {
    width: auto;
    min-width: 30px;
    min-height: 30px;
    padding: 0 8px;
    font-size: .78rem;
  }

  .page-link-button {
    min-width: 66px;
  }

  .page-ellipsis {
    min-width: 18px;
    min-height: 30px;
    font-size: .78rem;
  }

  .data-table td[data-label="Employee"],
  .data-table td[data-label="User"] {
    align-items: start;
    grid-template-columns: minmax(92px, .55fr) minmax(0, 1fr);
  }

  .data-table td[data-label="Employee"] a,
  .data-table td[data-label="Employee"] span,
  .data-table td[data-label="User"] a,
  .data-table td[data-label="User"] span {
    justify-self: end;
    min-width: 0;
    text-align: right;
  }

  .status {
    justify-self: end;
  }

  .detail-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-list dt {
    margin-top: 10px;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .detail-list dd {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(44, 52, 70, .72);
  }

  .install-options {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .work-type-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .work-type-option,
  .install-options label,
  .segmented label {
    min-height: 54px;
    font-size: 1rem;
  }

  .saved-work-item,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .saved-work-actions,
  .form-actions {
    display: grid;
  }

  .mini-action {
    width: 100%;
  }

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

  .leave-calendar-head {
    display: grid;
    align-items: start;
  }

  .leave-calendar-head span {
    max-width: none;
    text-align: left;
  }

  .leave-weekdays {
    display: none;
  }

  .leave-calendar-grid {
    grid-template-columns: 1fr;
  }

  .leave-day {
    min-height: auto;
    border-right: 0;
    grid-column-start: auto !important;
  }

  .leave-day-top {
    justify-content: flex-start;
  }

  .leave-pill {
    white-space: normal;
  }

  .leave-date-grid {
    grid-template-columns: 1fr;
  }

  .field-row {
    max-width: none;
  }

  .login-screen {
    padding: 16px;
    min-height: 100svh;
    place-items: start center;
    align-content: start;
    padding-top: 72px;
  }

  .public-login-screen {
    min-height: auto;
    padding-top: 24px;
  }

  .login-back-link {
    top: 14px;
    left: 14px;
    min-height: 40px;
    font-size: .86rem;
  }

  .login-panel {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 0;
  }

  .login-screen:not(.public-login-screen) .login-panel {
    padding: 24px 20px;
  }

  .login-brand-column {
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(199, 154, 66, .16);
  }

  .login-content-column {
    padding: 22px;
  }

  .login-logo-wrap {
    min-height: 104px;
    margin-bottom: 0;
  }

  .login-logo {
    width: min(118px, 52%);
  }

  .login-copy {
    margin: 0;
    text-align: center;
    justify-items: center;
  }

  .login-copy h1 {
    font-size: 2rem;
  }
}

/* Final public contact/header tightening */
.content-full .contact-page {
  width: min(1080px, calc(100% - 44px));
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(44px, 6vw, 70px);
}

.content-full .contact-head {
  max-width: 720px;
  margin: 0 auto 22px;
  gap: 8px;
}

.content-full .contact-head .kicker {
  font-size: .78rem;
  letter-spacing: .26em;
}

.content-full .contact-head h1 {
  font-size: clamp(2rem, 4.1vw, 3.65rem) !important;
  line-height: .94;
  letter-spacing: -.045em;
}

.content-full .contact-head p {
  max-width: 560px;
  font-size: .98rem;
  line-height: 1.55;
}

.content-full .contact-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.content-full .contact-aside {
  display: grid;
  gap: 14px;
}

.content-full .contact-info-card {
  min-height: 130px;
  padding: 22px 24px;
  border-radius: 20px;
  justify-content: center;
}

.content-full .contact-info-card span,
.content-full .contact-form-panel label > span {
  font-size: .76rem;
  letter-spacing: .18em;
  opacity: .72;
}

.content-full .contact-info-card a {
  font-size: .98rem;
  line-height: 1.65;
}

.content-full .contact-form-panel {
  padding: 24px;
  border-radius: 22px;
}

.content-full .contact-form-grid {
  gap: 14px 16px;
}

.content-full .contact-form-panel label {
  gap: 8px;
}

.content-full .contact-form-panel input:not([type="checkbox"]) {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 8px;
}

.content-full .contact-form-panel textarea {
  min-height: 150px;
  padding: 14px;
  border-radius: 10px;
}

.content-full .privacy-consent {
  min-height: auto;
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 12px;
}

.content-full .privacy-consent-text {
  font-size: .86rem;
  line-height: 1.45;
  letter-spacing: .03em;
}

.content-full .recaptcha-box {
  margin: 14px 0 12px;
}

.content-full .contact-submit {
  min-height: 48px;
  border-radius: 10px;
}

@media (min-width: 901px) {
  .public-nav {
    min-height: 106px;
    padding: 18px clamp(38px, 5vw, 70px);
  }

  .public-brand img {
    width: 54px;
  }
}

@media (max-width: 900px) {
  .public-nav {
    width: 100%;
    min-height: 66px;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(241, 200, 97, .12);
    background:
      radial-gradient(circle at 12% 0%, rgba(201, 151, 53, .16), transparent 34%),
      rgba(3, 3, 3, .94);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .32);
  }

  .public-brand img {
    width: 42px;
  }

  .public-hamburger {
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(13, 15, 20, .88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 22px rgba(0, 0, 0, .25);
  }

  .public-links {
    margin-top: 8px;
    padding: 8px;
    border: 1px solid rgba(241, 200, 97, .12);
    border-radius: 16px;
    background: rgba(5, 5, 7, .97);
  }

  .public-main-links {
    grid-template-columns: 1fr 1fr;
  }

  .public-login-link {
    grid-column: 1 / -1;
  }

  .public-links a {
    min-height: 40px;
    border-radius: 10px;
    font-size: .86rem;
  }

  .public-language-switcher {
    min-height: 40px;
    border-radius: 999px;
  }

  .content-full .contact-page {
    width: calc(100% - 28px);
    padding-top: 34px;
  }

  .content-full .contact-head {
    align-items: flex-start;
    text-align: left;
    margin-bottom: 18px;
  }

  .content-full .contact-head h1 {
    font-size: clamp(2rem, 10vw, 2.75rem) !important;
  }

  .content-full .contact-head p {
    font-size: .94rem;
  }

  .content-full .contact-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .content-full .contact-info-card {
    min-height: 112px;
    padding: 20px;
    border-radius: 18px;
  }

  .content-full .contact-form-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .content-full .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .content-full .contact-form-panel textarea {
    min-height: 132px;
  }

  .content-full .privacy-consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: start;
    gap: 10px;
  }

  .content-full .privacy-consent-text {
    font-size: .82rem;
    word-break: normal;
  }
}

@media (max-width: 480px) {
  .public-nav {
    min-height: 62px;
    padding: 8px 10px;
  }

  .public-brand img {
    width: 38px;
  }

  .public-hamburger {
    width: 38px;
    height: 38px;
  }

  .content-full .contact-page {
    width: calc(100% - 24px);
    padding-top: 28px;
  }

  .content-full .contact-head h1 {
    font-size: clamp(1.8rem, 9.5vw, 2.35rem) !important;
  }

  .content-full .contact-info-card,
  .content-full .contact-form-panel {
    padding: 18px;
  }
}

/* Premium light mode pass - dark mode is untouched */
html.light-mode {
  --bg: #f5f0e7;
  --panel: #fffaf1;
  --panel-soft: #efe5d4;
  --line: rgba(117, 84, 37, .18);
  --text: #17120a;
  --muted: rgba(45, 37, 27, .68);
  --accent: #a87522;
  --accent-strong: #7a5017;
  --accent-soft: rgba(168, 117, 34, .15);
  --gold: #b98326;
  --green: #087248;
}

html.light-mode body {
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(201, 151, 53, .28), transparent 30%),
    radial-gradient(circle at 92% 5%, rgba(126, 88, 29, .14), transparent 28%),
    linear-gradient(180deg, #fffaf0 0%, #f7f0e4 44%, #efe6d8 100%);
}

html.light-mode a {
  color: var(--text);
}

html.light-mode a:hover {
  color: #7a5017;
}

html.light-mode .content {
  background:
    radial-gradient(circle at 20% 0%, rgba(196, 140, 45, .18), transparent 28%),
    linear-gradient(180deg, rgba(255, 250, 241, .96), rgba(246, 238, 226, .98));
}

html.light-mode .content-full {
  background:
    radial-gradient(circle at 14% 10%, rgba(195, 137, 44, .18), transparent 34%),
    linear-gradient(180deg, #fffaf0, #f4ebdc 62%, #efe4d3);
}

html.light-mode .side-nav,
html.light-mode .public-nav,
html.light-mode .app-footer {
  background:
    radial-gradient(circle at 22% 0%, rgba(184, 125, 32, .12), transparent 28%),
    rgba(255, 250, 241, .88);
  border-color: rgba(117, 84, 37, .16);
  box-shadow: 0 22px 70px rgba(80, 55, 22, .09);
  backdrop-filter: blur(18px);
}

html.light-mode .side-nav {
  border-right: 1px solid rgba(117, 84, 37, .16);
}

html.light-mode .public-nav {
  border-bottom: 1px solid rgba(117, 84, 37, .14);
}

html.light-mode .nav-stack a,
html.light-mode .footer-links a,
html.light-mode .public-links a {
  color: rgba(26, 21, 14, .64);
}

html.light-mode .nav-stack a:hover,
html.light-mode .nav-stack a:focus-visible,
html.light-mode .nav-stack a.active,
html.light-mode .footer-links a:hover,
html.light-mode .public-links a:hover,
html.light-mode .public-links a:focus-visible {
  color: #17120a;
  background: rgba(185, 131, 38, .1);
  border-color: rgba(168, 117, 34, .24);
}

html.light-mode .public-login-link,
html.light-mode .primary-button,
html.light-mode .contact-submit,
html.light-mode .gold-button,
html.light-mode .page-number.active {
  color: #17120a;
  background: linear-gradient(135deg, #ffe287, #b98024);
  border-color: rgba(117, 76, 18, .28);
  box-shadow: 0 18px 44px rgba(161, 103, 24, .22);
}

html.light-mode .ghost-button,
html.light-mode .secondary-button,
html.light-mode .page-link-button,
html.light-mode .page-number,
html.light-mode .mini-action,
html.light-mode .ticket-action,
html.light-mode .theme-toggle,
html.light-mode .language-switcher,
html.light-mode .hamburger-button {
  color: #241a0c;
  background: rgba(255, 250, 241, .72);
  border-color: rgba(117, 84, 37, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

html.light-mode .ghost-button:hover,
html.light-mode .secondary-button:hover,
html.light-mode .page-link-button:hover,
html.light-mode .page-number:hover,
html.light-mode .mini-action:hover,
html.light-mode .ticket-action:hover,
html.light-mode .theme-toggle:hover,
html.light-mode .hamburger-button:hover {
  color: #17120a;
  border-color: rgba(168, 117, 34, .42);
  background: rgba(255, 244, 221, .95);
  box-shadow: 0 16px 34px rgba(122, 80, 23, .12);
}

html.light-mode .theme-toggle-icon,
html.light-mode .hamburger-button span {
  background: var(--gold);
}

html.light-mode .panel,
html.light-mode .table-panel,
html.light-mode .compare-panel,
html.light-mode .leave-calendar-panel,
html.light-mode .leave-history-panel,
html.light-mode .metric,
html.light-mode .metric-card,
html.light-mode .stat-card,
html.light-mode .worker-card,
html.light-mode .ticket-filter,
html.light-mode .ticket-search,
html.light-mode .admin-message,
html.light-mode .login-panel,
html.light-mode .public-hero-panel,
html.light-mode .public-feature,
html.light-mode .company-visual-panel,
html.light-mode .company-intro-card,
html.light-mode .about-principle-grid article,
html.light-mode .service-card,
html.light-mode .company-gallery-showcase,
html.light-mode .gallery-card,
html.light-mode .public-band,
html.light-mode .contact-info-card,
html.light-mode .contact-form-panel,
html.light-mode .contact-message-card,
html.light-mode .faq-accordion details,
html.light-mode .faq-list article,
html.light-mode .privacy-modal-panel,
html.light-mode .confirm-modal-panel {
  color: #17120a;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(255, 247, 233, .7)),
    radial-gradient(circle at 12% 0%, rgba(195, 137, 44, .12), transparent 38%);
  border-color: rgba(117, 84, 37, .18);
  box-shadow:
    0 24px 70px rgba(82, 58, 24, .1),
    inset 0 1px 0 rgba(255, 255, 255, .75);
}

html.light-mode .service-card::before,
html.light-mode .contact-info-card::before,
html.light-mode .contact-form-panel::before,
html.light-mode .gallery-card::before,
html.light-mode .public-band::before {
  background: radial-gradient(circle at 50% 50%, rgba(185, 131, 38, .22), transparent 58%);
}

html.light-mode .public-hero h1,
html.light-mode .public-page-head h1,
html.light-mode .public-section-head h2,
html.light-mode .contact-head h1,
html.light-mode .faq-head h1,
html.light-mode .login-copy h1,
html.light-mode .content h1,
html.light-mode .page-title h1,
html.light-mode .section-title h1 {
  color: #17120a;
  text-shadow: none;
}

html.light-mode .kicker,
html.light-mode .eyebrow,
html.light-mode .footer-label,
html.light-mode .contact-info-card span,
html.light-mode .contact-form-panel label > span,
html.light-mode .data-table th,
html.light-mode .table-panel-title,
html.light-mode .metric-label,
html.light-mode .stat-card span {
  color: #8c611d;
}

html.light-mode p,
html.light-mode .public-hero p,
html.light-mode .public-section-head p,
html.light-mode .contact-head p,
html.light-mode .faq-head p,
html.light-mode .login-copy p,
html.light-mode .muted,
html.light-mode .footer-live-info {
  color: rgba(45, 37, 27, .68);
}

html.light-mode .data-table {
  color: #17120a;
}

html.light-mode .data-table thead,
html.light-mode .data-table tr,
html.light-mode .data-table td,
html.light-mode .data-table th {
  border-color: rgba(117, 84, 37, .14);
}

html.light-mode .data-table tr:hover {
  background: rgba(185, 131, 38, .07);
}

html.light-mode .status-finished,
html.light-mode .leave-pill,
html.light-mode .status-pill {
  color: #075537;
  background: rgba(8, 114, 72, .12);
}

html.light-mode .status-started {
  color: #17426f;
  background: rgba(47, 112, 178, .14);
}

html.light-mode .status-rejected,
html.light-mode .danger-button,
html.light-mode .delete-action {
  color: #8f1727;
  background: rgba(176, 35, 52, .1);
  border-color: rgba(176, 35, 52, .28);
}

html.light-mode input:not([type="checkbox"]),
html.light-mode textarea,
html.light-mode select,
html.light-mode .form-control,
html.light-mode .form-select,
html.light-mode .field-input,
html.light-mode .control-dark,
html.light-mode .file-input-shell {
  color: #17120a;
  background: rgba(255, 255, 255, .74);
  border-color: rgba(117, 84, 37, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

html.light-mode input::placeholder,
html.light-mode textarea::placeholder {
  color: rgba(45, 37, 27, .44);
}

html.light-mode input:focus,
html.light-mode textarea:focus,
html.light-mode select:focus,
html.light-mode .form-control:focus,
html.light-mode .form-select:focus,
html.light-mode .field-input:focus,
html.light-mode .control-dark:focus {
  border-color: rgba(168, 117, 34, .62);
  box-shadow: 0 0 0 4px rgba(185, 131, 38, .14);
}

html.light-mode .work-type-option,
html.light-mode .install-options label,
html.light-mode .segmented label,
html.light-mode .saved-work,
html.light-mode .leave-day,
html.light-mode .leave-calendar-head,
html.light-mode .leave-weekdays span,
html.light-mode .period-switch,
html.light-mode .table-toolbar,
html.light-mode .file-input-name,
html.light-mode .privacy-consent,
html.light-mode .privacy-modal-content article {
  color: #17120a;
  background: rgba(255, 250, 241, .7);
  border-color: rgba(117, 84, 37, .18);
}

html.light-mode .work-type-option:has(input:checked),
html.light-mode .install-options label:has(input:checked),
html.light-mode .segmented label:has(input:checked) {
  background: linear-gradient(135deg, rgba(255, 226, 135, .54), rgba(185, 128, 36, .22));
  border-color: rgba(168, 117, 34, .48);
}

html.light-mode .weekend-day,
html.light-mode .holiday-day {
  background: rgba(185, 131, 38, .08);
}

html.light-mode .today-day {
  background: radial-gradient(circle at 50% 35%, rgba(255, 216, 104, .45), rgba(255, 250, 241, .72));
  border-color: rgba(168, 117, 34, .62);
  box-shadow: inset 0 0 0 1px rgba(168, 117, 34, .24), 0 14px 28px rgba(168, 117, 34, .14);
}

html.light-mode .daily-quote,
html.light-mode .daily-quote-desktop {
  color: #17120a;
  background: linear-gradient(145deg, rgba(255, 250, 241, .84), rgba(239, 229, 212, .68));
  border-color: rgba(117, 84, 37, .18);
}

html.light-mode .daily-quote blockquote {
  color: rgba(23, 18, 10, .86);
}

html.light-mode .app-loader {
  background: rgba(255, 250, 241, .66);
}

html.light-mode .app-loader-ring {
  background: rgba(255, 250, 241, .9);
}

html.light-mode .app-loader-ring::before {
  border-color: rgba(185, 131, 38, .2);
  border-top-color: #b98326;
}

html.light-mode .privacy-modal-backdrop,
html.light-mode .confirm-modal-backdrop {
  background: rgba(35, 25, 12, .34);
  backdrop-filter: blur(12px);
}

html.light-mode .gallery-track::before,
html.light-mode .gallery-track::after {
  border-color: rgba(168, 117, 34, .28);
}

html.light-mode .footer-social-link {
  color: #17120a;
  background: rgba(255, 250, 241, .68);
  border-color: rgba(117, 84, 37, .22);
}

@media (max-width: 900px) {
  html.light-mode .public-nav {
    background:
      radial-gradient(circle at 15% 0%, rgba(185, 131, 38, .18), transparent 30%),
      rgba(255, 250, 241, .94);
  }

  html.light-mode .public-links {
    background: rgba(255, 250, 241, .96);
    border-color: rgba(117, 84, 37, .18);
  }

  html.light-mode .public-links a {
    background: rgba(255, 255, 255, .64);
    border-color: rgba(117, 84, 37, .16);
  }
}

/* Final public UX corrections: readable scale, reliable stagger, premium footer */
.content-full .public-page-head h1,
.content-full .contact-head h1,
.content-full .faq-head h1 {
  max-width: 660px;
  font-size: clamp(1.85rem, 3.2vw, 3.05rem) !important;
  line-height: 1.03;
  letter-spacing: -.025em;
}

.content-full .public-hero h1 {
  max-width: 740px;
  font-size: clamp(2.25rem, 4.5vw, 4.65rem) !important;
}

.content-full .public-section h2,
.content-full .public-band h2,
.content-full .company-intro-card h2,
.content-full .faq-cta h2 {
  font-size: clamp(1.55rem, 2.35vw, 2.55rem) !important;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.content-full .public-band {
  width: min(1060px, calc(100% - 48px));
  padding: clamp(22px, 3vw, 34px);
  gap: 18px;
}

.content-full .public-band p {
  font-size: .98rem;
}

.content-full .faq-page {
  min-height: auto;
  padding-bottom: 58px;
}

.content-full .faq-head {
  margin-bottom: 28px;
}

.content-full .faq-accordion {
  display: grid;
  gap: 12px;
}

.content-full .faq-accordion details {
  opacity: 1 !important;
  transform: none !important;
  min-height: 0;
  animation: publicSequentialRise .76s cubic-bezier(.2, .8, .2, 1) both;
}

.content-full .faq-accordion details:nth-child(1) { animation-delay: .08s; }
.content-full .faq-accordion details:nth-child(2) { animation-delay: .18s; }
.content-full .faq-accordion details:nth-child(3) { animation-delay: .28s; }
.content-full .faq-accordion details:nth-child(4) { animation-delay: .38s; }
.content-full .faq-accordion details:nth-child(5) { animation-delay: .48s; }

.content-full .faq-accordion summary {
  min-height: 58px;
  font-size: .98rem;
}

.content-full .faq-cta {
  margin-top: clamp(34px, 5vw, 58px);
}

.content-full .service-card-grid {
  align-items: stretch;
}

.content-full .service-card,
.content-full .service-card:first-child {
  min-height: 300px;
}

.content-full .service-card h3,
.content-full .service-card:first-child h3 {
  font-size: clamp(1.65rem, 2.6vw, 2.65rem) !important;
  line-height: 1.04;
}

.content-full .service-card p {
  font-size: .94rem;
}

body.reveal-enabled .content-full .service-card:nth-child(1) {
  transition-delay: .05s;
}

body.reveal-enabled .content-full .service-card:nth-child(2) {
  transition-delay: .34s;
}

body.reveal-enabled .content-full .service-card:nth-child(3) {
  transition-delay: .63s;
}

.content-full .about-text-only {
  align-items: stretch;
}

.content-full .about-principle-grid article {
  opacity: 1;
  transform: none;
  animation: publicSequentialRise .78s cubic-bezier(.2, .8, .2, 1) both;
}

body.reveal-enabled .content-full .about-principle-grid article,
body.reveal-enabled .content-full .faq-accordion details {
  opacity: 1 !important;
  transform: none !important;
}

.content-full .about-principle-grid article:nth-child(1) { animation-delay: .12s; }
.content-full .about-principle-grid article:nth-child(2) { animation-delay: .36s; }
.content-full .about-principle-grid article:nth-child(3) { animation-delay: .6s; }

.content-full .about-principle-grid strong {
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
}

.content-full .about-principle-grid p {
  font-size: .94rem;
  line-height: 1.6;
}

.content-full .login-panel,
.content-full .login-brand-column,
.content-full .login-content-column {
  animation: publicSequentialRise .85s cubic-bezier(.2, .8, .2, 1) both;
}

.content-full .login-brand-column {
  animation-delay: .12s;
}

.content-full .login-content-column {
  animation-delay: .28s;
}

.content-full .footer-main {
  font-family: Inter, Segoe UI, system-ui, sans-serif;
  border-top: 1px solid rgba(255, 255, 255, .055);
}

.content-full .footer-links a {
  font-size: .9rem;
  letter-spacing: .01em;
  opacity: .78;
}

.content-full .app-footer > span:last-child {
  display: inline-flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: .74rem;
  letter-spacing: .09em;
}

.footer-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: footerCharRise .48s ease forwards;
  animation-delay: var(--char-delay, 0s);
}

@keyframes publicSequentialRise {
  from {
    opacity: 0;
    transform: translateY(26px) scale(.985);
    filter: blur(8px);
  }

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

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

@media (max-width: 900px) {
  .content-full .public-page-head h1,
  .content-full .contact-head h1,
  .content-full .faq-head h1 {
    font-size: clamp(1.85rem, 8vw, 2.55rem) !important;
  }

  .content-full .public-hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem) !important;
  }

  .content-full .public-band {
    width: calc(100% - 28px);
  }

  .content-full .faq-accordion summary {
    font-size: .94rem;
  }
}

/* Public site polish pass: compact 2026 editorial scale */
.content-full {
  overflow-x: hidden;
}

.public-nav {
  min-height: 76px;
}

.public-utility-links {
  min-width: 86px;
}

.public-theme-toggle {
  display: none !important;
}

.public-hero {
  min-height: auto;
  padding: clamp(56px, 7vw, 92px) 0 clamp(42px, 6vw, 78px);
}

.public-hero h1 {
  max-width: 760px;
  font-size: clamp(2.75rem, 5.4vw, 5.8rem);
}

.public-page-head h1,
.contact-head h1,
.faq-head h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 4.6vw, 4.4rem);
}

.public-section h2,
.public-band h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: .98;
}

.public-hero p:not(.eyebrow),
.public-page-head p,
.contact-head p,
.faq-head p,
.public-band p,
.hero-text-stack p {
  font-size: clamp(.95rem, 1vw, 1.05rem);
  line-height: 1.65;
}

.service-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.service-card,
.service-card:first-child {
  min-height: clamp(300px, 30vw, 390px);
  border-radius: 28px;
  overflow: hidden;
}

.service-card:first-child {
  grid-row: auto;
}

.service-card-body {
  min-height: 100%;
  padding: clamp(24px, 3vw, 36px);
  gap: 16px;
}

.service-card h3,
.service-card:first-child h3 {
  max-width: 100%;
  font-size: clamp(2rem, 3.1vw, 3.35rem);
  line-height: .98;
  overflow-wrap: anywhere;
}

.service-card p {
  align-self: end;
  max-width: 100%;
  font-size: .98rem;
  line-height: 1.62;
}

.service-card::after {
  width: 58px;
  height: 58px;
  opacity: .58;
}

body.reveal-enabled .service-card {
  opacity: 0;
  transform: translateY(42px) scale(.975);
}

body.reveal-enabled .service-card:nth-child(1) {
  transition-delay: .02s;
}

body.reveal-enabled .service-card:nth-child(2) {
  transition-delay: .18s;
}

body.reveal-enabled .service-card:nth-child(3) {
  transition-delay: .34s;
}

body.reveal-enabled .service-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about-text-only {
  width: min(1180px, calc(100% - 48px));
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.company-intro-card {
  border-radius: 30px;
  background:
    radial-gradient(circle at 14% 10%, rgba(241, 200, 97, .16), transparent 34%),
    linear-gradient(145deg, rgba(14, 14, 17, .96), rgba(4, 4, 5, .97));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .38);
}

.company-intro-card h2 {
  font-size: clamp(2rem, 3.6vw, 3.75rem);
  line-height: .98;
  letter-spacing: -.035em;
}

.about-principle-grid {
  display: grid;
  gap: 14px;
}

.about-principle-grid article {
  position: relative;
  min-height: 154px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(241, 200, 97, .2), transparent 18%),
    linear-gradient(145deg, rgba(15, 15, 18, .96), rgba(5, 5, 7, .96));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .3);
  overflow: hidden;
  transition: transform .45s ease, border-color .45s ease, box-shadow .45s ease;
}

.about-principle-grid article::before {
  content: "";
  position: absolute;
  inset: auto 24px 24px auto;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(241, 200, 97, .65), rgba(241, 200, 97, .04) 68%);
  opacity: .5;
}

.about-principle-grid article:hover {
  transform: translateY(-4px) scale(1.012);
  border-color: rgba(241, 200, 97, .32);
  box-shadow: 0 30px 78px rgba(0, 0, 0, .42);
}

.about-principle-grid strong {
  max-width: 320px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.about-principle-grid p {
  max-width: 420px;
}

.contact-page,
.faq-page {
  width: min(1040px, calc(100% - 48px));
  padding-top: clamp(36px, 5vw, 62px);
}

.contact-head,
.faq-head {
  margin-bottom: 22px;
}

.contact-layout {
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 18px;
}

.contact-info-card {
  min-height: 138px;
  border-radius: 22px;
  padding: 24px;
}

.contact-form-panel {
  border-radius: 24px;
  padding: clamp(22px, 3vw, 32px);
}

.contact-form-panel textarea {
  min-height: 150px;
}

.privacy-consent {
  padding: 14px 16px;
  border-radius: 16px;
}

.privacy-consent-text {
  font-size: .95rem;
  line-height: 1.45;
}

.app-footer {
  padding-top: 0;
}

.footer-main {
  width: min(1180px, calc(100% - 48px));
  min-height: 150px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
}

.footer-brand img {
  width: 58px;
}

.footer-nav-block {
  justify-items: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
}

.footer-social-block {
  justify-items: end;
}

.footer-social-row {
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .service-card-grid,
  .about-text-only {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .public-hero,
  .public-section,
  .public-band,
  .public-page-head,
  .contact-page,
  .faq-page,
  .about-text-only {
    width: calc(100% - 28px);
  }

  .public-hero h1,
  .public-page-head h1,
  .contact-head h1,
  .faq-head h1 {
    font-size: clamp(2.05rem, 10vw, 3.25rem);
  }

  .service-card,
  .service-card:first-child {
    min-height: 250px;
  }

  .service-card h3,
  .service-card:first-child h3 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-main {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 18px;
  }

  .footer-nav-block,
  .footer-social-block {
    justify-items: center;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    width: min(100%, 300px);
    gap: 10px;
  }

  .footer-links a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .025);
  }
}

/* Final gallery stage: equal photo panels, cinematic line, scroll reveal */
.company-gallery-section {
  width: 100%;
  padding: clamp(54px, 7vw, 96px) 0 clamp(42px, 6vw, 74px);
}

.company-gallery-section .public-section-head {
  width: min(1260px, calc(100% - 48px));
  margin: 0 auto 18px;
}

.company-gallery-showcase {
  width: min(1320px, calc(100% - 48px));
  height: clamp(390px, 38vw, 560px);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 38px);
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(241, 200, 97, .25);
  border-radius: clamp(26px, 3vw, 44px);
  background:
    radial-gradient(circle at 48% 70%, rgba(241, 200, 97, .11), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .005)),
    #030303;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    inset 0 -1px 0 rgba(241, 200, 97, .08),
    0 42px 120px rgba(0, 0, 0, .56);
}

.company-gallery-showcase::before {
  width: 16%;
  background: linear-gradient(90deg, #030303 0%, rgba(3, 3, 3, .8) 42%, transparent 100%);
  opacity: 1;
}

.company-gallery-showcase::after {
  width: 16%;
  background: linear-gradient(270deg, #030303 0%, rgba(3, 3, 3, .8) 42%, transparent 100%);
  opacity: 1;
}

.gallery-connection-line {
  left: -3%;
  right: -3%;
  top: 54%;
  height: 54%;
  overflow: hidden;
}

.gallery-connection-line::before {
  inset: auto 0 6% 0;
  height: 78%;
  border: 2px solid rgba(241, 200, 97, .2);
  border-color: rgba(241, 200, 97, .24) transparent transparent transparent;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: none;
  filter: drop-shadow(0 0 26px rgba(241, 200, 97, .14));
}

.gallery-connection-line::after {
  inset: auto 7% 0 7%;
  height: 58%;
  border: 1px solid rgba(241, 200, 97, .12);
  border-color: rgba(241, 200, 97, .16) transparent transparent transparent;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: none;
}

.gallery-track {
  height: 68%;
  align-items: flex-end;
  gap: clamp(18px, 2vw, 30px);
}

.gallery-card,
.gallery-card-large,
.gallery-card-wide,
.gallery-card:nth-child(2n),
.gallery-card:nth-child(3n) {
  width: clamp(330px, 36vw, 580px);
  height: clamp(235px, 24vw, 360px);
  border-radius: 36px;
  border-color: rgba(255, 255, 255, .11);
  overflow: hidden;
  box-shadow: 0 26px 76px rgba(0, 0, 0, .58);
  clip-path: inset(0 round 36px);
}

.gallery-card:nth-child(odd) {
  transform: translateY(-42px);
}

.gallery-card:nth-child(even) {
  transform: translateY(18px);
}

.gallery-card:hover {
  transform: translateY(-50px) scale(1.025);
  border-radius: 36px;
  clip-path: inset(0 round 36px);
}

.gallery-card:nth-child(even):hover {
  transform: translateY(8px) scale(1.025);
}

.gallery-card img {
  object-fit: cover;
  object-position: center;
}

.gallery-controls {
  margin-top: 18px;
}

.gallery-control {
  width: 50px;
  height: 50px;
}

body.reveal-enabled .public-hero-copy,
body.reveal-enabled .company-visual-panel,
body.reveal-enabled .public-section-head,
body.reveal-enabled .service-card,
body.reveal-enabled .company-gallery-showcase,
body.reveal-enabled .gallery-controls,
body.reveal-enabled .public-band,
body.reveal-enabled .company-intro-card,
body.reveal-enabled .about-principle-grid article,
body.reveal-enabled .contact-head,
body.reveal-enabled .contact-info-card,
body.reveal-enabled .contact-form-panel,
body.reveal-enabled .faq-head,
body.reveal-enabled .faq-accordion details,
body.reveal-enabled .faq-cta {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}

body.reveal-enabled .company-visual-panel,
body.reveal-enabled .service-card:nth-child(2),
body.reveal-enabled .gallery-controls {
  transition-delay: .08s;
}

body.reveal-enabled .service-card:nth-child(3),
body.reveal-enabled .public-band,
body.reveal-enabled .about-principle-grid article:nth-child(3),
body.reveal-enabled .faq-accordion details:nth-child(3) {
  transition-delay: .16s;
}

body.reveal-enabled .about-principle-grid article:nth-child(1),
body.reveal-enabled .contact-info-card:nth-child(1),
body.reveal-enabled .faq-accordion details:nth-child(1) {
  transition-delay: .04s;
}

body.reveal-enabled .about-principle-grid article:nth-child(2),
body.reveal-enabled .contact-info-card:nth-child(2),
body.reveal-enabled .faq-accordion details:nth-child(2) {
  transition-delay: .1s;
}

body.reveal-enabled .is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.reveal-enabled .company-visual-panel.is-visible {
  animation: premium-image-rise 1.1s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes premium-image-rise {
  from {
    opacity: 0;
    transform: translateY(42px) scale(.97);
    filter: blur(10px);
  }

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

@media (max-width: 900px) {
  .company-gallery-section .public-section-head,
  .company-gallery-showcase {
    width: calc(100% - 28px);
  }

  .company-gallery-showcase {
    height: 330px;
    padding: 18px;
    border-radius: 26px;
  }

  .gallery-track {
    height: 72%;
    gap: 14px;
  }

  .gallery-card,
  .gallery-card-large,
  .gallery-card-wide,
  .gallery-card:nth-child(2n),
  .gallery-card:nth-child(3n) {
    width: min(78vw, 320px);
    height: 210px;
    border-radius: 26px;
    clip-path: inset(0 round 26px);
  }

  .gallery-card:nth-child(odd),
  .gallery-card:nth-child(even),
  .gallery-card:hover,
  .gallery-card:nth-child(even):hover {
    transform: translateY(0);
  }
}

/* Refined public gallery and FAQ composition */
.company-gallery-section {
  width: 100%;
  padding: clamp(46px, 7vw, 86px) 0 clamp(34px, 6vw, 70px);
}

.company-gallery-section .public-section-head {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 18px;
}

.company-gallery-section .gallery-head {
  justify-items: start;
}

.company-gallery-showcase {
  width: min(1280px, calc(100% - 40px));
  height: clamp(320px, 34vw, 520px);
  margin: 0 auto;
  padding: clamp(16px, 2vw, 26px);
  border-radius: 36px;
  border-color: rgba(255, 255, 255, .09);
  background:
    radial-gradient(circle at 44% 22%, rgba(241, 200, 97, .13), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)),
    #030303;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .05),
    0 38px 110px rgba(0, 0, 0, .5);
}

.gallery-connection-line {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  z-index: 0;
  height: 46%;
  transform: translateY(-50%);
  pointer-events: none;
}

.gallery-connection-line::before,
.gallery-connection-line::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(241, 200, 97, .34);
  border-color: rgba(241, 200, 97, .34) transparent transparent rgba(241, 200, 97, .34);
  border-radius: 50%;
  transform: rotate(-4deg);
  filter: drop-shadow(0 0 24px rgba(241, 200, 97, .16));
}

.gallery-connection-line::after {
  inset: 18% 10% 8% 20%;
  border-color: transparent rgba(241, 200, 97, .24) rgba(241, 200, 97, .24) transparent;
  transform: rotate(5deg);
}

.company-gallery-showcase::before {
  width: min(180px, 17vw);
  opacity: 1;
  background: linear-gradient(90deg, #030303 0%, rgba(3, 3, 3, .72) 35%, transparent 100%);
}

.company-gallery-showcase::after {
  width: min(180px, 17vw);
  opacity: 1;
  background: linear-gradient(270deg, #030303 0%, rgba(3, 3, 3, .72) 35%, transparent 100%);
}

.gallery-track {
  height: 100%;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  animation-duration: 62s;
  position: relative;
  z-index: 1;
  will-change: transform;
}

.gallery-card,
.gallery-card-large,
.gallery-card-wide {
  width: clamp(300px, 38vw, 620px);
  height: clamp(230px, 27vw, 430px);
  flex: 0 0 auto;
  border-radius: 30% 8% 26% 12% / 12% 26% 10% 30%;
  border-color: rgba(241, 200, 97, .16);
  background: #060606;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .46);
  transition: transform .5s ease, border-radius .5s ease, border-color .5s ease, box-shadow .5s ease;
}

.gallery-card-large {
  width: clamp(390px, 46vw, 760px);
  height: clamp(260px, 31vw, 480px);
}

.gallery-card-wide {
  width: clamp(360px, 44vw, 720px);
  height: clamp(230px, 26vw, 410px);
}

.gallery-card:nth-child(2n) {
  border-radius: 9% 28% 12% 26% / 28% 12% 30% 10%;
}

.gallery-card:nth-child(3n) {
  border-radius: 24% 12% 30% 8% / 10% 28% 12% 26%;
}

.gallery-card:hover {
  border-radius: 18px 44px 22px 54px;
  border-color: rgba(241, 200, 97, .42);
}

.gallery-card img {
  object-fit: cover;
  object-position: center;
}

.gallery-card:nth-child(3n) img {
  object-position: center 42%;
}

.gallery-card:nth-child(4n) img {
  object-position: center 58%;
}

.gallery-controls {
  width: min(1280px, calc(100% - 40px));
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.gallery-control {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(241, 200, 97, .32);
  border-radius: 999px;
  color: #120d04;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 238, 170, .72), transparent 32%),
    linear-gradient(135deg, #f4d675, #b87d20);
  box-shadow: 0 18px 42px rgba(201, 151, 53, .22);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.gallery-control span {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
}

.gallery-control:hover {
  transform: translateY(-2px) scale(1.07);
  border-color: rgba(241, 200, 97, .72);
  box-shadow: 0 24px 56px rgba(201, 151, 53, .32);
}

.faq-page {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  justify-items: center;
}

.faq-head {
  width: min(840px, 100%);
  justify-items: center;
  text-align: center;
}

.faq-head h1 {
  max-width: 880px;
  font-size: clamp(2.45rem, 5.4vw, 5rem);
}

.faq-accordion {
  width: min(900px, 100%);
  margin: 0 auto;
}

.faq-accordion details {
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(16, 16, 19, .96), rgba(6, 6, 8, .96));
}

.faq-cta {
  width: min(900px, 100%);
}

@media (max-width: 900px) {
  .company-gallery-section {
    padding: 34px 0 48px;
  }

  .company-gallery-section .public-section-head,
  .company-gallery-showcase,
  .faq-page {
    width: calc(100% - 28px);
  }

  .company-gallery-showcase {
    height: 280px;
    border-radius: 22px;
    padding: 12px;
  }

  .gallery-track {
    gap: 12px;
    animation-duration: 48s;
  }

  .gallery-card,
  .gallery-card-large,
  .gallery-card-wide {
    width: min(78vw, 320px);
    height: 220px;
    border-radius: 28% 10% 24% 12% / 12% 26% 10% 28%;
  }

  .company-gallery-showcase::before,
  .company-gallery-showcase::after {
    width: 52px;
  }

  .gallery-connection-line {
    left: 0;
    right: 0;
    height: 38%;
  }

  .gallery-controls {
    width: calc(100% - 28px);
    margin-top: 14px;
  }

  .gallery-control {
    width: 46px;
    height: 46px;
  }

  .faq-head h1 {
    font-size: clamp(2.15rem, 12vw, 3.35rem);
  }

  .faq-accordion summary {
    min-height: 62px;
    padding-inline: 18px;
  }
}

@media (max-width: 420px) {
  .login-screen {
    padding: 18px 12px 12px;
  }

  .login-panel {
    padding: 0;
  }

  .login-screen:not(.public-login-screen) .login-panel {
    padding: 22px 18px;
  }

  .login-logo-wrap {
    min-height: 92px;
  }

  .login-brand-column,
  .login-content-column {
    padding: 18px;
  }

  .login-logo {
    width: 98px;
  }

  .nav-stack {
    grid-template-columns: 1fr;
  }

  .user-strip {
    grid-template-columns: 1fr;
  }

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

  .data-table td {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 5px;
  }

  .data-table td a,
  .data-table td span,
  .status {
    justify-self: start;
  }

  .data-table td[data-label="Employee"] a,
  .data-table td[data-label="Employee"] span,
  .data-table td[data-label="User"] a,
  .data-table td[data-label="User"] span {
    justify-self: start;
    text-align: left;
  }
}

/* 2026 premium interaction layer */
:root {
  --bg: #030303;
  --panel: #09090b;
  --panel-soft: #101014;
  --line: #1e1e20;
  --text: #fbfbfb;
  --muted: rgba(245, 247, 255, .48);
  --accent: #c99735;
  --accent-strong: #f1c861;
  --accent-soft: rgba(241, 200, 97, .14);
  --gold: #f1c861;
  --premium-shadow: 0 32px 90px rgba(0, 0, 0, .42);
  --premium-border: rgba(255, 255, 255, .08);
}

body {
  background:
    radial-gradient(circle at 18% 0%, rgba(201, 151, 53, .18), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(85, 70, 36, .16), transparent 30%),
    #030303;
}

.content,
.content-full {
  background:
    radial-gradient(circle at 18% 0%, rgba(201, 151, 53, .12), transparent 30%),
    linear-gradient(180deg, rgba(3, 3, 3, .04), rgba(3, 3, 3, .62));
}

.eyebrow,
.footer-label,
.data-table th,
.metric-label,
.stat-card span,
.service-card span,
.contact-info-card span,
.contact-form-panel label > span,
.faq-head > span,
.public-feature span,
.contact-card span {
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .82;
}

.public-nav {
  min-height: 84px;
  border-bottom-color: rgba(255, 255, 255, .06);
  background: rgba(3, 3, 3, .76);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .26);
}

.public-brand img,
.footer-brand img {
  transition: transform .5s ease, filter .5s ease;
}

.public-brand:hover img,
.footer-brand:hover img {
  transform: translateY(-2px) scale(1.035);
  filter: drop-shadow(0 18px 30px rgba(241, 200, 97, .22));
}

.public-links a,
.nav-stack a,
.footer-links a,
.primary-button,
.ghost-button,
.ticket-action,
.mini-action,
.contact-submit,
.page-number,
.page-link-button {
  transition: color .35s ease, background .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}

.public-links a:not(.public-login-link):hover,
.nav-stack a:hover,
.footer-links a:hover {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(255, 255, 255, .055);
}

.public-login-link,
.primary-button {
  border: 1px solid rgba(241, 200, 97, .54);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 238, 170, .62), transparent 30%),
    linear-gradient(135deg, #f4d675 0%, #b87d20 100%) !important;
  box-shadow: 0 18px 48px rgba(201, 151, 53, .22);
}

.public-login-link:hover,
.primary-button:hover,
.contact-submit:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 24px 70px rgba(201, 151, 53, .32);
}

.public-hero,
.public-section,
.public-band,
.public-page-head,
.faq-page,
.contact-page {
  width: min(1320px, calc(100% - 48px));
}

.public-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: clamp(24px, 4vw, 56px);
}

.public-hero h1,
.public-page-head h1,
.faq-head h1,
.contact-head h1 {
  letter-spacing: -.035em;
  line-height: .92;
  text-wrap: balance;
}

.public-hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 6.8vw, 7rem);
}

.public-hero p:not(.eyebrow),
.public-page-head p,
.contact-head p,
.faq-head p,
.public-band p,
.hero-text-stack p {
  color: rgba(221, 229, 246, .68);
}

.public-hero-panel,
.public-feature,
.contact-card,
.faq-list article,
.service-card,
.company-gallery-showcase,
.gallery-card,
.public-band,
.panel,
.table-panel,
.compare-panel,
.leave-calendar-panel,
.leave-history-panel,
.stat-card,
.metric-card,
.contact-info-card,
.contact-form-panel,
.faq-accordion details,
.contact-message-card,
.login-panel {
  position: relative;
  border-color: var(--premium-border);
  background:
    linear-gradient(145deg, rgba(14, 14, 17, .96), rgba(3, 3, 3, .96)),
    #09090b;
  box-shadow: var(--premium-shadow);
  transform: translateZ(0);
  transition: transform .5s ease, border-color .5s ease, box-shadow .5s ease, background .5s ease;
}

.public-hero-panel::before,
.public-feature::before,
.contact-card::before,
.faq-list article::before,
.service-card::before,
.company-gallery-showcase::before,
.gallery-card::before,
.public-band::before,
.panel::before,
.table-panel::before,
.compare-panel::before,
.leave-calendar-panel::before,
.leave-history-panel::before,
.stat-card::before,
.metric-card::before,
.contact-info-card::before,
.contact-form-panel::before,
.faq-accordion details::before,
.contact-message-card::before,
.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--glow-x, 20%) var(--glow-y, 12%), rgba(241, 200, 97, .18), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, .045), transparent 34%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
}

.public-hero-panel > *,
.public-feature > *,
.contact-card > *,
.faq-list article > *,
.service-card > *,
.company-gallery-showcase > *,
.gallery-card > *,
.public-band > *,
.panel > *,
.table-panel > *,
.compare-panel > *,
.leave-calendar-panel > *,
.leave-history-panel > *,
.stat-card > *,
.metric-card > *,
.contact-info-card > *,
.contact-form-panel > *,
.faq-accordion details > *,
.contact-message-card > *,
.login-panel > * {
  position: relative;
  z-index: 1;
}

.public-hero-panel:hover,
.public-feature:hover,
.contact-card:hover,
.faq-list article:hover,
.service-card:hover,
.company-gallery-showcase:hover,
.gallery-card:hover,
.public-band:hover,
.panel:hover,
.table-panel:hover,
.compare-panel:hover,
.leave-calendar-panel:hover,
.leave-history-panel:hover,
.stat-card:hover,
.metric-card:hover,
.contact-info-card:hover,
.contact-form-panel:hover,
.faq-accordion details:hover,
.contact-message-card:hover,
.login-panel:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(241, 200, 97, .35);
  box-shadow: 0 38px 110px rgba(0, 0, 0, .5), 0 0 54px rgba(201, 151, 53, .08);
}

.public-hero-panel:hover::before,
.public-feature:hover::before,
.contact-card:hover::before,
.faq-list article:hover::before,
.service-card:hover::before,
.company-gallery-showcase:hover::before,
.gallery-card:hover::before,
.public-band:hover::before,
.panel:hover::before,
.table-panel:hover::before,
.compare-panel:hover::before,
.leave-calendar-panel:hover::before,
.leave-history-panel:hover::before,
.stat-card:hover::before,
.metric-card:hover::before,
.contact-info-card:hover::before,
.contact-form-panel:hover::before,
.faq-accordion details:hover::before,
.contact-message-card:hover::before,
.login-panel:hover::before {
  opacity: 1;
}

.company-visual-panel {
  border-radius: 28px;
  padding: 18px;
}

.company-image-card {
  min-height: clamp(360px, 44vw, 620px);
  border-radius: 24px;
  border-color: rgba(241, 200, 97, .24);
}

.company-image-card img {
  min-height: clamp(360px, 44vw, 620px);
  transition: transform .8s ease, filter .8s ease;
}

.company-visual-panel:hover .company-image-card img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.08);
}

.company-mini-grid div {
  border-color: rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 16, 20, .92), rgba(5, 5, 6, .92));
}

.service-card-grid {
  grid-template-columns: 1.12fr .88fr .88fr;
  align-items: stretch;
  gap: 18px;
}

.service-card {
  min-height: 360px;
  border: 1px solid var(--premium-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(241, 200, 97, .15), transparent 34%),
    linear-gradient(145deg, rgba(13, 13, 16, .98), rgba(3, 3, 3, .96));
  overflow: hidden;
}

.service-card:first-child {
  grid-row: span 2;
  min-height: 520px;
}

.service-card::after {
  right: 28px;
  top: 28px;
  width: 76px;
  height: 76px;
  opacity: .72;
}

.service-card-body {
  min-height: inherit;
  padding: clamp(28px, 4vw, 44px);
}

.service-card h3 {
  max-width: 420px;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -.035em;
}

.service-card:first-child h3 {
  font-size: clamp(2.4rem, 5vw, 5.6rem);
}

.service-card p {
  max-width: 430px;
  color: rgba(221, 229, 246, .66);
  font-size: 1.02rem;
}

.company-gallery-section {
  width: min(100%, 100%);
}

.company-gallery-section .public-section-head {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}

.company-gallery-showcase {
  width: min(1440px, calc(100% - 32px));
  border-radius: 28px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)),
    rgba(3, 3, 3, .72);
}

.company-gallery-showcase::before {
  background: linear-gradient(90deg, #030303, rgba(3, 3, 3, .08));
  opacity: 1;
}

.company-gallery-showcase::after {
  background: linear-gradient(270deg, #030303, rgba(3, 3, 3, .08));
}

.gallery-card {
  width: clamp(260px, 24vw, 420px);
  height: clamp(320px, 32vw, 520px);
  border-radius: 26px;
}

.gallery-card-large {
  width: clamp(330px, 34vw, 620px);
}

.gallery-card-wide {
  width: clamp(390px, 38vw, 680px);
  height: clamp(260px, 24vw, 400px);
}

.public-band {
  grid-template-columns: 1.15fr .85fr;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 12%, rgba(241, 200, 97, .18), transparent 34%),
    linear-gradient(145deg, rgba(18, 18, 22, .95), rgba(4, 4, 5, .96));
}

.public-band h2 {
  max-width: 820px;
  font-size: clamp(2.4rem, 5vw, 5.3rem);
  letter-spacing: -.04em;
}

.faq-page,
.contact-page {
  padding-top: clamp(44px, 7vw, 84px);
}

.faq-accordion {
  width: min(920px, 100%);
}

.faq-accordion details {
  border-radius: 20px;
  overflow: hidden;
}

.faq-accordion summary {
  min-height: 72px;
  padding-inline: 24px;
}

.contact-layout {
  align-items: start;
}

.contact-info-card,
.contact-form-panel {
  border-radius: 24px;
}

.contact-form-panel input:not([type="checkbox"]),
.contact-form-panel textarea,
.form-control,
.form-select,
.field-input {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(4, 4, 6, .72);
  transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
}

.contact-form-panel input:focus,
.contact-form-panel textarea:focus,
.form-control:focus,
.form-select:focus,
.field-input:focus {
  border-color: rgba(241, 200, 97, .66);
  box-shadow: 0 0 0 4px rgba(241, 200, 97, .12);
}

.app-footer {
  border-top-color: rgba(255, 255, 255, .06);
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 151, 53, .08), transparent 28%),
    #030303;
}

.footer-main {
  border-bottom-color: rgba(255, 255, 255, .08);
}

.footer-social-link {
  transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}

.footer-social-link:hover {
  transform: translateY(-3px) scale(1.08);
  border-color: rgba(241, 200, 97, .55);
  box-shadow: 0 20px 40px rgba(201, 151, 53, .18);
}

.side-nav {
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 151, 53, .12), transparent 30%),
    rgba(3, 3, 3, .94);
}

.content h1,
.page-title h1,
.section-title h1 {
  letter-spacing: -.035em;
}

.stat-card,
.metric-card {
  border-radius: 18px;
}

.data-table {
  font-size: .9rem;
}

.data-table th {
  color: rgba(211, 224, 245, .68);
  font-size: .72rem;
}

.data-table td {
  border-top-color: rgba(255, 255, 255, .07);
}

html.light-mode {
  --bg: #f7f4ed;
  --panel: #fffdf8;
  --panel-soft: #f1eadf;
  --line: #e2d6c1;
  --text: #16120b;
  --muted: rgba(48, 41, 31, .66);
  --premium-border: rgba(128, 91, 32, .18);
}

html.light-mode body {
  background:
    radial-gradient(circle at 18% 0%, rgba(184, 125, 32, .14), transparent 30%),
    linear-gradient(180deg, #fffaf1, #f6f1e8);
}

html.light-mode .public-hero-panel,
html.light-mode .public-feature,
html.light-mode .contact-card,
html.light-mode .faq-list article,
html.light-mode .service-card,
html.light-mode .company-gallery-showcase,
html.light-mode .gallery-card,
html.light-mode .public-band,
html.light-mode .panel,
html.light-mode .table-panel,
html.light-mode .compare-panel,
html.light-mode .leave-calendar-panel,
html.light-mode .leave-history-panel,
html.light-mode .stat-card,
html.light-mode .metric-card,
html.light-mode .contact-info-card,
html.light-mode .contact-form-panel,
html.light-mode .faq-accordion details,
html.light-mode .contact-message-card,
html.light-mode .login-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(244, 238, 229, .96));
  box-shadow: 0 24px 70px rgba(92, 69, 35, .1);
}

@media (max-width: 1100px) {
  .service-card-grid {
    grid-template-columns: 1fr;
  }

  .service-card:first-child {
    grid-row: auto;
    min-height: 360px;
  }

  .public-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .public-hero,
  .public-section,
  .public-band,
  .public-page-head,
  .faq-page,
  .contact-page,
  .company-gallery-section .public-section-head {
    width: calc(100% - 28px);
  }

  .public-hero {
    padding-top: 34px;
  }

  .public-hero h1 {
    font-size: clamp(2.6rem, 14vw, 4.35rem);
    line-height: .94;
  }

  .public-band {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .public-band h2 {
    font-size: clamp(2.2rem, 11vw, 3.7rem);
  }

  .company-visual-panel,
  .service-card,
  .company-gallery-showcase,
  .contact-info-card,
  .contact-form-panel {
    border-radius: 20px;
  }

  .company-image-card,
  .company-image-card img {
    min-height: 300px;
  }

  .service-card,
  .service-card:first-child {
    min-height: 280px;
  }

  .service-card h3,
  .service-card:first-child h3 {
    font-size: clamp(1.9rem, 10vw, 3.1rem);
  }

  .gallery-card,
  .gallery-card-large,
  .gallery-card-wide {
    width: min(78vw, 330px);
    height: 260px;
  }

  .public-hero-panel:hover,
  .public-feature:hover,
  .contact-card:hover,
  .faq-list article:hover,
  .service-card:hover,
  .company-gallery-showcase:hover,
  .gallery-card:hover,
  .public-band:hover,
  .panel:hover,
  .table-panel:hover,
  .compare-panel:hover,
  .leave-calendar-panel:hover,
  .leave-history-panel:hover,
  .stat-card:hover,
  .metric-card:hover,
  .contact-info-card:hover,
  .contact-form-panel:hover,
  .faq-accordion details:hover,
  .contact-message-card:hover,
  .login-panel:hover {
    transform: none;
  }
}

/* Final premium daylight system. Dark mode remains untouched. */
.public-theme-toggle {
  display: inline-flex !important;
}

html.light-mode {
  --bg: #f4efe6;
  --panel: #fff9ee;
  --panel-soft: #efe4d3;
  --line: rgba(100, 72, 32, .16);
  --text: #1c160d;
  --muted: rgba(43, 34, 22, .64);
  --accent: #a87522;
  --accent-strong: #74501b;
  --accent-soft: rgba(168, 117, 34, .13);
  --gold: #b98227;
  --premium-surface: rgba(255, 250, 241, .78);
  --premium-surface-strong: rgba(255, 252, 246, .92);
  --premium-border: rgba(112, 79, 34, .16);
  --premium-shadow: 0 18px 46px rgba(72, 48, 20, .09);
  --premium-shadow-hover: 0 24px 70px rgba(72, 48, 20, .14);
  --premium-radius: 18px;
}

html.light-mode body {
  color: var(--text);
  background:
    radial-gradient(circle at 16% -12%, rgba(209, 159, 67, .23), transparent 34%),
    radial-gradient(circle at 88% 2%, rgba(168, 117, 34, .12), transparent 30%),
    linear-gradient(180deg, #fffaf1 0%, #f5ecdf 54%, #eee2d1 100%);
}

html.light-mode .content,
html.light-mode .content-full {
  background:
    radial-gradient(circle at 18% 0%, rgba(201, 151, 53, .14), transparent 32%),
    linear-gradient(180deg, rgba(255, 250, 241, .95), rgba(244, 235, 222, .98));
}

html.light-mode .side-nav,
html.light-mode .public-nav,
html.light-mode .app-footer {
  background:
    linear-gradient(180deg, rgba(255, 252, 246, .9), rgba(248, 240, 227, .78)),
    radial-gradient(circle at 24% 0%, rgba(185, 131, 38, .12), transparent 32%);
  border-color: rgba(100, 72, 32, .14);
  box-shadow: 0 18px 58px rgba(72, 48, 20, .08);
  backdrop-filter: blur(20px);
}

html.light-mode .public-nav {
  border-bottom: 1px solid rgba(100, 72, 32, .13);
}

html.light-mode .side-nav {
  border-right: 1px solid rgba(100, 72, 32, .13);
}

html.light-mode .brand-logo,
html.light-mode .public-brand img,
html.light-mode .footer-brand img,
html.light-mode .login-logo {
  filter: drop-shadow(0 14px 24px rgba(82, 55, 18, .12));
}

html.light-mode .nav-stack a,
html.light-mode .public-links a,
html.light-mode .footer-links a {
  color: rgba(28, 22, 13, .62);
  transition: color .28s ease, background .28s ease, border-color .28s ease, transform .28s ease;
}

html.light-mode .nav-stack a:hover,
html.light-mode .nav-stack a:focus-visible,
html.light-mode .nav-stack a.active,
html.light-mode .public-links a:not(.public-login-link):hover,
html.light-mode .public-links a:not(.public-login-link):focus-visible,
html.light-mode .footer-links a:hover {
  color: #1c160d;
  background: rgba(168, 117, 34, .09);
  border-color: rgba(168, 117, 34, .22);
}

html.light-mode .public-login-link,
html.light-mode .primary-button,
html.light-mode .gold-button,
html.light-mode .contact-submit,
html.light-mode .page-number.active,
html.light-mode .file-input-button {
  color: #1c160d;
  background: linear-gradient(135deg, #fee58b 0%, #d6a23f 54%, #a87522 100%);
  border: 1px solid rgba(112, 79, 34, .22);
  box-shadow: 0 16px 38px rgba(139, 91, 22, .18), inset 0 1px 0 rgba(255, 255, 255, .38);
}

html.light-mode .public-login-link:hover,
html.light-mode .primary-button:hover,
html.light-mode .gold-button:hover,
html.light-mode .contact-submit:hover,
html.light-mode .file-input-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 54px rgba(139, 91, 22, .24), inset 0 1px 0 rgba(255, 255, 255, .45);
}

html.light-mode .ghost-button,
html.light-mode .secondary-button,
html.light-mode .page-link-button,
html.light-mode .page-number,
html.light-mode .ticket-action,
html.light-mode .mini-action,
html.light-mode .theme-toggle,
html.light-mode .language-switcher,
html.light-mode .hamburger-button {
  color: #24190b;
  background: rgba(255, 250, 241, .72);
  border: 1px solid rgba(100, 72, 32, .17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
}

html.light-mode .ghost-button:hover,
html.light-mode .secondary-button:hover,
html.light-mode .page-link-button:hover,
html.light-mode .page-number:hover,
html.light-mode .ticket-action:hover,
html.light-mode .mini-action:hover,
html.light-mode .theme-toggle:hover,
html.light-mode .hamburger-button:hover {
  color: #1c160d;
  background: rgba(255, 246, 230, .95);
  border-color: rgba(168, 117, 34, .32);
  box-shadow: 0 14px 34px rgba(72, 48, 20, .09), inset 0 1px 0 rgba(255, 255, 255, .84);
}

html.light-mode .theme-toggle-icon,
html.light-mode .hamburger-button span {
  background: #b98227;
}

html.light-mode .language-switcher a {
  color: rgba(28, 22, 13, .55);
}

html.light-mode .language-switcher a.active {
  color: #1c160d;
  background: linear-gradient(135deg, #fee58b, #c89334);
  box-shadow: 0 10px 24px rgba(139, 91, 22, .16);
}

html.light-mode .panel,
html.light-mode .table-panel,
html.light-mode .compare-panel,
html.light-mode .leave-calendar-panel,
html.light-mode .leave-history-panel,
html.light-mode .metric,
html.light-mode .metric-card,
html.light-mode .stat-card,
html.light-mode .worker-card,
html.light-mode .ticket-filter,
html.light-mode .ticket-search,
html.light-mode .admin-message,
html.light-mode .login-panel,
html.light-mode .public-hero-panel,
html.light-mode .public-feature,
html.light-mode .company-visual-panel,
html.light-mode .company-intro-card,
html.light-mode .about-principle-grid article,
html.light-mode .service-card,
html.light-mode .company-gallery-showcase,
html.light-mode .gallery-card,
html.light-mode .public-band,
html.light-mode .contact-info-card,
html.light-mode .contact-form-panel,
html.light-mode .contact-message-card,
html.light-mode .faq-accordion details,
html.light-mode .faq-list article,
html.light-mode .privacy-modal-panel,
html.light-mode .confirm-modal-panel,
html.light-mode .contact-card {
  color: #1c160d;
  background:
    linear-gradient(145deg, rgba(255, 252, 246, .88), rgba(249, 240, 226, .72)),
    radial-gradient(circle at 10% 0%, rgba(201, 151, 53, .1), transparent 34%);
  border: 1px solid var(--premium-border);
  box-shadow: var(--premium-shadow), inset 0 1px 0 rgba(255, 255, 255, .76);
}

html.light-mode .panel:hover,
html.light-mode .table-panel:hover,
html.light-mode .compare-panel:hover,
html.light-mode .leave-calendar-panel:hover,
html.light-mode .leave-history-panel:hover,
html.light-mode .metric-card:hover,
html.light-mode .stat-card:hover,
html.light-mode .worker-card:hover,
html.light-mode .public-hero-panel:hover,
html.light-mode .public-feature:hover,
html.light-mode .company-visual-panel:hover,
html.light-mode .company-intro-card:hover,
html.light-mode .about-principle-grid article:hover,
html.light-mode .service-card:hover,
html.light-mode .gallery-card:hover,
html.light-mode .public-band:hover,
html.light-mode .contact-info-card:hover,
html.light-mode .contact-form-panel:hover,
html.light-mode .faq-accordion details:hover {
  border-color: rgba(168, 117, 34, .28);
  box-shadow: var(--premium-shadow-hover), inset 0 1px 0 rgba(255, 255, 255, .84);
}

html.light-mode .public-hero h1,
html.light-mode .public-page-head h1,
html.light-mode .public-section-head h2,
html.light-mode .contact-head h1,
html.light-mode .faq-head h1,
html.light-mode .login-copy h1,
html.light-mode .content h1,
html.light-mode .page-title h1,
html.light-mode .section-title h1 {
  color: #1c160d;
  text-shadow: none;
}

html.light-mode .kicker,
html.light-mode .eyebrow,
html.light-mode .footer-label,
html.light-mode .contact-info-card span,
html.light-mode .contact-form-panel label > span,
html.light-mode .data-table th,
html.light-mode .table-panel-title,
html.light-mode .metric-label,
html.light-mode .stat-card span,
html.light-mode .label {
  color: #87601f;
}

html.light-mode p,
html.light-mode .muted,
html.light-mode .public-hero p,
html.light-mode .public-section-head p,
html.light-mode .contact-head p,
html.light-mode .faq-head p,
html.light-mode .login-copy p,
html.light-mode .footer-live-info {
  color: rgba(43, 34, 22, .66);
}

html.light-mode input:not([type="checkbox"]),
html.light-mode textarea,
html.light-mode select,
html.light-mode .form-control,
html.light-mode .form-select,
html.light-mode .field-input,
html.light-mode .control-dark,
html.light-mode .file-input-shell {
  color: #1c160d;
  background: rgba(255, 252, 246, .8);
  border: 1px solid rgba(100, 72, 32, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

html.light-mode input::placeholder,
html.light-mode textarea::placeholder {
  color: rgba(43, 34, 22, .42);
}

html.light-mode input:focus,
html.light-mode textarea:focus,
html.light-mode select:focus,
html.light-mode .form-control:focus,
html.light-mode .form-select:focus,
html.light-mode .field-input:focus,
html.light-mode .control-dark:focus {
  border-color: rgba(168, 117, 34, .52);
  box-shadow: 0 0 0 4px rgba(168, 117, 34, .13), inset 0 1px 0 rgba(255, 255, 255, .86);
}

html.light-mode .data-table {
  color: #1c160d;
}

html.light-mode .data-table thead,
html.light-mode .data-table tr,
html.light-mode .data-table td,
html.light-mode .data-table th {
  border-color: rgba(100, 72, 32, .13);
}

html.light-mode .data-table tr:hover {
  background: rgba(168, 117, 34, .065);
}

html.light-mode .work-type-option,
html.light-mode .install-options label,
html.light-mode .segmented label,
html.light-mode .saved-work,
html.light-mode .leave-day,
html.light-mode .leave-calendar-head,
html.light-mode .leave-weekdays span,
html.light-mode .period-switch,
html.light-mode .table-toolbar,
html.light-mode .file-input-name,
html.light-mode .privacy-consent,
html.light-mode .privacy-modal-content article {
  color: #1c160d;
  background: rgba(255, 250, 241, .68);
  border-color: rgba(100, 72, 32, .16);
}

html.light-mode .work-type-option:has(input:checked),
html.light-mode .install-options label:has(input:checked),
html.light-mode .segmented label:has(input:checked) {
  background: linear-gradient(135deg, rgba(254, 229, 139, .52), rgba(168, 117, 34, .18));
  border-color: rgba(168, 117, 34, .42);
}

html.light-mode .status-finished,
html.light-mode .leave-pill,
html.light-mode .status-pill {
  color: #07563a;
  background: rgba(8, 114, 72, .12);
}

html.light-mode .status-started {
  color: #17456f;
  background: rgba(47, 112, 178, .13);
}

html.light-mode .status-rejected,
html.light-mode .danger-button,
html.light-mode .delete-action {
  color: #8f1727;
  background: rgba(176, 35, 52, .1);
  border-color: rgba(176, 35, 52, .26);
}

html.light-mode .weekend-day,
html.light-mode .holiday-day {
  background: rgba(168, 117, 34, .07);
}

html.light-mode .today-day {
  background:
    radial-gradient(circle at 50% 34%, rgba(254, 229, 139, .46), transparent 44%),
    rgba(255, 250, 241, .72);
  border-color: rgba(168, 117, 34, .55);
  box-shadow: 0 16px 32px rgba(139, 91, 22, .13), inset 0 0 0 1px rgba(168, 117, 34, .2);
}

html.light-mode .daily-quote,
html.light-mode .daily-quote-desktop {
  color: #1c160d;
  background: linear-gradient(145deg, rgba(255, 250, 241, .84), rgba(239, 228, 211, .7));
  border-color: rgba(100, 72, 32, .16);
}

html.light-mode .daily-quote blockquote {
  color: rgba(28, 22, 13, .84);
}

html.light-mode .app-loader {
  background: rgba(255, 250, 241, .62);
}

html.light-mode .app-loader-ring {
  background: rgba(255, 250, 241, .92);
}

html.light-mode .app-loader-ring::before {
  border-color: rgba(168, 117, 34, .18);
  border-top-color: #b98227;
}

html.light-mode .privacy-modal-backdrop,
html.light-mode .confirm-modal-backdrop {
  background: rgba(32, 22, 10, .32);
  backdrop-filter: blur(12px);
}

html.light-mode .footer-social-link {
  color: #1c160d;
  background: rgba(255, 250, 241, .68);
  border-color: rgba(100, 72, 32, .18);
}

@media (max-width: 900px) {
  html.light-mode .public-nav {
    background:
      radial-gradient(circle at 15% 0%, rgba(185, 131, 38, .16), transparent 30%),
      rgba(255, 250, 241, .94);
  }

  html.light-mode .public-links {
    background: rgba(255, 250, 241, .96);
    border-color: rgba(100, 72, 32, .16);
  }

  html.light-mode .public-links a {
    background: rgba(255, 255, 255, .58);
    border-color: rgba(100, 72, 32, .14);
  }
}

/* Light mode only: replace the dark gallery edge fades with a warm daylight treatment. */
html.light-mode .company-gallery-showcase {
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 151, 53, .16), transparent 42%),
    linear-gradient(180deg, rgba(255, 252, 246, .92), rgba(246, 237, 224, .88));
}

html.light-mode .company-gallery-showcase::before {
  background:
    linear-gradient(90deg,
      rgba(255, 252, 246, .96) 0%,
      rgba(255, 252, 246, .76) 42%,
      rgba(255, 252, 246, 0) 100%);
}

html.light-mode .company-gallery-showcase::after {
  background:
    linear-gradient(270deg,
      rgba(255, 252, 246, .96) 0%,
      rgba(255, 252, 246, .76) 42%,
      rgba(255, 252, 246, 0) 100%);
}

html.light-mode .gallery-card {
  background:
    linear-gradient(145deg, rgba(255, 252, 246, .84), rgba(246, 237, 224, .7));
  box-shadow: 0 26px 70px rgba(72, 48, 20, .12), inset 0 1px 0 rgba(255, 255, 255, .78);
}

html.light-mode .gallery-card::before,
html.light-mode .gallery-card::after {
  background: transparent;
}

/* Final public polish: smaller consent copy, slightly larger logos, and no mobile double-tap zoom on project photos. */
.public-brand img {
  width: clamp(50px, 4.2vw, 64px);
}

.brand-logo {
  width: clamp(108px, 9.5vw, 134px);
}

.footer-brand img {
  width: clamp(52px, 4.4vw, 66px);
}

.privacy-consent-text {
  font-size: clamp(.78rem, 1.4vw, .92rem);
  line-height: 1.45;
  letter-spacing: .04em;
}

.company-gallery-showcase,
.gallery-track,
.gallery-card,
.gallery-card img {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 700px) {
  .public-brand img {
    width: 52px;
  }

  .brand-logo {
    width: 104px;
  }

  .privacy-consent-text {
    font-size: .76rem;
    letter-spacing: .02em;
  }
}

/* Final public sizing refinements. */
.public-brand img {
  width: clamp(58px, 4.8vw, 74px);
}

.brand-logo {
  width: clamp(120px, 10.4vw, 148px);
}

.footer-brand img {
  width: clamp(58px, 4.8vw, 74px);
}

.privacy-consent {
  align-items: start;
  padding: 12px 14px;
}

.privacy-consent-text {
  font-size: clamp(.66rem, .95vw, .76rem) !important;
  font-weight: 650 !important;
  line-height: 1.38 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.privacy-link-button {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.footer-links {
  grid-template-columns: 1fr !important;
  justify-items: center;
  gap: 8px;
}

@media (max-width: 700px) {
  .public-brand img {
    width: 58px;
  }

  .brand-logo {
    width: 114px;
  }

  .footer-brand img {
    width: 58px;
  }

  .privacy-consent-text {
    font-size: .64rem !important;
  }
}

/* Public shell refinements */
.public-nav {
  background: rgba(3, 3, 3, .76) !important;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(199, 154, 66, .12);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

.app-footer {
  background: rgba(3, 3, 3, .76);
  border-top: 1px solid rgba(199, 154, 66, .14);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.footer-main {
  align-items: start;
}

.footer-nav-block {
  justify-self: center;
  text-align: center;
}

.footer-links {
  grid-template-columns: 1fr !important;
  justify-items: center;
  gap: 9px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f2d27a, var(--accent));
  box-shadow: 0 0 14px rgba(199, 154, 66, .34);
}

.contact-info-card {
  position: relative;
  min-height: 136px;
  padding-left: clamp(72px, 6vw, 92px);
}

.contact-card-icon {
  position: absolute;
  left: clamp(24px, 3vw, 32px);
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  fill: var(--gold);
  filter: drop-shadow(0 12px 24px rgba(199, 154, 66, .22));
}

@media (max-width: 700px) {
  .public-nav {
    margin: 0;
    width: 100%;
    border-radius: 0;
  }

  .contact-info-card {
    padding-left: 72px;
    text-align: left;
  }

  .contact-card-icon {
    left: 24px;
    width: 30px;
    height: 30px;
  }

}

html.light-mode .public-nav,
html.light-mode .app-footer {
  background: rgba(3, 3, 3, .76) !important;
  border-color: rgba(199, 154, 66, .14);
  box-shadow: 0 18px 56px rgba(72, 48, 20, .12);
}

html.light-mode .footer-links a::before {
  background: linear-gradient(135deg, #c79735, #8f641d);
}

html.light-mode .contact-card-icon {
  fill: #a87522;
}

/* Public shell final fix: full-width translucent header/footer and floating back-to-top. */
.content-full .public-nav,
.public-nav,
html.light-mode .content-full .public-nav,
html.light-mode .public-nav {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(3, 3, 3, .82), rgba(3, 3, 3, .76)) !important;
  border: 0;
  border-bottom: 1px solid rgba(199, 154, 66, .14);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .24);
}

.content-full .app-footer,
.app-footer,
html.light-mode .content-full .app-footer,
html.light-mode .app-footer {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(3, 3, 3, .76), rgba(3, 3, 3, .82)) !important;
  border-top: 1px solid rgba(199, 154, 66, .14);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, .2);
}

.content-full .footer-main,
.footer-main,
html.light-mode .content-full .footer-main,
html.light-mode .footer-main {
  width: min(100%, 1440px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(180px, 1fr) minmax(180px, .8fr);
  align-items: start;
  justify-items: start;
  text-align: left;
  gap: clamp(22px, 4vw, 64px);
}

.footer-nav-block,
.footer-social-block {
  justify-self: start;
  text-align: left;
}

.footer-links {
  justify-items: start !important;
  text-align: left;
}

.footer-social-row {
  justify-content: flex-start;
}

.back-to-top-button {
  position: fixed;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 52px;
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(242, 210, 122, .44);
  border-radius: 999px;
  color: #0d0904;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 246, 187, .95), transparent 34%),
    linear-gradient(135deg, #f3d57a 0%, #bd8530 100%);
  box-shadow:
    0 22px 58px rgba(184, 134, 47, .28),
    0 0 0 8px rgba(199, 154, 66, .08),
    inset 0 1px 0 rgba(255, 255, 255, .45);
  font-weight: 950;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 16px, 0) scale(.94);
  transition: opacity .28s ease, transform .28s ease, box-shadow .28s ease;
}

.back-to-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.back-to-top-button:hover {
  transform: translate3d(0, -3px, 0) scale(1.02);
  box-shadow:
    0 28px 72px rgba(184, 134, 47, .38),
    0 0 0 10px rgba(199, 154, 66, .1),
    inset 0 1px 0 rgba(255, 255, 255, .55);
}

.back-to-top-button:active {
  transform: translate3d(0, 0, 0) scale(.98);
}

.back-to-top-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 700px) {
  .content-full .public-nav,
  .public-nav,
  html.light-mode .content-full .public-nav,
  html.light-mode .public-nav {
    padding-inline: 22px;
  }

  .content-full .footer-main,
  .footer-main,
  html.light-mode .content-full .footer-main,
  html.light-mode .footer-main {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
    padding-inline: 18px;
  }

  .footer-nav-block,
  .footer-social-block,
  .footer-links {
    justify-self: start !important;
    text-align: left;
  }

  .footer-social-row {
    justify-content: flex-start;
  }

  .back-to-top-button {
    right: 16px;
    bottom: 16px;
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
  }

  .back-to-top-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Public shell hardening: true edge-to-edge strips, cleaner footer, premium controls. */
.content-full {
  padding: 0 !important;
  overflow-x: hidden;
}

.content-full > .public-nav,
html.light-mode .content-full > .public-nav,
.content-full > .app-footer,
html.light-mode .content-full > .app-footer {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.content-full > .public-nav,
html.light-mode .content-full > .public-nav {
  padding-inline: clamp(18px, 4.2vw, 76px) !important;
}

.content-full > .app-footer,
html.light-mode .content-full > .app-footer {
  padding: clamp(30px, 4vw, 54px) clamp(18px, 4.2vw, 76px) 24px !important;
}

.content-full .footer-main,
.footer-main,
html.light-mode .content-full .footer-main,
html.light-mode .footer-main {
  width: min(100%, 1180px) !important;
  grid-template-columns: 1fr !important;
  gap: 22px !important;
  margin-inline: auto !important;
  justify-items: start !important;
  text-align: left !important;
}

.footer-brand,
.footer-nav-block,
.footer-social-block {
  justify-self: start !important;
  text-align: left !important;
}

.footer-links {
  grid-template-columns: 1fr !important;
  justify-items: start !important;
  gap: 8px !important;
}

.footer-links a {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.footer-links a::before {
  content: none !important;
}

.footer-social-row {
  justify-content: flex-start !important;
}

.footer-copyright {
  width: min(100%, 1180px);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(199, 154, 66, .15);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  color: rgba(247, 247, 251, .84);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.copyright-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #0d0904;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 246, 187, .98), transparent 34%),
    linear-gradient(135deg, #f3d57a 0%, #bd8530 100%);
  box-shadow:
    0 14px 34px rgba(184, 134, 47, .26),
    inset 0 1px 0 rgba(255, 255, 255, .45);
  font-size: 1rem;
  line-height: 1;
}

.copyright-copy {
  line-height: 1.45;
}

.gallery-control {
  width: 52px !important;
  height: 52px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(242, 210, 122, .44) !important;
  color: #0d0904 !important;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 246, 187, .95), transparent 34%),
    linear-gradient(135deg, #f3d57a 0%, #bd8530 100%) !important;
  box-shadow:
    0 22px 58px rgba(184, 134, 47, .24),
    0 0 0 8px rgba(199, 154, 66, .07),
    inset 0 1px 0 rgba(255, 255, 255, .45) !important;
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease !important;
}

.gallery-control:hover {
  transform: translateY(-3px) scale(1.04) !important;
  filter: saturate(1.06);
  box-shadow:
    0 28px 72px rgba(184, 134, 47, .34),
    0 0 0 10px rgba(199, 154, 66, .1),
    inset 0 1px 0 rgba(255, 255, 255, .55) !important;
}

.gallery-control span {
  color: currentColor !important;
  font-size: 1rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.public-band {
  overflow: hidden;
}

.public-band h2,
.company-intro-card h2 {
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: clamp(1.7rem, 6vw, 4.1rem) !important;
  line-height: .96 !important;
}

@media (max-width: 700px) {
  .content-full > .public-nav,
  html.light-mode .content-full > .public-nav {
    padding: 22px 24px !important;
  }

  .content-full > .app-footer,
  html.light-mode .content-full > .app-footer {
    padding: 30px 24px 22px !important;
  }

  .footer-copyright {
    align-items: flex-start;
    font-size: .66rem;
    letter-spacing: .09em;
  }

  .copyright-mark {
    width: 28px;
    height: 28px;
    font-size: .9rem;
  }

  .gallery-control {
    width: 48px !important;
    height: 48px !important;
  }
}

/* Light-mode public shell: premium daylight header/footer without the dark overlay. */
html.light-mode .content-full > .public-nav,
html.light-mode .public-nav {
  background:
    linear-gradient(180deg, rgba(255, 251, 243, .94), rgba(250, 241, 226, .88)) !important;
  border-bottom: 1px solid rgba(136, 101, 45, .16) !important;
  box-shadow: 0 18px 52px rgba(94, 67, 27, .08) !important;
}

html.light-mode .content-full > .app-footer,
html.light-mode .app-footer {
  background:
    radial-gradient(circle at 16% 0%, rgba(204, 153, 56, .1), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 243, .96), rgba(244, 233, 216, .94)) !important;
  border-top: 1px solid rgba(136, 101, 45, .16) !important;
  box-shadow: 0 -18px 56px rgba(94, 67, 27, .08) !important;
}

html.light-mode .public-links a:not(.public-login-link),
html.light-mode .footer-links a {
  color: rgba(28, 22, 13, .76) !important;
}

html.light-mode .public-links a:not(.public-login-link):hover,
html.light-mode .footer-links a:hover {
  color: #8f641d !important;
}

html.light-mode .footer-label {
  color: #9a6d22 !important;
}

html.light-mode .footer-social-link {
  color: #22180b !important;
  background: rgba(255, 252, 246, .72) !important;
  border-color: rgba(136, 101, 45, .2) !important;
  box-shadow: 0 16px 38px rgba(94, 67, 27, .1) !important;
}

html.light-mode .footer-social-link:hover {
  color: #0d0904 !important;
  border-color: rgba(168, 117, 34, .38) !important;
  background: rgba(255, 248, 234, .9) !important;
}

html.light-mode .footer-copyright {
  border-top-color: rgba(136, 101, 45, .16);
  color: rgba(28, 22, 13, .72);
}

html.light-mode .recaptcha-box {
  border-color: rgba(150, 110, 38, .2);
  background:
    radial-gradient(circle at 20% 0%, rgba(184, 134, 47, .12), transparent 36%),
    linear-gradient(135deg, rgba(255, 252, 246, .9), rgba(246, 236, 219, .92));
  box-shadow: 0 18px 46px rgba(94, 67, 27, .1);
}

@media (min-width: 901px) {
  html.light-mode .content-full .footer-main,
  html.light-mode .footer-main {
    grid-template-columns: minmax(140px, .75fr) minmax(220px, 1fr) minmax(220px, .85fr) !important;
    align-items: center !important;
    gap: clamp(36px, 7vw, 110px) !important;
  }

  html.light-mode .footer-nav-block,
  html.light-mode .footer-social-block {
    align-self: center;
  }

  html.light-mode .footer-social-row {
    gap: 12px !important;
  }
}

/* Final shell guard: public pages stay out of the app shell, copyright stays clean everywhere. */
.footer-copyright,
.content-full .footer-copyright,
html.light-mode .footer-copyright,
html.light-mode .content-full .footer-copyright {
  width: min(100%, 1180px) !important;
  margin: 26px auto 0 !important;
  padding-top: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-align: center !important;
  font-family: Inter, "Segoe UI", system-ui, sans-serif !important;
  font-size: .74rem !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  letter-spacing: .025em !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

.footer-copyright {
  color: rgba(247, 247, 251, .82);
}

html.light-mode .footer-copyright,
html.light-mode .content-full .footer-copyright {
  color: rgba(31, 24, 14, .78) !important;
}

.copyright-copy {
  display: inline-block !important;
  min-width: 0;
  max-width: min(100%, 720px);
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  white-space: nowrap !important;
  text-wrap: balance;
}

.copyright-copy .footer-char {
  display: inline !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  white-space: normal !important;
}

.footer-copyright .footer-char {
  display: inline !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.copyright-mark,
.content-full .copyright-mark,
html.light-mode .copyright-mark {
  width: 30px !important;
  height: 30px !important;
  font-size: .95rem !important;
}

@media (max-width: 700px) {
  .content-full > .app-footer,
  .app-footer {
    position: relative !important;
    padding-bottom: 34px !important;
  }

  .footer-copyright,
  .content-full .footer-copyright,
  html.light-mode .footer-copyright,
  html.light-mode .content-full .footer-copyright {
    position: static !important;
    width: min(100%, 1180px) !important;
    margin: 26px auto 0 !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(199, 154, 66, .15) !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: .62rem !important;
    letter-spacing: .02em !important;
    line-height: 1.45 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .copyright-copy {
    max-width: calc(100vw - 92px);
    white-space: nowrap !important;
  }

  .copyright-mark,
  .content-full .copyright-mark,
  html.light-mode .copyright-mark {
    width: 24px !important;
    height: 24px !important;
    font-size: .78rem !important;
  }

  .footer-social-block,
  .content-full .footer-social-block,
  html.light-mode .footer-social-block,
  html.light-mode .content-full .footer-social-block {
    position: absolute !important;
    top: 134px !important;
    right: 22px !important;
    width: 132px !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .footer-social-row,
  .content-full .footer-social-row,
  html.light-mode .footer-social-row,
  html.light-mode .content-full .footer-social-row {
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .recaptcha-box {
    width: 100%;
    transform-origin: left top;
    overflow-x: auto;
  }
}

@media (max-width: 380px) {
  .footer-copyright,
  .content-full .footer-copyright,
  html.light-mode .footer-copyright,
  html.light-mode .content-full .footer-copyright {
    font-size: .58rem !important;
    gap: 7px !important;
  }

  .copyright-copy {
    max-width: calc(100vw - 86px);
  }

  .footer-social-block,
  .content-full .footer-social-block,
  html.light-mode .footer-social-block,
  html.light-mode .content-full .footer-social-block {
    top: 130px !important;
    right: 16px !important;
    width: 124px !important;
  }
}

/* Footer final alignment: site map and socials share the same row; copyright has no divider. */
.content-full .footer-main,
.footer-main,
html.light-mode .content-full .footer-main,
html.light-mode .footer-main {
  align-items: start !important;
}

@media (min-width: 701px) {
  .content-full .footer-main,
  .footer-main,
  html.light-mode .content-full .footer-main,
  html.light-mode .footer-main {
    grid-template-columns: minmax(120px, .55fr) minmax(220px, .7fr) minmax(220px, .7fr) !important;
    gap: clamp(44px, 8vw, 130px) !important;
  }

  .footer-nav-block,
  .footer-social-block,
  .content-full .footer-nav-block,
  .content-full .footer-social-block,
  html.light-mode .footer-nav-block,
  html.light-mode .footer-social-block {
    align-self: start !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 700px) {
  .content-full .footer-main,
  .footer-main,
  html.light-mode .content-full .footer-main,
  html.light-mode .footer-main {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(118px, .9fr) !important;
    column-gap: 26px !important;
    row-gap: 22px !important;
  }

  .footer-brand,
  .content-full .footer-brand,
  html.light-mode .footer-brand {
    grid-column: 1 / -1 !important;
  }

  .footer-nav-block,
  .content-full .footer-nav-block,
  html.light-mode .footer-nav-block,
  html.light-mode .content-full .footer-nav-block {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: start !important;
  }

  .footer-social-block,
  .content-full .footer-social-block,
  html.light-mode .footer-social-block,
  html.light-mode .content-full .footer-social-block {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: auto !important;
    align-self: start !important;
    justify-self: start !important;
    margin-top: 0 !important;
  }
}

.footer-copyright,
.content-full .footer-copyright,
html.light-mode .footer-copyright,
html.light-mode .content-full .footer-copyright {
  border-top: 0 !important;
}
