:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-muted: #f7f9fc;
  --border: #d6deea;
  --text: #172033;
  --muted: #64748b;
  --blue: #2457d6;
  --blue-dark: #1d45ad;
  --green: #16803c;
  --teal: #0f766e;
  --amber: #b45309;
  --red: #c62828;
  --nav: #172033;
  --nav-line: #2c374c;
  --radius: 8px;
  --shadow: 0 12px 34px rgba(23, 32, 51, 0.08);
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

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

button {
  border: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

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

.hidden {
  display: none !important;
}

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

.sidebar {
  background: var(--nav);
  color: #fff;
  padding: 24px 20px;
  min-height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--nav-line);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #eaf2ff;
  background: linear-gradient(145deg, #2457d6, #0f766e);
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 17px;
}

.brand span {
  display: block;
  color: #93a4bd;
  font-size: 12px;
  margin-top: 3px;
}

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

.nav-item {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  text-align: left;
  color: #d5deeb;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
}

.nav-item:hover,
.nav-item.is-active {
  color: #fff;
  background: #2457d6;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

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

.topbar h1,
.panel h2,
.login-box h1,
.scan-header h1,
.scan-state h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 28px;
}

.topbar p,
.panel p,
.login-box p,
.scan-header p,
.scan-state p {
  margin: 6px 0 0;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-pill,
.result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--teal);
  background: #ccfbf1;
  font-size: 13px;
  font-weight: 700;
}

.primary-button,
.secondary-button,
.ghost-button {
  height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.primary-button {
  color: #fff;
  background: var(--blue);
}

.primary-button:hover {
  background: var(--blue-dark);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active {
  transform: translateY(1px);
}

.secondary-button {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.danger-soft-button {
  color: #991b1b;
  background: #fff1f2;
  border-color: #fecdd3;
}

.ghost-button {
  color: var(--muted);
  background: transparent;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  min-height: 88px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
}

.stat-green {
  border-top-color: var(--green);
}

.stat-teal {
  border-top-color: var(--teal);
}

.stat-gray {
  border-top-color: #64748b;
}

.stat-red {
  border-top-color: var(--red);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.policy-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.policy-item {
  min-height: 74px;
  padding: 14px 16px;
  display: grid;
  align-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.policy-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.policy-item strong {
  font-size: 15px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-header {
  min-height: 70px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}

.panel h2 {
  font-size: 18px;
}

.helper-text,
.qr-grace-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.qr-grace-note {
  margin-top: -8px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.employee-table {
  min-width: 980px;
}

.records-table {
  min-width: 860px;
}

.compact-table {
  min-width: 560px;
}

.application-table {
  min-width: 720px;
}

.audit-table {
  min-width: 760px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: #f8fafc;
  font-weight: 700;
}

tbody tr:hover td {
  background: #fbfdff;
}

td.muted {
  color: var(--muted);
}

.muted-row td {
  color: var(--muted);
  background: var(--surface-muted);
}

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

.status-badge,
.pin-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-badge {
  color: #166534;
  background: #dcfce7;
}

.status-badge.is-inactive,
.status-badge.status-rejected,
.pin-status.is-missing {
  color: #991b1b;
  background: #fee2e2;
}

.status-badge.status-pending {
  color: #92400e;
  background: #fef3c7;
}

.status-badge.status-approved {
  color: #166534;
  background: #dcfce7;
}

.pin-status {
  color: #1d4ed8;
  background: #dbeafe;
}

.employee-form-message {
  margin: -6px 20px 14px;
}

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

.sub-panel {
  margin-top: 16px;
}

.qr-mini {
  padding: 18px 20px 22px;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.qr-mini img,
.qr-stage img {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.qr-mini strong {
  display: block;
  font-size: 34px;
}

.qr-mini span {
  display: block;
  color: var(--muted);
  margin-bottom: 14px;
}

.qr-panel {
  max-width: none;
}

.qr-stage {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(260px, 1fr);
  gap: 28px;
  align-items: center;
}

.qr-grid .qr-stage {
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: 22px;
}

.qr-info {
  display: grid;
  gap: 14px;
}

.qr-info .label {
  color: var(--muted);
  font-size: 13px;
}

.qr-info strong {
  font-size: 54px;
}

.qr-grid .qr-info strong {
  font-size: 42px;
}

.fixed-qr-title {
  font-size: 32px !important;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  color: var(--text);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.45;
}

.inline-form,
.settings-grid,
.employee-form {
  padding: 18px 20px;
  display: grid;
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid var(--border);
}

.inline-form {
  grid-template-columns: minmax(160px, 1fr) 180px 120px 108px;
}

.settings-grid {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
}

.password-settings {
  border-top: 1px solid var(--border);
}

.settings-note {
  min-height: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 13px;
}

.settings-note strong {
  color: var(--text);
  font-size: 14px;
}

.employee-form {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.employee-note-field {
  grid-column: span 3;
}

.work-types-field {
  grid-column: span 3;
  display: grid;
  gap: 8px;
}

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

.work-type-editor {
  display: grid;
  gap: 8px;
}

.work-type-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px 120px auto;
  gap: 8px;
  align-items: end;
}

.work-type-row input {
  min-width: 0;
}

.compact {
  width: fit-content;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.form-actions {
  display: flex;
  align-items: end;
  gap: 8px;
  grid-column: span 2;
}

.login-panel {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
}

.login-box {
  width: min(420px, 100%);
  padding: 28px;
  display: grid;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-message {
  min-height: 20px;
  color: var(--red);
  font-size: 13px;
}

.form-message.is-success {
  color: var(--green);
}

.scan-shell {
  min-height: 100vh;
  padding: 18px;
  display: grid;
  place-items: center;
  background: #eef2f6;
}

.scan-card {
  width: min(440px, 100%);
  min-height: 620px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(23, 32, 51, 0.14);
}

.scan-header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.scan-header h1 {
  font-size: 22px;
}

.scan-state {
  padding-top: 28px;
  display: grid;
  gap: 16px;
}

.scan-state h2 {
  font-size: 25px;
}

.full-button {
  width: 100%;
  height: 50px;
}

.scan-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.scan-actions .primary-button,
.scan-actions .secondary-button {
  font-weight: 800;
}

.scan-actions .primary-button {
  background: var(--green);
}

.scan-actions .primary-button:hover {
  background: #126c33;
}

.inline-link-button {
  width: fit-content;
  height: auto;
  padding: 0;
  color: var(--blue);
}

.registration-card {
  border-top: 1px solid var(--border);
}

.pulse {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: #dbeafe;
  border: 8px solid #bfdbfe;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.26);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 24px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.result-badge {
  width: fit-content;
}

.result-badge.danger {
  color: #991b1b;
  background: #fee2e2;
}

.result-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.result-grid div {
  padding: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.result-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.result-grid dd {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    padding: 14px;
  }

  .brand {
    padding-bottom: 14px;
  }

  .nav {
    display: flex;
    overflow-x: auto;
    margin-top: 14px;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
  }

  .workspace {
    padding: 18px;
  }

  .topbar,
  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .stat-grid,
  .dashboard-grid,
  .policy-strip,
  .qr-grid,
  .qr-stage,
  .inline-form,
  .settings-grid,
  .employee-form {
    grid-template-columns: 1fr;
  }

  .employee-note-field,
  .work-types-field,
  .form-actions {
    grid-column: auto;
  }

  .work-type-row {
    grid-template-columns: 1fr;
  }

  .qr-stage {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .scan-shell {
    padding: 0;
    place-items: stretch;
  }

  .scan-card {
    min-height: 100vh;
    border-radius: 0;
    border: 0;
  }

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

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

.marketing-shell {
  color: #101827;
  background: #ffffff;
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

.marketing-shell a {
  color: inherit;
  text-decoration: none;
}

.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(14px);
}

.marketing-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}

.marketing-logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #111827;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.marketing-links,
.marketing-actions,
.language-switcher,
.hero-actions {
  display: flex;
  align-items: center;
}

.marketing-links {
  gap: 26px;
  color: #374151;
  font-size: 15px;
  font-weight: 700;
}

.marketing-links a:hover {
  color: #111827;
}

.marketing-actions {
  gap: 10px;
}

.language-switcher {
  position: relative;
}

.language-current {
  min-height: 38px;
  min-width: 118px;
  padding: 0 12px 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.language-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: translateY(-2px) rotate(45deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 154px;
  padding: 6px;
  display: none;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.14);
}

.language-dropdown.is-open .language-menu {
  display: grid;
}

.language-menu a {
  min-height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  color: #374151;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
}

.language-menu a.is-active,
.language-menu a:hover {
  color: #111827;
  background: #f3f4f6;
}

.account-dropdown {
  position: relative;
  display: none;
}

.account-dropdown.is-logged-in {
  display: flex;
}

.account-dropdown.is-logged-in + .marketing-login {
  display: none;
}

.account-trigger {
  min-height: 38px;
  padding: 0 6px 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.account-trigger:hover {
  border-color: #111827;
}

.account-avatar-small {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

.account-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.2s ease;
}

.account-dropdown.is-open .account-caret {
  transform: translateY(1px) rotate(-135deg);
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 220px;
  padding: 6px;
  display: none;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.16);
}

.account-dropdown.is-open .account-menu {
  display: block;
}

.account-menu-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 8px 8px;
}

.account-menu-header strong {
  display: block;
  color: #111827;
  font-size: 14px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu-header span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

.account-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-menu-divider {
  height: 1px;
  margin: 4px 8px;
  background: #e5e7eb;
}

.account-menu-item {
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background-color 0.12s ease;
}

.account-menu-item:hover {
  color: #111827;
  background: #f3f4f6;
}

.account-menu-icon {
  width: 20px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.account-menu-logout {
  color: #991b1b;
}

.account-menu-logout:hover {
  color: #7f1d1d;
  background: #fef2f2;
}

.marketing-login,
.marketing-cta,
.marketing-secondary {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-weight: 900;
  white-space: nowrap;
}

.marketing-login,
.marketing-secondary {
  color: #111827;
  background: #ffffff;
  border: 1px solid #d1d5db;
}

.marketing-cta {
  color: #ffffff;
  background: #1f6feb;
  border: 1px solid #1f6feb;
}

.marketing-cta:hover {
  background: #1857bc;
}

.marketing-secondary:hover,
.marketing-login:hover {
  border-color: #111827;
}

.marketing-cta.large,
.marketing-secondary.large {
  min-height: 50px;
  padding-inline: 22px;
  font-size: 16px;
}

.marketing-hero {
  position: relative;
  min-height: min(760px, calc(100vh - 68px));
  padding: clamp(76px, 10vw, 128px) clamp(18px, 6vw, 92px) 76px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  max-width: 780px;
  color: #030712;
  font-size: clamp(56px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

.product-hero .hero-content h1 {
  font-size: clamp(48px, 7vw, 92px);
}

.hero-content p {
  max-width: 650px;
  margin: 26px 0 0;
  color: #374151;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.55;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-metrics {
  width: min(620px, 100%);
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.hero-metrics dt {
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
}

.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-gridline {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(#e5e7eb 1px, transparent 1px),
    linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-device,
.attendance-board,
.qr-ticket {
  position: absolute;
  background: #ffffff;
  border: 1px solid #d8dee8;
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.16);
}

.hero-device-main {
  right: clamp(-160px, -8vw, -40px);
  bottom: 52px;
  width: min(720px, 58vw);
  height: 430px;
  border-radius: 18px;
  transform: rotate(-4deg);
}

.device-topbar {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-bottom: 1px solid #e5e7eb;
}

.device-topbar span {
  width: 10px;
  height: 10px;
  background: #9ca3af;
  border-radius: 999px;
}

.device-content {
  height: calc(100% - 48px);
  display: grid;
  grid-template-columns: 92px 1fr;
}

.mini-sidebar {
  background: #111827;
}

.mini-dashboard {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.mini-chart {
  min-height: 176px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 12px;
  background: #eef2ff;
  border-radius: 10px;
}

.mini-chart span {
  display: block;
  background: #1f6feb;
  border-radius: 8px 8px 3px 3px;
}

.mini-chart .bar-38 {
  height: 38%;
}

.mini-chart .bar-46 {
  height: 46%;
}

.mini-chart .bar-58 {
  height: 58%;
}

.mini-chart .bar-72 {
  height: 72%;
}

.mini-chart .bar-84 {
  height: 84%;
}

.mini-chart span:nth-child(2) {
  background: #0f766e;
}

.mini-chart span:nth-child(4) {
  background: #f59e0b;
}

.mini-table {
  display: grid;
  gap: 10px;
}

.mini-table span {
  height: 28px;
  background: #f3f4f6;
  border-radius: 7px;
}

.hero-device-phone {
  right: clamp(40px, 13vw, 240px);
  top: 104px;
  width: 164px;
  height: 256px;
  padding: 28px 18px;
  border-radius: 30px;
  transform: rotate(6deg);
}

.phone-notch {
  width: 48px;
  height: 6px;
  margin: 0 auto 28px;
  background: #111827;
  border-radius: 999px;
}

.qr-mark {
  width: 98px;
  height: 98px;
  margin: 0 auto 18px;
  background:
    conic-gradient(from 90deg, #111827 0 25%, transparent 0 50%, #111827 0 75%, transparent 0) 0 0 / 32px 32px,
    #ffffff;
  border: 10px solid #f3f4f6;
  border-radius: 8px;
}

.hero-device-phone span {
  display: block;
  color: #2563eb;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.marketing-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.section-heading h2,
.pricing-band h2,
.final-cta h2,
.privacy-band h2 {
  margin: 0;
  color: #030712;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.pricing-band p,
.final-cta p,
.privacy-band p {
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.65;
}

.product-grid,
.feature-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card,
.feature-grid article,
.faq-grid article,
.price-card,
.workflow-panel,
.step-list li {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 14px 44px rgba(17, 24, 39, 0.06);
}

.product-card {
  min-height: 258px;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.product-card.is-ready {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.product-badge {
  width: fit-content;
  padding: 6px 9px;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.product-badge.muted {
  color: #6b7280;
  background: #f3f4f6;
}

.product-card h3,
.feature-grid strong,
.faq-grid h3 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  letter-spacing: 0;
}

.product-card p,
.feature-grid p,
.faq-grid p,
.step-list span,
.workflow-panel p {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.62;
}

.product-card a {
  margin-top: auto;
  color: #1d4ed8;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 42px;
  align-items: start;
}

.step-list,
.workflow-panel {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.step-list li {
  min-height: 92px;
  padding: 20px;
  display: grid;
  gap: 8px;
}

.step-list strong,
.workflow-panel strong {
  color: #111827;
  font-size: 18px;
}

.pricing-band,
.privacy-band,
.final-cta {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 28px;
  padding: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 32px;
  align-items: center;
  background: #101827;
  border-radius: 16px;
  color: #ffffff;
}

.privacy-band {
  grid-template-columns: minmax(0, 1fr);
  background: #0f766e;
}

.pricing-band .eyebrow,
.privacy-band .eyebrow,
.final-cta .eyebrow {
  color: #93c5fd;
}

.pricing-band h2,
.privacy-band h2,
.final-cta h2,
.pricing-band p,
.privacy-band p,
.final-cta p {
  color: #ffffff;
}

.price-card {
  padding: 24px;
  color: #111827;
}

.price-card span {
  color: #1d4ed8;
  font-weight: 900;
}

.price-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.price-card p {
  margin: 12px 0 22px;
  color: #4b5563;
}

.feature-grid article,
.faq-grid article {
  padding: 24px;
}

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

.feature-grid article {
  min-height: 184px;
  display: grid;
  gap: 14px;
}

.final-cta {
  grid-template-columns: 1fr;
  text-align: center;
}

.final-cta .hero-actions {
  justify-content: center;
}

.marketing-footer {
  min-height: 116px;
  padding: 30px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #374151;
  border-top: 1px solid #e5e7eb;
}

.marketing-footer strong {
  color: #111827;
  font-size: 18px;
}

.marketing-footer nav {
  display: flex;
  gap: 14px;
  font-weight: 800;
}

body.is-login-modal-open {
  overflow: hidden;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 24px;
}

.login-modal.is-open {
  display: grid;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.48);
  backdrop-filter: blur(6px);
}

.login-modal-card {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(432px, calc(100vw - 48px));
  max-width: 100%;
  padding: 34px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(17, 24, 39, 0.28);
}

.login-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #9ca3af;
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.login-modal-close:hover {
  color: #111827;
  background: #f3f4f6;
}

.login-modal-heading {
  padding-right: 28px;
  text-align: center;
}

.login-modal-heading h2 {
  margin: 4px 0 10px;
  color: #111827;
  font-size: 30px;
  line-height: 1.15;
}

.login-modal-heading p:not(.eyebrow) {
  margin: 0 auto;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.65;
}

.social-login-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.social-login-button {
  min-height: 54px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

.social-login-button > span {
  text-align: center;
}

.social-login-button small {
  padding: 4px 7px;
  color: inherit;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.social-login-button.google {
  color: #1f2937;
  background: #ffffff;
  border-color: #d1d5db;
}

.social-login-button.kakao {
  color: #191600;
  background: #fee500;
}

.social-login-button.naver {
  color: #ffffff;
  background: #03c75a;
}

.social-login-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.14);
}

.social-login-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.social-login-button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.social-logo {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 900;
}

.provider-logo {
  width: 24px;
  height: 24px;
  justify-self: center;
}

.google-logo {
  color: #4285f4;
  background:
    linear-gradient(90deg, #4285f4 0 25%, #34a853 25% 50%, #fbbc05 50% 75%, #ea4335 75% 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kakao-logo {
  position: relative;
}

.kakao-logo::before {
  content: "";
  width: 20px;
  height: 16px;
  background: #191600;
  border-radius: 999px;
}

.kakao-logo::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  background: #191600;
  transform: rotate(45deg);
}

.naver-logo {
  color: #03c75a;
  background: #ffffff;
  border-radius: 4px;
  font-family: Arial, sans-serif;
}

.login-modal-note {
  min-height: 42px;
  margin: 18px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.manager-login-help {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
}

.login-manager-link {
  min-height: 46px;
  margin-top: 14px;
  display: grid;
  place-items: center;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-weight: 900;
}

.account-panel {
  display: grid;
  gap: 18px;
}

.account-summary {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-right: 30px;
}

.account-summary h2 {
  margin: 2px 0 4px;
  color: #111827;
  font-size: 25px;
  line-height: 1.15;
}

.account-summary span {
  color: #6b7280;
  font-size: 14px;
  word-break: break-all;
}

.account-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
  border-radius: 999px;
  font-weight: 900;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-section,
.store-create-form {
  padding: 16px;
  display: grid;
  gap: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

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

.account-section-title strong {
  color: #111827;
  font-size: 15px;
}

.account-section-title span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
}

.empty-account-copy {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

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

.owned-store-button {
  min-height: 58px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
}

.owned-store-button strong,
.owned-store-button em {
  display: block;
}

.owned-store-button strong {
  color: #111827;
  font-size: 15px;
}

.owned-store-button em {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.owned-store-button b {
  color: #1d4ed8;
  font-size: 13px;
}

.store-create-form label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.store-create-form input {
  min-height: 42px;
  padding: 0 12px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  font: inherit;
}

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

.store-create-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.compact {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 13px;
}

.account-logout-button {
  width: 100%;
  color: #374151;
  background: #ffffff;
  border-color: #d1d5db;
  cursor: pointer;
}

.account-main {
  width: min(1380px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.account-page-shell {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.account-page-layout-standalone {
  min-height: calc(100vh - 210px);
}

.account-page-sidebar-standalone {
  background: #fcfcfd;
  padding: 28px 0;
}

.account-page-user-standalone {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 0 24px 24px;
  margin-bottom: 12px;
}

.account-page-avatar-large {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.account-page-id {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.account-page-content-standalone {
  padding: 28px 30px 34px;
  background: #ffffff;
}

.account-page-feedback {
  min-height: 22px;
  margin: 16px 2px 0;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
}

.attendance-board {
  right: clamp(-90px, -4vw, -28px);
  bottom: 68px;
  width: min(650px, 54vw);
  padding: 22px;
  border-radius: 18px;
  transform: rotate(3deg);
}

.board-header,
.attendance-row {
  display: grid;
  grid-template-columns: 1fr 96px 96px;
  align-items: center;
  gap: 12px;
}

.board-header {
  margin-bottom: 16px;
  color: #6b7280;
  font-size: 13px;
}

.board-header strong {
  color: #111827;
  font-size: 24px;
}

.attendance-row {
  min-height: 60px;
  padding: 0 16px;
  margin-top: 10px;
  background: #f9fafb;
  border: 1px solid #eef2f7;
  border-radius: 10px;
}

.attendance-row strong {
  color: #111827;
}

.attendance-row em {
  width: fit-content;
  padding: 5px 8px;
  color: #166534;
  background: #dcfce7;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.attendance-row.muted em {
  color: #991b1b;
  background: #fee2e2;
}

.qr-ticket {
  right: clamp(340px, 40vw, 640px);
  top: 112px;
  width: 286px;
  padding: 24px;
  border-radius: 16px;
  transform: none;
}

.qr-ticket .qr-mark {
  width: 112px;
  height: 112px;
}

.public-fixed-qr {
  width: 126px;
  height: 126px;
  display: block;
  margin: 0 auto 16px;
  padding: 10px;
  background: #ffffff;
  border: 10px solid #f3f4f6;
  border-radius: 12px;
}

.public-fixed-qr.is-large {
  width: 218px;
  height: 218px;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  border-radius: 4px;
}

.demo-static-qr {
  width: 230px;
  height: 230px;
  display: block;
  margin: 0 auto 14px;
  object-fit: contain;
  background: #ffffff;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.qr-ticket strong,
.qr-ticket span {
  display: block;
  text-align: center;
}

.qr-ticket strong {
  color: #111827;
}

.qr-ticket span {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.developer-note-section {
  padding-top: 18px;
}

.developer-card {
  padding: clamp(26px, 5vw, 48px);
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 18px 54px rgba(17, 24, 39, 0.08);
}

.developer-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.developer-avatar {
  position: relative;
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
  border-radius: 999px;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.16);
}

.developer-avatar span {
  font-size: 18px;
  font-weight: 900;
}

.developer-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.developer-profile strong,
.developer-profile span {
  display: block;
}

.developer-profile strong {
  color: #111827;
  font-size: 20px;
}

.developer-profile span {
  margin-top: 5px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 800;
}

.developer-card blockquote {
  margin: 0;
  color: #1f2937;
  font-size: clamp(18px, 2.1vw, 25px);
  font-weight: 800;
  line-height: 1.62;
  letter-spacing: 0;
}

.workflow-panel {
  padding: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-panel div {
  min-height: 158px;
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: #f9fafb;
  border: 1px solid #eef2f7;
  border-radius: 8px;
}

.workflow-panel span {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .marketing-links {
    display: none;
  }

  .hero-device-main,
  .attendance-board {
    opacity: 0.48;
    width: 680px;
    right: -260px;
  }

  .hero-device-phone,
  .qr-ticket {
    opacity: 0.62;
    right: 120px;
  }

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

@media (max-width: 760px) {
  .marketing-nav {
    position: static;
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .marketing-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .language-switcher {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .language-current {
    width: 100%;
  }

  .language-menu {
    left: 0;
    right: 0;
  }

  .marketing-hero {
    min-height: auto;
    padding: 72px 18px 44px;
  }

  .hero-content h1,
  .product-hero .hero-content h1 {
    font-size: clamp(48px, 18vw, 76px);
  }

  .hero-content p {
    font-size: 17px;
  }

  .hero-device-main,
  .hero-device-phone,
  .attendance-board,
  .qr-ticket {
    display: none;
  }

  .hero-metrics,
  .product-grid,
  .feature-grid,
  .faq-grid,
  .split-section,
  .pricing-band,
  .workflow-panel {
    grid-template-columns: 1fr;
  }

  .developer-card {
    grid-template-columns: 1fr;
  }

  .login-modal {
    padding: 16px;
    align-items: end;
  }

  .login-modal-card {
    width: min(432px, calc(100vw - 52px));
    padding: 28px 18px 20px;
    border-radius: 16px;
  }

  .login-modal-heading {
    padding-right: 24px;
  }

  .login-modal-heading h2 {
    font-size: 26px;
  }

  .account-summary {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .account-avatar {
    width: 48px;
    height: 48px;
  }

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

  .store-create-actions {
    justify-content: stretch;
  }

  .store-create-actions button {
    flex: 1 1 160px;
  }

  .social-login-button {
    min-height: 52px;
    font-size: 15px;
  }

  .marketing-section {
    width: min(100% - 28px, 1180px);
    padding: 58px 0;
  }

  .pricing-band,
  .privacy-band,
  .final-cta {
    width: min(100% - 28px, 1180px);
    padding: 34px 22px;
  }

  .marketing-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===== 계정 페이지 모달 ===== */
.account-page-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.account-page-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.account-page-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 51, 0.5);
}

.account-page-card {
  position: relative;
  width: min(820px, calc(100vw - 32px));
  height: min(580px, calc(100vh - 48px));
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(23, 32, 51, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.account-page-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--surface-muted);
  border-radius: 50%;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  border: 0;
}

.account-page-close:hover {
  background: var(--border);
  color: var(--text);
}

.account-page-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  flex: 1;
  overflow: hidden;
}

.account-page-sidebar {
  background: var(--surface-muted);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.account-page-user {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 0 16px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.account-page-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.account-page-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-page-user strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-page-user span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-page-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
  flex: 1;
}

.account-page-nav-bottom {
  padding: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.account-page-nav-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  background: transparent;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  border: 0;
}

.account-page-nav-item:hover {
  background: var(--border);
}

.account-page-nav-item.is-active {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

.account-page-logout {
  color: var(--red);
}

.account-page-logout:hover {
  background: #fee2e2;
}

.account-page-content {
  padding: 24px;
  overflow-y: auto;
}

.account-page-profile {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.account-page-profile-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-page-profile-img,
.account-page-profile-initials {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.account-page-profile-initials {
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.account-page-edit-avatar {
  padding: 6px 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.account-page-edit-avatar:hover {
  background: var(--border);
  color: var(--text);
}

.account-page-profile-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-page-profile-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-page-profile-fields label span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.account-page-profile-fields input,
.account-page-profile-fields textarea,
.account-page-profile-fields select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--surface-muted);
  color: var(--text);
}

.account-page-profile-fields input:read-only,
.account-page-profile-fields textarea:read-only {
  cursor: default;
}

.account-page-panel {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.account-page-panel-head {
  min-height: 66px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.account-page-panel-head h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
}

.account-page-profile-sheet {
  gap: 0;
}

.account-page-row {
  min-height: 124px;
  padding: 0 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.account-page-row:last-child {
  border-bottom: 0;
}

.account-page-row-avatar {
  min-height: 142px;
}

.account-page-row-main {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.account-page-row-label {
  color: #a3a3a3;
  font-size: 14px;
  font-weight: 700;
}

.account-page-row-main strong {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.account-page-avatar-copy {
  display: grid;
  gap: 4px;
}

.account-page-avatar-copy span {
  color: #6b7280;
  font-size: 14px;
}

.account-page-inline-button {
  min-width: 112px;
  min-height: 38px;
  padding: 0 16px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #111827;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.account-page-inline-button:hover {
  background: #f9fafb;
}

.account-page-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.account-page-empty.is-wide {
  min-height: 300px;
}

.account-page-empty p {
  margin: 0 0 16px;
}

.license-input-group {
  display: flex;
  gap: 8px;
  max-width: 360px;
}

.license-key-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
}

.owned-store-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.owned-store-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.owned-store-button:hover {
  background: var(--border);
}

.owned-store-button span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.owned-store-button strong {
  font-size: 14px;
}

.owned-store-button em {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owned-store-button b {
  font-size: 13px;
  color: var(--blue);
  flex-shrink: 0;
}

.empty-account-copy {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.account-page-stores-grid {
  padding: 26px;
  display: grid;
  gap: 18px;
}

.account-page-store-card,
.account-page-limit-card,
.account-page-store-form {
  padding: 20px;
  display: grid;
  gap: 14px;
  background: #fbfdff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.account-page-limit-card strong {
  color: #111827;
  font-size: 16px;
}

.account-page-limit-card p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .account-main {
    width: 100%;
    padding: 0 0 40px;
  }

  .account-page-shell {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .account-page-card {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

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

  .account-page-sidebar {
    display: none;
  }

  .account-page-content {
    padding: 16px;
  }

  .account-page-content-standalone {
    padding: 16px;
  }

  .account-page-row {
    min-height: auto;
    padding: 20px 16px;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .account-page-inline-button {
    min-width: 100%;
  }

  .account-page-panel-head,
  .account-page-stores-grid {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.account-page-inline-button.is-static {
  cursor: default;
  opacity: .8;
}

.owned-store-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.owned-store-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.developer-shell {
  min-height: 100vh;
  background: #f6f8fc;
  color: #0f172a;
}

.developer-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: #fff;
  border-bottom: 1px solid #dbe1ea;
}

.developer-topbar div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.developer-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.developer-login-panel {
  display: flex;
  justify-content: center;
  padding-top: 60px;
}

.developer-login-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid #dbe1ea;
  border-radius: 14px;
  padding: 28px;
  display: grid;
  gap: 16px;
}

.developer-login-card label,
.developer-form-grid label {
  display: grid;
  gap: 6px;
}

.developer-login-card input,
.developer-form-grid input,
.developer-form-grid select {
  height: 44px;
  border: 1px solid #cdd5e1;
  border-radius: 10px;
  padding: 0 12px;
}

.developer-app.hidden,
.developer-login-panel.hidden {
  display: none;
}

.developer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.developer-stat-grid,
.developer-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.developer-stat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.developer-stat-card {
  background: #fff;
  border: 1px solid #dbe1ea;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  gap: 8px;
}

.developer-stat-card span {
  color: #64748b;
  font-size: 13px;
}

.developer-stat-card strong {
  font-size: 28px;
}

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

.developer-form-wide {
  grid-column: 1 / -1;
}

.developer-log-list {
  display: grid;
  gap: 10px;
}

.developer-log-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #dbe1ea;
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 960px) {
  .developer-stat-grid,
  .developer-grid,
  .developer-form-grid {
    grid-template-columns: 1fr;
  }

  .owned-store-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
