:root {
  --navy: #06265c;
  --blue: #1358db;
  --teal: #12c8c5;
  --text: #0d1b3d;
  --muted: #63708a;
  --border: #dfe7f3;
  --surface: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 70px rgba(15, 50, 100, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(20, 115, 230, 0.12), transparent 32%),
    radial-gradient(circle at 92% 90%, rgba(18, 200, 197, 0.22), transparent 35%),
    linear-gradient(135deg, #f9fbff 0%, #eef6ff 55%, #f7fbff 100%);
}

button, input { font: inherit; }

a { color: inherit; text-decoration: none; }

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(24px, 5vw, 72px);
  align-items: center;
}

.brand-panel { min-height: calc(100vh - clamp(48px, 10vw, 144px)); display: flex; align-items: center; }

.brand-content { width: 100%; max-width: 780px; }

.brand-top { display: inline-flex; align-items: center; margin-bottom: 64px; }

.brand-mini-logo { height: 46px; width: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(19, 88, 219, 0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  margin: 0 0 24px;
  letter-spacing: -0.06em;
  color: #061a41;
}

.hero-copy p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.75;
}

.hero-visual {
  position: relative;
  height: 330px;
  margin: 36px 0 28px;
}

.orb, .orbit, .hc-mark, .floating-card { position: absolute; }

.orb-one {
  inset: 46px auto auto 210px;
  width: 280px; height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18,200,197,0.18), transparent 70%);
  filter: blur(12px);
}

.orb-two {
  left: 80px; bottom: 22px;
  width: 470px; height: 120px;
  border-radius: 50%;
  background: rgba(19, 88, 219, 0.07);
  filter: blur(4px);
}

.orbit-one, .orbit-two {
  left: 160px; top: 72px;
  width: 440px; height: 150px;
  border: 1px dashed rgba(18, 200, 197, 0.35);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.orbit-two {
  left: 85px; top: 112px;
  width: 560px; height: 120px;
  border-color: rgba(19, 88, 219, 0.22);
  transform: rotate(-3deg);
}

.hc-mark {
  left: 260px;
  top: 62px;
  width: 240px;
  height: 175px;
  filter: drop-shadow(0 26px 30px rgba(10, 73, 160, 0.22));
}

.h-left, .h-right {
  position: absolute;
  width: 38px;
  height: 118px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--navy), var(--blue));
}

.h-left { left: 20px; top: 30px; }
.h-right { left: 84px; top: 30px; transform: rotate(90deg); height: 112px; }

.c-shape {
  position: absolute;
  left: 94px; top: 18px;
  width: 125px; height: 125px;
  border-radius: 50%;
  border: 38px solid transparent;
  border-top-color: var(--teal);
  border-left-color: #1597d5;
  border-bottom-color: var(--teal);
  transform: rotate(-45deg);
}

.hub-dot {
  position: absolute;
  left: 116px; top: 72px;
  width: 48px; height: 48px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 15px rgba(255,255,255,0.2);
}

.node, .node::after {
  position: absolute;
  content: '';
  border-radius: 50%;
}

.node-left { left: -12px; top: 86px; width: 34px; height: 34px; background: var(--blue); }
.node-right { right: -10px; top: 84px; width: 34px; height: 34px; background: var(--teal); }

.floating-card {
  width: 138px; height: 88px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  background: rgba(255,255,255,0.74);
  box-shadow: 0 18px 45px rgba(12, 55, 110, 0.12);
  backdrop-filter: blur(16px);
}

.card-chart { left: 24px; top: 54px; padding: 22px; }
.card-chart span:not(.chart-ring) { display: block; height: 7px; margin-left: 52px; margin-bottom: 10px; border-radius: 6px; background: #cbdaf0; }
.chart-ring { position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 8px solid #d7e7ff; border-left-color: var(--blue); border-bottom-color: var(--teal); }

.card-bars { left: 36px; bottom: 28px; display: flex; align-items: end; gap: 9px; padding: 20px 24px; }
.card-bars i { width: 13px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--teal), var(--blue)); opacity: .9; }
.card-bars i:nth-child(1) { height: 22px; } .card-bars i:nth-child(2) { height: 42px; } .card-bars i:nth-child(3) { height: 56px; } .card-bars i:nth-child(4) { height: 35px; }

.card-user { right: 30px; bottom: 44px; width: 68px; height: 68px; display: grid; place-items: center; }
.card-user span { width: 30px; height: 30px; border-radius: 50% 50% 45% 45%; background: linear-gradient(180deg, var(--teal), var(--blue)); }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 690px;
}

.features article {
  padding: 0 20px 0 0;
  border-right: 1px solid rgba(99, 112, 138, 0.16);
}
.features article:last-child { border-right: 0; }
.feature-icon { font-size: 1.7rem; color: var(--blue); margin-bottom: 12px; }
.features strong { display: block; margin-bottom: 8px; font-size: 0.96rem; }
.features p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

.login-panel { display: grid; place-items: center; }

.login-card {
  width: min(100%, 520px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.login-header { text-align: center; margin-bottom: 34px; }
.login-logo { height: 112px; width: auto; margin-bottom: 12px; }
.login-header p { margin: 0; color: var(--muted); line-height: 1.55; }

.login-form { display: grid; gap: 20px; }
.field-group label { display: block; margin-bottom: 9px; color: #1f2c4b; font-weight: 700; font-size: 0.9rem; }

.input-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.82);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.input-shell:focus-within {
  border-color: rgba(19, 88, 219, .55);
  box-shadow: 0 0 0 5px rgba(19, 88, 219, .09);
  background: #fff;
}

.input-shell svg { width: 21px; height: 21px; fill: none; stroke: #91a0b8; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.input-shell input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.input-shell input::placeholder { color: #96a2b8; }
.ghost-icon { border: 0; background: transparent; padding: 3px; cursor: pointer; display: grid; place-items: center; }

.form-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 0.9rem; }
.checkbox-line { display: inline-flex; align-items: center; gap: 9px; color: #30405f; }
.checkbox-line input { width: 17px; height: 17px; accent-color: var(--blue); }
.link { color: var(--blue); font-weight: 700; }
.link:hover { text-decoration: underline; }

.primary-button, .secondary-button {
  min-height: 56px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #0746c8);
  box-shadow: 0 16px 32px rgba(19, 88, 219, .25);
}
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.primary-button:active, .secondary-button:active { transform: translateY(0); }

.divider { display: flex; align-items: center; gap: 14px; color: #98a3b6; font-size: 0.88rem; }
.divider::before, .divider::after { content: ''; height: 1px; flex: 1; background: var(--border); }

.secondary-button {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.82);
  color: #202b42;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.google-mark { color: #4285f4; font-weight: 900; font-size: 1.05rem; }
.create-account { margin: 2px 0 0; text-align: center; color: var(--muted); font-size: 0.93rem; }
.form-message { min-height: 22px; margin: 0; text-align: center; color: var(--blue); font-weight: 700; font-size: 0.9rem; }

@media (max-width: 980px) {
  .page-shell { grid-template-columns: 1fr; padding: 28px; }
  .brand-panel { min-height: auto; }
  .brand-top, .hero-visual, .features { display: none; }
  .hero-copy { text-align: center; max-width: 620px; margin: 0 auto 28px; }
  .hero-copy h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-copy p { margin-inline: auto; }
  .login-card { max-width: 560px; }
}

@media (max-width: 560px) {
  .page-shell { padding: 18px; }
  .login-card { border-radius: 24px; padding: 26px 20px; }
  .login-logo { height: 92px; }
  .form-row { align-items: flex-start; flex-direction: column; gap: 8px; }
}

.login-message {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
}

.login-message.error {
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.dashboard-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 196, 204, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0, 82, 204, 0.14), transparent 30%),
    #f7faff;
  color: #10213f;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard-header {
  height: 76px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(18px);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: #071f4f;
}

.dashboard-brand img {
  width: 42px;
  height: 42px;
}

.logout-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  background: #071f4f;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.logout-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(7, 31, 79, 0.2);
}

.dashboard-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 28px;
}

.dashboard-welcome {
  max-width: 720px;
  margin-bottom: 34px;
}

.eyebrow {
  color: #0077cc;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.dashboard-welcome h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  color: #071f4f;
}

.dashboard-welcome p {
  margin: 0;
  color: #52627a;
  font-size: 18px;
  line-height: 1.7;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.dashboard-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.dashboard-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #071f4f;
}

.dashboard-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .dashboard-header {
    padding: 0 20px;
  }

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

.app-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(0, 196, 204, 0.14), transparent 32%),
    radial-gradient(circle at bottom right, rgba(0, 82, 204, 0.12), transparent 34%),
    #f6f8fc;
  color: #0f1f3d;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 286px;
  min-height: 100vh;
  padding: 24px 18px;
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid rgba(148, 163, 184, 0.24);
  backdrop-filter: blur(22px);
  box-shadow: 24px 0 70px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.sidebar-brand img {
  width: 46px;
  height: 46px;
}

.sidebar-brand strong {
  display: block;
  color: #071f4f;
  font-size: 22px;
  line-height: 1;
}

.sidebar-brand span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  color: #52627a;
  text-decoration: none;
  font-weight: 650;
  transition: 0.2s ease;
}

.sidebar-link:hover {
  color: #071f4f;
  background: rgba(0, 119, 204, 0.08);
}

.sidebar-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #071f4f, #0077cc);
  box-shadow: 0 16px 34px rgba(0, 119, 204, 0.22);
}

.sidebar-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 14px;
}

.sidebar-link.active .sidebar-icon {
  background: rgba(255, 255, 255, 0.16);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.mini-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 16px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #071f4f, #00b6c7);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(0, 119, 204, 0.22);
}

.avatar.small {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 11px;
}

.mini-profile strong {
  display: block;
  color: #071f4f;
  font-size: 14px;
}

.mini-profile span {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.sidebar-logout {
  width: 100%;
  border: 0;
  padding: 12px 16px;
  border-radius: 14px;
  color: #9f1239;
  background: #fff1f2;
  font-weight: 750;
  cursor: pointer;
  transition: 0.2s ease;
}

.sidebar-logout:hover {
  background: #ffe4e6;
}

.app-main {
  flex: 1;
  min-width: 0;
  padding: 28px;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #071f4f;
  font-size: 20px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

.topbar-title p {
  margin: 0 0 4px;
  color: #0077cc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar-title h1 {
  margin: 0;
  color: #071f4f;
  font-size: 34px;
  letter-spacing: -0.04em;
}

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

.search-box {
  min-width: 260px;
  height: 46px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.search-box span {
  color: #64748b;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f1f3d;
  font-size: 14px;
}

.notification-button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  color: #00b6c7;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.user-chip {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 6px;
  border-radius: 999px;
  background: #ffffff;
  color: #071f4f;
  font-weight: 750;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 34px;
  margin-bottom: 24px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(7, 31, 79, 0.96), rgba(0, 119, 204, 0.92)),
    #071f4f;
  color: #ffffff;
  box-shadow: 0 26px 70px rgba(0, 77, 160, 0.22);
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: rgba(0, 196, 204, 0.22);
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel .eyebrow {
  color: #9ff6ff;
}

.hero-panel h2 {
  max-width: 780px;
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-panel p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.primary-action {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: #ffffff;
  color: #071f4f;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.metric-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.metric-label {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 12px;
}

.metric-card strong {
  display: block;
  color: #071f4f;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-card p {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 20px;
}

.panel-card {
  padding: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.panel-header h3 {
  margin: 0;
  color: #071f4f;
  font-size: 22px;
}

.module-list,
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.module-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.module-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(0, 119, 204, 0.1);
  color: #0077cc;
  font-weight: 800;
}

.module-item strong {
  color: #071f4f;
}

.module-item p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 14px;
}

.module-item span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 800;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

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

.activity-item span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00b6c7;
  box-shadow: 0 0 0 6px rgba(0, 182, 199, 0.12);
}

.activity-item p {
  margin: 0;
  color: #52627a;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .search-box {
    min-width: 190px;
  }
}

@media (max-width: 860px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 50;
    left: -320px;
    top: 0;
    transition: 0.25s ease;
  }

  .sidebar.is-open {
    left: 0;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    display: none;
  }

  .hero-panel {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .module-item {
    grid-template-columns: 46px 1fr;
  }

  .module-item span {
    grid-column: 2;
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .app-main {
    padding: 18px;
  }

  .hero-panel,
  .panel-card,
  .metric-card {
    border-radius: 22px;
    padding: 22px;
  }

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

.scan-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.scan-card {
  min-height: 360px;
}

.folder-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 130px;
  padding: 26px;
  margin-bottom: 22px;
  border: 1.5px dashed rgba(0, 119, 204, 0.36);
  border-radius: 24px;
  background: rgba(0, 119, 204, 0.05);
  cursor: pointer;
  transition: 0.2s ease;
}

.folder-picker:hover {
  border-color: rgba(0, 119, 204, 0.72);
  background: rgba(0, 119, 204, 0.08);
}

.folder-picker input {
  display: none;
}

.folder-picker span {
  color: #071f4f;
  font-size: 18px;
  font-weight: 800;
}

.folder-picker small {
  color: #64748b;
  line-height: 1.5;
}

.scan-options {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.scan-options label {
  display: grid;
  gap: 8px;
  color: #52627a;
  font-size: 13px;
  font-weight: 750;
}

.scan-options input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.32);
  outline: 0;
  border-radius: 14px;
  padding: 13px 14px;
  background: #ffffff;
  color: #071f4f;
  font-size: 14px;
}

.scan-options input:focus {
  border-color: rgba(0, 119, 204, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 119, 204, 0.1);
}

.scan-button {
  width: 100%;
  background: linear-gradient(135deg, #071f4f, #0077cc);
  color: #ffffff;
}

.scan-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.scan-status {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.status-row span {
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
}

.status-row strong {
  color: #071f4f;
  font-size: 14px;
  text-align: right;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-wrap {
  margin-bottom: 22px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-bar div {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #071f4f, #00b6c7);
  transition: width 0.25s ease;
}

#progressText {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
}

.result-box {
  min-height: 94px;
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #52627a;
  line-height: 1.6;
}

.result-box strong {
  color: #071f4f;
}

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

.scan-help-card {
  margin-top: 22px;
}

.scan-help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.scan-help-grid div {
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.scan-help-grid strong {
  display: block;
  margin-bottom: 8px;
  color: #071f4f;
}

.scan-help-grid p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.scan-help-grid code {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef6ff;
  color: #071f4f;
  font-size: 13px;
  white-space: normal;
}

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