:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #292c21;
  background: #f7f5ef;
  font-synthesis: none;
  --orange: #e86325;
  --orange-dark: #be4512;
  --muted: #737366;
  --border: #e8e6dd;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #6d8544;
  outline-offset: 4px;
}
h1:focus { outline: none; }
.page-shell { width: min(100% - 40px, 552px); margin: 0 auto; padding: 48px 0 24px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 36px; font-size: 23px; font-weight: 720; letter-spacing: -1px; }
.brand-mark { width: 35px; height: 35px; color: var(--orange); }
.brand-second { font-weight: 440; margin-left: 5px; }
.card { padding: 38px 40px 30px; border: 1px solid var(--border); border-radius: 28px; background: #fffefb; box-shadow: 0 8px 35px rgb(49 50 31 / 3%); }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; font-weight: 700; color: var(--muted); margin: 0 0 22px; }
.status-dot { background: var(--orange); border-radius: 50%; width: 7px; height: 7px; }
h1 { font-size: clamp(31px, 6.5vw, 39px); line-height: 1.14; font-weight: 620; letter-spacing: -1.7px; margin: 0; overflow-wrap: anywhere; }
.intro { font-size: 15px; line-height: 1.65; color: #66695b; margin: 19px 0 29px; }
.field { margin: 30px 0 23px; }
label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
input { width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid #dadbcf; border-radius: 12px; color: #292c21; background: #fff; font-size: 16px; }
input::placeholder { color: #98998c; }
input:focus { border-color: #a4ac8d; }
.field-hint { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 10px 0 0; }
#entry-form { text-align: left; }
#entry-form .field { margin-top: 22px; }
#entry-link { font-size: 14px; }
.legacy-entry { margin-top: 25px; border-top: 1px solid var(--border); padding-top: 16px; }
.legacy-entry > summary { cursor: pointer; font-size: 12px; line-height: 1.6; color: #666e58; }
.legacy-entry.legacy-only { margin: 0; padding: 0; border: 0; }
.email-account { margin: 25px 0 30px; padding: 20px; background: #f2f4ec; border: 1px solid #e5e9dc; border-radius: 16px; }
.email-account h2 { font-size: 17px; letter-spacing: -.3px; margin: 0 0 11px; }
.email-account p { font-size: 12px; line-height: 1.65; color: #69725b; margin: 9px 0 17px; }
.email-account label { font-size: 12px; }
.email-account input { min-height: 48px; }
.email-account .button { min-height: 45px; font-size: 12px; margin-top: 12px; }
.email-account .verified-email { font-size: 15px; font-weight: 600; color: #3f5031; overflow-wrap: anywhere; }
.email-account .message { margin: 15px 0 0; }
.email-destination { margin: -12px 0 27px; font-size: 14px; font-weight: 600; color: #4b553d; overflow-wrap: anywhere; }
#email-code { font-size: 25px; text-align: center; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
#email-code-form .button { margin-top: 21px; }
#email-code-expiry { min-height: 20px; margin-bottom: 15px; }
.email-text-button { display: block; width: 100%; padding: 12px 5px; margin-top: 8px; background: transparent; border: 0; font-size: 12px; color: #63724f; text-decoration: underline; text-underline-offset: 3px; }
.email-text-button:disabled { cursor: default; color: #969b8b; text-decoration: none; }
.email-code-status { font-size: 12px; line-height: 1.6; margin: 15px 0 0; color: #63724f; }
.button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 14px 18px; width: 100%; border: 1px solid transparent; border-radius: 12px; font-size: 14px; line-height: 1.4; font-weight: 630; text-align: center; text-decoration: none; transition: background-color 150ms ease, border-color 150ms ease; }
.button span[aria-hidden] { font-size: 20px; line-height: 1; }
.button-primary { color: white; background: var(--orange); }
.button-primary:hover { background: var(--orange-dark); }
.button-secondary { background: #fffefb; border-color: #dcdfd1; color: #454c37; }
.button-secondary:hover { background: #f2f3ea; border-color: #bfc6b0; }
.button:disabled { cursor: wait; opacity: .65; }
.button[aria-disabled="true"] { pointer-events: none; opacity: .5; }
.card-note { color: #7e8072; font-size: 11px; line-height: 1.6; text-align: center; margin: 17px 0 0; }
.account-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 23px; }
.account-heading .eyebrow { margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; background: #edf2e5; color: #4e6438; border-radius: 7px; font-size: 10px; font-weight: 600; }
.status-pill::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-pill.inactive { background: #f7ede3; color: #88562d; }
.greeting-dot { color: var(--orange); }
.expiry { font-size: 12px; color: var(--muted); margin: -19px 0 25px; }
.steps { list-style: none; padding: 0; margin: 30px 0; }
.step { display: grid; grid-template-columns: 29px minmax(0, 1fr); column-gap: 15px; position: relative; padding-bottom: 27px; }
.step::before { content: ""; position: absolute; top: 39px; bottom: 10px; left: 14px; width: 1px; background: var(--border); }
.step-number { width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; background: #fff2e4; border: 1px solid #f6dfc6; color: #a45c27; border-radius: 50%; font-size: 12px; font-weight: 650; }
.step h2 { font-size: 16px; font-weight: 640; letter-spacing: -.2px; margin: 4px 0 7px; }
.step p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.step .button { min-height: 46px; font-size: 13px; padding: 11px 14px; }
.last-step { padding-bottom: 0; }
.last-step::before { display: none; }
.last-step p { margin-bottom: 0; }
.manual-help { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.manual-help summary { cursor: pointer; padding: 18px 20px 18px 0; font-size: 12px; line-height: 1.6; font-weight: 550; color: #656b56; }
.manual-content { padding: 0 0 19px; }
.manual-content > p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0 0 15px; }
.manual-content .button { font-size: 12px; min-height: 44px; }
.manual-content .copy-status { margin: 10px 0 0; color: #50643b; }
.manual-content .copy-status:empty { display: none; }
.manual-content .privacy-note { font-size: 11px; margin: 15px 0 0; color: #858575; }
.device-card { padding: 20px; margin-top: 25px; border-radius: 16px; background: #f2f4ec; border: 1px solid #e5e9dc; }
.device-symbol { float: right; color: #74855b; font-size: 21px; line-height: 1; margin-left: 10px; }
.device-card h2 { font-size: 16px; font-weight: 640; letter-spacing: -.3px; margin: 0 0 9px; }
.device-card summary { cursor: pointer; font-size: 15px; font-weight: 640; line-height: 1.5; }
.device-card[open] summary { margin-bottom: 12px; }
.device-card > p { color: #727964; font-size: 12px; line-height: 1.65; margin: 0 0 17px; }
.device-card .button { min-height: 45px; font-size: 12px; padding: 11px; }
.device-card .copy-status { margin: 10px 0 0; color: #50643b; }
.device-card .copy-status:empty { display: none; }
.device-card .privacy-note { font-size: 10px; margin: 12px 0 0; }
#personal-manual-copy { margin-top: 16px; }
#personal-manual-copy label { font-size: 12px; }
#personal-page-link { font-size: 13px; }
.join-guide { margin-top: 29px; padding-top: 26px; border-top: 1px solid var(--border); }
.join-guide .eyebrow { margin-bottom: 20px; }
.guide-intro { display: flex; gap: 12px; margin: 19px 0; }
.guide-intro .step-number { flex-shrink: 0; }
.guide-intro h2 { margin: 4px 0 6px; font-size: 15px; font-weight: 640; }
.guide-intro p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.65; }
.join-install { margin: 22px 0; }
.join-install summary { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 640; font-size: 15px; }
.join-install summary::after { content: "+"; margin-left: auto; color: var(--muted); }
.join-install[open] summary::after { content: "−"; }
.join-install .installation-host { margin: 16px 0 0 41px; }
.platform-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 14px 0; }
.platform-button { border: 1px solid #dedfd4; border-radius: 9px; background: #fffefb; min-height: 38px; padding: 8px 5px; font-size: 11px; color: #66695b; }
.platform-button[aria-pressed="true"] { background: #fff0df; color: #a34b1f; border-color: #efbb96; font-weight: 650; }
.platform-alternative { display: block; padding: 10px 0 8px; text-align: center; font-size: 11px; line-height: 1.6; text-underline-offset: 3px; color: #677651; }
.installation-picker .platform-instruction { margin: 3px 0 8px; font-size: 11px; line-height: 1.65; color: var(--muted); }
.official-downloads { display: inline-block; font-size: 10px; line-height: 1.6; text-underline-offset: 3px; color: #858575; }
.step .return-to-page { background: #fff2e4; border-radius: 9px; padding: 10px 12px; color: #9b602f; margin: 14px 0 0; font-size: 11px; }
.return-to-page span { margin-right: 3px; }
.power-icon { width: 30px; height: 30px; color: #758655; float: right; margin: 2px 0 10px 8px; }
.power-character { font-size: 18px; vertical-align: -1px; line-height: 1; color: #4e6438; }
.step .step-result { color: #5c7043; font-size: 11px; margin-top: 9px; }
#manual-copy { margin-top: 16px; }
#manual-copy label { font-size: 12px; }
#subscription-link { font-size: 13px; }
.return-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 22px; }
.note-icon { color: #959c87; font-size: 21px; line-height: 1.4; }
.return-note p { color: #858575; font-size: 11px; line-height: 1.65; margin: 0; }
.logout-button { display: block; margin: 18px auto -5px; padding: 10px; border: 0; background: transparent; color: #747867; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.logout-button:disabled { cursor: wait; opacity: .6; }
.logout-status { font-size: 12px; line-height: 1.6; color: #983f29; margin: 15px 0 0; }
.data-disclosure { margin-top: 20px; color: #727964; font-size: 11px; line-height: 1.7; }
.data-disclosure summary { cursor: pointer; padding: 5px 0; font-weight: 550; }
.data-disclosure p { margin: 8px 0 0; color: var(--muted); }
.client-badge { width: fit-content; border-radius: 8px; background: #fff0df; padding: 6px 9px; color: #9b602f; font-size: 11px; }
#clash-devices h2 { font-size: 17px; margin: 0 0 12px; letter-spacing: -.3px; }
.clash-install { margin: 23px 0 30px; }
.clash-install > p, .device-rule { font-size: 13px; line-height: 1.65; color: var(--muted); margin: 0 0 16px; }
.clash-install .official-downloads { margin-top: 10px; }
#add-device-form { padding: 19px; border: 1px solid var(--border); border-radius: 15px; background: #faf9f4; margin: 20px 0; }
#device-platform, #clash-download-platform, #device-version, #clash-download-version { width: 100%; max-width: 100%; min-height: 48px; border: 1px solid #dadbcf; border-radius: 10px; background: #fff; color: #292c21; padding: 12px; margin-bottom: 19px; }
#device-version-hint { margin-top: -7px; margin-bottom: 16px; }
.clash-install #clash-download-instruction { margin: 12px 0 0; font-size: 12px; }
#add-device-form label:not(:first-child) { margin-top: 17px; }
#add-device-form .field-hint { text-align: center; }
.device-list { display: grid; gap: 13px; margin: 24px 0; }
.registered-device { border: 1px solid var(--border); border-radius: 15px; padding: 19px; overflow-wrap: anywhere; }
.registered-device h3 { margin: 0 0 9px; font-size: 17px; }
.registered-device .status-pill { margin-bottom: 12px; }
.registered-device > p { margin: 0 0 13px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.registered-device .button { min-height: 44px; font-size: 12px; margin-top: 9px; padding: 11px; }
.registered-device .device-copy-status { margin: 10px 0 0; font-size: 11px; color: #50643b; }
.device-copy-fallback { margin-top: 12px; font-size: 12px; }
.revoke-device { display: block; margin: 12px 0 -5px auto; padding: 8px 0 8px 12px; border: 0; background: transparent; color: #965632; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.device-update-status { font-size: 12px; line-height: 1.6; color: var(--muted); }
#refresh-devices-button { margin: 12px 0 25px; font-size: 12px; }
.iphone-guide { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.iphone-guide > summary { cursor: pointer; color: #59634a; font-size: 13px; line-height: 1.6; font-weight: 640; }
.iphone-guide > summary > span { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin: 3px 0 0 14px; }
.iphone-guide-body { margin-top: 18px; }
.iphone-guide-body h3, .iphone-guide-body h4 { font-size: 14px; line-height: 1.5; letter-spacing: -.2px; margin: 0 0 9px; }
.iphone-guide-body p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 10px 0; }
.iphone-guide-body .guide-device-context { font-weight: 600; color: #59634a; overflow-wrap: anywhere; }
.guide-auto { padding: 16px; background: #f3f5ec; border: 1px solid #e4e9d9; border-radius: 13px; }
.guide-auto .button { margin: 14px 0; }
.guide-preparation, .guide-manual, .guide-finish { margin-top: 18px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.iphone-guide-body details > summary { cursor: pointer; font-size: 12px; font-weight: 600; line-height: 1.65; color: #59634a; }
.guide-steps { list-style: none; padding: 0; margin: 23px 0 0; counter-reset: iphone-step; }
.guide-steps > li { margin-top: 25px; counter-increment: iphone-step; }
.guide-steps h4::before { content: counter(iphone-step) ". "; color: #af572c; }
.guide-figure { margin: 17px 0 22px; }
.guide-frame { position: relative; display: block; width: min(100%, 260px); margin: 0 auto; border: 1px solid #e3e2d9; border-radius: 16px; overflow: hidden; background: #eeefed; cursor: zoom-in; }
.guide-frame img { display: block; width: 100%; height: auto; }
.guide-figure figcaption { font-size: 10px; line-height: 1.65; margin: 9px 0 0; color: #808573; }
.guide-zoom { position: absolute; right: 8px; bottom: 9px; border-radius: 6px; padding: 4px 7px; background: #fffefbef; color: #5e654f; font-size: 9px; }
.guide-mark { position: absolute; border: 2px solid #e85c21; border-radius: 5px; box-shadow: 0 0 0 2px #fff9; pointer-events: none; }
.guide-mark[data-mark]::before { content: attr(data-mark); position: absolute; top: -24px; left: -9px; width: 19px; height: 19px; line-height: 19px; border-radius: 50%; color: #fff; background: #c64a19; font-size: 11px; font-weight: 700; text-align: center; box-shadow: 0 0 0 2px #fff; }
.mark-install { left: 39%; top: 24.8%; width: 22%; height: 4.2%; }
.mark-language { left: 2.7%; top: 40.8%; width: 94.4%; height: 5.8%; }
.mark-language-done { left: 81%; top: 13%; width: 16%; height: 3.5%; }
.mark-home-plus { left: 68%; top: 33.7%; width: 7.5%; height: 3.4%; }
.mark-home-switch { left: 72%; top: 19.7%; width: 14%; height: 4.2%; }
.mark-add { left: 7.5%; top: 56.4%; width: 85%; height: 5.4%; }
.mark-url { left: 13.7%; top: 20.7%; width: 72.8%; height: 14.7%; }
.mark-core { left: 10.4%; top: 67%; width: 79.3%; height: 5.5%; }
.mark-mode { left: 7.5%; top: 62.2%; width: 85%; height: 5.6%; }
.mark-save { left: 87%; top: 13.5%; width: 7.8%; height: 3.7%; }
.mark-saved-mode { left: 46.5%; top: 67%; width: 40%; height: 5.1%; }
.iphone-guide-body .guide-important { border-left: 3px solid #e89a63; padding: 9px 11px; border-radius: 0 8px 8px 0; background: #fff1e3; color: #96562d; font-size: 11px; }
.iphone-guide-body .guide-copy-status { color: #50643b; }
.guide-copy-status:empty { display: none; }
.guide-copy-fallback { margin: 9px 0; font-size: 12px; }
.message { margin: 0 0 20px; border-radius: 10px; background: #f8f0e5; color: #7d592e; padding: 12px 14px; font-size: 13px; line-height: 1.6; }
.message.error { color: #983f29; background: #fff0e9; }
footer { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 25px; color: #999b8f; font-size: 10px; letter-spacing: .3px; }
footer span { font-size: 8px; }
.loading-card { text-align: center; padding: 60px 24px; }
.loading-card h1 { font-size: 25px; letter-spacing: -.8px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.6; }
.spinner { display: block; width: 28px; height: 28px; border: 3px solid #f7e2ce; border-top-color: var(--orange); border-radius: 50%; margin: 0 auto 25px; animation: spin 850ms linear infinite; }
.empty-card { padding-top: 32px; }
.message-icon { display: flex; align-items: center; justify-content: center; border-radius: 14px; width: 46px; height: 46px; background: #fff0df; color: var(--orange); font-size: 26px; margin-bottom: 27px; }
.empty-card h1 { font-size: 32px; }
.empty-card .intro { margin-bottom: 5px; }
.empty-card .button { margin-top: 25px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  .button { transition: none; }
}
@media (max-width: 480px) {
  .page-shell { width: min(100% - 28px, 552px); padding-top: 27px; }
  .brand { margin-bottom: 26px; font-size: 21px; }
  .brand-mark { width: 32px; height: 32px; }
  .card { padding: 28px 23px 25px; border-radius: 23px; }
  .intro { font-size: 14px; margin-top: 17px; }
  h1 { letter-spacing: -1.2px; }
  .account-heading { margin-bottom: 22px; }
  .account-heading .eyebrow { font-size: 10px; letter-spacing: 1px; }
  .status-pill { font-size: 9px; }
  .step { column-gap: 11px; }
  .step h2 { font-size: 15px; }
  .step p { font-size: 12px; }
  .loading-card { padding: 50px 20px; }
  footer { font-size: 9px; margin-top: 23px; }
}
