/* Application surfaces use the landing identity without changing application logic. */
[hidden] { display: none !important; }
h2, h3 { font-family: "Poppins", sans-serif; font-weight: 600; letter-spacing: -.04em; }
h2 { font-size: 25px; line-height: 1.3; margin: 0 0 14px; }
h3 { font-size: 17px; margin: 0 0 10px; }
.field select { width: 100%; min-height: 46px; border: 1px solid #BCC1CA; border-radius: 8px; background: white; color: var(--text); padding: 8px 12px; }
.field input[type="file"] { height: auto; padding: 12px; font-size: 12px; }
.field input::file-selector-button { border: 1px solid var(--line); border-radius: 5px; padding: 7px 9px; background: var(--background); color: var(--text); margin-right: 10px; cursor: pointer; }
.field small, .muted { color: var(--muted); font-size: 13px; line-height: 1.7; }
form { margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 800; line-height: 1.4; text-align: center; cursor: pointer; background: var(--dolomite-red); color: white; transition: background 180ms, transform 180ms, box-shadow 180ms; }
.button:hover { background: var(--dolomite-red-dark); transform: translateY(-1px); box-shadow: 0 5px 15px var(--dolomite-red-glow); text-decoration: none; }
.button.secondary { background: white; color: var(--text); border-color: var(--line); }
.button.secondary:hover { background: #F0F1F3; border-color: #BCC1CA; box-shadow: none; }
.button:disabled { cursor: default; opacity: .6; transform: none; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.actions > .button { flex: 1; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 12px; margin-top: 18px; }
.auth-links > a { color: var(--muted); }
.auth-links > a:hover { color: var(--dolomite-red); }
.auth-links > .button { min-height: 40px; padding: 8px 15px; font-size: 12px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.check-label input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; accent-color: var(--primary); }
.check-label a { min-height: 0; display: inline; }
.plan-usage { margin: 22px 0 0; text-align: center; font-size: 11px; color: var(--muted); }
.company-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: white; }
.company-name { overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.company-add:disabled { cursor: default; opacity: .55; transform: none; }
.company-add:disabled:hover { background: #FBF7F7; border-color: #DADDE3; box-shadow: none; }
.upgrade-notice { text-align: center; font-size: 13px; margin-top: 12px; }
.preview-logo { display: block; width: 72px; height: 72px; object-fit: contain; border-radius: 10px; margin: 12px 0; }
.workspace { max-width: 1320px; margin: auto; padding: 32px 40px; min-height: 100svh; }
.workspace-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.workspace-header .brand { width: auto; margin: 0; }
.workspace-header .brand-name { font-size: 27px; }
.workspace-header .dolomite-logo { width: 42px; height: 42px; }
.workspace-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.workspace-nav .button { font-size: 12px; min-height: 42px; padding: 9px 13px; background: transparent; }
.workspace-nav [data-logout] { color: var(--dolomite-red-dark); }
.workspace-panel { max-width: none; padding: 36px; }
.workspace h1 { font-size: clamp(30px, 3vw, 40px); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.section-heading p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.tile { border: 1px solid #E1E5ED; border-radius: 12px; background: #F8F9FC; padding: 24px; min-width: 0; }
.tile .number { font-family: "Poppins", sans-serif; font-size: 36px; font-weight: 500; letter-spacing: -.055em; color: var(--primary-dark); margin: 12px 0 14px; line-height: 1.25; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 5px; background: #EDF2FC; color: #3B5F9D; font-size: 10px; font-weight: 800; }
.badge.orange { color: #70464E; background: var(--dolomite-red-soft); }
.feature-list { padding-left: 20px; color: var(--muted); }
.feature-list li { margin: 10px 0; }
.user-list { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0; background: white; border-bottom: 1px solid var(--line); }
.user-row > div:first-child { min-width: 0; flex: 1 1 240px; }
.user-row strong { font-family: "Poppins", sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
.user-row p { margin: 6px 0; overflow-wrap: anywhere; font-size: 13px; color: var(--muted); }
.user-row .actions { margin: 0; }
dialog { width: min(540px, calc(100% - 32px)); max-height: 90svh; border: 1px solid var(--line); border-radius: 16px; padding: 30px; color: var(--text); background: white; box-shadow: 0 24px 80px rgb(25 27 35 / 20%); }
dialog::backdrop { background: rgb(25 27 35 / 65%); }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 24px 0; }
legend { font-size: 13px; font-weight: 800; padding-inline: 6px; }
.access-row { display: grid; grid-template-columns: 1fr 140px; align-items: center; gap: 12px; margin: 12px 0; }
.access-row label { overflow-wrap: anywhere; }
.access-row select { width: 100%; min-height: 44px; border: 1px solid #BCC1CA; border-radius: 7px; background: white; color: var(--text); padding: 6px; font-size: 13px; }
.access-row select:disabled { opacity: .6; }
.empty-state { padding: 24px 0; text-align: center; color: var(--muted); font-size: 14px; }
.company-options .empty-state { grid-column: 1 / -1; }
.company-options > .company-option:not(.company-add):nth-last-child(2):nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 12px) / 2); max-width: 140px; }
.company-options .empty-state + .company-add .company-icon { flex-basis: 48px; width: 48px; height: 48px; }
.company-options .empty-state + .company-add .company-name { font-size: 13px; }
.dashboard-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 30px; }
.dashboard-layout > div { min-width: 0; }
.sidebar { display: flex; flex-direction: column; align-self: start; gap: 5px; padding: 16px 12px; border-radius: 12px; background: var(--graphite); }
.sidebar .button { text-align: left; justify-content: flex-start; font-size: 12px; min-height: 43px; padding: 10px 12px; }
.sidebar .button.secondary { background: transparent; color: #CACDD7; border-color: transparent; }
.sidebar .button.secondary:hover { background: #2C2F39; color: white; transform: none; }
.sidebar .button[aria-current="page"] { background: var(--primary); color: white; }
.company-context { margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.company-context strong { color: var(--text); }
.company-context a { min-height: 32px; margin-left: 4px; }
.demo-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.operation-placeholder { margin-top: 24px; background: #F7F7F4; border-color: var(--line); border-left: 3px solid var(--dolomite-red); }
.flash:empty { display: none; }
.flash:not(:empty) { margin: 0 0 20px; }
.page-dashboard .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-planos #plans-grid { margin-top: 32px; }
.page-planos #plans-grid .tile { display: flex; flex-direction: column; background: white; padding: 28px; }
.page-planos #plans-grid h2 { font-size: 27px; }
.page-planos #plans-grid .tile > p { color: var(--muted); font-size: 14px; }
.page-planos #plans-grid .tile > p.muted { padding-block: 15px; border-top: 1px solid var(--line); font-size: 12px; }
.page-planos #plans-grid .button { margin-top: auto; }
@media (max-width: 1280px) { .page-dashboard .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1050px) { .workspace { padding: 28px 24px; }.workspace-panel { padding: 28px; }.dashboard-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 24px; }.sidebar { padding-inline: 8px; } }
@media (max-width: 760px) {
  .workspace { padding: 24px 20px; }.workspace-header { gap: 18px; margin-bottom: 24px; padding-bottom: 20px; }.workspace-nav { width: 100%; gap: 7px; }.workspace-nav .button { font-size: 11px; padding-inline: 11px; }
  .dashboard-layout { grid-template-columns: 1fr; gap: 28px; }.sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 5px; }.sidebar .button { padding: 9px 12px; font-size: 12px; }
  .workspace-panel { padding: 24px; }.company-context { margin-bottom: 22px; }.workspace h1 { font-size: 31px; }.page-planos #plans-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .workspace { padding: 22px 16px; }.workspace-panel { padding: 24px 20px; }.workspace-header .brand-name { font-size: 27px; }.workspace-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }.workspace-nav .button { min-height: 42px; }.access-row { grid-template-columns: 1fr; gap: 6px; }.tile { padding: 22px; }.page-dashboard .tile-grid { grid-template-columns: 1fr; }.user-row .actions { width: 100%; }.section-heading > .button { width: 100%; }.actions { gap: 10px; }.actions > .button { min-width: 0; padding-inline: 12px; font-size: 13px; }dialog { padding: 24px 20px; }.page-planos #plans-grid .tile { padding: 24px; } }
@media (max-width: 360px) { .company-option { gap: 8px; }.company-option .company-icon { flex-basis: 44px; width: 44px; height: 44px; font-size: 22px; }.sidebar .button { padding-inline: 8px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .button:hover { transform: none; } }
