/* Launchpad additions to the shared ConnectedIS theme (theme.css is copied verbatim from CIS Tally). */
body { min-height: 100vh; }
/* The hidden attribute always wins: .btn and other display rules would otherwise show what a script has not switched on yet. */
[hidden] { display: none !important; }
a { color: var(--navy); }
:root[data-theme='dark'] a { color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--font-mono); }

.lp-top { gap: 16px; }
.lp-top .logo { height: 28px; }
.lp-search { flex: 1; max-width: 420px; margin: 0 auto 0 12px; }
.lp-search .input { border-radius: 999px; padding: 8px 16px; font-size: 13px; }
.lp-spacer { flex: 1; }
.lp-user { position: relative; }
.lp-user summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px; }
.lp-user summary::-webkit-details-marker { display: none; }
.lp-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 600 12px var(--font-display); }
:root[data-theme='dark'] .lp-avatar { background: var(--blue); color: #0f172a; }
.lp-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: min(220px, calc(100vw - 32px)); max-width: calc(100vw - 32px); box-sizing: border-box; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 8px; box-shadow: 0 18px 40px -16px rgba(11, 22, 56, 0.35); z-index: 50; }
.lp-menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.lp-menu a, .lp-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font: 500 13px var(--font-body); color: var(--text); background: none; border: 0; cursor: pointer; text-decoration: none; }
.lp-menu a:hover, .lp-menu button:hover { background: var(--rule-soft); }

.lp-main { max-width: 1080px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 3vw, 34px) 64px; }
.lp-greet { margin-bottom: 32px; }
.lp-greet h1 { font-size: clamp(28px, 5vw, 40px); }
.lp-greet p { margin: 8px 0 0; color: var(--muted); }
.lp-section { margin: 34px 0 14px; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.lp-tile { display: flex; flex-direction: column; gap: 14px; padding: 22px; text-decoration: none; color: var(--text); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.lp-tile:hover { transform: translateY(-2px); border-color: var(--navy); box-shadow: 0 16px 34px -18px rgba(26, 43, 107, 0.4); }
.lp-tile:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.lp-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--navy-ink); color: var(--green); display: grid; place-items: center; }
.lp-ico svg { width: 26px; height: 26px; }
.lp-name { font: 600 18px var(--font-display); letter-spacing: -0.02em; }
.lp-desc { font-size: 13px; color: var(--muted); flex: 1; margin-top: -8px; }
.lp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-open { font: 600 13px var(--font-body); color: var(--navy); }
:root[data-theme='dark'] .lp-open { color: var(--blue); }
.lp-led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); margin-right: 7px; }
.lp-led.up { background: var(--green); }
.lp-led.down { background: var(--sev-critical); }
.lp-empty { padding: 28px; text-align: center; color: var(--muted); }
.lp-section-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.lp-section-row .eyebrow { margin: 0; }
.lp-arrange-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.lp-arranging .lp-tile { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; border-style: dashed; border-color: var(--navy); }
:root[data-theme='dark'] .lp-arranging .lp-tile { border-color: var(--blue); }
.lp-arranging .lp-tile:hover { transform: none; }
.lp-arranging .lp-tile .lp-open { visibility: hidden; }
.lp-tile.lp-dragging { cursor: grabbing; opacity: 0.85; transform: scale(1.03); box-shadow: 0 22px 44px -18px rgba(11, 22, 56, 0.55); z-index: 2; position: relative; }
@media (prefers-reduced-motion: reduce) { .lp-tile.lp-dragging { transform: none; } }

.lp-card { padding: clamp(18px, 3vw, 28px); margin-bottom: 18px; }
.lp-card h2 { font: 600 18px var(--font-display); letter-spacing: -0.02em; margin: 0 0 12px; }
.lp-form { display: grid; gap: 14px; max-width: 420px; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lp-table th, .lp-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.lp-table th { font: 500 11px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lp-scroll { overflow-x: auto; }
.lp-notice { padding: 12px 14px; border-radius: 10px; background: var(--green-soft); color: #0B1638; font-size: 13px; margin-bottom: 16px; }
.lp-footer { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.lp-codes { columns: 2; font: 14px var(--font-mono); line-height: 2; background: var(--surface); border-radius: 10px; padding: 12px 18px; }
.lp-qr { display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 8px; margin: 10px auto; width: 210px; }
.lp-qr svg { width: 100%; height: auto; display: block; }
.login-card .lp-hint { font-size: 12px; color: rgba(26, 43, 107, 0.7); text-align: center; margin: 14px 0 0; }
.login-card .lp-hint a { color: #1A2B6B; }
.login-card form > * + * { margin-top: 14px; }
.login-card .btn-primary { width: 100%; justify-content: center; }
@media (max-width: 640px) {
  .lp-top .lp-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .lp-top { flex-wrap: wrap; }
  .lp-codes { columns: 1; }
}
.login-card .lp-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #1A2B6B; cursor: pointer; }
.login-card .lp-check input { width: 16px; height: 16px; accent-color: #1A2B6B; }
.lp-form .lp-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.lp-form .lp-check input { width: 16px; height: 16px; accent-color: var(--navy); }
:root[data-theme='dark'] .lp-form .lp-check input { accent-color: var(--green); }
/* Sign-in codes as six boxes, as CIS Monitor's sign-in (Monitor public/index.html .otp-box). */
.login-card .login-sub { font-size: 13.5px; color: #4A5675; text-align: center; margin: -10px 0 22px; line-height: 1.5; }
.login-card .login-sub strong { color: #0B1638; }
.otp-boxes { display: flex; justify-content: center; gap: 8px; }
.otp-box { flex: 1 1 0; min-width: 0; max-width: 50px; height: 60px; padding: 0; text-align: center; font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: #0B1638; background: #F3F5FA; border: 1px solid #DDE2EC; border-radius: 10px; outline: none; caret-color: #1A2B6B; transition: border-color .15s, box-shadow .15s, background .15s; }
.otp-box:focus { background: #fff; border-color: #1A2B6B; box-shadow: 0 0 0 3px rgba(95, 211, 110, .35); }
.login-card .lp-recovery { font-size: 13px; color: #1A2B6B; text-align: center; }
.login-card .lp-recovery summary { cursor: pointer; color: rgba(26, 43, 107, 0.7); list-style: none; }
.login-card .lp-recovery summary::-webkit-details-marker { display: none; }
.login-card .lp-recovery[open] summary { margin-bottom: 8px; }
.login-card .lp-recovery .input { text-align: center; letter-spacing: 0.15em; }
