.tg-access-dialog {
  box-sizing: border-box;
  width: min(900px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90dvh, 900px);
  padding: 0;
  margin: auto;
  color: #173447;
  background: #fff;
  border: 1px solid #cee9f2;
  border-radius: 25px;
  box-shadow: 0 30px 120px #102f5a40;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.tg-access-dialog::backdrop { background: #102f4ebd; backdrop-filter: blur(8px); }
.tg-access-dialog *, .tg-access-dialog *::before, .tg-access-dialog *::after { box-sizing: border-box; }
.tg-access-dialog [hidden] { display: none !important; }
.tg-access-shell { position: relative; padding: 38px; }
.tg-access-close { position: absolute; top: 17px; right: 17px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d4e8ef; border-radius: 50%; background: #f5fafc; color: #416479; font: 24px Arial, sans-serif; cursor: pointer; }
.tg-access-close:hover { background: #eaf7fc; color: #008ca9; }
.tg-access-eyebrow { display: block; margin-right: 22px; color: #008da8; font-size: 9px; font-weight: 700; letter-spacing: 1.9px; }
.tg-access-heading h2 { margin: 14px 0 12px; font-size: clamp(26px, 3.2vw, 35px); line-height: 1.28; letter-spacing: -1.2px; }
.tg-access-heading h2 span { color: #009cbd; }
.tg-access-heading > p { max-width: 650px; margin: 0; color: #647f92; font-size: 12px; line-height: 1.9; }
.tg-access-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 27px; margin-top: 26px; }
.tg-access-summary { padding: 26px; border: 1px solid #bce5f0; border-radius: 18px; background: radial-gradient(circle at 0 0, #c8f3fc, transparent 65%), linear-gradient(140deg, #f0fdff, #f3f6fd); }
.tg-access-product-mark { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px; border: 1px solid #ffffffd6; border-radius: 15px; background: #ffffffb8; color: #089ab3; font-size: 25px; font-weight: 800; letter-spacing: -3px; box-shadow: 0 8px 24px #0c97b317; }
.tg-access-product-mark span { position: absolute; right: -4px; top: -7px; color: #00ac98; font-size: 14px; text-shadow: 0 0 8px #00ac9850; }
.tg-access-badge { font-size: 8px; font-weight: 700; letter-spacing: 1.4px; color: #078da5; }
.tg-access-summary h3 { margin: 14px 0 15px; font-size: 23px; font-weight: 700; line-height: 1.45; letter-spacing: -.65px; }
.tg-access-summary > p { color: #58788d; font-size: 11px; line-height: 1.9; margin: 0 0 25px; }
.tg-access-spec { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; }
.tg-access-spec > span { color: #56a7bc; font-size: 10px; font-weight: 700; padding-top: 2px; }
.tg-access-spec b { color: #254b62; font-size: 11px; }
.tg-access-spec small { display: block; color: #668697; font-size: 10px; line-height: 1.8; margin-top: 4px; }
.tg-access-summary-link { display: block; margin-top: 26px; padding-top: 19px; border-top: 1px solid #cce7ef; color: #047e99; font-size: 10px; font-weight: 600; text-decoration: none; line-height: 1.8; }
.tg-access-panel { min-width: 0; padding: 9px 0; }
.tg-access-account { display: flex; gap: 12px; align-items: center; }
.tg-access-account-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; color: #168daf; border: 1px solid #d6e9ef; border-radius: 12px; background: #f1f9fc; font-size: 18px; }
.tg-access-account small { display: block; margin: 0 0 5px; color: #7c93a2; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.tg-access-account b { display: block; font-size: 12px; overflow-wrap: anywhere; }
.tg-access-status { margin: 18px 0 20px; padding: 13px 15px; color: #426c83; font-size: 11px; line-height: 1.9; background: #f1f8fc; border: 1px solid #d8eaf2; border-radius: 10px; }
.tg-access-status[data-tone="success"] { color: #057a64; background: #ecfaf5; border-color: #bfebdb; }
.tg-access-status[data-tone="error"] { color: #a43c36; background: #fff5f2; border-color: #f2d5ce; }
.tg-access-login { display: flex; flex-direction: column; gap: 9px; }
.tg-access-login label { margin-top: 3px; color: #41667b; font-size: 11px; font-weight: 600; }
.tg-access-login input { width: 100%; min-height: 43px; padding: 10px 13px; font: inherit; font-size: 12px; color: #173447; border: 1px solid #cbdfe9; border-radius: 9px; background: #fff; box-shadow: none; }
.tg-access-login .tg-access-button { margin-top: 7px; }
.tg-access-login > a { text-align: center; margin-top: 4px; }
.tg-access-hardware { padding: 16px; margin-bottom: 19px; background: #fafcfd; border: 1px solid #e1ecf1; border-radius: 12px; }
.tg-access-step-label { display: block; margin-bottom: 11px; color: #688898; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; }
.tg-access-hardware label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: #43677b; font-size: 11px; line-height: 1.9; }
.tg-access-hardware input { appearance: auto; flex-shrink: 0; width: 17px; height: 17px; margin: 3px 0 0; accent-color: #079ab8; }
.tg-access-hardware small { display: block; margin: 11px 0 0 27px; color: #7b909f; font-size: 9px; line-height: 1.8; }
.tg-access-actions { display: flex; flex-direction: column; align-items: stretch; gap: 9px; }
.tg-access-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; padding: 12px 15px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: 11px; font-weight: 600; line-height: 1.7; cursor: pointer; text-decoration: none; transition: filter .2s, box-shadow .2s; text-align: center; }
.tg-access-primary { background: linear-gradient(120deg, #069dd0, #05b4b7); color: white; box-shadow: 0 6px 20px #059fc523; }
.tg-access-secondary { background: #fff; border-color: #cddfe9; color: #37748c; }
.tg-access-button:hover { filter: brightness(.97); box-shadow: 0 7px 23px #0586a228; }
.tg-access-button:disabled { background: #e7f0f4; color: #7a95a4; border-color: #d4e5ec; cursor: not-allowed; box-shadow: none; filter: none; }
.tg-access-text-link { color: #0689a4; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 10px; line-height: 1.8; font-weight: 600; text-decoration: none; cursor: pointer; }
.tg-access-link-note { display: block; margin: 14px 0 0; color: #7891a1; font-size: 9px; line-height: 1.9; }
.tg-access-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 25px; padding-top: 20px; border-top: 1px solid #e2edf2; color: #6e8797; font-size: 10px; line-height: 1.8; }
.tg-access-footer a { color: #0689a4; font-weight: 600; text-decoration: none; }
.tg-access-dialog :is(a, button, input):focus-visible { outline: 3px solid #20b4d2; outline-offset: 3px; }
.tg-access-section-status { color: #628294; font-size: 10px; line-height: 1.8; margin: 10px 0 0; }
@media (max-width: 660px) {
  .tg-access-dialog { width: calc(100vw - 20px); max-height: 92dvh; border-radius: 18px; }
  .tg-access-shell { padding: 30px 21px 20px; }
  .tg-access-grid { grid-template-columns: 1fr; gap: 20px; }
  .tg-access-summary { padding: 20px; }
  .tg-access-product-mark, .tg-access-summary > p, .tg-access-summary-link { display: none; }
  .tg-access-summary h3 { font-size: 20px; margin-bottom: 12px; }
  .tg-access-summary h3 br { display: none; }
  .tg-access-spec { margin-top: 12px; }
  .tg-access-panel { padding: 0; }
  .tg-access-footer { flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .tg-access-button { transition: none; } }
