:root {
  color: #17252a;
  background: #e9f1f0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(15, 151, 125, .22); outline-offset: 2px; }

.preview { position: fixed; inset: 0; background: #f5f8f8; filter: blur(8px); transform: scale(1.02); }
.preview header { height: 76px; display: flex; align-items: center; gap: 12px; padding: 0 34px; border-bottom: 1px solid #dfe7e6; background: #fff; }
.preview-logo { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #31c7b2, #63d8c9); font-size: 25px; }
.preview header strong { font-size: 18px; }
.preview header em { color: #92a3a6; font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .13em; }
.preview-layout { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 280px 1fr; }
.preview-layout aside { border-right: 1px solid #dfe7e6; background: #fbfdfd; }
.preview-layout main { padding: 60px; background: radial-gradient(circle at 80% 5%, rgba(49,199,178,.16), transparent 34%), #f4f7f7; }
.preview-title { width: min(520px, 65%); height: 62px; border-radius: 16px; background: #dce7e6; }
.preview-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.preview-kpis i, .preview-panels i { display: block; border: 1px solid #d7e2e1; border-radius: 16px; background: #fff; }
.preview-kpis i { height: 132px; }
.preview-panels { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-top: 18px; }
.preview-panels i { height: 360px; }
.veil { position: fixed; inset: 0; background: linear-gradient(125deg, rgba(9, 30, 31, .64), rgba(7, 46, 44, .76)); backdrop-filter: blur(4px); }

.access-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; }
.access-card { width: min(100%, 590px); padding: clamp(34px, 5vw, 56px); border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: rgba(255,255,255,.98); box-shadow: 0 30px 90px rgba(2, 22, 23, .28); }
.access-brand { display: flex; align-items: center; gap: 12px; color: #0a9079; }
.access-brand > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 2px; color: #fff; background: linear-gradient(145deg, #31c7b2, #63d8c9); font-size: 29px; font-weight: 500; }
.access-brand strong { font-size: 13px; letter-spacing: .035em; }
.access-heading { margin: 42px 0 34px; }
.eyebrow { color: #799295; font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.access-heading h1 { margin: 10px 0 14px; font-size: clamp(30px, 5vw, 42px); line-height: 1.12; letter-spacing: -.045em; }
.access-heading p { max-width: 450px; margin: 0; color: #71878a; font-size: 15px; line-height: 1.75; }

#access-form { display: grid; gap: 12px; }
#access-form > label { color: #34494c; font-size: 13px; font-weight: 750; }
.key-field { position: relative; }
.key-field input { width: 100%; height: 56px; padding: 0 54px 0 16px; border: 1px solid #cad9d7; border-radius: 12px; color: #183034; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.key-field input::placeholder { color: #a2b1b3; }
.key-field input:hover { border-color: #9fb8b5; }
.key-field input:focus { border-color: #159a81; box-shadow: 0 0 0 4px rgba(21,154,129,.09); outline: 0; }
#reveal-key { position: absolute; top: 9px; right: 9px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; color: #849799; background: transparent; cursor: pointer; transition: color .18s ease, background .18s ease; }
#reveal-key:hover { color: #0d8f77; background: #edf8f5; }
#reveal-key svg, .submit-button svg, .access-note svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.access-error { padding: 12px 14px; border: 1px solid #efbdb8; border-radius: 10px; color: #bd4338; background: #fff1ef; font-size: 12px; line-height: 1.5; }
.submit-button { height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin-top: 4px; padding: 0 18px; border: 1px solid #0d927a; border-radius: 12px; color: #fff; background: #0d997f; box-shadow: 0 10px 22px rgba(13,153,127,.18); font-size: 14px; font-weight: 780; cursor: pointer; transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.submit-button:hover { transform: translateY(-1px); background: #087f69; box-shadow: 0 13px 26px rgba(13,153,127,.23); }
.submit-button:disabled { transform: none; color: #d2dfdc; border-color: #95bcb4; background: #95bcb4; box-shadow: none; cursor: wait; }
.access-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; color: #90a1a3; font-size: 11px; }
.access-note svg { width: 18px; }

@media (max-width: 640px) {
  .preview-layout { grid-template-columns: 90px 1fr; }
  .preview-layout main { padding: 32px 18px; }
  .preview-kpis { grid-template-columns: 1fr 1fr; }
  .preview-panels { grid-template-columns: 1fr; }
  .access-shell { align-items: end; padding: 20px 12px; }
  .access-card { padding: 30px 24px 26px; border-radius: 22px; }
  .access-heading { margin: 32px 0 27px; }
  .access-heading h1 { font-size: 31px; }
  .access-heading p { font-size: 13px; }
  .access-note { align-items: flex-start; text-align: center; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
