:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#15343b;background:#f4f7f6;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible{outline:3px solid #6cc9b2;outline-offset:3px}[hidden]{display:none!important}.app-shell{min-height:100dvh;max-width:940px;margin:0 auto;display:flex;flex-direction:column}.topbar{height:81px;padding:0 38px;display:flex;gap:10px;align-items:center;border-bottom:1px solid #e5edeb}.brand-mark{background:#133d42;color:#fff;border-radius:12px;display:grid;place-items:center;width:35px;height:35px;font-size:27px}.brand-name{font-weight:800;letter-spacing:-.7px;font-size:20px}.brand-name span{color:#3e9d81}.mode-badge{font-size:10px;font-weight:800;letter-spacing:1px;padding:5px 8px;background:#fff0c6;border-radius:5px;color:#87600b}main{flex:1;padding:36px 38px 55px}.view{max-width:860px;margin:auto}.welcome{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:30px}.eyebrow{display:block;color:#3f9b83;font-weight:800;letter-spacing:2.1px;font-size:10px}.welcome h1,.settings-head h1{font-size:clamp(32px,5vw,50px);letter-spacing:-2px;margin:8px 0 7px;line-height:1.1}.title-accent{color:#43a98c}.welcome p,.login-hero p{color:#6b7f81;margin:0;font-size:14px;line-height:1.7}.icon-button{width:39px;height:39px;border:1px solid #e0e9e6;background:#fff;border-radius:11px;color:#34595d;font-size:22px;display:grid;place-items:center;flex:none}.setup-card{border:1px solid #c9e5db;border-radius:15px;background:#eaf7f2;padding:19px;display:flex;align-items:center;gap:18px;margin-bottom:22px}.setup-illustration{width:54px;height:54px;background:#d0eee2;color:#238768;border-radius:12px;display:grid;place-items:center;font-size:30px;flex:none}.setup-copy strong{font-size:15px}.setup-copy p{color:#55736d;font-size:13px;margin:5px 0 11px}.btn{border:0;border-radius:10px;padding:14px 20px;font-weight:750;display:inline-flex;align-items:center;justify-content:space-between;gap:12px}.btn-primary{color:#fff;background:#154c49}.btn-primary:hover,.btn-small:hover{background:#1b6457}.btn-small{padding:9px 13px;font-size:12px;color:white;background:#277e69}.btn-outline{background:white;border:1px solid #cbdcd6;color:#27514d}.stats{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:32px}.stat-card{background:white;border:1px solid #e3ebe8;border-radius:15px;padding:20px 22px;min-height:131px}.stat-card span{font-size:10px;letter-spacing:1.7px;font-weight:800;color:#758f8c}.stat-card strong{display:block;font-size:36px;line-height:1.1;margin:10px 0 3px;letter-spacing:-1px}.stat-card small{color:#8b9b99;font-size:11px}.list-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.list-heading h2{font-size:20px;letter-spacing:-.6px;margin:0 0 4px}.list-heading p{font-size:12px;color:#8b9b99;margin:0}.filters{display:flex;align-items:center;gap:7px;margin-bottom:13px;flex-wrap:wrap}.filter{background:transparent;border:1px solid transparent;color:#69817d;border-radius:8px;padding:10px 12px;font-size:12px;font-weight:750}.filter.active{background:#e2f0eb;color:#216c57}.filter span{margin-left:6px;font-size:10px}.text-button{border:0;background:none;color:#33826c;font-size:12px;font-weight:750;margin-left:auto;padding:10px 0}.notifications-list{background:#fff;border:1px solid #e3ebe8;border-radius:14px;overflow:hidden}.notification{display:flex;gap:13px;padding:19px 18px;border-bottom:1px solid #edf2ef;align-items:flex-start}.notification:last-child{border-bottom:0}.notification.unread{background:#fbfefd}.notification-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#e9f3ef;color:#2e806c;flex:none;font-size:19px}.notification-content{flex:1;min-width:0}.notification-title-row{display:flex;justify-content:space-between;gap:12px;align-items:start}.notification h3{font-size:14px;margin:0;line-height:1.4;color:#223e41}.notification p{font-size:13px;line-height:1.6;color:#748789;margin:5px 0 8px;overflow-wrap:anywhere}.notification time{font-size:11px;color:#94a4a1}.unread-dot{width:8px;height:8px;border-radius:50%;background:#3db18c;flex:none;margin-top:6px}.mark-read{border:0;background:transparent;color:#358775;font-size:11px;font-weight:750;padding:8px 0 0}.empty{padding:45px 20px;text-align:center}.empty-icon{font-size:31px;color:#7ab5a3}.empty h3{font-size:16px;margin:10px 0 6px}.empty p{color:#809591;font-size:13px;margin:0}.retention{font-size:11px;color:#839895;text-align:center;margin:20px 0}.retention span{font-size:17px;vertical-align:middle}.footer{display:flex;justify-content:space-between;padding:22px 38px;border-top:1px solid #e5edeb;color:#91a4a0;font-size:11px}.login-hero{text-align:center;padding:30px 0 26px}.login-hero h1{font-size:clamp(32px,5vw,48px);line-height:1.16;letter-spacing:-1.8px;margin:18px 0}.login-hero em{font-style:normal;color:#3ca084}.login-hero p{max-width:450px;margin:0 auto}.hero-icon{width:75px;height:75px;margin:0 auto 24px;background:#dff3eb;border-radius:22px;color:#227963;font-size:63px;line-height:70px;position:relative}.hero-dot{background:#4aac8b;border:4px solid #dff3eb;width:18px;height:18px;position:absolute;bottom:12px;right:13px;border-radius:50%}.panel{background:#fff;border:1px solid #e0e9e5;border-radius:15px;padding:24px}.login-hero+.panel{max-width:440px;margin:0 auto}.panel label{font-size:13px;font-weight:750;display:block;margin-bottom:9px}.panel input{width:100%;padding:14px;border:1px solid #d4e1dc;border-radius:9px;background:#fcfefd;margin-bottom:15px}.panel .btn{width:100%}.fine-print{font-size:12px;color:#869995;line-height:1.7;text-align:center}.notice{max-width:440px;padding:14px;border-radius:10px;background:#e4f4ea;color:#256b4f;font-size:13px;line-height:1.6;margin:14px auto}.notice.error{max-width:none;background:#fff0ee;color:#a34d46;margin:0 0 15px}.loading-view{padding:15vh 0;text-align:center;color:#6d8781}.spinner{border:3px solid #dce9e4;border-top-color:#358d75;border-radius:50%;height:34px;width:34px;margin:auto;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.settings-head{display:flex;align-items:center;gap:15px;margin-bottom:30px}.settings-head h1{font-size:30px;margin:0}.settings-panel{display:flex;flex-direction:column;gap:12px;margin-bottom:15px}.settings-panel strong{overflow-wrap:anywhere}.settings-panel p{color:#758b85;font-size:13px;margin:0}.settings-panel .btn{align-self:flex-start;width:auto}.toast{position:fixed;left:50%;bottom:max(24px,env(safe-area-inset-bottom));transform:translateX(-50%);background:#163f3d;color:white;padding:12px 18px;border-radius:11px;font-size:13px;box-shadow:0 9px 25px #152b2830;max-width:calc(100vw - 24px);z-index:20}@media(max-width:580px){.topbar{height:66px;padding:0 19px}main{padding:30px 17px 40px}.footer{padding:18px}.welcome{margin-bottom:24px}.welcome h1{font-size:36px}.stat-card{padding:17px;min-height:118px}.stat-card strong{font-size:31px}.setup-card{padding:15px;gap:12px}.setup-illustration{width:45px;height:45px;font-size:24px}.notification{padding:17px 12px;gap:10px}.filter{padding:9px}.text-button{font-size:11px}.login-hero{padding-top:8px}}


/* Identidade Trinovati — camada visual, sem alterações nos IDs ou fluxos JS */
:root{--brand:#FF5533;--brand-dark:#DD4325;--brand-soft:#FFF0EB;--surface:#FFFFFF;--bg:#F7F8FA;--ink:#24272B;--muted:#727780;--line:#E5E7EB;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}
body{background:var(--bg)}
button:focus-visible,input:focus-visible{outline:3px solid #FFAA96;outline-offset:3px}
.app-shell{max-width:980px}
.topbar{height:78px;background:#fff;border-bottom:1px solid var(--line)}
.brand-logo{width:157px;height:56px;object-fit:contain;object-position:left center;display:block}
.mode-badge{background:#FFF0EB;color:#A73D27}
main{padding-top:34px}
.eyebrow{color:var(--brand-dark);letter-spacing:1.5px}
.welcome h1,.settings-head h1{color:var(--ink)}
.title-accent,.login-hero em{color:var(--brand)}
.welcome p,.login-hero p,.fine-print{color:var(--muted)}
.icon-button{color:var(--brand-dark);border-color:var(--line);background:#fff}
.icon-button:hover{background:var(--brand-soft)}
.setup-card{background:var(--brand-soft);border-color:#FFD5CA}
.setup-illustration{background:#FFE0D8;color:var(--brand-dark)}
.setup-copy p{color:#895C51}
.btn-primary,.btn-small{background:var(--brand);color:#fff}
.btn-primary:hover,.btn-small:hover{background:var(--brand-dark)}
.btn-outline{background:#fff;color:var(--ink);border-color:var(--line)}
.btn-outline:hover{background:var(--brand-soft);border-color:#FFB9A7}
.panel,.stat-card,.notifications-list{background:var(--surface);border-color:var(--line);box-shadow:0 3px 16px rgba(36,39,43,.025)}
.stat-card span{color:var(--muted)}.stat-card strong{color:var(--ink)}.stat-card small{color:#858992}
.list-heading p,.retention,.footer{color:#858992}
.filter{color:var(--muted)}.filter.active{color:var(--brand-dark);background:var(--brand-soft)}
.text-button,.mark-read{color:var(--brand-dark)}
.notification{border-bottom-color:#EEF0F3}
.notification.unread{background:#FFFBF9;box-shadow:inset 3px 0 0 var(--brand)}
.notification-icon{background:var(--brand-soft);color:var(--brand-dark)}
.notification h3{color:var(--ink)}.notification p{color:#626873}.notification time{color:#9196A0}
.unread-dot{background:var(--brand)}
.empty-icon{color:var(--brand)}.empty p{color:var(--muted)}
.login-hero{padding-top:24px}
.hero-icon{width:106px;height:106px;background:var(--brand-soft);border-radius:26px;display:grid;place-items:center;line-height:normal}
.hero-icon img{height:82px;width:82px;object-fit:contain;border-radius:20px}
.hero-dot{display:none}
.panel input{border-color:var(--line);background:#FAFAFB;color:var(--ink)}
.panel input:focus{border-color:var(--brand);outline:2px solid #FFD5CA}
.notice{background:#FFF0EB;color:#973F2D}.notice.error{background:#FFF0EE;color:#A9352C}
.loading-view{color:var(--muted)}.spinner{border-color:#FFE1D9;border-top-color:var(--brand)}
.settings-panel p{color:var(--muted)}
.toast{background:#28292C}
.footer{border-top-color:var(--line);background:#fff}
@media(max-width:580px){.topbar{height:68px}.brand-logo{width:140px;height:48px}.welcome h1{font-size:34px}.login-hero{padding-top:12px}.notification.unread{box-shadow:inset 3px 0 0 var(--brand)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

[hidden] { display: none !important; }
#loginView > .login-panel { max-width: 440px; margin: 0 auto; }
#loginView .login-panel #loginForm,
#loginView .login-panel #codeForm { width: 100%; }
#loginView .login-panel .code-intro { color: #727780; font-size: 13px; line-height: 1.6; margin: 0 0 18px; overflow-wrap: anywhere; }
#loginView .login-panel .code-intro strong { color: #24272B; }
#loginView .login-panel .btn-text { display: block; background: transparent; color: #DD4325; border: 0; margin-top: 10px; width: 100%; padding: 11px; text-align: center; }
#loginView .login-panel #codeInput { text-align: center; letter-spacing: .24em; font-size: 22px; font-variant-numeric: tabular-nums; }
/* =====================================
   TRINOVATI — INSTALAÇÃO DO PWA
===================================== */

#install-banner {
  width: 100%;
  max-width: 32rem;
  margin: 1.5rem auto;
  padding: 1.5rem;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;

  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 1rem;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* Respeitar elementos ocultos pelo JavaScript */
#install-banner[hidden],
#install-banner [hidden] {
  display: none !important;
}

/* Título */
#install-banner h3 {
  margin: 0;
  color: #202020;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Descrição */
#install-banner p {
  margin: 0;
  color: #666666;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Botão principal */
#install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 2.875rem;
  padding: 0.75rem 1.25rem;

  background-color: #ff5533;
  color: #ffffff;

  border: none;
  border-radius: 0.625rem;

  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;

  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

#install-button:hover {
  background-color: #e74728;
  transform: translateY(-1px);
}

#install-button:active {
  transform: translateY(0);
}

#install-button:focus-visible {
  outline: 3px solid rgba(255, 85, 51, 0.3);
  outline-offset: 3px;
}

/* Instruções para iPhone */
#install-instructions {
  width: 100%;
  padding: 0.875rem 1rem;

  background: #fff3ef;
  border: 1px solid #ffd9ce;
  border-radius: 0.625rem;

  color: #a33920 !important;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Responsividade */
@media (max-width: 600px) {
  #install-banner {
    max-width: 100%;
    margin: 1rem auto;
    padding: 1.25rem;
    border-radius: 0.875rem;
  }

  #install-banner h3 {
    font-size: 1rem;
  }

  #install-button {
    min-height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #install-button {
    transition: none;
  }
}
.shed-picker { display: grid; gap: .5rem; margin: 1rem 0; }
.shed-picker label { font-weight: 600; }
.shed-picker select { width: 100%; min-width: 0; min-height: 44px; padding: .75rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #172b24; font: inherit; }
.notification-shed { display: block; font-size: .85rem; color: #52645c; margin-bottom: .35rem; overflow-wrap: anywhere; }
