* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #f4f7fc; color: #0b1a33; font-family: system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',sans-serif; }
button,input,select { font: inherit; }
button,a,input,select { -webkit-tap-highlight-color: transparent; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline: 3px solid #8ec7ff; outline-offset: 3px; }
.refresh-header { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 16px; min-height: 66px; padding: 10px 28px; background: #fff; border-bottom: 1px solid #e7edf5; }
.refresh-plan { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; color: #16803d; background: #eaf8ef; font-size: .8rem; font-weight: 500; white-space: nowrap; }
.refresh-plan strong { font-size: .85rem; font-style: italic; font-weight: 800; }
.refresh-title { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; font-size: 1.325rem; font-weight: 700; line-height: 1.4; }
.refresh-icon { display: grid; place-items: center; width: 36px; height: 36px; color: #006acd; font-size: 1.9rem; }
.refresh-open { align-items: center; justify-self: end; gap: 6px; color: #69798d; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.refresh-open:hover { color: #006acd; }
.refresh-main { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; padding: 32px 24px 16px; }
.refresh-wrapper { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; width: 100%; }
.refresh-card { width: 100%; max-width: 1040px; min-width: 0; padding: 24px 22px 28px; border: 1px solid #e5ebf3; border-radius: 24px; background: #fff; box-shadow: 0 12px 40px rgba(18,61,107,.06); }
.refresh-intro { margin-bottom: 24px; }
.refresh-intro h2 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 650; line-height: 1.6; }
.refresh-intro p { margin: 0; color: #66758a; font-size: .85rem; line-height: 1.8; }
.settings { min-width: 0; margin: 0; padding: 0; border: 0; }
label { display: block; min-width: 0; color: #315d8d; font-size: .85rem; font-weight: 500; }
input,select { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 8px; padding: 10px 12px; border: 1px solid #d2dce9; border-radius: 10px; color: #0b1a33; background: #fff; font-weight: 400; }
input::placeholder { color: #9ba7b6; }
input[aria-invalid=true] { border-color: #dc3545; }
.field-help { display: block; margin: 8px 0 0; color: #66758a; font-size: .76rem; font-weight: 400; line-height: 1.8; }
.settings-row { display: grid; grid-template-columns: minmax(0,420px); gap: 18px; margin-top: 18px; }
.interval-input { display: grid; grid-template-columns: minmax(0,1fr) 96px; gap: 8px; }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; color: #8895a7; font-size: .76rem; }
.presets button { min-height: 30px; padding: 4px 12px; border: 1px solid #e0e7f0; border-radius: 8px; color: #315d8d; background: #f8faff; cursor: pointer; }
.presets button:hover { border-color: #8ec7ff; background: #eef4fe; }
.mode-help { margin: 18px 0; padding: 12px 14px; border: 1px solid #e0eafa; border-radius: 12px; background: #f8faff; color: #66758a; font-size: .8rem; line-height: 1.8; }
.refresh-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 20px; border: 1px solid #e0e7f0; border-radius: 10px; color: #4b5a6a; background: #f4f7fc; font-size: .85rem; font-weight: 500; cursor: pointer; }
.button:hover { background: #eaf0f8; }
.button.primary { flex: 1; color: #fff; background: #006acd; border-color: #006acd; box-shadow: 0 4px 14px rgba(0,106,205,.15); }
.button.primary:hover { background: #0059b3; }
button:disabled,.settings:disabled { opacity: .5; }
button:disabled { cursor: not-allowed; }
.refresh-status { margin: 20px 0 16px; color: #315d8d; font-size: .85rem; line-height: 1.8; overflow-wrap: anywhere; }
.refresh-status.is-error { color: #c33243; }
.refresh-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid #eef2f8; border-radius: 14px; background: #f8faff; }
.refresh-stats > div { min-width: 0; padding: 15px; text-align: center; }
.refresh-stats span { display: block; color: #8895a7; font-size: .75rem; }
.refresh-stats strong { display: block; margin-top: 7px; color: #315d8d; font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.task-detail { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin-top: 12px; color: #66758a; font-size: .76rem; line-height: 1.8; overflow-wrap: anywhere; }
#activeUrl { min-width: 0; }
.background-hint { color: #9a6100; font-size: .8rem; line-height: 1.8; }
.preview-section { margin-top: 24px; }
.preview-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.preview-heading h3 { margin: 0; color: #315d8d; font-size: .95rem; font-weight: 600; }
.preview-heading span { color: #8895a7; font-size: .75rem; }
.preview-area { min-height: 320px; overflow: hidden; border: 1px solid #d2dce9; border-radius: 14px; background: #f8faff; }
.preview-area iframe { display: block; width: 100%; height: 520px; border: 0; background: #fff; }
.preview-empty { display: flex; min-height: 320px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: #8895a7; }
.preview-empty > span { color: #9cb7d6; font-size: 3rem; }
.preview-empty strong { color: #66758a; font-size: .9rem; font-weight: 500; }
.preview-empty p { margin: 0; font-size: .8rem; line-height: 1.8; }
.refresh-tips { width: 100%; max-width: 1040px; margin-top: auto; padding: 18px 16px 0; border-top: 1px solid #eef2f8; color: #66758a; font-size: .85rem; line-height: 1.8; text-align: center; }
.refresh-tips p { margin: 0 0 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media(max-width:767.98px) { .refresh-header { padding: 8px 16px; gap: 10px; }.refresh-title { gap: 7px; font-size: 1.175rem; }.refresh-icon { width: 30px; font-size: 1.7rem; }.refresh-plan { padding: 5px 8px; font-size: .72rem; }.refresh-open { font-size: .8rem; }.refresh-main { padding: 24px 16px 16px; gap: 20px; }.refresh-card { padding: 18px 16px 22px; border-radius: 22px; }.refresh-intro h2 { font-size: 1rem; }.refresh-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }.refresh-stats strong { font-size: 1rem; }.button { padding: 10px 14px; }.refresh-actions > .primary { flex-basis: 100%; }.refresh-actions > button { flex: 1; }.preview-area iframe { height: 420px; } }
@media(max-width:575.98px) { .refresh-header { grid-template-columns: auto minmax(0,1fr); }.refresh-title { grid-column: 1 / -1; grid-row: 1; }.refresh-plan { grid-column: 1; grid-row: 2; }.refresh-open { grid-column: 2; grid-row: 2; }.settings-row { grid-template-columns: minmax(0,1fr); gap: 14px; }.interval-input { grid-template-columns: minmax(0,1fr) 96px; } }

.target-link { color: #006acd; font-size: .8rem; text-decoration: none; }.target-link:hover { text-decoration: underline; }
