:root {
  --ink: #182230;
  --muted: #6d7887;
  --line: #e2e7ed;
  --surface: #ffffff;
  --bg: #eef2f4;
  --violet: #7152bd;
  --violet-dark: #5d40a5;
  --green: #16866d;
  --red: #c84b45;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.tool-home { display: grid; place-items: center; padding: 24px; background: linear-gradient(145deg, #edf2f3, #f8f9fa 55%, #e8efed); }
.launcher { width: min(460px, 100%); padding: 42px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 60px rgba(29, 42, 49, .1); }
.tool-logo { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; color: white; background: #217e70; border-radius: 8px; font-size: 34px; font-weight: 800; }
.tool-logo.small { width: 48px; height: 48px; margin: 0; font-size: 24px; }
.eyebrow { margin: 0 0 8px; color: #768390; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; }
.launcher h1 { margin: 0; font-size: 32px; }.lead { color: var(--muted); margin: 12px 0 30px; font-size: 14px; }
.platform-list { display: grid; gap: 12px; }
.platform { width: 100%; display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 7px; padding: 15px; text-align: left; text-decoration: none; color: var(--ink); background: #fff; transition: transform .18s, border-color .18s; cursor: pointer; }
.platform:hover { transform: translateY(-2px); }.platform.ios:hover { border-color: #9fbde8; }.platform.android:hover { border-color: #93ccb9; }
.platform-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 800; }
.ios .platform-icon { background: #477bc5; }.android .platform-icon { background: var(--green); }.platform b, .platform small { display: block; }.platform small { color: var(--muted); margin-top: 4px; font-size: 11px; }.platform i { color: #9aa4ae; font-style: normal; font-size: 25px; }
.admin-link, .back-link { display: inline-block; color: #64717d; font-size: 12px; text-decoration: none; }.admin-link { margin-top: 26px; }
.login-shell { width: min(620px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 60px; }.back-link { margin-bottom: 15px; }
.login-card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 15px 45px rgba(26, 39, 48, .08); }
.login-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; }.login-heading h1 { margin: 0; font-size: 25px; }
.tutorial-title { width: 100%; display: flex; justify-content: space-between; border: 1px solid #d9d3ed; border-radius: 6px 6px 0 0; padding: 13px 15px; color: #523b91; background: #f5f2fc; font-weight: 700; cursor: pointer; }.tutorial-title i { font-style: normal; }
.tutorial-title.collapsed { border-radius: 6px; }.tutorial-title.collapsed i { transform: rotate(180deg); }
.tutorial { padding: 15px 18px; border: 1px solid #d9d3ed; border-top: 0; border-radius: 0 0 6px 6px; color: #596574; background: #faf8fe; font-size: 13px; line-height: 1.8; }.tutorial ol { margin: 0; padding-left: 20px; }.tutorial p { margin: 10px 0 0; color: #7c699c; }.tutorial.hidden { display: none; }
form { margin-top: 24px; }label { display: block; margin-bottom: 8px; color: #3c4855; font-size: 13px; font-weight: 700; }
.card-input { position: relative; }.card-input input { width: 100%; height: 50px; padding: 0 44px 0 14px; border: 1px solid var(--line); border-radius: 6px; outline: none; }.card-input input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(113,82,189,.1); }
.card-input button { display: none; position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border: 0; color: #86919c; background: transparent; font-size: 22px; cursor: pointer; }.card-input button.visible { display: block; }
.login-action { width: 100%; height: 50px; margin-top: 14px; border: 0; border-radius: 6px; color: white; background: var(--violet); font-weight: 700; cursor: pointer; }.login-action:hover { background: var(--violet-dark); transform: translateY(-1px); }
.card-result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; padding: 15px; border: 1px solid #cfe4dd; border-radius: 6px; background: #f3faf7; }.card-result div { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }.card-result span { color: var(--muted); }.card-result b { color: #116d58; }.hidden { display: none !important; }
.reserved-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: #8a6e43; font-size: 11px; text-align: center; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(20, 29, 35, .45); z-index: 20; }.modal-box { width: min(340px, 100%); padding: 28px; text-align: center; background: #fff; border-radius: 8px; box-shadow: 0 20px 70px rgba(0,0,0,.2); }.modal-box h2 { margin: 16px 0 7px; font-size: 19px; }.modal-box p { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.spinner { width: 42px; height: 42px; margin: auto; border: 4px solid #e5e0f2; border-top-color: var(--violet); border-radius: 50%; animation: spin .75s linear infinite; }.result-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: auto; color: #fff; background: var(--green); border-radius: 50%; font-size: 25px; }.result-icon.error { background: var(--red); }
.modal-primary, .modal-secondary { min-width: 100px; padding: 9px 16px; border-radius: 6px; cursor: pointer; }.modal-primary { border: 0; color: #fff; background: var(--violet); }.modal-secondary { border: 1px solid var(--line); background: #fff; color: #56616d; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 15px); padding: 11px 16px; color: white; background: #273b36; border-radius: 6px; opacity: 0; transition: .2s; pointer-events: none; font-size: 12px; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .launcher { padding: 30px 20px; }.login-shell { width: min(100% - 20px, 620px); padding-top: 18px; }.login-card { padding: 20px; }.card-result { grid-template-columns: 1fr; }
}
