@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --sw-navy: #0b1f33;
  --sw-navy-deep: #061524;
  --sw-navy-soft: #1a3a5c;
  --sw-cyan: #3db8e8;
  --sw-line: #d9e2ec;
  --sw-bg: #eef2f7;
  --sw-bg-accent: linear-gradient(160deg, #e8f0f8 0%, #f4f7fb 45%, #eef6f5 100%);
  --sw-accent: #0d6e7a;
  --sw-accent-hover: #095a64;
  --sw-muted: #5b6b7c;
  --sw-card: #fff;
  --sw-radius: 14px;
  --sw-shadow: 0 12px 40px rgba(15, 39, 66, 0.08);
  --sw-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sw-font);
  background: var(--sw-bg);
  background: var(--sw-bg-accent);
  color: #16212e;
  line-height: 1.45;
}

/* —— Landing (split hero, estilo login FOeng) —— */
body.sw-landing {
  background: var(--sw-navy-deep);
  min-height: 100vh;
  min-height: 100dvh;
}

.sw-landing-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.sw-landing-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  overflow: hidden;
}

.sw-landing-hero__media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: sw-ken 26s ease-in-out infinite alternate;
}

@keyframes sw-ken {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}

.sw-landing-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    165deg,
    rgba(6, 21, 36, 0.72) 0%,
    rgba(6, 21, 36, 0.35) 45%,
    rgba(6, 21, 36, 0.82) 100%
  );
}

.sw-landing-hero__glow {
  position: absolute;
  right: -15%;
  bottom: -10%;
  width: 60%;
  height: 55%;
  z-index: -1;
  background: radial-gradient(circle, rgba(61, 184, 232, 0.32), transparent 68%);
  pointer-events: none;
}

.sw-landing-hero__content {
  max-width: 32rem;
  animation: sw-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sw-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.sw-landing-logo-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.sw-landing-logo {
  display: block;
  width: min(240px, 62vw);
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.4));
}

.sw-landing-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sw-cyan);
}

.sw-landing-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.sw-landing-lead {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.sw-landing-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sw-landing-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.sw-landing-points strong { color: #fff; font-weight: 700; }

.sw-landing-ico {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--sw-cyan);
}

.sw-landing-hero__foot {
  margin: 2rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.sw-landing-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: #f7f9fc;
}

.sw-landing-panel--scroll {
  justify-content: flex-start;
  overflow-y: auto;
  max-height: 100vh;
  max-height: 100dvh;
}

.sw-landing-shell--tall {
  min-height: 100vh;
  min-height: 100dvh;
}

.sw-landing-card--narrow {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
}

.sw-landing-card--wide {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
}

.sw-card-foot--tight {
  border-top: 0;
  padding-top: 0;
  margin-top: 8px;
}

.sw-back-inline {
  font-size: 0.88rem;
  color: var(--sw-accent);
  font-weight: 600;
  text-decoration: none;
}
.sw-back-inline:hover { text-decoration: underline; }

.sw-landing-card {
  background: var(--sw-card);
  border: 1px solid var(--sw-line);
  border-radius: calc(var(--sw-radius) + 2px);
  box-shadow: 0 24px 56px rgba(6, 21, 36, 0.12);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  animation: sw-rise 0.75s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sw-landing-card__head h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--sw-navy);
  letter-spacing: -0.02em;
}

.sw-landing-logo-sm {
  display: none;
  width: 130px;
  height: auto;
  margin-bottom: 12px;
  filter: brightness(0) saturate(100%) invert(12%) sepia(28%) saturate(1200%) hue-rotate(175deg);
}

.sw-landing-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 20px;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 0.95rem;
  width: 100%;
  text-align: center;
}

.sw-landing-help {
  padding-top: 18px;
  border-top: 1px solid var(--sw-line);
  text-align: center;
}

.sw-landing-help .muted { margin: 0 0 6px; font-size: 0.86rem; }

.sw-landing-mail {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sw-accent);
  text-decoration: none;
}
.sw-landing-mail:hover { text-decoration: underline; }

.sw-landing-legal {
  margin: 16px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
  max-width: 22rem;
  align-self: center;
}

@media (max-width: 900px) {
  .sw-landing-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .sw-landing-hero {
    min-height: 38vh;
    padding-bottom: 1.5rem;
  }
  .sw-landing-points { display: none; }
  .sw-landing-logo-sm { display: block; }
  .sw-landing-hero .sw-landing-logo { width: 180px; }
  .sw-landing-logo-link { margin-bottom: 0.75rem; }
  .sw-landing-title { font-size: 1.35rem; }
  .sw-landing-lead { font-size: 0.92rem; margin-bottom: 0; }
  .sw-landing-hero__foot { display: none; }
  .sw-landing-panel--scroll { max-height: none; }
}

.hidden { display: none !important; }

/* —— Layout —— */
.sw-portal-shell {
  max-width: 44rem;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.sw-portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sw-back {
  font-size: .88rem;
  color: var(--sw-accent);
  text-decoration: none;
  font-weight: 500;
}
.sw-back:hover { text-decoration: underline; }

.sw-brand {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sw-muted);
}

.sw-card {
  background: var(--sw-card);
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow);
  padding: 28px 24px 32px;
}

@media (min-width: 560px) {
  .sw-card { padding: 32px 36px 36px; }
}

.sw-card-head { margin-bottom: 24px; }

.sw-card-head h1 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--sw-navy);
  letter-spacing: -0.02em;
}

.sw-card-head .sub {
  margin: 0;
  font-size: .92rem;
  color: var(--sw-muted);
  max-width: 38rem;
}

.sw-card-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--sw-line);
  font-size: .88rem;
  color: var(--sw-muted);
  text-align: center;
}
.sw-card-foot a { color: var(--sw-accent); font-weight: 500; text-decoration: none; }
.sw-card-foot a:hover { text-decoration: underline; }

.sw-contact {
  font-size: .88rem;
  color: var(--sw-muted);
  margin: 0;
}
.sw-contact a { color: var(--sw-accent); }

.sw-portal-brand-logo {
  display: block;
  height: 32px;
  width: auto;
}

.sw-portal-header--brand {
  justify-content: flex-start;
  gap: 16px;
}
.sw-portal-header--brand .sw-back { margin-right: auto; }

/* —— Form —— */
.sw-form { margin: 0; }

.sw-field-section {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.sw-field-section legend {
  display: block;
  width: 100%;
  padding: 0 0 12px;
  margin: 0 0 4px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sw-navy-soft);
  border-bottom: 1px solid var(--sw-line);
}

.sw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 16px;
  margin-top: 16px;
}

@media (min-width: 560px) {
  .sw-grid { grid-template-columns: 1fr 1fr; }
}

.sw-span2 { grid-column: 1 / -1; }

.sw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.sw-field-label {
  font-size: .84rem;
  font-weight: 600;
  color: #2a3a4d;
}

.sw-field-label .opt {
  font-weight: 400;
  color: var(--sw-muted);
}

.sw-field-hint {
  font-size: .78rem;
  color: var(--sw-muted);
  margin: -2px 0 0;
}

.sw-form input,
.sw-form textarea,
.sw-form select {
  font: inherit;
  font-size: .95rem;
  padding: 10px 12px;
  border: 1px solid var(--sw-line);
  border-radius: 10px;
  background: #fafbfc;
  color: #16212e;
  transition: border-color .15s, box-shadow .15s, background .15s;
  width: 100%;
}

.sw-form input:hover,
.sw-form textarea:hover {
  border-color: #b8c5d4;
}

.sw-form input:focus,
.sw-form textarea:focus {
  outline: none;
  border-color: var(--sw-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 122, 117, 0.15);
}

.sw-form textarea {
  resize: vertical;
  min-height: 4.5rem;
}

/* —— Terms —— */
.sw-terms-box {
  grid-column: 1 / -1;
  padding: 14px 16px;
  background: #f6f9fc;
  border: 1px solid var(--sw-line);
  border-radius: 10px;
}

.sw-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  cursor: pointer;
  font-size: .88rem;
  color: #2a3a4d;
  line-height: 1.4;
}

.sw-check input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--sw-accent);
  cursor: pointer;
}

/* —— Actions —— */
.sw-form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.btn {
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--sw-line);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, transform .05s;
}

.btn:active { transform: scale(0.98); }

.btn.primary {
  background: var(--sw-accent);
  border-color: var(--sw-accent);
  color: #fff;
  min-width: 10rem;
}
.btn.primary:hover {
  background: var(--sw-accent-hover);
  border-color: var(--sw-accent-hover);
}

.btn.ghost { background: transparent; }

/* —— Messages —— */
.msg {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: .9rem;
}
.msg.ok { background: #e7f6ef; color: #05603a; border: 1px solid #abefc6; }
.msg.error { background: #fdecea; color: #b42318; border: 1px solid #fecdca; }

/* —— Account page (unchanged structure, better spacing) —— */
.sw-wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.sw-wrap-wide { max-width: 44rem; }

h2 {
  font-size: 1.05rem;
  color: var(--sw-navy);
  margin: 28px 0 10px;
}

.sub { color: var(--sw-muted); font-size: .9rem; }
.muted { color: var(--sw-muted); font-size: .85rem; }

.sw-account-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sw-account-head h1 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--sw-navy);
}

section { margin-bottom: 12px; }

code {
  font-size: .8rem;
  word-break: break-all;
  background: #f0f4f8;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Legacy label support (login) */
.sw-form > label:not(.sw-check) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: .84rem;
  font-weight: 600;
  color: #2a3a4d;
}

/* —— Área do titular (account) —— */
.sw-account-panel {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.sw-account-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.sw-account-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-accent);
}

.sw-account-email {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.sw-account-block {
  background: var(--sw-card);
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius);
  box-shadow: var(--sw-shadow);
  padding: 20px 22px 22px;
  margin-bottom: 16px;
}

.sw-account-block__head h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sw-navy);
}

.sw-account-block__head .sub {
  margin: 0 0 12px;
}

.sw-key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.sw-key-value {
  flex: 1;
  min-width: 12rem;
  display: block;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.35;
  background: #f0f4f8;
  border: 1px solid var(--sw-line);
  border-radius: 10px;
  word-break: break-all;
}

.sw-request-notes {
  margin-bottom: 14px;
}

.sw-catalog {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .sw-catalog { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

.sw-product-card {
  border: 1px solid var(--sw-line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sw-product-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.sw-product-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sw-navy);
}

.sw-product-card__code {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--sw-muted);
  font-family: ui-monospace, monospace;
}

.sw-card-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #2a3a4d;
}

.sw-card-desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--sw-muted);
  line-height: 1.4;
}

.sw-product-card__actions {
  margin-top: auto;
  padding-top: 8px;
}

.sw-card-wait {
  font-size: 0.84rem;
}

.sw-btn-request {
  width: 100%;
}

.sw-pill {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e8ecf1;
  color: #4a5568;
}

.sw-pill--ok { background: #e7f6ef; color: #05603a; }
.sw-pill--pending { background: #fff4e5; color: #b54708; }
.sw-pill--warn { background: #fef3e2; color: #b54708; }
.sw-pill--danger { background: #fdecea; color: #b42318; }
.sw-pill--none { background: #eef2f7; color: var(--sw-muted); }

.sw-logo-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sw-logo-preview {
  min-height: 48px;
  padding: 8px;
  border: 1px dashed var(--sw-line);
  border-radius: 8px;
  background: #fff;
}

.sw-logo-preview img {
  max-height: 64px;
  max-width: 200px;
  object-fit: contain;
}

body.sw-account-page .sw-landing-hero {
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Dashboard titular — conta sobre a fotografia da sede
   ═══════════════════════════════════════════════════════════════════════════ */

body.sw-dash {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: #fff;
  overflow-x: hidden;
}

.sw-dash-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
  animation: sw-ken 28s ease-in-out infinite alternate;
}

.sw-dash-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    165deg,
    rgba(6, 21, 36, 0.88) 0%,
    rgba(6, 21, 36, 0.72) 35%,
    rgba(6, 21, 36, 0.92) 100%
  );
  pointer-events: none;
}

.sw-dash-app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 20px) clamp(16px, 3vw, 28px) 48px;
}

.sw-dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0 20px;
}

.sw-dash-brand img {
  display: block;
  height: 36px;
  width: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.sw-dash-bar__end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sw-dash-userchip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.sw-dash-userchip__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sw-cyan), var(--sw-accent));
  color: #061524;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-dash-userchip__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.sw-dash-userchip__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}

.sw-dash-userchip__email {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
}

.sw-dash-btn-logout {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
}

.sw-dash-btn-logout:hover {
  background: rgba(255, 255, 255, 0.16);
}

.sw-dash-hero {
  margin-bottom: 20px;
  animation: sw-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sw-dash-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-cyan);
}

.sw-dash-title {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.sw-dash-lead {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  line-height: 1.5;
}

.sw-dash-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sw-dash-nav__btn {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sw-dash-nav__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sw-dash-nav__btn.is-active {
  background: #fff;
  color: var(--sw-navy);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.sw-dash-msg.msg {
  margin-bottom: 14px;
  border-radius: 12px;
}

.sw-dash-msg.ok {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #d1fae5;
}

.sw-dash-msg.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.sw-dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.sw-dash-stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.sw-dash-stat--ok { border-color: rgba(52, 211, 153, 0.35); }
.sw-dash-stat--pending { border-color: rgba(251, 191, 36, 0.35); }

.sw-dash-stat__n {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.sw-dash-stat__l {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
}

.sw-dash-tip {
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(61, 184, 232, 0.12);
  border: 1px solid rgba(61, 184, 232, 0.28);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 14px;
}

.sw-dash-request-details {
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
}

.sw-dash-request-details summary {
  cursor: pointer;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.sw-dash-request-details textarea {
  width: 100%;
  margin-top: 10px;
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.95);
  color: var(--sw-navy);
}

.sw-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.sw-dash-loading,
.sw-dash-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.sw-app-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 20px 20px 18px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--sw-navy);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: sw-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sw-app-card--ok { border-top: 4px solid #10b981; }
.sw-app-card--pending { border-top: 4px solid #f59e0b; }
.sw-app-card--warn { border-top: 4px solid #f59e0b; }
.sw-app-card--danger { border-top: 4px solid #ef4444; }
.sw-app-card--none { border-top: 4px solid #94a3b8; }

.sw-app-card__shine {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 80%;
  background: radial-gradient(circle, rgba(61, 184, 232, 0.12), transparent 70%);
  pointer-events: none;
}

.sw-app-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sw-app-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--sw-navy) 0%, #134e63 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(11, 31, 51, 0.2);
}

.sw-app-icon--img {
  padding: 4px;
  background: #fff;
  overflow: hidden;
}

.sw-app-icon--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.sw-app-card__titles { flex: 1; min-width: 0; }

.sw-app-card__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sw-navy);
}

.sw-app-card__code {
  margin: 2px 0 0;
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
  color: var(--sw-muted);
}

.sw-app-card__desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--sw-muted);
  line-height: 1.45;
  white-space: pre-wrap;
}

.sw-app-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 12px 0 4px;
}

.sw-app-gallery__item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sw-app-gallery__item a {
  display: block;
  aspect-ratio: 16 / 10;
}

.sw-app-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sw-app-gallery__item figcaption {
  font-size: 0.72rem;
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

.sw-app-kv {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 10px;
  margin: 0;
  padding: 12px 0 4px;
  border-top: 1px solid var(--sw-line);
  border-bottom: 1px solid var(--sw-line);
}

@media (max-width: 520px) {
  .sw-app-kv { grid-template-columns: 1fr; }
}

.sw-app-kv dt {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sw-muted);
  margin: 0;
}

.sw-app-kv dd {
  margin: 4px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sw-navy);
}

.sw-app-kv-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--sw-muted);
  margin-top: 2px;
}

.sw-app-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.sw-app-card__actions .btn.primary {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(13, 110, 122, 0.35);
}

.sw-app-card__actions .sw-btn-request {
  width: 100%;
  background: #fff;
  border: 1px solid var(--sw-line);
  color: var(--sw-navy);
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 16px;
}

.sw-app-soon {
  font-size: 0.84rem;
  text-align: center;
  padding: 10px;
  background: #f1f5f9;
  border-radius: 10px;
}

.sw-app-hint {
  font-size: 0.82rem;
  color: var(--sw-muted);
  text-align: center;
}

.sw-app-hint--ok { color: #047857; font-weight: 600; }

.sw-app-notes {
  font-size: 0.84rem;
  color: var(--sw-muted);
}

.sw-app-notes summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--sw-accent);
}

.sw-app-notes__body {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  white-space: pre-wrap;
  line-height: 1.45;
}

.sw-app-sha {
  margin: 0;
  font-size: 0.72rem;
  word-break: break-all;
}

.sw-app-sha code {
  background: #f1f5f9;
}

.sw-dash-panel {
  background: rgba(255, 255, 255, 0.97);
  color: var(--sw-navy);
  border-radius: 18px;
  padding: 22px 24px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.sw-dash-panel__head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sw-navy);
}

.sw-dash-panel__head .sub {
  margin: 0 0 16px;
  color: var(--sw-muted);
}

.sw-dash-panel .sw-field-label {
  color: #2a3a4d;
}

.sw-dash-panel input,
.sw-dash-panel textarea {
  background: #fff;
}

.sw-dash-help {
  margin-top: 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.sw-dash-help .sw-landing-mail {
  color: var(--sw-cyan);
}
