* { box-sizing: border-box; }

:root {
  --green: #303b13;
  --green-dark: #242c0d;
  --green-soft: #68752d;
  --text: #42424a;
  --muted: #686871;
  --line: #e2e5e8;
  --bg: #f7f8f8;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

button { font: inherit; }

.topbar {
  height: 75px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid #e8e9ea;
  box-shadow: 0 3px 12px rgba(0,0,0,.05);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-area { display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.brand-crs { font-size: 13px; letter-spacing: .8px; color: #555; }
.brand-mark { color: #6eaf39; font-size: 31px; line-height: 1; }
.user-area {
  display: flex; align-items: center; gap: 13px;
  padding-left: 28px; border-left: 1px solid #e5e5e5;
  color: #38383f;
}
.user-area > div { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.user-area strong { font-weight: 500; }
.user-area span { font-size: 14px; }
.user-icon { font-size: 31px; color: #444; }

.logout-button {
  border: 1px solid #d8ddd1;
  background: #fff;
  color: var(--green);
  border-radius: 9px;
  padding: 9px 13px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.logout-button:hover { background: var(--green); color: #fff; border-color: var(--green); transform: translateY(-1px); }
.logout-button span { font-size: 17px; line-height: 1; }

.app-shell { display: flex; min-height: calc(100vh - 75px); }

.sidebar {
  width: 270px;
  flex: 0 0 270px;
  background: linear-gradient(180deg, #354117 0%, #2d3712 100%);
  color: #fff;
  position: relative;
  transition: width .25s ease, flex-basis .25s ease;
  overflow: hidden;
}

.sidebar nav { padding: 38px 14px 10px; }

.nav-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #f4f5ed;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 65px;
  padding: 7px 5px;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.35;
  transition: background .2s ease, transform .2s ease;
}
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.08); }
.nav-item:hover { transform: translateX(2px); }

.nav-icon {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(18,22,7,.72);
  color: white;
  font-size: 25px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.collapse-btn {
  position: absolute;
  right: -14px;
  top: 95px;
  width: 29px; height: 29px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: var(--green);
  color: white;
  cursor: pointer;
  z-index: 4;
  font-size: 20px;
}

.sidebar.collapsed { width: 82px; flex-basis: 82px; }
.sidebar.collapsed .nav-item { justify-content: center; }
.sidebar.collapsed .nav-item > span:last-child { display: none; }
.sidebar.collapsed .nav-icon { flex-basis: 52px; }
.sidebar.collapsed .collapse-btn { transform: rotate(180deg); }

.content {
  flex: 1;
  min-width: 0;
  padding: 22px 26px 50px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(210,214,213,.18) 38.2% 42%, transparent 42.2%),
    linear-gradient(45deg, transparent 0 58%, rgba(220,222,222,.15) 58.2% 63%, transparent 63.2%),
    #fafafa;
}
.content::before, .content::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border: 55px solid rgba(218,220,219,.12);
  transform: rotate(45deg);
  pointer-events: none;
}
.content::before { left: 120px; top: 100px; }
.content::after { right: 120px; bottom: 70px; }

.hero, .video-grid, .more-videos, .info-panel { position: relative; z-index: 1; }

.hero { text-align: center; max-width: 1450px; margin: 0 auto; }
.hero h1 {
  margin: 0 0 15px;
  font-size: clamp(28px, 2.2vw, 34px);
  font-weight: 400;
  letter-spacing: -.5px;
}
.hero p {
  margin: 0 auto 22px;
  max-width: 1160px;
  font-size: 17px;
  line-height: 1.7;
}

.featured-video {
  margin: 3px auto 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.manual-illustration {
  width: 126px; height: 126px;
  border-radius: 50%;
  background: #f9dc59;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: inset -8px -5px 0 #dfa640;
  font-size: 55px;
  color: #263344;
}
.manual-illustration small {
  position: absolute;
  right: 28px; top: 42px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; font-size: 14px;
}
.video-title { margin-top: 17px; font-size: 25px; font-weight: 400; }
.video-title b, .video-card b { font-size: 17px; }

.video-grid {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1450px;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.video-card {
  min-height: 180px;
  border: 0;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,.48);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 25px;
  transition: background .2s ease, transform .2s ease;
}
.video-card:hover { background: rgba(255,255,255,.85); transform: translateY(-2px); }
.circle-icon {
  width: 102px; height: 102px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 47px;
  color: #3b3b3d;
  box-shadow: 0 4px 8px rgba(0,0,0,.08);
}
.truck { background: #e8e6e6; }
.brick { background: #f4d62f; }
.worker { background: #7aa69e; color: #fff; }

.more-videos {
  display: block;
  margin: 38px auto 50px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 25px;
  cursor: pointer;
}
.more-videos strong { font-size: 29px; }

.info-panel {
  max-width: 1450px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.75);
  display: grid;
  grid-template-columns: repeat(3,1fr);
}
.info-panel > div {
  padding: 22px 25px;
  display: flex;
  gap: 15px;
  border-right: 1px solid var(--line);
}
.info-panel > div:last-child { border-right: 0; }
.panel-icon {
  width: 43px; height: 43px; flex: 0 0 43px;
  border-radius: 50%; display: grid; place-items: center;
  background: #edf1e5; color: var(--green);
}
.info-panel strong { font-weight: 500; }
.info-panel p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.modal {
  display: none; position: fixed; inset: 0; z-index: 50;
  align-items: center; justify-content: center;
}
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,24,10,.58); backdrop-filter: blur(3px); }
.modal-box {
  position: relative; width: min(760px, 90vw);
  background: white; border-radius: 16px; padding: 34px;
  box-shadow: 0 25px 80px rgba(0,0,0,.3); text-align: center;
}
.modal-close {
  position: absolute; top: 12px; right: 15px;
  border: 0; background: transparent; font-size: 30px; cursor: pointer;
}
.modal-play {
  margin: 10px auto 18px; width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; background: #dce7bd; color: var(--green);
}
.video-placeholder {
  height: 300px; margin-top: 22px; border-radius: 12px;
  background: #20231d; color: #dfe3d7;
  display: grid; place-items: center;
}

@media (max-width: 900px) {
  .topbar { padding: 0 15px; }
  .brand-crs { display: none; }
  .user-area { padding-left: 12px; }
  .sidebar { width: 82px; flex-basis: 82px; }
  .nav-item { justify-content: center; }
  .nav-item > span:last-child { display: none; }
  .collapse-btn { display: none; }
  .video-grid, .info-panel { grid-template-columns: 1fr; }
  .video-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .info-panel > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .info-panel > div:last-child { border-bottom: 0; }
}

@media (max-width: 600px) {
  .topbar { height: 64px; }
  .app-shell { min-height: calc(100vh - 64px); }
  .content { padding: 25px 12px 35px; }
  .sidebar { position: fixed; top: 64px; bottom: 0; z-index: 15; transform: translateX(-100%); transition: transform .25s ease; }
  .sidebar.mobile-open { transform: translateX(0); }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 14px; }
  .video-title, .video-card { font-size: 20px; }
  .user-area > div { font-size: 12px; }
  .logout-button { padding: 8px 10px; font-size: 12px; }
}

.header-logo {
  width: 245px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
  display: block;
}
@media (max-width: 600px) {
  .header-logo { width: 205px; height: 54px; }
}




.sidebar-project {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 28px;
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,.18);
  text-align: center;
  color: #fff;
}
.sidebar-project span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.sidebar-project strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}
.sidebar.collapsed .sidebar-project {
  display: none;
}
@media (max-width: 600px) {
  .sidebar-project { bottom: 20px; }
}

/* Layout sem rolagem em desktop */
html, body {
  height: 100%;
  overflow: hidden;
}

.topbar {
  flex: 0 0 75px;
}

.app-shell {
  height: calc(100vh - 75px);
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  height: 100%;
  overflow: hidden;
}

.content {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 16px 24px 20px;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 0 0 auto;
}

.hero h1 {
  margin-bottom: 8px;
  font-size: clamp(25px, 2vw, 31px);
}

.hero p {
  margin-bottom: 10px;
  line-height: 1.45;
  font-size: 15px;
}

.featured-video {
  margin: 4px auto 16px;
}

.manual-illustration {
  width: 92px;
  height: 92px;
  font-size: 42px;
}

.video-title {
  margin-top: 9px;
  font-size: 20px;
}

.video-grid {
  flex: 0 0 auto;
}

.video-card {
  min-height: 145px;
  font-size: 19px;
}

.circle-icon {
  width: 78px;
  height: 78px;
  font-size: 36px;
}

.more-videos {
  margin: 14px auto 14px;
  font-size: 19px;
}

.info-panel {
  flex: 0 0 auto;
}

.info-panel > div {
  padding: 14px 18px;
}

.info-panel p {
  margin-top: 4px;
  font-size: 12px;
}

@media (max-width: 900px) {
  html, body { overflow: auto; }
  .app-shell { height: auto; min-height: calc(100vh - 75px); overflow: visible; }
  .content { height: auto; overflow: visible; }
}

@media (max-width: 600px) {
  html, body { overflow: auto; }
  .app-shell { height: auto; min-height: calc(100vh - 64px); }
  .content { height: auto; overflow: visible; padding: 18px 12px 30px; }
  .video-card { min-height: 130px; }
}

/* Painel informativo fixado no limite inferior da área principal */
@media (min-width: 901px) {
  .content {
    position: relative;
  }

  .info-panel {
    margin-top: auto;
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* Ajuste final de posicionamento: conteúdo centralizado e apresentação um pouco mais abaixo */
@media (min-width: 901px) {
  .content {
    padding-top: 28px;
  }

  .hero {
    width: 100%;
    text-align: center;
  }

  .hero h1,
  .hero p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .featured-video,
  .more-videos {
    margin-left: auto;
    margin-right: auto;
  }

  .video-grid {
    width: min(100%, 735px);
    margin-left: auto;
    margin-right: auto;
  }
}

/* Desce mais o bloco central sem mover o painel inferior */
@media (min-width: 901px) {
  .hero {
    margin-top: 42px;
  }
}

/* Menu lateral ainda mais abaixo */
.sidebar nav { padding-top: 95px; }

/* Tela de login — Caderno de Obra Digital */
body {
  min-height: 100vh;
}

.portal-app {
  min-height: 100vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease;
}

.portal-app.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(236, 235, 228, .96), rgba(249, 248, 244, .98)),
    #f4f3ee;
}

.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: .24;
  border: 1px solid #7b806d;
  transform: rotate(45deg);
}

.login-screen::before {
  width: 430px;
  height: 430px;
  left: -190px;
  bottom: -250px;
}

.login-screen::after {
  width: 520px;
  height: 520px;
  right: -230px;
  top: -285px;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  padding: 34px 38px 25px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(61, 70, 48, .10);
  box-shadow: 0 22px 55px rgba(36, 43, 30, .16);
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.login-brand img {
  display: block;
  width: min(265px, 78%);
  max-height: 88px;
  object-fit: contain;
}

.login-project {
  text-align: center;
  margin-bottom: 26px;
}

.login-project span {
  display: block;
  color: #707466;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.login-project strong {
  display: block;
  color: #4c523e;
  font-size: 23px;
  font-weight: 600;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-form label {
  color: #505548;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 7px;
}

.login-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  margin-bottom: 17px;
  border: 1px solid #d8d9d0;
  border-radius: 9px;
  background: #fafaf7;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.login-field:focus-within {
  border-color: #667052;
  box-shadow: 0 0 0 3px rgba(102, 112, 82, .12);
}

.login-field > span:first-child {
  width: 45px;
  text-align: center;
  color: #687052;
  font-size: 17px;
}

.login-field input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #34382e;
  font: inherit;
  font-size: 14px;
}

.login-field input::placeholder {
  color: #a0a39a;
}

.password-toggle {
  width: 45px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #73786a;
  cursor: pointer;
  font-size: 16px;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 9px;
  background: #4f563f;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(57, 64, 45, .18);
  transition: transform .15s ease, background .15s ease;
}

.login-button:hover {
  background: #424936;
  transform: translateY(-1px);
}

.login-button span {
  font-size: 20px;
  line-height: 1;
}

.forgot-password {
  align-self: center;
  margin-top: 15px;
  border: 0;
  background: transparent;
  color: #687052;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.forgot-password:hover {
  text-decoration: underline;
}

.admin-access-button {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 8px;
  padding: 6px 13px;
  border: 1px solid #d8ddd1;
  border-radius: 8px;
  background: #fff;
  color: #5b624d;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.admin-access-button:hover {
  background: #f1f3ec;
  border-color: #aeb5a2;
  color: #3f4635;
  transform: translateY(-1px);
}

.login-message {
  min-height: 17px;
  margin: 9px 0 0;
  color: #6c705f;
  text-align: center;
  font-size: 11px;
}

.login-footer {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #e4e4dd;
  color: #92958b;
  text-align: center;
  font-size: 10px;
}

.login-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 600px) {
  .login-screen {
    padding: 18px;
  }

  .login-card {
    padding: 28px 23px 22px;
    border-radius: 15px;
  }

  .login-project strong {
    font-size: 21px;
  }
}


/* Home do Caderno de Obra Digital — acervo definitivo */
.home-content {
  gap: 0;
  padding-top: 30px;
}

.home-welcome {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto 16px;
}

.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #727964;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-welcome h1 {
  margin: 0 0 7px;
  color: #424936;
  font-size: clamp(25px, 2.15vw, 31px);
  line-height: 1.18;
  font-weight: 600;
}

.home-welcome p {
  max-width: 930px;
  margin: 0;
  color: #777b70;
  font-size: 13px;
  line-height: 1.5;
}

.intro-video-section,
.quick-access,
.recent-files {
  max-width: 1180px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.intro-video-section {
  margin-bottom: 13px;
  padding: 14px 18px;
  border: 1px solid #dfe1d8;
  border-radius: 12px;
  background: rgba(255,255,255,.84);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.section-heading h2,
.recent-title h2 {
  margin: 0;
  color: #4a503f;
  font-size: 18px;
  font-weight: 600;
}

.section-heading p {
  max-width: 740px;
  margin: 4px 0 0;
  color: #85897e;
  font-size: 11px;
  line-height: 1.45;
}

.intro-video-button {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  padding: 8px 15px 8px 9px;
  background: #4f563f;
  color: white;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(57,64,45,.13);
}

.intro-video-button:hover { background: #424936; }

.play-circle {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  font-size: 11px;
}

.quick-access {
  margin-bottom: 13px;
}

.section-heading.compact {
  margin-bottom: 7px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}

.archive-card {
  min-width: 0;
  min-height: 102px;
  padding: 11px 9px;
  border: 1px solid #dfe1d8;
  border-radius: 10px;
  background: rgba(255,255,255,.82);
  color: #4d5343;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.archive-card:hover {
  transform: translateY(-2px);
  border-color: #bdc4aa;
  box-shadow: 0 7px 18px rgba(51,58,40,.08);
}

.archive-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: #edf1e5;
  color: #5b6348;
  font-size: 17px;
}

.archive-card strong {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  line-height: 1.2;
}

.archive-card small {
  display: block;
  color: #8a8e83;
  font-size: 9px;
  line-height: 1.35;
}

.recent-files {
  margin-bottom: 0;
}

.recent-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.text-action {
  border: 0;
  background: transparent;
  color: #667052;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.text-action:hover { text-decoration: underline; }

.file-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.file-row {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid #e0e2da;
  border-radius: 9px;
  background: rgba(255,255,255,.72);
  color: #4e5445;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.file-row:hover { border-color: #c5cbb7; }

.file-type {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 7px;
  background: #f0e9e5;
  color: #80665b;
  font-size: 8px;
  font-weight: 700;
}

.image-type { background: #e9eee5; color: #637052; }

.file-info {
  min-width: 0;
  flex: 1;
}

.file-info strong,
.file-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-info strong {
  font-size: 10px;
  font-weight: 600;
}

.file-info small {
  margin-top: 2px;
  color: #92968c;
  font-size: 8px;
}

.file-arrow {
  color: #7b816f;
  font-size: 14px;
}

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

@media (max-width: 900px) {
  .home-content { padding-top: 22px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .file-list { grid-template-columns: 1fr; }
  .intro-video-section { padding: 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (max-width: 600px) {
  .archive-grid { grid-template-columns: 1fr; }
  .home-welcome h1 { font-size: 24px; }
  .home-welcome p { font-size: 12px; }
}

/* Tipografia ampliada — melhor aproveitamento da área principal */
@media (min-width: 901px) {
  .home-content { padding-top: 34px; padding-bottom: 42px; }

  .home-welcome { margin-bottom: 20px; }
  .home-welcome .eyebrow { font-size: 11px; margin-bottom: 7px; }
  .home-welcome h1 {
    font-size: clamp(31px, 2.45vw, 38px);
    margin-bottom: 10px;
    line-height: 1.18;
  }
  .home-welcome p {
    max-width: 1100px;
    font-size: 15px;
    line-height: 1.6;
  }

  .intro-video-section {
    margin-bottom: 18px;
    padding: 18px 22px;
  }
  .intro-video-section .eyebrow,
  .quick-access .eyebrow,
  .recent-files .eyebrow {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .section-heading h2,
  .recent-title h2 {
    font-size: 22px;
  }
  .section-heading p {
    max-width: 820px;
    font-size: 13px;
    line-height: 1.5;
  }
  .intro-video-button {
    padding: 10px 18px 10px 11px;
    font-size: 13px;
  }
  .play-circle { width: 34px; height: 34px; font-size: 12px; }

  .quick-access { margin-bottom: 18px; }
  .section-heading.compact { margin-bottom: 10px; }
  .archive-grid { gap: 11px; }
  .archive-card {
    min-height: 126px;
    padding: 14px 13px;
    border-radius: 11px;
  }
  .archive-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    font-size: 19px;
  }
  .archive-card strong {
    margin-bottom: 5px;
    font-size: 13px;
    line-height: 1.25;
  }
  .archive-card small {
    font-size: 10.5px;
    line-height: 1.4;
  }

  .recent-title { margin-bottom: 9px; }
  .text-action { font-size: 12px; }
  .file-list { gap: 11px; }
  .file-row {
    gap: 11px;
    padding: 12px 14px;
    border-radius: 10px;
  }
  .file-type {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 9px;
  }
  .file-info strong { font-size: 12px; }
  .file-info small { font-size: 9.5px; margin-top: 3px; }
  .file-arrow { font-size: 16px; }
}

/* Pop-ups em estilo vidro */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 42, 17, .34);
  backdrop-filter: blur(12px) saturate(.82);
  -webkit-backdrop-filter: blur(12px) saturate(.82);
}
.modal-glass {
  position: relative;
  width: min(900px, 94vw);
  max-height: min(720px, 88vh);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 30px 90px rgba(20,25,10,.28), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  padding: 30px;
  animation: glassIn .24s ease-out;
}
.modal-glass::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -120px;
  border: 42px solid rgba(210,215,201,.26);
  transform: rotate(45deg);
  pointer-events: none;
}
.modal-close {
  position: absolute;
  top: 17px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(80,90,65,.14);
  border-radius: 50%;
  background: rgba(255,255,255,.68);
  color: var(--green);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.modal-close:hover { background: #fff; }
.modal-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 16px;
  align-items: center;
  padding-right: 48px;
}
.modal-header .modal-kicker {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #778066;
}
.modal-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(235,239,224,.9);
  color: var(--green);
  font-size: 27px;
  box-shadow: inset 0 0 0 1px rgba(90,105,65,.08);
}
.modal-header h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
  color: #39402d;
}
.modal-header p {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.modal-content {
  position: relative;
  z-index: 1;
  margin-top: 24px;
}
.modal-file-list {
  display: grid;
  gap: 10px;
}
.modal-file {
  width: 100%;
  border: 1px solid rgba(215,220,210,.9);
  border-radius: 14px;
  background: rgba(255,255,255,.62);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.modal-file:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(40,45,25,.08);
}
.modal-file-type {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #eef0e9;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}
.modal-file-info { min-width: 0; flex: 1; }
.modal-file-info strong { display: block; font-size: 14px; font-weight: 600; }
.modal-file-info small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.modal-file-arrow { font-size: 20px; color: #697257; }
.modal-video {
  aspect-ratio: 16 / 8.5;
  border-radius: 17px;
  background: linear-gradient(145deg, #20251a, #3c452e);
  color: #f5f7ef;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.modal-video-inner { text-align: center; }
.modal-video-play {
  width: 70px;
  height: 70px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.92);
  color: var(--green);
  font-size: 25px;
}
.modal-video-inner strong { display: block; font-size: 15px; }
.modal-video-inner small { display: block; margin-top: 5px; opacity: .72; }
.modal-note {
  margin-top: 13px;
  padding: 13px 15px;
  border-radius: 12px;
  background: rgba(239,242,231,.72);
  color: #5e6650;
  font-size: 12px;
  line-height: 1.5;
}
@keyframes glassIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
  .modal { padding: 12px; }
  .modal-glass { padding: 23px 18px; border-radius: 20px; }
  .modal-header h2 { font-size: 21px; }
  .modal-header { grid-template-columns: 48px 1fr; column-gap: 12px; }
  .modal-icon { width: 48px; height: 48px; font-size: 22px; }
}
body.modal-open { overflow: hidden; }


/* Home mais limpa: sem seção redundante de arquivos recentes */
.quick-access {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.quick-access .archive-grid {
  flex: 1 1 auto;
  align-content: center;
}
.archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .archive-grid { grid-template-columns: 1fr; }
}


/* Home: seis acessos em uma linha + arquivos recentes abaixo */
.quick-access {
  flex: 0 0 auto;
  min-height: 0;
  display: block;
  margin-bottom: 16px;
}
.quick-access .archive-grid {
  flex: none;
  align-content: initial;
}
.archive-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.archive-card {
  min-height: 112px;
  padding: 12px 11px;
}
.archive-card strong { font-size: 11.5px; }
.archive-card small { font-size: 9.5px; }
.recent-files {
  display: block;
  margin-bottom: 0;
}
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: stretch;
}
.contact-item {
  padding: 16px;
  border: 1px solid rgba(216,220,209,.9);
  border-radius: 12px;
  background: rgba(255,255,255,.62);
}
.contact-item span { display:block; color:#85897e; font-size:11px; margin-bottom:5px; }
.contact-item strong { display:block; color:#4a503f; font-size:13px; line-height:1.35; }
.contact-action {
  border: 0; border-radius: 10px; padding: 0 18px; background:#4f563f; color:#fff;
  font: inherit; font-size:12px; font-weight:600; cursor:pointer;
}
@media (max-width: 1100px) {
  .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .archive-grid { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-action { min-height: 44px; }
}
.login-button:disabled{opacity:.65;cursor:wait}.login-message.error{color:#a12b2b}.modal-file-preview{width:100%;height:min(65vh,700px);border-radius:16px;overflow:hidden;background:#eef0f5}.modal-file-preview iframe{width:100%;height:100%;border:0}.modal-actions{display:flex;justify-content:flex-end;margin-top:14px}.modal-actions a{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}


/* Acesso administrativo na tela de login */
.admin-access-button {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  padding: 8px 14px;
  border: 1px solid #dfe3d8;
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all .2s ease;
}
.admin-access-button:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translateY(-1px);
}

/* Home: oito acessos em duas fileiras, preservando a leitura confortável */
@media (min-width: 1101px) {
  .archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
}

/* Garantias */
.warranty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.warranty-item { display:flex; gap:12px; padding:16px; border:1px solid rgba(216,220,209,.9); border-radius:14px; background:rgba(255,255,255,.62); }
.warranty-item > span { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border-radius:10px; background:#edf1e5; color:#5b6348; font-size:10px; font-weight:700; }
.warranty-item strong { display:block; color:#4a503f; font-size:13px; }
.warranty-item p { margin:6px 0 0; color:#777b70; font-size:11px; line-height:1.5; }

/* Serviços complementares */
.services-toolbar { margin-bottom:12px; }
.service-search { display:flex; align-items:center; gap:9px; padding:0 13px; height:46px; border:1px solid rgba(207,213,199,.95); border-radius:12px; background:rgba(255,255,255,.7); }
.service-search span { color:#687052; font-size:20px; }
.service-search input { width:100%; border:0; outline:0; background:transparent; color:#444a3b; font:inherit; font-size:12px; }
.service-categories { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:16px; }
.service-category { border:1px solid #d9ddd1; border-radius:999px; padding:7px 10px; background:rgba(255,255,255,.62); color:#656c59; font:inherit; font-size:10px; cursor:pointer; }
.service-category:hover, .service-category.active { border-color:#596246; background:#596246; color:#fff; }
.service-results { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
.service-empty { grid-column:1/-1; padding:28px 20px; border:1px dashed #cfd5c5; border-radius:14px; text-align:center; background:rgba(255,255,255,.38); }
.service-empty strong { color:#4a503f; font-size:13px; }
.service-empty p { max-width:520px; margin:7px auto 0; color:#85897e; font-size:11px; line-height:1.5; }
.professional-card { padding:15px; border:1px solid rgba(216,220,209,.9); border-radius:14px; background:rgba(255,255,255,.62); }
.professional-top { margin-bottom:9px; }
.professional-category { display:inline-block; padding:5px 8px; border-radius:999px; background:#edf1e5; color:#5b6348; font-size:9px; font-weight:600; }
.professional-card > strong { display:block; color:#444a3b; font-size:13px; }
.professional-card > small, .professional-card > p { display:block; margin:4px 0 0; color:#85897e; font-size:10px; line-height:1.45; }
.professional-contact-details { display:grid; gap:5px; margin-top:10px; padding-top:9px; border-top:1px solid rgba(216,220,209,.72); }
.professional-contact-details > div { display:flex; align-items:baseline; gap:7px; flex-wrap:wrap; }
.professional-contact-details span { color:#85897e; font-size:10px; }
.professional-contact-details strong { color:#555b4c; font-size:11px; font-weight:600; }
.professional-actions { display:flex; gap:7px; margin-top:12px; }
.professional-actions a { padding:7px 10px; border-radius:8px; background:#4f563f; color:#fff; text-decoration:none; font-size:10px; font-weight:600; }
.service-disclaimer { margin-top:16px; }

@media (max-width: 700px) {
  .warranty-grid, .service-results { grid-template-columns:1fr; }
}

/* FIX FINAL 2026-09-25 — 8 cards em duas fileiras no desktop */
@media (min-width: 1101px) {
  .quick-access .archive-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .quick-access .archive-card {
    min-width: 0 !important;
    min-height: 112px !important;
    padding: 12px 11px !important;
  }
  .quick-access .archive-card strong { font-size: 11.5px !important; }
  .quick-access .archive-card small { font-size: 9.5px !important; }
}


/* HOME 2 FILEIRAS - regra definitiva */
@media (min-width:1101px){
 .quick-access>.archive-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
 .quick-access>.archive-grid>.archive-card{min-width:0!important;min-height:126px!important;padding:14px 13px!important}
 .quick-access>.archive-grid>.archive-card .archive-icon{width:38px!important;height:38px!important;font-size:18px!important;margin-bottom:10px!important}
 .quick-access>.archive-grid>.archive-card strong{font-size:13px!important;line-height:1.25!important;margin-bottom:5px!important}
 .quick-access>.archive-grid>.archive-card small{font-size:10.5px!important;line-height:1.4!important}
}
@media (min-width:701px) and (max-width:1100px){.quick-access>.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:700px){.quick-access>.archive-grid{grid-template-columns:1fr!important}}


/* Garantias V5 — garantias do projeto + orientações */
.project-warranties{margin-bottom:18px}
.warranty-section-heading{display:flex;justify-content:space-between;gap:18px;margin-bottom:12px}
.warranty-eyebrow,.warranty-help-title>span{display:block;color:#7a806c;font-size:9px;font-weight:700;letter-spacing:.14em;margin-bottom:4px}
.warranty-section-heading h3,.warranty-help-title h3{margin:0;color:#444a3b;font-size:17px;line-height:1.2}
.warranty-section-heading p{margin:6px 0 0;color:#85897e;font-size:10.5px;line-height:1.5;max-width:650px}
.warranty-category-list{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.warranty-category-list span{padding:6px 9px;border:1px solid #d9ddd1;border-radius:999px;background:rgba(255,255,255,.58);color:#68705a;font-size:9px;font-weight:600}
.warranty-empty{display:flex;align-items:center;gap:14px;padding:16px;border:1px dashed #cbd1c1;border-radius:14px;background:rgba(247,249,243,.72)}
.warranty-empty-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:#edf1e5;color:#596246;font-size:21px}
.warranty-empty strong{display:block;color:#4a503f;font-size:12px}
.warranty-empty p{margin:4px 0 0;color:#85897e;font-size:10px;line-height:1.45}
.warranty-help{padding-top:16px;border-top:1px solid rgba(210,215,204,.75)}
.warranty-help-title{margin-bottom:10px}
@media(max-width:700px){.warranty-section-heading{display:block}.warranty-empty{align-items:flex-start}}

/* V9 — garantias por projeto */
.warranty-client-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.warranty-client-card{border:1px solid #e2e5d8;background:rgba(255,255,255,.82);border-radius:16px;padding:18px}.warranty-client-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.warranty-client-category{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#69744b;font-weight:700}.warranty-client-card h4{margin:0 0 10px;color:#344117;font-size:18px}.warranty-client-card p{margin:5px 0;color:#73786d;font-size:13px;line-height:1.45}.warranty-dates{display:flex;gap:10px;margin:14px 0}.warranty-dates span{flex:1;background:#f4f5ed;border-radius:10px;padding:10px}.warranty-dates small,.warranty-dates b{display:block}.warranty-dates small{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#858a7d}.warranty-dates b{margin-top:3px;color:#344117;font-size:13px}.warranty-status{font-size:10px;font-weight:700;padding:5px 8px;border-radius:999px;background:#eef1e6;color:#526033}.warranty-status.expired{background:#f5e8e6;color:#955047}.warranty-status.soon{background:#f4efe0;color:#8a6b24}.warranty-status.neutral{background:#f0f0ec;color:#777}.warranty-document{display:inline-flex;margin-top:8px;color:#344117;font-weight:700;font-size:13px;text-decoration:none}.warranty-document:hover{text-decoration:underline}.warranty-notes{border-top:1px solid #eceee5;padding-top:10px!important}@media(max-width:760px){.warranty-client-list{grid-template-columns:1fr}.warranty-dates{flex-direction:column}}


/* V11 — navegação pós-projeto + sidebar fixa no desktop */
@media (min-width: 901px) {
  .app-shell {
    display: block;
    height: auto;
    min-height: calc(100vh - 75px);
    overflow: visible;
  }

  .sidebar {
    position: fixed;
    top: 75px;
    left: 0;
    bottom: 0;
    height: auto;
    z-index: 20;
    overflow: visible;
  }

  .sidebar nav {
    height: calc(100% - 112px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
  }

  .content {
    margin-left: 270px;
    width: calc(100% - 270px);
    height: auto;
    min-height: calc(100vh - 75px);
    overflow: visible;
    transition: margin-left .25s ease, width .25s ease;
  }

  .sidebar.collapsed + .content {
    margin-left: 82px;
    width: calc(100% - 82px);
  }
}

/* V12 — sidebar desktop fixa, compacta e sem barra de rolagem visível */
@media (min-width: 901px) {
  .sidebar nav {
    height: calc(100% - 112px);
    padding: 28px 14px 8px;
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .sidebar .nav-item {
    min-height: 61px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .sidebar .nav-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
}

/* Em desktops baixos, preserva o acesso a todos os itens sem exibir a barra */
@media (min-width: 901px) and (max-height: 719px) {
  .sidebar nav {
    padding-top: 18px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .sidebar nav::-webkit-scrollbar { width: 0; height: 0; }
  .sidebar .nav-item { min-height: 56px; }
  .sidebar .nav-icon { width: 46px; height: 46px; flex-basis: 46px; }
}

/* V19 — modais compactos sem barra de rolagem desnecessária */
@media (min-height: 620px) {
  .modal-glass:not(:has(.modal-file-list)):not(:has(.warranty-client-list)):not(:has(.services-client-list)) {
    overflow-y: hidden;
    max-height: none;
  }
}

/* V20 — login principal com linguagem visual dos pop-ups */
.login-screen {
  background:
    linear-gradient(rgba(38, 47, 20, .34), rgba(38, 47, 20, .22)),
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.60), transparent 34%),
    linear-gradient(135deg, #dfe2d8, #f3f4ef 52%, #d9ddd1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.login-screen::before,
.login-screen::after { opacity: .13; border-color: rgba(48,59,19,.55); }
.login-card {
  width: min(455px, 100%);
  padding: 36px 40px 27px;
  border-radius: 28px;
  background: rgba(250, 251, 247, .72);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 30px 80px rgba(27,35,15,.24);
  backdrop-filter: blur(24px) saturate(115%);
  -webkit-backdrop-filter: blur(24px) saturate(115%);
}
.login-field { background: rgba(255,255,255,.62); border-color: rgba(83,94,60,.20); }
.admin-access-button { background: rgba(255,255,255,.46); border-color: rgba(83,94,60,.20); }
.login-footer { border-top-color: rgba(83,94,60,.15); }

/* V21 — refinamento glass dos logins */
.login-screen {
  background:
    linear-gradient(rgba(38,47,20,.25), rgba(38,47,20,.16)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.48), transparent 32%),
    radial-gradient(circle at 82% 78%, rgba(255,255,255,.28), transparent 30%),
    linear-gradient(135deg,#d8ddd0,#f0f2eb 52%,#d3d8ca);
}
.login-screen::before,
.login-screen::after { opacity:.20; border-color:rgba(48,59,19,.42); }
.login-card {
  background:rgba(246,248,242,.54);
  border-color:rgba(255,255,255,.78);
  box-shadow:0 30px 80px rgba(27,35,15,.22), inset 0 1px 0 rgba(255,255,255,.52);
  backdrop-filter:blur(30px) saturate(125%);
  -webkit-backdrop-filter:blur(30px) saturate(125%);
}
.login-brand img { width:min(285px,82%); max-height:92px; }
.login-field { background:rgba(255,255,255,.42); border-color:rgba(83,94,60,.18); }
.login-field input { background:transparent; }
.admin-access-button { background:rgba(255,255,255,.26); border-color:rgba(83,94,60,.17); opacity:.88; }
.admin-access-button:hover { opacity:1; background:rgba(255,255,255,.44); }

/* V29 — recuperação de senha do cliente */
.password-reset-modal{position:fixed;inset:0;z-index:5000;display:flex;align-items:center;justify-content:center;padding:24px;opacity:0;visibility:hidden;transition:.2s ease}.password-reset-modal.visible{opacity:1;visibility:visible}.password-reset-backdrop{position:absolute;inset:0;background:rgba(35,40,29,.34);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.password-reset-card{position:relative;width:min(510px,100%);padding:38px 40px 34px;border:1px solid rgba(255,255,255,.72);border-radius:28px;background:rgba(245,246,240,.88);box-shadow:0 30px 80px rgba(35,42,29,.24);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);color:#4c523e}.password-reset-close{position:absolute;right:20px;top:17px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.58);color:#59604b;font:300 27px/1 Montserrat,sans-serif;cursor:pointer}.password-reset-kicker{display:block;margin-bottom:10px;font-size:12px;font-weight:600;letter-spacing:.12em;color:#788068}.password-reset-card h2{margin:0 40px 10px 0;font-size:28px;line-height:1.2;font-weight:600;color:#424936}.password-reset-card>p{margin:0 0 26px;font-size:14px;line-height:1.7;color:#6b7161}.password-reset-card label{display:block;margin:0 0 8px;font-size:14px;font-weight:600;color:#505548}.password-reset-field{margin-bottom:16px}.password-reset-message{min-height:22px;margin:15px 0 0;text-align:center;font-size:13px;line-height:1.5;color:#657052}.password-reset-message.error{color:#a12b2b}@media(max-width:560px){.password-reset-card{padding:32px 24px 28px;border-radius:22px}.password-reset-card h2{font-size:24px}}

/* V31 — correção: recuperação de senha deve ficar acima da tela pública de login */
.password-reset-modal { z-index: 12000; }


/* V33 — visualização administrativa do Caderno do cliente */
.admin-preview-banner{position:relative;z-index:120;min-height:46px;padding:10px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#303b13;color:#fff;font-size:13px;letter-spacing:.01em}
.admin-preview-banner[hidden]{display:none!important}.admin-preview-banner strong{font-weight:700}.admin-preview-banner a{color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.42);border-radius:9px;padding:7px 11px;font-weight:600}.admin-preview-banner a:hover{background:rgba(255,255,255,.1)}
@media(max-width:700px){.admin-preview-banner{padding:10px 14px;align-items:flex-start;flex-direction:column;gap:8px}}


/* V35 — visualizador integrado de arquivos e vídeos */
.modal.file-viewer-mode .modal-glass{width:min(1120px,96vw);max-height:min(900px,92vh)}
.modal.file-viewer-mode .modal-content{margin-top:20px}
.modal-file-preview{width:100%;height:min(68vh,720px);min-height:420px;border-radius:18px;overflow:hidden;background:#20251a;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.modal-file-preview iframe{width:100%;height:100%;border:0;background:#fff}
.modal-file-preview.image-preview{display:grid;place-items:center;background:#eef0e9;padding:16px}
.modal-file-preview.image-preview img{display:block;max-width:100%;max-height:100%;object-fit:contain;border-radius:10px}
.modal-file-preview.video-preview{display:grid;place-items:center;background:#171b12}
.modal-file-preview.video-preview video{width:100%;height:100%;max-height:720px;object-fit:contain;background:#000}
.modal-actions.viewer-actions{align-items:center;justify-content:space-between;gap:16px}
.modal-actions.viewer-actions span{font-size:12px;color:var(--muted)}
.modal-actions .contact-action{min-height:42px;padding:0 20px;border-radius:12px;font-size:13px;font-weight:600}
@media(max-width:700px){.modal.file-viewer-mode{padding:10px}.modal.file-viewer-mode .modal-glass{padding:22px 16px}.modal-file-preview{height:58vh;min-height:320px}.modal-actions.viewer-actions{align-items:stretch;flex-direction:column}.modal-actions.viewer-actions .contact-action{width:100%}}

/* V36 — refinamento do visualizador do cliente */
.modal.file-viewer-mode .modal-glass{width:min(1280px,97vw);max-height:94vh;padding:30px 30px 24px}
.modal.file-viewer-mode .modal-header{grid-template-columns:1fr;padding-right:56px;min-height:66px}
.modal.file-viewer-mode .modal-header .modal-icon{display:none}
.modal.file-viewer-mode .modal-header .modal-kicker{margin-bottom:5px}
.modal.file-viewer-mode .modal-header h2{font-size:28px;line-height:1.15}
.modal.file-viewer-mode .modal-header p{font-size:14px;margin-top:4px}
.modal.file-viewer-mode .modal-content{margin-top:14px}
.modal.file-viewer-mode .modal-file-preview{height:min(73vh,790px);min-height:500px;border-radius:16px}
.modal.file-viewer-mode .modal-actions.viewer-actions{margin-top:12px;min-height:48px;padding:0 2px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.modal.file-viewer-mode .modal-actions.viewer-actions span{font-size:13px;line-height:1.4}
.modal.file-viewer-mode .modal-actions.viewer-actions .contact-action{min-height:44px;padding:0 22px;white-space:nowrap}
@media(max-width:700px){.modal.file-viewer-mode .modal-glass{width:min(100%,96vw);padding:20px 14px 16px}.modal.file-viewer-mode .modal-header{padding-right:44px;min-height:58px}.modal.file-viewer-mode .modal-header h2{font-size:23px}.modal.file-viewer-mode .modal-file-preview{height:62vh;min-height:340px;border-radius:13px}.modal.file-viewer-mode .modal-actions.viewer-actions{gap:10px;margin-top:10px}.modal.file-viewer-mode .modal-actions.viewer-actions span{text-align:center}.modal.file-viewer-mode .modal-actions.viewer-actions .contact-action{width:100%}}

/* V41 — Cards compactos de Serviços Complementares */
.service-results{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.professional-card{padding:16px 16px 14px;border-radius:16px;background:rgba(255,255,255,.72);display:flex;flex-direction:column;min-width:0;box-shadow:0 7px 20px rgba(43,53,20,.035)}
.professional-top{margin-bottom:8px}
.professional-category{padding:5px 9px;font-size:9px}
.professional-card>strong{font-size:14px;line-height:1.25}
.professional-card>small,.professional-card>p{font-size:10px;line-height:1.4}
.professional-card>small+ p{margin-top:2px}
.professional-contact-details{gap:6px;margin-top:10px;padding-top:10px}
.professional-contact-details>div{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:7px;min-width:0}
.professional-contact-details span{font-size:9.5px}
.professional-contact-details strong{font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.professional-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:auto;padding-top:12px}
.professional-actions a{display:flex;align-items:center;justify-content:center;min-height:34px;padding:7px 9px;border-radius:9px;font-size:10px;text-align:center}
.professional-actions a:only-child{grid-column:1/-1}
@media (max-width:1100px){.service-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.service-results{grid-template-columns:1fr}.professional-card{padding:15px}.professional-contact-details>div{grid-template-columns:64px minmax(0,1fr)}}

/* =========================================================
   V42 — OTIMIZAÇÃO MOBILE COMPLETA
   Regras abaixo de 700px apenas; desktop permanece inalterado.
   ========================================================= */
.mobile-nav-toggle,.mobile-sidebar-backdrop{display:none}
@media (max-width:700px){
  html,body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto;-webkit-text-size-adjust:100%}
  body.mobile-menu-open{overflow:hidden}
  .portal-app{min-height:100dvh}
  .topbar{height:64px;padding:0 12px;gap:10px;position:sticky;top:0;z-index:80}
  .mobile-nav-toggle{display:flex;width:42px;height:42px;flex:0 0 42px;border:1px solid #dfe3d8;border-radius:11px;background:#fff;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:0;cursor:pointer;color:var(--green)}
  .mobile-nav-toggle span{display:block;width:19px;height:2px;border-radius:2px;background:currentColor;transition:.2s}
  .mobile-nav-toggle.active span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .mobile-nav-toggle.active span:nth-child(2){opacity:0}
  .mobile-nav-toggle.active span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
  .brand-area{min-width:0;flex:1}.header-logo{width:min(165px,42vw);height:48px}
  .user-area{padding-left:0;border-left:0;gap:7px;flex:0 0 auto}.user-icon{display:none}.user-area>div{display:none}
  .logout-button{width:42px;height:42px;padding:0;margin:0;border-radius:11px;justify-content:center;font-size:0}.logout-button span{font-size:19px}
  .app-shell{display:block;height:auto;min-height:calc(100dvh - 64px);overflow:visible}
  .mobile-sidebar-backdrop{display:block;position:fixed;inset:64px 0 0;background:rgba(22,27,13,.38);backdrop-filter:blur(3px);z-index:69;opacity:0;visibility:hidden;transition:.22s}
  .mobile-sidebar-backdrop.visible{opacity:1;visibility:visible}
  .sidebar{display:flex;flex-direction:column;position:fixed;left:0;top:64px;bottom:0;width:min(84vw,320px);height:auto;z-index:70;transform:translateX(-105%);transition:transform .24s ease;overflow-y:auto;overflow-x:hidden;box-shadow:18px 0 45px rgba(25,31,12,.22)}
  .sidebar.mobile-open{transform:translateX(0)}
  .sidebar nav{padding:16px 12px 8px}.nav-item{justify-content:flex-start;min-height:52px;padding:6px 8px;gap:11px;font-size:14px}.nav-item>span:last-child{display:inline!important}.nav-item br{display:none}.nav-icon{width:40px;height:40px;flex:0 0 40px;font-size:19px}.collapse-btn{display:none}.sidebar-project{position:static;margin-top:auto;padding:18px 16px 22px;text-align:left}.sidebar-project strong{font-size:14px}
  .content,.home-content{width:100%;padding:22px 16px 36px;overflow:visible;min-height:auto}.content::before,.content::after{display:none}
  .home-welcome{margin-bottom:18px}.home-welcome .eyebrow,.eyebrow{font-size:10px;letter-spacing:.12em}.home-welcome h1{font-size:25px;line-height:1.18;margin:6px 0 10px}.home-welcome p{font-size:13px;line-height:1.62}
  .intro-video-section{padding:17px 16px;margin-bottom:18px;border-radius:16px}.section-heading,.section-heading.compact{display:flex;flex-direction:column;align-items:stretch;gap:13px}.section-heading h2{font-size:20px;line-height:1.25}.section-heading p{font-size:12px;line-height:1.55}.intro-video-button{width:100%;min-height:48px;justify-content:center}
  .quick-access{margin-bottom:22px}.quick-access>.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.quick-access>.archive-grid>.archive-card{min-height:124px!important;padding:14px 12px!important}.archive-card .archive-icon{width:38px;height:38px}.archive-card strong{font-size:12px!important;line-height:1.3}.archive-card small{font-size:9.5px!important;line-height:1.4}
  .recent-files{margin-top:6px}.file-list{grid-template-columns:1fr!important;gap:9px}.file-card{min-width:0}
  .modal{padding:8px;align-items:flex-end}.modal-glass{width:100%!important;max-width:none!important;max-height:92dvh!important;border-radius:22px 22px 14px 14px!important;padding:22px 16px 18px!important;overflow-y:auto}.modal-header{gap:10px}.modal-header h2{font-size:22px;line-height:1.2}.modal-close{width:42px;height:42px;flex:0 0 42px}.modal-actions{flex-direction:column;align-items:stretch}.modal-actions>*{width:100%;min-height:46px}
  .modal.file-viewer-mode{padding:0;align-items:stretch}.modal.file-viewer-mode .modal-glass{height:100dvh;max-height:100dvh!important;border-radius:0!important;padding:14px 10px 10px!important;display:flex;flex-direction:column}.modal.file-viewer-mode .modal-file-preview{height:auto!important;min-height:0!important;flex:1;border-radius:10px}.modal.file-viewer-mode .modal-header h2{font-size:19px}.modal.file-viewer-mode .modal-actions.viewer-actions{flex:0 0 auto}
  .service-filters{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}.service-filters input,.service-filters select,input,select,textarea{font-size:16px}.service-results{grid-template-columns:1fr!important;gap:11px}.professional-card{padding:16px}.professional-actions a{min-height:44px;font-size:12px}.professional-contact-details strong{font-size:12px;white-space:normal;overflow:visible}.professional-contact-details span{font-size:10px}
  .warranty-client-list{grid-template-columns:1fr}.warranty-client-card{padding:16px}.warranty-dates{flex-direction:column}.contact-panel{grid-template-columns:1fr}.contact-action{min-height:46px}
  .password-reset-modal{padding:12px;align-items:flex-end}.password-reset-card{width:100%;padding:28px 20px 24px;border-radius:22px}.password-reset-card h2{font-size:23px}.password-reset-card input{font-size:16px}
  .admin-preview-banner{font-size:12px}
}
@media (max-width:370px){
  .content,.home-content{padding-left:12px;padding-right:12px}.quick-access>.archive-grid{grid-template-columns:1fr!important}.header-logo{width:145px}.home-welcome h1{font-size:23px}
}

/* =========================================================
   V44 — CENTRALIZAÇÃO DOS POP-UPS NO MOBILE
   Somente mobile; desktop permanece inalterado.
   ========================================================= */
@media (max-width:700px){
  .modal{align-items:center!important;justify-content:center!important;padding:12px!important;min-height:100dvh}
  .modal:not(.file-viewer-mode) .modal-glass{width:100%!important;max-width:none!important;max-height:calc(100dvh - 24px)!important;border-radius:22px!important;overflow-y:auto!important;margin:auto!important}
  .password-reset-modal{align-items:center!important;justify-content:center!important;padding:12px!important}
  .password-reset-card{max-height:calc(100dvh - 24px);overflow-y:auto;margin:auto}
}
\n\n/* =========================================================\n   V46 — VISUALIZADOR DE IMAGENS MOBILE COM ALTURA REAL\n   A classe image-viewer-mode é aplicada via JS somente a imagens.\n   Desktop, PDFs e vídeos permanecem inalterados.\n   ========================================================= */\n@media (max-width:700px){\n  .modal.file-viewer-mode.image-viewer-mode{\n    align-items:center!important;\n    justify-content:center!important;\n    padding:12px!important;\n    min-height:100dvh;\n  }\n  .modal.file-viewer-mode.image-viewer-mode .modal-glass{\n    width:100%!important;\n    height:auto!important;\n    min-height:0!important;\n    max-height:calc(100dvh - 24px)!important;\n    margin:auto!important;\n    padding:20px 16px 18px!important;\n    border-radius:22px!important;\n    display:block!important;\n    overflow-y:auto!important;\n  }\n  .modal.file-viewer-mode.image-viewer-mode .modal-header{\n    min-height:0!important;\n    margin-bottom:12px;\n  }\n  .modal.file-viewer-mode.image-viewer-mode .modal-content{\n    margin-top:10px!important;\n  }\n  .modal.file-viewer-mode.image-viewer-mode .modal-file-preview.image-preview{\n    width:100%;\n    height:auto!important;\n    min-height:0!important;\n    max-height:none!important;\n    aspect-ratio:auto!important;\n    display:flex!important;\n    align-items:center;\n    justify-content:center;\n    flex:none!important;\n    padding:8px!important;\n    border-radius:14px!important;\n  }\n  .modal.file-viewer-mode.image-viewer-mode .modal-file-preview.image-preview img{\n    display:block;\n    width:auto;\n    max-width:100%;\n    height:auto;\n    max-height:46dvh;\n    object-fit:contain;\n    margin:0 auto;\n  }\n  .modal.file-viewer-mode.image-viewer-mode .modal-actions.viewer-actions{\n    margin-top:10px!important;\n    min-height:0!important;\n    display:flex!important;\n    flex-direction:column!important;\n    gap:10px!important;\n  }\n}\n