* {
  box-sizing: border-box;
}

:root {
  font-family: Verdana, Arial, sans-serif;
  color: #111827;
  background: #f6f8fb;
}

html {
  background: #f6f8fb;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f6f8fb;
  color: #111827;
}

a {
  color: inherit;
}

.app-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px;
}

.card {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.logo-wrap {
  text-align: center;
  padding: 20px 0 10px;
  margin-bottom: 4px;
}

.pulsar-logo {
  display: block;
  width: 170px;
  max-width: 58%;
  height: auto;
  margin: 0 auto;
}

.logo-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
  color: #111827;
}

.subtle {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

label {
  display: block;
  font-size: 13px;
  color: #374151;
  margin: 16px 0 7px;
  font-weight: 700;
}

input, select, textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid #cfd6df;
  background: #ffffff;
  color: #111827;
  padding: 12px 14px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 16px;
}

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(0, 87, 166, 0.16);
  border-color: #0057a6;
}

select option {
  color: #111827;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  border: 0;
  margin-top: 18px;
  background: #0057a6;
  color: #ffffff;
  font-family: Verdana, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn.secondary {
  background: #eef2f7;
  color: #111827;
  border: 1px solid #d8dee8;
}

.status {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  margin-top: 10px;
}

.status.pending {
  background: #fff4cc;
  color: #7a5a00;
}

.status.approved {
  background: #daf7e8;
  color: #08613b;
}

.status.blocked {
  background: #ffe0e4;
  color: #9f1239;
}

.grid {
  display: grid;
  gap: 12px;
}

.notice {
  background: #f8fafc;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 12px 14px;
  margin-top: 14px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 13px;
  color: #111827;
}

.admin-table th,
.admin-table td {
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 7px;
  vertical-align: top;
}

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

.admin-actions button,
.admin-actions a {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  background: #0057a6;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.admin-actions .danger {
  background: #b91c1c;
}

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

.small-link {
  color: #0057a6;
  font-size: 13px;
  text-decoration: none;
}

@media (max-width: 640px) {
  .app-shell {
    padding: 14px;
  }

  .logo-title {
    font-size: 25px;
  }

  .pulsar-logo {
    width: 145px;
    max-width: 56%;
  }

  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table th,
  .admin-table td,
  .admin-table tr {
    display: block;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tr {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 12px;
    background: #ffffff;
  }

  .admin-table td {
    border-bottom: 0;
    padding: 6px 0;
  }
}


/* Package 03: Save workflow */
.step {
  display: none;
}

.step.active {
  display: block;
}

.step-title {
  font-size: 22px;
  font-weight: 700;
  margin: 10px 0 8px;
  color: #111827;
}

.step-counter {
  color: #667085;
  font-size: 13px;
  margin-bottom: 14px;
}

.nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.btn.back {
  background: #eef2f7;
  color: #111827;
  border: 1px solid #d8dee8;
}

.btn.next {
  margin-top: 0;
}

.media-choice {
  display: grid;
  gap: 12px;
}

.file-hint {
  font-size: 12px;
  color: #667085;
  margin-top: 6px;
}

.sync-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #08613b;
  background: #daf7e8;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  margin-top: 10px;
}

.required-note {
  color: #9f1239;
  font-size: 12px;
  margin-top: 6px;
}

@media (max-width: 640px) {
  .step-title {
    font-size: 20px;
  }

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


/* UX redesign */

.step {
  display:none;
}

.step.active {
  display:block;
}

.step-progress {
  font-size:12px;
  color:#667085;
  margin-bottom:8px;
}

.step-title {
  font-size:24px;
  font-weight:700;
  margin-bottom:18px;
  color:#111827;
}

.metro-grid {
  display:grid;
  gap:14px;
}

.metro-card {
  border:1px solid #d8dee8;
  border-radius:22px;
  padding:20px;
  background:#ffffff;
  min-height:78px;
  display:flex;
  align-items:center;
  font-size:18px;
  font-weight:700;
}

.primary-bottom {
  position:sticky;
  bottom:0;
  padding-top:18px;
  background:linear-gradient(to top,#f6f8fb 70%,rgba(246,248,251,0));
}

.top-back {
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#667085;
  text-decoration:none;
  font-size:14px;
  margin-bottom:12px;
}

.upload-choice {
  display:grid;
  gap:14px;
}

.upload-box {
  border:2px dashed #cfd6df;
  border-radius:22px;
  padding:22px;
  background:#ffffff;
}

.upload-box input[type=file] {
  border:0;
  padding:0;
  min-height:auto;
}

.comment-box textarea {
  min-height:180px;
  font-size:17px;
}

@media (max-width:640px) {

  .step-title {
    font-size:22px;
  }

  .metro-card {
    min-height:72px;
    font-size:17px;
    border-radius:20px;
  }
}


.btn.loading {
  opacity: 0.72;
  pointer-events: none;
}


.uploading-overlay:not(.active) {
  display: none !important;
}

.uploading-overlay.active {
  display: flex !important;
}


/* Package 04: Search + entry cards */

.search-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.result-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.entry-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 12px;
  text-decoration: none;
  color: #111827;
  box-shadow: 0 8px 22px rgba(15,23,42,0.06);
}

.entry-thumb {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  object-fit: cover;
  background: #eef2f7;
  border: 1px solid #e5e7eb;
}

.entry-no-thumb {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  background: #eef2f7;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#667085;
  font-size:12px;
  text-align:center;
}

.entry-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}

.entry-meta {
  color: #667085;
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.45;
}

.entry-comment {
  color: #111827;
  font-size: 13px;
  margin-top: 7px;
  line-height: 1.45;
}

.pin-btn {
  display: inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid #d8dee8;
  background: #ffffff;
  color: #111827;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration:none;
  cursor:pointer;
}

.pin-btn.active {
  background: #eef6ff;
  color: #0057a6;
  border-color: #b7d7ff;
}

.detail-photo {
  width: 100%;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  margin-top: 12px;
  background: #f8fafc;
}

.detail-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.detail-label {
  font-size: 12px;
  color: #667085;
  font-weight: 700;
  margin-bottom: 6px;
}

@media (max-width:640px) {
  .entry-card {
    grid-template-columns: 92px 1fr;
    padding: 10px;
    gap: 12px;
  }

  .entry-thumb,
  .entry-no-thumb {
    width: 92px;
    height: 92px;
    border-radius: 16px;
  }
}


/* Package 04b: Search preview redesign */

.machine-overview {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.machine-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 16px;
  text-decoration: none;
  color: #111827;
  box-shadow: 0 8px 22px rgba(15,23,42,0.05);
}

.machine-chip strong {
  font-size: 16px;
}

.machine-chip span {
  color: #667085;
  font-size: 13px;
}

.search-empty-state {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #667085;
  line-height: 1.5;
}

.result-list.clean {
  gap: 16px;
}

.entry-card.clean-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
}

.entry-card-media {
  width: 100%;
  height: 210px;
  background: #eef2f7;
  display: block;
  object-fit: cover;
}

.entry-card-body {
  padding: 14px 16px 16px;
}

.entry-card-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.entry-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.entry-card-pin {
  font-size: 18px;
  min-width: 28px;
  text-align: right;
}

.entry-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.entry-tag {
  background: #eef2f7;
  color: #374151;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 12px;
}

.entry-card-comment {
  margin-top: 12px;
  color: #344054;
  font-size: 14px;
  line-height: 1.45;
}

.entry-card-date {
  margin-top: 10px;
  color: #667085;
  font-size: 12px;
}

@media (max-width:640px) {
  .entry-card-media {
    height: 185px;
  }

  .entry-card-title {
    font-size: 17px;
  }
}


/* Package 04c: Home button redesign */

.home-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f6fa;
  border: 1px solid #d8dee8;
  color: #111827;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15,23,42,0.04);
}

.home-pill:active {
  transform: scale(0.98);
}

.home-pill-icon {
  font-size: 15px;
  line-height: 1;
}


.save-home-row {
  display: flex !important;
  width: 100% !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin: 4px 0 14px !important;
}


/* Package 05: edit / delete */

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.action-row .pin-btn {
  min-width: 110px;
}



.danger-btn:active {
  transform: scale(0.98);
}

.edit-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}


/* Package 05c: forced delete button */
.danger-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 58px !important;
  border-radius: 18px !important;
  border: 0 !important;
  background: #d90429 !important;
  color: #ffffff !important;
  padding: 0 18px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  font-family: Verdana, Arial, sans-serif !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

.danger-btn:active {
  transform: scale(0.98);
}


/* Package 06: admin entries */

.admin-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f6fa;
  border: 1px solid #d8dee8;
  color: #111827;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.admin-nav a.active {
  background: #eef6ff;
  color: #0057a6;
  border-color: #b7d7ff;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef2f7;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.admin-badge.deleted {
  background: #ffe0e4;
  color: #9f1239;
}

.admin-badge.active-record {
  background: #daf7e8;
  color: #08613b;
}

.admin-filter {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.admin-entry-actions a,
.admin-entry-actions button {
  min-height: 38px;
  border-radius: 12px;
  border: 0;
  padding: 8px 12px;
  background: #0057a6;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.admin-entry-actions .danger {
  background: #d90429;
}

.admin-entry-actions .neutral {
  background: #eef2f7;
  color: #111827;
  border: 1px solid #d8dee8;
}


/* Package 06b: Admin hub */

.admin-hub-grid {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.admin-hub-card {
  display: block;
  text-decoration: none;
  color: #111827;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(15,23,42,0.06);
}

.admin-hub-card:active {
  transform: scale(0.99);
}

.admin-hub-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-hub-sub {
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.admin-hub-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.admin-hub-stats span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #eef2f7;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}


/* Package 06c: Admin layout redesign */

.admin-dashboard {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.admin-dashboard-card {
  display: block;
  text-decoration: none;
  color: #111827;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.admin-dashboard-card:active {
  transform: scale(0.99);
}

.admin-dashboard-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 7px;
}

.admin-dashboard-sub {
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.admin-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 16px;
}

.admin-stat {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 12px 10px;
  text-align: center;
}

.admin-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #0057a6;
}

.admin-stat-label {
  font-size: 11px;
  color: #667085;
  margin-top: 3px;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-device-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-device-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
}

.admin-device-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-device-name {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.admin-device-serial {
  color: #667085;
  font-size: 13px;
  margin-top: 4px;
}

.admin-device-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.admin-device-metric {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 10px;
}

.admin-device-metric strong {
  display: block;
  font-size: 17px;
  color: #111827;
}

.admin-device-metric span {
  display: block;
  font-size: 11px;
  color: #667085;
  margin-top: 3px;
}

.admin-device-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
}

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

.admin-device-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 13px;
  background: #0057a6;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.admin-device-actions button.danger {
  background: #d90429;
}

.admin-device-actions button.neutral {
  background: #eef2f7;
  color: #111827;
  border: 1px solid #d8dee8;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.admin-status-pill.pending {
  background: #fff4cc;
  color: #7a5a00;
}

.admin-status-pill.approved {
  background: #daf7e8;
  color: #08613b;
}

.admin-status-pill.blocked {
  background: #ffe0e4;
  color: #9f1239;
}

@media (max-width: 640px) {
  .admin-page-header {
    align-items: stretch;
  }

  .admin-stat-row,
  .admin-device-metrics {
    grid-template-columns: 1fr;
  }

  .admin-device-top {
    flex-direction: column;
  }
}


/* Package 07: share light */

.share-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.share-link-field {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #cfd6df;
  padding: 10px 12px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 14px;
  background: #ffffff;
  color: #111827;
}

.share-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.public-share-header {
  text-align: center;
  margin-bottom: 14px;
}

.public-share-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-top: 8px;
}

.public-share-note {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 6px;
}


/* Package 08: search autocomplete */
.autocomplete-wrap {
  position: relative;
}

.autocomplete-list {
  display: none;
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #ffffff;
  border: 1px solid #d8dee8;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15,23,42,0.12);
  overflow: hidden;
}

.autocomplete-list.active {
  display: block;
}

.autocomplete-item {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
  font-size: 14px;
}

.autocomplete-item:last-child {
  border-bottom: 0;
}

.autocomplete-item:active {
  background: #eef6ff;
}


/* Package 09: Legal pages */

.legal-footer {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  color: #667085;
  font-size: 12px;
}

.legal-footer a {
  color: #0057a6;
  text-decoration: none;
  font-weight: 700;
}

.legal-content {
  line-height: 1.58;
  color: #344054;
  font-size: 14px;
}

.legal-content h2 {
  color: #111827;
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content h3 {
  color: #111827;
  font-size: 16px;
  margin-top: 18px;
  margin-bottom: 6px;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-placeholder {
  background: #fff4cc;
  color: #7a5a00;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 700;
}

.legal-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.legal-checkbox input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.legal-checkbox label {
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  color: #344054;
}


/* Package 10: reporting */

.report-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 20px;
  background: #fff8f8;
  border: 1px solid #ffd4d4;
}

.report-box textarea {
  min-height: 110px;
}

.report-meta {
  margin-top: 10px;
  font-size: 12px;
  color: #667085;
  line-height: 1.45;
}

.report-success {
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #daf7e8;
  color: #08613b;
  font-weight: 700;
}






/* Package 13c: image view page link */
.image-view-link {
  display: block;
  text-decoration: none;
}
.image-view-link .detail-photo {
  cursor: zoom-in;
}


/* Package 15: search UX */

.search-quick-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.search-quick-chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #f3f6fa;
  border: 1px solid #d8dee8;
  color: #111827;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.recent-searches {
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}


/* Package 15d: network status only */

.net-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
  background: #daf7e8;
  color: #08613b;
  border: 1px solid #b7ebcf;
}

.net-status-pill.offline {
  background: #fff4cc;
  color: #7a5a00;
  border-color: #fde68a;
}


/* Package 15e: install helper */

.install-helper-card {
  margin-top: 16px;
  padding: 14px;
  border-radius: 22px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.install-helper-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.install-helper-text {
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
}

.install-steps {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.install-step {
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.install-step strong {
  color: #111827;
}

.install-small-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 13px;
  margin-top: 10px;
  background: #eef6ff;
  color: #0057a6;
  border: 1px solid #b7d7ff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.install-tip {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff4cc;
  border: 1px solid #fde68a;
  color: #7a5a00;
  font-size: 13px;
  line-height: 1.45;
}

.install-device-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #eef2f7;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}


/* Package 15g: force visible install CTA */

.install-main-cta {
  display: block;
  width: 100%;
  margin: 14px 0 16px;
  min-height: 58px;
  border-radius: 18px;
  background: #0057a6;
  color: #ffffff !important;
  text-decoration: none;
  font-family: Verdana, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  line-height: 58px;
  box-shadow: 0 10px 24px rgba(0,87,166,0.18);
}

.install-main-cta span {
  display: inline-block;
}


/* Package 15j: install CTA final */

.install-main-cta {
  display: block;
  width: 100%;
  margin: 14px 0 16px;
  min-height: 58px;
  border-radius: 18px;
  background: #0057a6;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: Verdana, Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  line-height: 58px;
  box-shadow: 0 10px 24px rgba(0,87,166,0.18);
}

.install-main-cta:hover,
.install-main-cta:visited,
.install-main-cta:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

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

.install-main-cta-wrap {
  margin: 16px 0 18px;
}


/* Install helper UX cleanup */
.install-recommendation {
  margin: 14px 0 16px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.install-recommendation-text {
  font-size: 13px;
  line-height: 1.35;
  color: #667085;
  margin-bottom: 10px;
}

.install-recommendation .install-main-cta {
  display: flex;
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  background: #0057a6;
  color: #ffffff !important;
  text-decoration: none !important;
  align-items: center;
  justify-content: center;
  font-family: Verdana, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0,87,166,0.16);
}

.install-main-cta-wrap,
.install-helper-inline {
  display: none !important;
}


/* Language switch â DE/EN */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.lang-switch a {
  color: #667085;
  text-decoration: none;
  font-weight: 400;
}

.lang-switch a.active {
  color: #0057a6;
  font-weight: 700;
}

.lang-switch span {
  color: #d0d5dd;
}

.cleanlog-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}


/* DE/EN header alignment fix */
.cleanlog-logo-lang-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.cleanlog-logo-lang-row .logo-wrap {
  margin-bottom: 0;
}

.cleanlog-logo-lang-row .lang-switch {
  margin-top: 4px;
  flex-shrink: 0;
}


/* DE/EN fix3: force language switch top-right */
.card {
  position: relative;
}

.lang-switch-top-right {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
}

.lang-switch-top-right .lang-switch {
  margin: 0;
}


/* DE/EN fix4: active language must be visibly bold */
.lang-switch a.active,
.lang-switch a[aria-current="true"] {
  color: #0057a6 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}


/* DE/EN Phase2 work pages */
.card { position: relative; }
.lang-switch-top-right {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
}
.lang-switch a.active,
.lang-switch a[aria-current="true"] {
  color: #0057a6 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}


/* DE/EN Phase2 Fix2: visible active language */
.lang-switch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.lang-switch a {
  color: #667085 !important;
  text-decoration: none !important;
  font-weight: 400 !important;
}

.lang-switch a.active,
.lang-switch a[aria-current="true"] {
  color: #0057a6 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

.lang-switch span {
  color: #d0d5dd !important;
}


/* DE/EN Phase2 Fix3: force active lang visible */
.lang-switch a.active,
.lang-switch a[aria-current="true"],
.lang-switch a[style*="font-weight:900"] {
  font-weight: 900 !important;
  color: #0057a6 !important;
}


/* Android/iPhone explicit camera/gallery picker */
.media-source-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 12px;
}

.media-source-btn {
  position: relative;
  min-height: 54px;
  border: 1px solid #d0d5dd;
  border-radius: 15px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
  font-family: Verdana, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #344054;
}

.media-source-btn.camera {
  border-color: #98a2b3;
}

.media-source-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 480px) {
  .media-source-actions {
    grid-template-columns: 1fr;
  }
}




/* CleanLog legal pages â unified EN/DE/SK/HU layout */
.legal-page .legal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin-bottom: 18px;
}

.legal-page .legal-header-row .logo-wrap {
  margin: 0;
  transform: none;
}

.legal-page .legal-header-row .pulsar-logo {
  display: block;
}

.legal-page .legal-lang-switch {
  flex: 0 0 auto;
  padding-top: 3px;
}

.legal-page .legal-lang-switch .lang-switch {
  position: static !important;
  margin: 0 !important;
}

.legal-page .legal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
}

.legal-page .legal-title-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.legal-page .legal-home-pill {
  flex: 0 0 auto;
}

.legal-page .legal-content {
  width: 100%;
  overflow-wrap: anywhere;
}

.legal-page .legal-content h2,
.legal-page .legal-content h3 {
  line-height: 1.3;
}

@media (max-width: 640px) {
  .legal-page .legal-header-row {
    margin-bottom: 16px;
  }

  .legal-page .legal-topbar {
    display: block;
    margin-bottom: 20px;
  }

  .legal-page .legal-title-wrap {
    padding-right: 0;
  }

  .legal-page .legal-home-pill {
    display: inline-flex;
    margin-top: 12px;
    max-width: 100%;
  }

  .legal-page .logo-title {
    padding-right: 0;
    overflow-wrap: anywhere;
  }

  .legal-page .legal-content {
    font-size: 14px;
    line-height: 1.55;
  }

  .legal-page .legal-content ul {
    padding-left: 20px;
  }
}



/* Legal pages use their own header layout and are not affected. */
.legal-page .legal-header-row .logo-wrap {
  margin-top: 0;
  transform: none;
}

