:root { color-scheme: light; font-family: system-ui, sans-serif; background: #f4f6f8; color: #17202a; }
* { box-sizing: border-box; }
body { margin: 0; }
.app { max-width: 980px; margin: 0 auto; padding: 28px 18px 48px; }
h1 { margin: 0 0 6px; } h2 { font-size: 1.05rem; margin: 0; }
p { color: #52606d; margin-top: 0; }
.card { background: white; border: 1px solid #d9e0e7; border-radius: 12px; padding: 18px; margin-top: 16px; box-shadow: 0 2px 8px #17202a0d; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.grid label:last-child { grid-column: 1 / -1; max-width: 280px; }
label { display: block; font-weight: 650; }
input, select, textarea { display: block; width: 100%; margin-top: 7px; border: 1px solid #b9c4cf; border-radius: 7px; padding: 10px; font: inherit; background: white; }
textarea { resize: vertical; font-family: ui-monospace, monospace; font-weight: 400; }
.help-inline { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border-radius: 50%; background: #e8eef4; color: #1769aa; font-size: .75rem; vertical-align: middle; }
.help-tooltip { position: fixed; z-index: 100; width: min(320px, calc(100vw - 16px)); padding: 10px 12px; border: 1px solid #9fc3df; border-radius: 8px; background: #17324d; color: white; box-shadow: 0 7px 22px #17202a44; font-size: .84rem; line-height: 1.4; pointer-events: none; }
.option-label { align-self: center; font-size: .92rem; } .option-label input { display: inline-block; width: auto; margin: 0 5px 0 0; vertical-align: middle; }
.drop-active { outline: 2px dashed #1769aa; outline-offset: 3px; border-radius: 7px; }
.path-row { display: flex; gap: 8px; } .path-row input { min-width: 0; }
button { border: 0; border-radius: 7px; padding: 10px 14px; font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap; }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { background: #1769aa; color: white; } .secondary { background: #e8eef4; color: #17324d; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.report-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
#status { color: #1769aa; font-size: .9rem; } #status.error { color: #b42318; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f7f9fb; border: 1px solid #e1e7ed; border-radius: 7px; padding: 14px; min-height: 180px; margin: 12px 0 0; font: .9rem/1.5 ui-monospace, monospace; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.summary-grid > div { padding: 10px; border-radius: 8px; background: #eef5fa; text-align: center; }
.summary-grid b, .summary-grid small { display: block; } .summary-grid b { font-size: 1.25rem; color: #1769aa; } .summary-grid small { color: #52606d; }
.duplicate-panel, .history-panel { margin-top: 12px; padding: 12px; border: 1px solid #e8c46a; border-radius: 8px; background: #fff8df; }
.duplicate-panel h3, .history-panel h3 { margin: 0 0 9px; font-size: .95rem; } .duplicate-panel label { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; margin-top: 7px; font-size: .88rem; }
.history-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid #ecdcae; font-size: .82rem; }
.seo-content { max-width: 980px; margin: 28px auto 0; padding: 22px 24px; border-top: 1px solid #d9e0e7; color: #334e68; }
.seo-content h2 { color: #17324d; } .seo-content p { max-width: 850px; line-height: 1.6; }
.seo-content code { padding: 2px 5px; border-radius: 4px; background: #eef5fa; color: #17324d; }
.seo-faq { display: grid; gap: 8px; max-width: 850px; margin-top: 15px; }
.seo-faq details { padding: 10px 12px; border: 1px solid #d9e0e7; border-radius: 7px; background: #f8fafc; }
.seo-faq summary { cursor: pointer; font-weight: 650; color: #17324d; }
.seo-faq p { margin: 8px 0 0; font-size: .92rem; }
.privacy-content { max-width: 980px; margin: 0 auto; padding: 22px 24px 38px; border-top: 1px solid #d9e0e7; color: #334e68; }
.privacy-content h2 { color: #17324d; } .privacy-content p { max-width: 850px; line-height: 1.6; }
.privacy-note { padding: 12px 14px; border-left: 3px solid #e8c46a; background: #fff8df; border-radius: 6px; }
.message-dialog { width: min(470px, calc(100% - 32px)); border: 0; border-radius: 14px; padding: 24px; color: #17324d; box-shadow: 0 18px 70px #17202a55; }
.message-dialog::backdrop { background: #17202a66; backdrop-filter: blur(2px); }
.message-dialog h2 { margin-top: 0; } .message-dialog p { line-height: 1.5; white-space: pre-line; }
header { padding: 6px 2px 4px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #dceeff; font-size: 1.7rem; }
.brand p { margin: 3px 0 0; }
.help-button { margin-left: auto; width: 31px; height: 31px; padding: 0; border-radius: 50%; background: #e8eef4; color: #1769aa; border: 1px solid #b9c4cf; }
.help-panel { margin: 12px 0 0 60px; max-width: 760px; padding: 13px 16px; border-left: 3px solid #1769aa; border-radius: 7px; background: #eef7ff; color: #17324d; }
.help-panel p { margin: 6px 0 0; font-size: .9rem; line-height: 1.45; }
.help-panel code { background: #dceeff; padding: 1px 4px; border-radius: 4px; }
.instructions h2 { margin-bottom: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.steps > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; padding: 11px; border-radius: 9px; background: #f5f8fb; }
.steps span { grid-row: span 2; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1769aa; color: white; font-weight: 700; }
.steps strong { font-size: .9rem; } .steps small { color: #52606d; line-height: 1.35; }
.hint { font-size: .82rem; margin: 13px 0 0; }
.coffee { display: flex; align-items: center; gap: 13px; padding: 14px 16px; margin-top: 16px; border: 1px solid #e8c46a; border-radius: 12px; background: #fff8df; color: #493b18; }
.coffee-icon { font-size: 1.8rem; } .coffee p { margin: 3px 0 0; color: #6b5a2b; font-size: .9rem; }
.coffee a { margin-left: auto; background: #1769aa; color: white; text-decoration: none; border-radius: 7px; padding: 9px 12px; font-weight: 650; white-space: nowrap; }
.close { padding: 2px 7px; background: transparent; color: #6b5a2b; font-size: 1.4rem; }
.support-dialog { width: min(430px, calc(100% - 32px)); border: 0; border-radius: 16px; padding: 25px; color: #17324d; box-shadow: 0 18px 70px #17202a55; text-align: center; }
.support-dialog::backdrop { background: #17202a66; backdrop-filter: blur(2px); }
.support-icon { font-size: 2.3rem; } .support-dialog h2 { margin: 8px 0; } .support-dialog p { line-height: 1.45; }
.support-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.support-link { display: inline-block; border-radius: 7px; padding: 10px 14px; background: #1769aa; color: white; text-decoration: none; font-weight: 700; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; align-items: start; }
.main-column { min-width: 0; }
.promo-panel { position: sticky; top: 18px; padding: 15px; border: 1px solid #d9e0e7; border-radius: 12px; background: linear-gradient(160deg, #f7fbff, #eef5fa); box-shadow: 0 2px 8px #17202a0d; }
.promo-heading { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 12px; color: #17324d; }
.promo-heading > span { font-size: 1.35rem; } .promo-heading strong, .promo-heading small { display: block; } .promo-heading small { margin-top: 3px; color: #52606d; line-height: 1.3; }
.promo-list { display: grid; gap: 11px; }
.promo-card { display: block; height: 142px; perspective: 900px; color: #17202a; text-decoration: none; }
.promo-inner { display: block; position: relative; width: 100%; height: 100%; transition: transform .75s cubic-bezier(.2,.75,.25,1); transform-style: preserve-3d; }
.promo-card:hover .promo-inner, .promo-card:focus-visible .promo-inner, .promo-card.is-active .promo-inner { transform: rotateY(180deg); }
.promo-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 12px; border: 1px solid #c9dbea; border-radius: 10px; backface-visibility: hidden; text-align: center; }
.promo-front { background: #fff; } .promo-back { transform: rotateY(180deg); background: #1769aa; color: white; border-color: #1769aa; }
.promo-face b { font-size: 1.7rem; } .promo-face strong { font-size: .94rem; } .promo-face small { font-size: .78rem; line-height: 1.25; color: #52606d; } .promo-back small { color: #e3f0fb; }
@media (max-width: 900px) { .page-layout { grid-template-columns: 1fr; } .promo-panel { position: static; } .promo-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } .coffee { align-items: flex-start; flex-wrap: wrap; } .coffee a { margin-left: 0; } .promo-list { grid-template-columns: 1fr 1fr; } }
