:root {
  --navy: #071f4a;
  --navy-2: #0b2b62;
  --blue: #174fe6;
  --blue-soft: #eef3ff;
  --teal: #13b7bd;
  --teal-soft: #e9fbfb;
  --ink: #101c38;
  --muted: #667089;
  --line: #dfe4ee;
  --surface: #ffffff;
  --page: #f6f8fc;
  --danger: #c9384f;
  --radius: 12px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.brand { display: inline-flex; align-items: center; gap: 20px; }
.brand-symbol { position: relative; width: 102px; height: 82px; display: block; }
.brand-symbol i, .brand-symbol b, .brand-symbol em {
  position: absolute; display: block; border-radius: 12px; content: "";
}
.brand-symbol i { width: 45px; height: 45px; left: 0; bottom: 0; background: var(--teal); }
.brand-symbol b { width: 53px; height: 53px; right: 6px; top: 0; background: var(--blue); }
.brand-symbol em { width: 10px; height: 10px; right: 0; top: -11px; background: var(--teal); transform: rotate(45deg); }
.brand-name { font-size: 43px; line-height: .76; font-weight: 800; letter-spacing: -2px; }
.brand-name small { display: block; color: var(--blue); font-size: 17px; line-height: 1; letter-spacing: 2px; margin-top: 10px; }

/* Login */
.login-body { background: #f4f7fb; overflow-x: hidden; }
.login-backdrop { position: fixed; inset: 0; z-index: 0; }
.login-layout {
  position: relative; z-index: 1; min-height: 100vh; display: grid; pointer-events: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}
.login-hero {
  pointer-events: auto; position: relative; display: flex; flex-direction: column; justify-content: space-between;
  gap: 32px; min-height: 100vh; padding: 48px 56px 40px; color: #fff; background: var(--navy);
  text-decoration: none; cursor: pointer;
}
.login-hero:hover { background: #0a275c; }
.login-hero:focus-visible { outline: 3px solid var(--teal); outline-offset: -6px; }
.login-logo { display: flex; align-items: center; gap: 16px; color: #fff; }
.login-logo svg { width: 78px; height: 70px; flex: 0 0 78px; }
.login-logo > span { font-size: 40px; line-height: .82; font-weight: 800; letter-spacing: -1.6px; }
.login-hero-copy { display: block; max-width: 560px; }
.login-hero h1 { margin: 0 0 16px; font-size: clamp(36px, 4vw, 58px); line-height: 1.02; letter-spacing: -1.8px; font-weight: 800; }
.login-hero h1 span { color: #46d0d3; }
.login-hero-copy > p { margin: 0; max-width: 460px; color: #c9d5ea; font-size: 17px; line-height: 1.55; }
.login-points { display: grid; gap: 18px; margin-top: 36px; max-width: 480px; }
.login-points > span { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: start; }
.login-points i { display: block; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: #46d0d3; }
.login-points b { display: block; font-size: 15px; font-weight: 700; }
.login-points b + span { display: block; margin-top: 2px; color: #a9b8d4; font-size: 13px; font-weight: 400; }
.login-go { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #d5e2f8; font-size: 14px; }
.login-go b { color: #fff; font-weight: 700; }
.login-access { padding: 32px 28px; display: grid; place-items: center; }
.login-card { pointer-events: auto; width: min(100%, 420px); border: 1px solid var(--line); border-radius: 16px; padding: 32px 32px 24px; background: #fff; }
.login-card header h2, .reset-dialog h2, .acesso-dialog h2 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.6px; }
.login-card header p, .reset-dialog p, .acesso-dialog p { color: var(--muted); margin: 0 0 22px; font-size: 14px; line-height: 1.45; }
.login-card label, .reset-dialog label, .acesso-dialog label { font-size: 13px; font-weight: 700; display: block; margin: 14px 0 6px; }
.label-row { display: flex; justify-content: space-between; align-items: end; }
.label-row label { margin-bottom: 6px; }
.link-button, .text-action { border: 0; background: transparent; color: var(--blue); padding: 4px; font-size: 13px; }
.field { height: 46px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; padding: 0 12px; gap: 10px; background: #fff; }
.field--text { height: auto; align-items: stretch; }
.field:focus-within { border-color: var(--blue); outline: 3px solid var(--blue-soft); }
.field input, .field select, .field textarea { border: 0; outline: 0; width: 100%; min-width: 0; color: var(--ink); background: transparent; font: inherit; }
.field textarea { min-height: 96px; resize: vertical; padding: 10px 0; }
.field input::placeholder, .field textarea::placeholder { color: #9aa2b5; }
.password-toggle { border: 0; background: transparent; color: var(--blue); font-size: 12px; }
.remember { display: flex !important; gap: 8px; align-items: center; margin: 16px 0 18px; font-weight: 500 !important; color: var(--muted); font-size: 13px; }
.remember input { width: 17px; height: 17px; accent-color: var(--blue); }
.primary-button, .secondary-button {
  border: 1px solid var(--blue); border-radius: 8px; height: 44px; padding: 0 20px;
  font-weight: 700; font-size: 13px;
}
.primary-button { background: var(--blue); color: #fff; }
.primary-button:hover { background: #0c3dca; }
.primary-button--full { width: 100%; margin-top: 0; height: 48px; }
.secondary-button { background: #fff; color: var(--blue); }
.secondary-button:hover { background: var(--blue-soft); }
.ticket-button {
  pointer-events: auto; width: 100%; margin-top: 10px; height: 44px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; cursor: pointer;
}
.ticket-button:hover { border-color: var(--blue); color: var(--blue); background: #f3f6ff; }
.security-note { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; display: flex; gap: 10px; align-items: flex-start; }
.security-note span { width: 16px; height: 16px; margin-top: 1px; border: 1.5px solid var(--teal); border-radius: 50%; flex: 0 0 auto; }
.security-note p { color: var(--muted); font-size: 12px; line-height: 1.4; margin: 0; }
.form-message { margin: 14px 0 4px; padding: 12px 14px; border: 1px solid #f0a5b2; background: #fff3f5; color: #8f2335; border-radius: 8px; font-size: 13px; }
.form-message--ok { border-color: #9ed9c8; background: #f1fbf7; color: #146047; }
.chamado-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chamado-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.reset-dialog, .customize-dialog, .acesso-dialog { border: 1px solid var(--line); border-radius: 16px; padding: 0; color: var(--ink); }
.reset-dialog::backdrop, .customize-dialog::backdrop, .acesso-dialog::backdrop { background: rgba(7, 31, 74, .45); }
.reset-dialog form, .acesso-dialog form { width: min(520px, 92vw); padding: 28px 28px 22px; position: relative; }
.acesso-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.dialog-close { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: var(--muted); font-size: 26px; }

/* Portal shell */
.portal-body { background: var(--page); overflow-x: hidden; }
.sidebar {
  position: fixed; z-index: 30; inset: 0 auto 0 0; width: 76px; background: var(--navy);
  color: #fff; display: flex; flex-direction: column; transition: width .22s ease;
  overflow-x: hidden; overflow-y: auto; border-right: 1px solid rgba(255,255,255,.08);
}
.sidebar:hover, .sidebar:focus-within { width: 268px; }
.sidebar-brand { min-height: 78px; display: flex; align-items: center; padding: 14px 18px; gap: 13px; border-bottom: 1px solid rgba(255,255,255,.1); white-space: nowrap; }
.brand-symbol--small { width: 40px; height: 39px; flex: 0 0 40px; }
.brand-symbol--small i { width: 21px; height: 21px; border-radius: 5px; }
.brand-symbol--small b { width: 24px; height: 24px; right: 0; border-radius: 5px; }
.brand-symbol--small em { width: 5px; height: 5px; right: -2px; top: -3px; }
.sidebar-brand-name { opacity: 0; font-size: 18px; font-weight: 800; line-height: .9; transition: opacity .15s; }
.sidebar:hover .sidebar-brand-name, .sidebar:focus-within .sidebar-brand-name { opacity: 1; }
.sidebar-nav { padding: 12px 9px; flex: 1; }
.nav-group { margin: 3px 0; }
.nav-entry { width: 100%; border: 0; color: #d7e2fa; background: transparent; display: flex; align-items: center; min-height: 44px; border-radius: 8px; padding: 0 12px; gap: 15px; white-space: nowrap; text-align: left; }
.nav-entry:hover, .nav-entry.is-active, .nav-group.is-open > .nav-entry { background: var(--blue); color: #fff; }
.nav-icon { width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 7px; display: grid; place-items: center; font-size: 9px; font-weight: 800; flex: 0 0 26px; }
.nav-label { opacity: 0; transition: opacity .15s; font-size: 13px; }
.sidebar:hover .nav-label, .sidebar:focus-within .nav-label { opacity: 1; }
.nav-chevron { opacity: 0; margin-left: auto; font-size: 21px; transition: transform .15s; }
.sidebar:hover .nav-chevron, .sidebar:focus-within .nav-chevron { opacity: .8; }
.nav-group.is-open .nav-chevron { transform: rotate(90deg); }
.nav-submenu { display: none; padding: 5px 8px 7px 53px; min-width: 250px; }
.nav-group.is-open .nav-submenu { display: grid; }
.nav-submenu a { color: #c8d6f2; font-size: 12px; padding: 7px 8px; border-radius: 5px; }
.nav-submenu a:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-footer { display: flex; align-items: center; gap: 15px; min-height: 55px; padding: 10px 21px; border-top: 1px solid rgba(255,255,255,.1); white-space: nowrap; color: #aebfe0; }
.portal-shell { min-height: 100vh; margin-left: 76px; }
.topbar { height: 72px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
.global-search { position: relative; width: min(440px, 42vw); height: 42px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 9px; padding: 0 12px; }
.global-search:focus-within { border-color: var(--blue); }
.global-search input { border: 0; outline: 0; width: 100%; min-width: 0; }
.global-search kbd { color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; font-size: 10px; white-space: nowrap; }
.search-results { position: absolute; top: 48px; left: 0; right: 0; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 7px; }
.search-results a { display: block; padding: 10px; border-radius: 6px; font-size: 13px; }
.search-results a:hover { background: var(--blue-soft); color: var(--blue); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.company-select { height: 42px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.ops-resumo-btn {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.ops-resumo-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.ops-resumo-dialog {
  width: min(720px, 94vw);
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}
.ops-resumo-dialog::backdrop { background: rgba(15, 23, 42, 0.35); }
.ops-resumo-dialog form { display: flex; flex-direction: column; max-height: min(82vh, 760px); }
.ops-resumo-dialog header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
}
.ops-resumo-dialog header h2 { margin: 4px 0; font-size: 20px; }
.ops-resumo-dialog header p { margin: 0; color: var(--muted); font-size: 13px; }
.ops-resumo-body { padding: 14px 20px; overflow: auto; flex: 1; }
.ops-resumo-status { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.ops-resumo-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  color: var(--ink);
}
.ops-resumo-dialog footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--line);
}
.company-select > span { font-size: 10px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.company-select select { border: 0; outline: 0; max-width: 210px; color: var(--ink); background: #fff; }
.icon-button { position: relative; border: 0; background: transparent; width: 38px; height: 38px; font-size: 24px; display: grid; place-items: center; }
.icon-button b { position: absolute; right: 0; top: 0; width: 17px; height: 17px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-size: 9px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 700; }
.user-menu > div { position: absolute; top: 48px; right: 0; width: 250px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; z-index: 40; }
.user-menu p { margin: 0 0 10px; }
.user-menu p b, .user-menu p small { display: block; }
.user-menu p small { color: var(--muted); margin-top: 3px; }
.role-pill { display: inline-block; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 700; padding: 4px 7px; border-radius: 20px; }
.user-menu form { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.user-menu button { border: 0; background: transparent; padding: 5px 0; width: 100%; text-align: left; cursor: pointer; font-size: 13px; }
.user-menu .menu-link { color: var(--ink); margin-top: 10px; }
.user-menu .menu-link:hover { color: var(--blue); }
.user-menu .menu-danger { color: var(--danger); }
.portal-main { padding: 32px clamp(20px, 3vw, 48px) 70px; max-width: 1800px; margin: auto; }
.welcome, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { color: var(--blue); font-weight: 800; font-size: 10px; letter-spacing: 1.3px; margin: 0 0 6px; }
.welcome h1 { margin: 0; font-size: clamp(25px, 3vw, 39px); letter-spacing: -1.5px; }
.welcome h1 span { font-weight: 400; }
.welcome-context { color: var(--muted); font-size: 12px; }
.welcome-context span { margin: 0 6px; }
.section-heading h2, .work-panel h2 { margin: 0; font-size: 19px; letter-spacing: -.4px; }
.favorites-section { margin-top: 28px; }
.favorite-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 12px; }
.favorite-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 13px; min-width: 0; }
.favorite-item:hover { border-color: var(--blue); }
.favorite-item > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 8px; font-size: 11px; font-weight: 800; flex: 0 0 auto; }
.favorite-item b, .favorite-item small { display: block; }
.favorite-item b { font-size: 13px; }
.favorite-item small { color: var(--muted); font-size: 10px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; margin-top: 34px; }
.widget-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 13px; }
.dashboard-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.dashboard-widget > header { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 15px; border-bottom: 1px solid var(--line); }
.dashboard-widget header b, .dashboard-widget header small { display: block; }
.dashboard-widget header b { font-size: 13px; }
.dashboard-widget header small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.widget-actions { display: flex; align-items: center; gap: 7px; }
.widget-actions a { color: var(--blue); font-size: 11px; }
.widget-actions button { border: 0; background: transparent; color: var(--muted); font-size: 20px; }
.widget-content { min-height: 180px; padding: 16px; display: flex; flex-direction: column; justify-content: center; }
.widget-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.widget-stats > div { background: var(--page); border: 1px solid var(--line); border-radius: 9px; padding: 13px; min-width: 0; }
.widget-stats small, .widget-stats strong { display: block; }
.widget-stats small { color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.widget-stats strong { font-size: clamp(15px, 2vw, 22px); overflow: hidden; text-overflow: ellipsis; }
.widget-period { color: var(--muted); font-size: 9px; margin: 12px 0 0; text-align: right; }
.widget-error { color: var(--danger); background: #fff3f5; border: 1px solid #f0a5b2; border-radius: 8px; padding: 12px; font-size: 11px; }
.widget-empty, .work-panel-empty { color: var(--muted); font-size: 11px; text-align: center; }
.work-panel-empty { padding: 24px 16px; margin: 0; }
.empty-widget { grid-column: 1 / -1; min-height: 230px; border: 1px dashed #9eadd0; border-radius: var(--radius); background: #fff; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-widget span { width: 42px; height: 42px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); border-radius: 50%; margin: 0 auto 12px; font-size: 24px; }
.empty-widget b { color: var(--ink); }
.empty-widget small { margin-top: 7px; }
.work-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work-panel > header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 15px; border-bottom: 1px solid var(--line); }
.work-panel > header > span { color: var(--blue); background: var(--blue-soft); width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 800; }
.work-panel article { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: start; padding: 15px; border-bottom: 1px solid var(--line); }
.work-panel article:last-child { border-bottom: 0; }
.task-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 8px; font-size: 10px; font-weight: 800; }
.task-icon--teal { color: #087d82; background: var(--teal-soft); }
.work-panel article b, .work-panel article small, .work-panel article strong { display: block; }
.work-panel article b { font-size: 11px; }
.work-panel article small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.work-panel article strong { font-size: 10px; margin-top: 5px; }
.work-panel article a { align-self: center; color: var(--blue); border: 1px solid #9bb4ff; border-radius: 6px; padding: 6px 8px; font-size: 10px; }
.modules-section { margin-top: 40px; }
.module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 13px; }
.module-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.module-card:hover { border-color: #9ab1ef; }
.module-card-icon { width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center; color: var(--teal); background: var(--teal-soft); font-size: 11px; font-weight: 800; }
.module-card h3 { margin: 3px 0 4px; font-size: 15px; }
.module-card p { color: var(--muted); font-size: 10px; margin: 0; }
.module-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.module-links a { color: var(--blue); background: var(--blue-soft); border-radius: 20px; padding: 5px 8px; font-size: 9px; }

/* Customizer */
.customize-dialog { width: min(980px, 94vw); max-height: 88vh; }
.customize-dialog form { display: flex; flex-direction: column; max-height: 88vh; }
.customize-dialog form > header { position: relative; padding: 25px 28px 18px; border-bottom: 1px solid var(--line); }
.customize-dialog header h2 { margin: 0; }
.customize-dialog header p:not(.eyebrow) { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.customize-columns { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; overflow: auto; }
.customize-columns > section { padding: 22px 28px; }
.customize-columns > section + section { border-left: 1px solid var(--line); }
.customize-columns h3 { font-size: 14px; margin: 0 0 12px; }
.choice-list { display: grid; gap: 8px; }
.choice-list label { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 11px; cursor: pointer; }
.choice-list label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.choice-list input { margin-top: 3px; accent-color: var(--blue); }
.choice-list b, .choice-list small { display: block; }
.choice-list b { font-size: 12px; }
.choice-list small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.choice-list--compact { grid-template-columns: 1fr 1fr; }
.customize-dialog footer { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); padding: 16px 28px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; color: #fff; background: var(--navy); border-radius: 8px; padding: 12px 16px; font-size: 12px; }

@media (max-width: 1200px) {
  .brand-benefits { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .workspace-grid { grid-template-columns: 1fr; }
  .work-panel { display: grid; grid-template-columns: repeat(3, 1fr); }
  .work-panel > header { grid-column: 1 / -1; }
  .work-panel article { border-bottom: 0; border-right: 1px solid var(--line); }
  .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-hero { min-height: auto; padding: 28px 22px 24px; }
  .login-access { min-height: auto; padding: 18px 16px 28px; }
  .chamado-pair { grid-template-columns: 1fr; }
  .widget-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-select > span, .global-search kbd { display: none; }
}

@media (max-width: 680px) {
  .sidebar { width: 60px; }
  .sidebar:hover, .sidebar:focus-within { width: min(268px, 88vw); }
  .portal-shell { margin-left: 60px; }
  .topbar { padding: 0 12px; }
  .global-search { width: 44px; border: 0; }
  .global-search input, .global-search kbd { display: none; }
  .global-search:focus-within { position: fixed; top: 10px; left: 70px; right: 10px; width: auto; background: #fff; border: 1px solid var(--blue); z-index: 60; }
  .global-search:focus-within input { display: block; }
  .company-select { max-width: 155px; }
  .company-select select { max-width: 125px; }
  .user-menu summary > span:last-child { display: none; }
  .portal-main { padding: 24px 14px 50px; }
  .welcome { align-items: flex-start; flex-direction: column; }
  .favorite-row, .module-grid { grid-template-columns: 1fr; }
  .work-panel { grid-template-columns: 1fr; }
  .work-panel > header { grid-column: auto; }
  .work-panel article { border-right: 0; border-bottom: 1px solid var(--line); }
  .customize-columns { grid-template-columns: 1fr; }
  .customize-columns > section + section { border-left: 0; border-top: 1px solid var(--line); }
  .choice-list--compact { grid-template-columns: 1fr; }
  .brand-benefits { grid-template-columns: 1fr; }
  .brand-benefits article { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0; min-height: auto; }
  .login-hero { min-height: auto; }
  .login-hero h1 { letter-spacing: -1.2px; }
}
