@font-face {
  font-family: "UKIJTuz";
  src: url("/fonts/ukijtuz.ttf") format("truetype");
  font-display: swap;
}

:root { color: #23342b; background: #f5f8f5; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #8ab53e; outline-offset: 4px; }
[hidden] { display: none !important; }
.layout { max-width: 1240px; margin: auto; padding: 0 40px; }
.topbar { min-height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e1e8df; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 750; letter-spacing: -.6px; }
.brand img { border-radius: 11px; }
.ug { font-family: "UKIJTuz", "PingFang SC", sans-serif; font-weight: 400; }
.brand small { display: block; font-size: 11px; color: #7b897f; font-weight: 500; letter-spacing: 1px; margin-top: 2px; }
.local-label { font-size: 12px; color: #758277; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 0 30px; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: 2.5px; color: #718d4d; margin: 0 0 12px; }
h1 { font-size: 32px; letter-spacing: -1px; font-weight: 650; margin: 0 0 12px; line-height: 1.4; }
.intro { font-size: 14px; color: #7a857b; line-height: 1.7; margin: 0; }
.secondary { background: #fff; border: 1px solid #dce4d8; border-radius: 9px; color: #53634d; padding: 11px 16px; white-space: nowrap; font-size: 13px; }
.secondary:hover { border-color: #9bb783; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 16px; margin-bottom: 25px; }
.status-card, .panel { border: 1px solid #e3e9df; border-radius: 15px; background: #fff; }
.status-card { padding: 23px; }
.label { color: #879080; font-size: 12px; margin: 0 0 15px; }
.status { font-size: 20px; font-weight: 600; margin: 0 0 10px; }
.status::before { content: ""; width: 8px; height: 8px; background: #b4bdae; display: inline-block; border-radius: 50%; margin-right: 9px; vertical-align: middle; }
.status[data-state="ok"]::before { background: #7dbb24; box-shadow: 0 0 0 4px #f1f8e7; }
.status[data-state="pending"]::before { background: #dca04a; }
.status[data-state="error"]::before { background: #ce6253; }
.description { margin: 0; color: #939a8f; font-size: 12px; line-height: 1.5; }
.address { font: 16px ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0 0 13px; overflow-wrap: anywhere; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; }
.panel { padding: 26px; }
.tutorial-panel { margin-bottom: 24px; }
.tutorial-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; }
.tutorial-grid label:not(:first-child) { margin-top: 20px; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.settings-actions .primary { padding: 12px 19px; }
#tutorial-message[data-state="error"] { color: #ae5545; }
#tutorial-message[data-state="ok"] { color: #548b20; }
.section-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 28px; }
.section-number { background: #f0f6e8; color: #7c9b4f; border-radius: 9px; padding: 7px; font-size: 11px; font-weight: 600; }
h2 { font-size: 16px; font-weight: 650; margin: 2px 0 7px; }
.section-heading p { font-size: 12px; line-height: 1.5; color: #8a9386; margin: 0; }
label { display: block; font-size: 12px; color: #63705c; margin-bottom: 9px; }
.input-row { display: flex; gap: 10px; }
input { width: 100%; min-width: 0; background: #fafcf9; border: 1px solid #dfe6da; border-radius: 8px; padding: 13px; color: #283824; }
.primary { flex-shrink: 0; background: #77ad24; color: #fff; border: 0; border-radius: 8px; padding: 0 19px; font-size: 13px; }
.primary:hover { background: #679820; }
.hint { color: #91998b; font-size: 11px; line-height: 1.8; margin: 10px 0 0; }
.query-message { margin-top: 25px; border-radius: 10px; padding: 20px; background: #f7f9f4; color: #87927c; font-size: 13px; line-height: 1.8; }
.query-message[data-state="error"] { color: #ae5545; background: #fff5ef; }
.film-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.search-results { margin-top: 16px; border: 1px solid #e4eadc; border-radius: 10px; padding: 0 14px; }
.search-result { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; border: 0; border-bottom: 1px solid #edf1e8; background: transparent; padding: 16px 0; text-align: start; }
.search-result:last-child { border-bottom: 0; }
.search-result span { font-family: "UKIJTuz", "PingFang SC", sans-serif; font-size: 18px; color: #304027; }
.search-result small { flex-shrink: 0; font-size: 11px; color: #71954d; }
.search-result:hover span { color: #77ad24; }
h3 { font-family: "UKIJTuz", "PingFang SC", sans-serif; font-size: 19px; font-weight: 400; margin: 0; overflow-wrap: anywhere; }
.tag { flex-shrink: 0; color: #71954d; background: #f0f7e9; padding: 5px 9px; border-radius: 5px; font-size: 10px; }
video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #10160f; border-radius: 10px; }
.result-footer { margin-top: 14px; font-size: 11px; line-height: 1.8; color: #929a8c; }
.result-footer a { display: block; color: #7d9a5b; overflow-wrap: anywhere; }
.side-panels { display: flex; flex-direction: column; gap: 18px; }
.side-panels .section-heading { margin-bottom: 8px; }
.endpoint { display: flex; justify-content: space-between; align-items: center; padding: 17px 0; border-bottom: 1px solid #edf0e8; }
.endpoint:last-child { border: 0; padding-bottom: 0; }
.endpoint b { display: block; font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.endpoint code { font-size: 10px; color: #8e9b82; overflow-wrap: anywhere; }
.endpoint > span:last-child { color: #88a86a; }
.endpoint:hover b { color: #6f9e2a; }
.guide { background: #f0f5e9; border-color: #e4eadb; }
.guide h2 { font-size: 14px; }
ol { padding-left: 18px; color: #78856d; font-size: 12px; line-height: 2.1; }
.notice { font-size: 11px; line-height: 1.9; color: #8e9a82; border-top: 1px solid #dde6d3; padding-top: 12px; margin-bottom: 0; }
footer { padding: 30px 0; font-size: 11px; color: #9ca591; line-height: 1.8; }
footer span { padding: 0 7px; }
@media (max-width: 800px) { .layout { padding: 0 22px; } .main-grid, .tutorial-grid { grid-template-columns: 1fr; } .heading { padding-top: 30px; } h1 { font-size: 25px; } .status-grid { grid-template-columns: 1fr 1fr; } .status-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 440px) { .layout { padding: 0 16px; } .local-label { font-size: 10px; } .topbar { min-height: 80px; } .heading { align-items: flex-start; flex-direction: column; gap: 16px; } .status-grid { gap: 10px; } .status-card { padding: 18px; } .status { font-size: 17px; } .panel { padding: 20px; } .primary { padding: 0 12px; } }
