.platform-dialog { --accent: #74e6dc; color-scheme: dark; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 32px; border: 0; color: #eff9ff; overflow: hidden; background: radial-gradient(ellipse at 18% 36%, #35134928, transparent 38%), radial-gradient(ellipse at 82% 68%, #44206420, transparent 38%), #05030b; }
.platform-dialog[open] { display: flex; align-items: center; justify-content: center; }
.platform-dialog::backdrop { background: #05030b; opacity: var(--backdrop-opacity, 1); }
.platform-scene { position: fixed; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.platform-dialog [hidden], .login-card [hidden] { display: none !important; }
.platform-dialog-panel { position: relative; width: min(740px, 100%); max-height: calc(100dvh - 64px); overflow: auto; border: 1px solid #655078; border-radius: 24px; background: linear-gradient(145deg,#a78bfa08,transparent 55%), #15101ff5; box-shadow: 0 40px 140px #000b, 0 0 70px #8b35d216; }
.platform-dialog-panel::before { content: ""; position: absolute; top: 0; left: 13%; width: 74%; height: 1px; background: linear-gradient(90deg, transparent, #c7a4edaa, transparent); pointer-events: none; }
.platform-console-bar { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 25px; border-bottom: 1px solid #91cee212; color: #aac1d2; font: 600 11px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.platform-console-bar > span { display: flex; align-items: center; gap: 10px; }
.platform-console-bar i { width: 8px; height: 8px; border: 1px solid #79e4e0; border-radius: 2px; transform: rotate(45deg); }
.platform-console-bar b { margin: 0 2px; color: #496473; font-weight: 400; }
.platform-icon-button { width: 36px; height: 36px; border: 1px solid transparent; border-radius: 10px; color: #a4bcc9; background: transparent; font: 25px/1 system-ui; }
.platform-icon-button:hover { color: #fff; background: #b8e1f20b; border-color: #b8e1f21c; }
.platform-dialog-body { padding: 30px 36px 18px; }
.platform-eyebrow { display: flex; align-items: center; gap: 7px; color: #92c7c7; font-size: 11px; font-weight: 650; letter-spacing: .07em; }
.platform-status-dot { width: 5px; height: 5px; border-radius: 50%; background: #83e7d0; box-shadow: 0 0 9px #83e7d077; }
.platform-eyebrow > span:last-child { margin-left: auto; color: #829aa9; font-family: ui-monospace, Consolas, monospace; font-weight: 400; letter-spacing: 0; }
.platform-heading h2 { margin: 12px 0 8px; color: #eff9ff; font-size: clamp(26px, 4vw, 32px); line-height: 1.3; font-weight: 650; letter-spacing: -.035em; }
.platform-heading h2:focus { outline: none; }
.platform-heading > p { margin: 0; color: #91a8b9; font-size: 14px; line-height: 1.65; }
.platform-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.platform-choice { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid #abc7e426; border-radius: 16px; color: #edf5fc; background: linear-gradient(140deg, #ffffff06, #ffffff01); text-align: left; overflow: hidden; transition: border-color .18s, background-color .18s; }
.platform-mercado { --accent: #f7d76d; background: radial-gradient(ellipse at 15% 0, #ddba5020, transparent 65%), #0e1b24; }
.platform-other { --accent: #71e9e0; background: radial-gradient(ellipse at 15% 0, #48a9c520, transparent 65%), #0d1d29; }
.platform-choice:hover { border-color: var(--accent); background-color: #152938; }
.platform-choice::after { content: ""; position: absolute; bottom: 0; left: 22px; width: 40px; height: 2px; background: var(--accent); opacity: .75; }
.platform-choice-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; margin-bottom: 28px; }
.platform-mark { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #f6d15b40; border-radius: 13px; color: var(--accent); background: #e1b23e12; font: 600 24px/1 system-ui; }
.platform-mark-orbit { position: absolute; inset: 8px -4px; border: 1px solid #f7d76d80; border-radius: 50%; transform: rotate(-30deg); }
.platform-mark-grid { grid-template-columns: 9px 9px; gap: 4px; align-content: center; justify-content: center; border-color: #71e9e03d; background: #71e9e00c; }
.platform-mark-grid i { width: 9px; height: 9px; border: 1px solid var(--accent); border-radius: 2px; }
.platform-mark-grid i:last-child { background: var(--accent); opacity: .75; }
.platform-access-badge { padding: 4px 7px; border: 1px solid #adc5d325; border-radius: 5px; color: #9cb0bd; font-size: 10px; line-height: 1.5; white-space: nowrap; }
.platform-choice-name { font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -.03em; }
.platform-choice-en { margin-top: 6px; color: var(--accent); opacity: .8; font: 10px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.platform-choice-copy { margin-top: 18px; color: #9eafbd; font-size: 13px; line-height: 1.8; }
.platform-choice-action { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 24px; padding-top: 16px; border-top: 1px solid #97bdcf19; color: var(--accent); font-size: 12px; font-weight: 650; }
.platform-choice-action > span { font-size: 19px; font-weight: 400; }
.platform-hint { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 22px 0 5px; color: #7f9aaa; font-size: 11px; line-height: 1.6; }
.platform-hint svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.platform-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 28px; border-top: 1px solid #91cee212; color: #7994a4; font: 9px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.platform-dialog-footer > span { display: flex; align-items: center; gap: 6px; }
.platform-dialog-footer i { width: 4px; height: 4px; border-radius: 50%; background: #79aeae; }
.platform-dialog-footer button, .platform-back { padding: 7px 0; border: 0; color: #a8becb; background: transparent; font-size: 12px; }
.platform-dialog-footer button:hover, .platform-back:hover { color: #fff; }
.platform-code-step { min-height: 334px; }
.platform-back { display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 24px; }
.platform-code-step form > label { display: block; margin-bottom: 10px; color: #cfe1eb; font-size: 13px; font-weight: 600; }
.platform-input-wrap { position: relative; }
.platform-input-wrap svg { position: absolute; top: 18px; left: 16px; width: 20px; height: 20px; fill: none; stroke: #7195a7; stroke-width: 1.4; pointer-events: none; }
.platform-input-wrap input { width: 100%; min-height: 58px; padding: 12px 18px 12px 50px; border: 1px solid #a5d6e231; border-radius: 11px; outline: 0; color: #e9f8ff; background: #07131cc2; font-size: 18px; letter-spacing: .1em; }
.platform-input-wrap input::placeholder { color: #7390a2; font-size: 13px; letter-spacing: 0; }
.platform-input-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #76e5dd14; }
.platform-input-wrap input[aria-invalid="true"] { border-color: #ee8692; }
.platform-code-help { margin: 10px 0 0; color: #7e9cab; font-size: 11px; line-height: 1.7; }
.platform-error { min-height: 36px; margin: 8px 0; color: #ffa2aa; font-size: 12px; line-height: 1.6; }
.platform-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 12px 18px; border: 1px solid #a1f1e680; border-radius: 11px; color: #072b2d; background: #84e7d9; font-size: 14px; font-weight: 700; }
.platform-submit:hover { background: #a2f2e7; }
.platform-submit:disabled { cursor: wait; color: #b2c7d1; border-color: #9ec4d22e; background: #16313d; }
.platform-submit-arrow { margin-left: auto; font-size: 18px; }
#platform-submit-label { margin: auto; }
.platform-spinner { width: 17px; height: 17px; border: 2px solid #b4ede433; border-top-color: #92efe0; border-right-color: #92efe0; border-radius: 50%; flex: 0 0 auto; }
.platform-success { display: grid; align-content: center; justify-items: center; min-height: 334px; text-align: center; }
.platform-success-symbol { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 24px; border: 1px solid #7ee5c952; border-radius: 50%; background: #7ee5c90a; box-shadow: 0 0 0 10px #7ee5c903, 0 0 40px #7ee5c90d; }
.platform-success-symbol svg { width: 40px; height: 40px; fill: none; stroke: #88eacb; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.platform-success h3 { margin: 0 0 8px; color: #e5f9f2; font-size: 23px; font-weight: 600; }
.platform-success p { margin: 0; color: #92b5b4; font-size: 13px; }
.platform-dialog button:focus-visible { outline: 2px solid #b9f5f0; outline-offset: 4px; }
.login-change-account { display: block; margin: 12px auto 0; padding: 7px 10px; border: 0; background: transparent; color: #546f8d; font-size: 13px; }
.erp-platform-switch { margin-right: 15px; color: #506d88; font-size: 13px; text-decoration: none; }
.erp-platform-switch:hover { color: #10264b; text-decoration: underline; }
@media (max-width: 540px) {
  .platform-dialog { padding: 10px; }
  .platform-dialog-panel { max-height: calc(100dvh - 20px); border-radius: 18px; }
  .platform-console-bar { padding: 0 17px; min-height: 50px; font-size: 9px; }
  .platform-dialog-body { padding: 24px 20px 16px; }
  .platform-choice-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 23px; }
  .platform-choice { padding: 19px; }
  .platform-choice-top { margin-bottom: 14px; }
  .platform-choice-name { font-size: 21px; }
  .platform-choice-copy { margin-top: 10px; }
  .platform-choice-copy br { display: none; }
  .platform-choice-action { margin-top: 14px; padding-top: 12px; }
  .platform-mark { width: 36px; height: 36px; font-size: 21px; border-radius: 10px; }
  .platform-dialog-footer { padding: 11px 20px; }
  .platform-code-step, .platform-success { min-height: 315px; }
  .platform-hint { text-align: center; font-size: 10px; }
  .platform-eyebrow { font-size: 10px; }
  .erp-platform-switch { margin-right: 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .platform-choice { transition: none; } .platform-dialog::backdrop { backdrop-filter: none; } }
