.proxy-main { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.proxy-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 48px 2px 34px; border-bottom: 1px solid #d9e3de; }
.proxy-hero h1 { max-width: 760px; margin: 0; color: #1c352f; font-family: "Iowan Old Style", "Noto Serif SC", "Songti SC", serif; font-size: clamp(34px, 4vw, 46px); font-weight: 600; letter-spacing: -.055em; line-height: 1.2; }
.proxy-hero .intro-description { max-width: 620px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; color: var(--forest); font-size: 12px; font-weight: 650; white-space: nowrap; }
.back-link:hover { color: #397a68; }
.proxy-workspace { display: grid; grid-template-columns: minmax(330px, .8fr) minmax(0, 1.2fr); align-items: start; gap: 18px; padding: 25px 0 72px; }
.proxy-panel { min-width: 0; overflow: hidden; border: 1px solid #d9e3de; border-radius: 6px; background: var(--paper); }
.panel-heading { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.panel-heading h2 { margin: 0; color: #1e3732; font-size: 18px; line-height: 1.3; font-weight: 650; }
.local-badge { display: inline-flex; align-items: center; gap: 6px; color: #658678; font-size: 10px; white-space: nowrap; }
.local-badge span { color: #69a487; font-size: 8px; }
.field-label { display: block; margin: 20px 18px 8px; color: #71817a; font-size: 11px; }
#proxy-input { width: calc(100% - 36px); min-height: 240px; display: block; resize: vertical; margin: 0 18px; padding: 13px 14px; border: 1px solid #d8e2dd; border-radius: 4px; outline: 0; background: #fbfdfb; color: #2b4840; font: 12px/1.85 "Cascadia Mono", Consolas, monospace; tab-size: 2; }
#proxy-input:focus { border-color: #8aafa0; box-shadow: 0 0 0 2px #e4efe9; }
#proxy-input::placeholder { color: #a1ada7; }
.format-notes { display: grid; gap: 8px; margin: 14px 18px 0; }
.format-note { min-width: 0; display: grid; grid-template-columns: 19px minmax(0, 1fr); align-items: center; gap: 5px 8px; color: #8a9992; font-size: 10px; }
.format-index { width: 18px; height: 18px; display: grid; place-items: center; grid-row: span 2; border-radius: 50%; background: #eef5f0; color: #557968; font: 9px Georgia, serif; }
.format-note code { overflow: hidden; color: #52695f; font: 10px/1.5 "Cascadia Mono", Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.format-note > span:last-child { color: #96a29c; font-size: 9px; }
.source-message { min-height: 24px; margin: 13px 18px 0; color: #a45139; font-size: 10px; line-height: 1.5; }
.source-message.success { color: #4b8a71; }
.source-actions { display: flex; gap: 9px; margin: 0 18px; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid #d3e0d8; border-radius: 4px; background: #fbfdfb; color: #476158; font-size: 11px; font-weight: 650; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.button:hover:not(:disabled) { border-color: #9eb9ab; background: #f4f9f5; transform: translateY(-1px); }
.button.primary { flex: 1; border-color: var(--forest); background: var(--forest); color: #fff; }
.button.primary:hover:not(:disabled) { border-color: #2a6457; background: #2a6457; }
.button:disabled, .text-button:disabled { cursor: not-allowed; opacity: .45; }
.privacy-note { display: flex; align-items: flex-start; gap: 7px; margin: 17px 18px 18px; color: #87968f; font-size: 10px; line-height: 1.55; }
.privacy-note span { color: #56866f; }
.results-panel { min-height: 490px; }
.results-heading { position: sticky; top: 0; z-index: 1; background: var(--paper); }
.result-tools { display: flex; align-items: center; gap: 11px; }
.result-count { color: #87968f; font-size: 10px; white-space: nowrap; }
.text-button { padding: 5px 0; border: 0; background: transparent; color: #4e7965; font-size: 10px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.text-button:hover:not(:disabled) { color: #254c3c; }
.result-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-items: start; gap: 12px; padding: 16px; }
.results-empty { min-height: 390px; display: flex; grid-column: 1 / -1; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #91a097; font-size: 10px; text-align: center; }
.results-empty strong { margin-top: 5px; color: #435b51; font-size: 13px; font-weight: 600; }
.empty-qr { width: 56px; height: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; transform: rotate(-5deg); }
.empty-qr i { border: 2px solid #b6c9bd; background: repeating-linear-gradient(45deg, #e9f0eb 0 3px, #fff 3px 6px); }
.empty-qr i:nth-child(2), .empty-qr i:nth-child(3) { border-color: #7ca38e; }
.result-card { min-width: 0; overflow: hidden; border: 1px solid #dce6df; border-radius: 5px; background: #fff; animation: card-in .3s ease both; }
.result-card.is-error { border-color: #ead8d0; background: #fffaf8; }
.result-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-bottom: 1px solid #edf1ee; }
.result-number { color: #71847a; font: 10px "Cascadia Mono", Consolas, monospace; }
.result-status { color: #5c8d72; font-size: 9px; }
.is-error .result-status { color: #b05e46; }
.result-qr { width: 100%; display: grid; place-items: center; padding: 13px; background: #f8faf8; }
.result-qr canvas { width: 150px; height: 150px; display: block; image-rendering: pixelated; background: #fff; }
.result-address { min-height: 51px; overflow-wrap: anywhere; padding: 10px 10px 8px; color: #587066; font: 9px/1.55 "Cascadia Mono", Consolas, monospace; }
.result-error { padding: 13px 10px; color: #a25b46; font-size: 10px; line-height: 1.55; }
.result-card-actions { display: flex; gap: 7px; padding: 0 10px 10px; }
.mini-button { min-height: 29px; flex: 1; border: 1px solid #dce6df; border-radius: 3px; background: #fbfdfb; color: #557365; font-size: 9px; cursor: pointer; }
.mini-button:hover { border-color: #aac2b2; background: #f2f7f3; }
@keyframes card-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 920px) { .proxy-main { width: calc(100% - 44px); } .proxy-workspace { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } .result-list { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); } }
@media (max-width: 720px) { .proxy-main { width: calc(100% - 30px); } .proxy-hero { align-items: flex-start; flex-direction: column; gap: 16px; padding: 29px 0 25px; } .proxy-hero h1 { font-size: 34px; } .proxy-hero .intro-description { margin-top: 10px; } .proxy-workspace { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 0 45px; } .results-panel { min-height: 390px; } .results-empty { min-height: 300px; } }
@media (max-width: 440px) { .panel-heading { padding-inline: 13px; } .local-badge { font-size: 9px; } .field-label, #proxy-input, .format-notes, .source-message { margin-left: 13px; margin-right: 13px; } #proxy-input { width: calc(100% - 26px); } .source-actions { margin-inline: 13px; } .source-actions .button { padding-inline: 10px; font-size: 10px; } .privacy-note { margin-inline: 13px; } .result-tools { align-items: flex-end; flex-direction: column; gap: 3px; } .result-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; } .result-qr { padding: 9px; } .result-qr canvas { width: min(100%, 138px); height: auto; aspect-ratio: 1; } .result-card-actions { gap: 4px; padding-inline: 7px; } .mini-button { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
