/* Footer utilities inherit the site's shared light/dark tokens. */
.iw-tools { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px; margin-top: 34px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); }
.iw-tools, .iw-tools * { box-sizing: border-box; }
.iw-tools > *, .iw-tools-dialog * { min-width: 0; }
.iw-tools [hidden] { display: none !important; }
.iw-tools-label { display: block; margin-bottom: 12px; color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.iw-tools-clock__time { display: block; font-size: clamp(23px, 2.5vw, 29px); line-height: 1.3; font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.iw-tools-clock__date, .iw-tools-clock__status { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.iw-tools-clock__status:empty { display: none; }
.iw-tools-links__list { display: flex; flex-wrap: wrap; align-items: start; gap: 8px 20px; }
.iw-tools-links a { display: inline-block; padding-block: 4px; color: var(--ink); font-size: 13px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.iw-tools-links a:hover { text-decoration: underline; }
.iw-tools-actions__list, .iw-tools-dialog__actions { display: flex; flex-wrap: wrap; align-items: start; gap: 9px; }
.iw-tools .iw-tools-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 42px; margin: 0; padding: 9px 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--white, #fff); color: var(--ink); font: inherit; font-size: 12px; font-weight: 550; line-height: 1.5; text-align: center; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.iw-tools .iw-tools-button:hover { background: var(--mint, #D8F3EE); }
.iw-tools .iw-tools-button:disabled { opacity: .65; cursor: wait; }
.iw-tools .iw-tools-button--primary { border-color: var(--green); background: var(--green); color: #fff; }
[data-iw-theme=dark] .iw-tools .iw-tools-button--primary { color: #0D1A24; }
.iw-tools a:focus-visible, .iw-tools button:focus-visible, .iw-tools input:focus-visible, .iw-tools textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.iw-tools .iw-tools-backtop { position: fixed; z-index: 70; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 44px; height: 44px; min-height: 44px; padding: 0; border-color: var(--line); border-radius: 50%; background: var(--white, #fff); color: var(--ink); font-size: 23px; box-shadow: 0 4px 16px #101E2C12; }
.iw-tools .iw-tools-backtop--docked { position: static; grid-column: 1 / -1; justify-self: end; box-shadow: none; }
.iw-tools-dialog { width: min(520px, calc(100% - 32px)); max-width: calc(100% - 32px); max-height: min(850px, calc(100vh - 32px)); max-height: min(850px, calc(100dvh - 32px)); margin: auto; padding: 0; overflow-x: hidden; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 15px 70px #0D1A2433; font: inherit; overscroll-behavior: contain; }
.iw-tools-dialog:not([open]) { display: none; }
.iw-tools-dialog::backdrop { background: #0D1A24A6; }
.iw-tools-dialog[open] { display: block; }
.iw-tools-dialog[open]:not(:modal) { position: fixed; z-index: 1000; inset: 16px; height: fit-content; }
.iw-tools-dialog__panel { padding: 26px; }
.iw-tools-dialog__head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.iw-tools-dialog h2 { margin: 5px 0 0; color: var(--ink); font-size: clamp(23px, 5vw, 29px); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.iw-tools .iw-tools-close { flex: 0 0 42px; width: 42px; height: 42px; padding: 0; font-size: 24px; font-weight: 400; line-height: 1; }
.iw-tools .iw-tools-intro { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.iw-tools .iw-tools-notice { min-height: 21px; margin: 12px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.iw-tools-qr { display: block; width: min(256px, 100%); height: auto; aspect-ratio: 1; margin: 20px auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; image-rendering: pixelated; }
.iw-tools-field-label { display: block; margin: 16px 0 7px; color: var(--ink); font-size: 12px; font-weight: 550; line-height: 1.5; }
.iw-tools .iw-tools-url { display: block; width: 100%; min-width: 0; max-width: 100%; margin: 0 0 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white, #fff); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.iw-tools textarea.iw-tools-url { resize: vertical; max-height: 200px; }
.iw-tools .iw-tools-small { margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.iw-tools-video { display: block; width: 100%; max-height: 300px; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 8px; background: #101E2C; object-fit: cover; }
.iw-tools-result { margin-top: 22px; padding-top: 6px; border-top: 1px solid var(--line); }
.iw-tools-result .iw-tools-small { margin: 0 0 14px; }
@media (max-width: 1050px) { .iw-tools { grid-template-columns: minmax(170px, .7fr) minmax(0, 1.3fr); gap: 24px; } .iw-tools-actions { grid-column: 2; } }
@media (max-width: 600px) { .iw-tools { grid-template-columns: minmax(0, 1fr); gap: 25px; margin-top: 27px; padding-block: 24px; } .iw-tools-actions { grid-column: auto; } .iw-tools-links__list { gap: 8px 20px; } .iw-tools-clock__time { font-size: 27px; } .iw-tools-dialog__panel { padding: 20px; } .iw-tools-dialog__head { gap: 10px; } .iw-tools .iw-tools-button { min-height: 44px; } .iw-tools-dialog__actions > * { flex: 1 1 auto; } }
@media (prefers-contrast: more) { .iw-tools .iw-tools-button, .iw-tools .iw-tools-url, .iw-tools-dialog { border-color: var(--ink); } }
@media (forced-colors: active) { .iw-tools .iw-tools-button { border-color: ButtonText; } .iw-tools-qr { forced-color-adjust: none; } }
