:root {
  --seam-teal: #008f8a;
  --seam-teal-dark: #006c70;
  --seam-teal-deep: #00565f;
  --seam-coral: #f26d58;
  --seam-gold: #ddb35f;
  --seam-sand: #f4e6ce;
  --seam-cream: #fffaf0;
  --seam-ink: #101820;
  --seam-muted: #667085;
  --seam-line: rgba(16, 24, 32, .13);
  --seam-shadow: 0 16px 38px rgba(16, 24, 32, .16);
}

body.seam-theme {
  color: var(--seam-ink);
  background:
    linear-gradient(90deg, rgba(255, 250, 239, .74), rgba(255, 250, 239, .42)),
    url("seam-rio-fundo.png") center center / cover fixed no-repeat !important;
}

body.seam-theme.auth-locked .seam-global-sidebar,
body.seam-theme.auth-locked .seam-global-topbar {
  display: none;
}

body.seam-theme [hidden] {
  display: none !important;
}

.seam-global-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 296px;
  height: 100vh;
  z-index: 60;
  background:
    linear-gradient(180deg, rgba(0, 70, 78, .95), rgba(0, 117, 112, .88)),
    url("seam-rio-fundo.png") 20% center / cover no-repeat;
  color: #fff;
  padding: 24px 20px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  overflow: hidden;
}

.seam-global-sidebar::after {
  content: "";
  position: absolute;
  left: -20px;
  right: -20px;
  bottom: -18px;
  height: 110px;
  background:
    radial-gradient(ellipse at 22% 35%, rgba(255,255,255,.28), transparent 38%),
    radial-gradient(ellipse at 70% 25%, rgba(255,255,255,.18), transparent 42%);
  opacity: .8;
  pointer-events: none;
}

.seam-logo-lockup {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.seam-logo-lockup img {
  width: 78px;
  border-radius: 16px;
  background: rgba(255,255,255,.95);
}

.seam-logo-lockup strong {
  display: block;
  font-size: 23px;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.seam-global-nav {
  display: grid;
  gap: 10px;
  align-content: start;
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.48) rgba(255,255,255,.12);
}

.seam-global-nav::-webkit-scrollbar {
  width: 8px;
}

.seam-global-nav::-webkit-scrollbar-track {
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}

.seam-global-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.48);
  border-radius: 999px;
}

.seam-global-nav a {
  color: #fff;
  text-decoration: none;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 13px 12px;
  border-radius: 16px;
  min-height: 62px;
}

.seam-global-nav a.active,
.seam-global-nav a:hover {
  background: rgba(0, 55, 62, .38);
  box-shadow: inset 5px 0 0 var(--seam-coral);
}

.seam-nav-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);
  font-weight: 900;
}

.seam-global-nav strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.seam-global-nav span span {
  display: block;
  font-size: 14px;
  opacity: .86;
  margin-top: 2px;
}

.seam-sidebar-foot {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.seam-global-topbar {
  position: fixed;
  top: 0;
  left: 296px;
  right: 0;
  min-height: 96px;
  z-index: 55;
  color: #fff;
  padding: 18px 30px;
  display: grid;
  grid-template-columns: minmax(260px, 540px) minmax(80px, 1fr) minmax(230px, auto);
  gap: 24px;
  align-items: center;
  background: rgba(0, 70, 78, .52);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  border-bottom: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 12px 28px rgba(16, 24, 32, .12);
}

.seam-top-search {
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.82);
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  color: #5c6672;
  padding: 0 16px;
  box-shadow: 0 10px 28px rgba(16, 24, 32, .12);
}

.seam-search-symbol {
  width: 27px;
  height: 27px;
  border: 3px solid #687583;
  border-radius: 50%;
  position: relative;
}

.seam-search-symbol::after {
  content: "";
  width: 13px;
  height: 3px;
  background: #687583;
  position: absolute;
  right: -10px;
  bottom: 0;
  transform: rotate(45deg);
  border-radius: 999px;
}

.seam-top-search input {
  border: 0 !important;
  background: transparent !important;
  min-height: 54px !important;
  box-shadow: none !important;
  outline: 0 !important;
  font-size: 17px !important;
}

.seam-top-actions {
  justify-self: end;
  display: flex;
  gap: 14px;
  align-items: center;
}

.seam-round-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.76);
  color: #fff;
  background: rgba(0,0,0,.08);
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}

.seam-user-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 14px;
  align-items: center;
  text-align: right;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,.45);
}

.seam-user-box strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.seam-user-box span {
  display: block;
  opacity: .88;
  overflow-wrap: anywhere;
}

.seam-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4c276, #fff);
  border: 3px solid rgba(255,255,255,.78);
  display: grid;
  place-items: center;
  color: var(--seam-teal-dark);
  font-size: 20px;
  font-weight: 900;
}

body.seam-theme:not(.auth-locked) .app-shell,
body.seam-theme:not(.auth-locked) .shell {
  width: auto !important;
  max-width: none !important;
  margin-left: 296px !important;
  padding: 112px 30px 42px !important;
}

body.seam-theme:not(.auth-locked) .dashboard-shell {
  width: auto !important;
  max-width: none !important;
  margin-left: 296px !important;
  padding: 112px 30px 42px !important;
}

body.seam-theme.seam-client-portal .seam-global-sidebar,
body.seam-theme.seam-client-portal .seam-global-topbar {
  display: none !important;
}

body.seam-theme.seam-client-portal:not(.auth-locked) .shell {
  width: min(1180px, calc(100vw - 32px)) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 28px 0 42px !important;
}

body.seam-theme .panel,
body.seam-theme .metric,
body.seam-theme .order-card,
body.seam-theme .auth-card {
  border-radius: 18px !important;
  background: rgba(255,255,255,.76) !important;
  border: 1px solid rgba(255,255,255,.78) !important;
  box-shadow: var(--seam-shadow) !important;
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
}

body.seam-theme .auth-gate,
body.seam-theme .auth-screen {
  background:
    linear-gradient(90deg, rgba(255,250,239,.76), rgba(255,250,239,.5)),
    url("seam-rio-fundo.png") center center / cover fixed no-repeat !important;
}

body.seam-theme .app-shell > header,
body.seam-theme .shell > header,
body.seam-theme .dashboard-shell > .topbar,
body.seam-theme .topbar {
  background: rgba(255,255,255,.56) !important;
  color: var(--seam-ink) !important;
  border: 1px solid rgba(255,255,255,.62) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 45px rgba(16, 24, 32, .18) !important;
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

body.seam-theme .brand-block,
body.seam-theme .topbar {
  text-shadow: none;
}

body.seam-theme .brand-logo,
body.seam-theme .auth-card img,
body.seam-theme .seam-logo-lockup img {
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 10px 28px rgba(16, 24, 32, .16);
}

body.seam-theme .summary-grid .metric,
body.seam-theme .metric-grid .metric,
body.seam-theme .metrics .metric {
  background: rgba(255,255,255,.72) !important;
}

body.seam-theme table,
body.seam-theme .order-list,
body.seam-theme .user-list,
body.seam-theme .request-list,
body.seam-theme .product-list {
  background: rgba(255,255,255,.36);
  border-radius: 14px;
}

body.seam-theme .app-shell > header,
body.seam-theme .shell > header {
  background: rgba(255,255,255,.62) !important;
  color: var(--seam-ink) !important;
  text-shadow: none !important;
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  display: grid !important;
  grid-template-columns: minmax(430px, 1fr) minmax(360px, auto) !important;
  align-items: center !important;
  gap: 22px !important;
  padding: 18px !important;
}

body.seam-theme .brand-block {
  grid-template-columns: clamp(92px, 9vw, 132px) minmax(300px, 1fr) !important;
  align-items: center !important;
  min-width: 0;
}

body.seam-theme .brand-logo {
  width: 100% !important;
  max-width: 132px !important;
}

body.seam-theme .brand-block h1 {
  font-size: clamp(28px, 2.8vw, 42px) !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  max-width: 760px;
}

body.seam-theme .brand-block .subtitle {
  max-width: 720px !important;
}

body.seam-theme .toolbar {
  justify-content: flex-end !important;
  align-content: center !important;
}

body.seam-theme .panel-head {
  border-bottom-color: var(--seam-line) !important;
}

body.seam-theme h1,
body.seam-theme h2,
body.seam-theme h3,
body.seam-theme strong,
body.seam-theme .order-title,
body.seam-theme .small {
  overflow-wrap: break-word;
}

body.seam-theme .btn,
body.seam-theme button,
body.seam-theme .pill {
  border-radius: 12px;
}

body.seam-theme .pill {
  white-space: normal !important;
  line-height: 1.15;
}

body.seam-theme table {
  table-layout: auto;
}

body.seam-theme th,
body.seam-theme td {
  overflow-wrap: anywhere;
  line-height: 1.25;
}

body.seam-theme .btn.primary {
  background: var(--seam-teal) !important;
  border-color: var(--seam-teal) !important;
}

body.seam-theme input,
body.seam-theme select,
body.seam-theme textarea {
  border-radius: 12px !important;
}

body.seam-theme .summary-grid,
body.seam-theme .metric-grid {
  gap: 18px !important;
}

@media (max-width: 1100px) {
  .seam-global-sidebar,
  .seam-global-topbar {
    position: static;
    width: auto;
  }

  .seam-global-topbar {
    grid-template-columns: 1fr;
    color: #fff;
  }

  .seam-user-box {
    justify-self: start;
    text-align: left;
    border-left: 0;
    padding-left: 0;
  }

  body.seam-theme:not(.auth-locked) .app-shell,
  body.seam-theme:not(.auth-locked) .shell,
  body.seam-theme:not(.auth-locked) .dashboard-shell {
    margin-left: 0 !important;
    padding: 24px 16px 34px !important;
  }

  body.seam-theme .app-shell > header,
  body.seam-theme .shell > header {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  body.seam-theme .brand-block {
    grid-template-columns: 92px minmax(0, 1fr) !important;
  }

  body.seam-theme .toolbar {
    justify-content: flex-start !important;
  }
}

@media (max-width: 640px) {
  body.seam-theme .brand-block {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  body.seam-theme .brand-block h1 {
    font-size: 26px !important;
  }

  body.seam-theme .brand-block .subtitle {
    font-size: 14px !important;
  }
}

@media (max-height: 760px) and (min-width: 1101px) {
  .seam-global-sidebar {
    padding: 16px 16px;
    gap: 12px;
  }

  .seam-logo-lockup {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .seam-logo-lockup img {
    width: 58px;
  }

  .seam-global-nav a {
    min-height: 54px;
    padding: 10px;
  }

  .seam-global-nav strong {
    font-size: 16px;
  }

  .seam-global-nav span span {
    font-size: 13px;
  }
}
