.cookie-link { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.cookie-panel { position: fixed; z-index: 20; inset: auto 14px 14px; background: #fff; border: 1px solid var(--rule); box-shadow: 0 12px 42px #17202438; padding: clamp(16px, 3vw, 26px); max-width: min(760px, calc(100% - 28px)); margin-inline: auto; }
.cookie-panel h2, .web-notice h2 { font-size: clamp(1.45rem, 3vw, 2.25rem); margin-bottom: 8px; }
.cookie-panel p { font-size: .94rem; color: var(--muted); }
.cookie-panel .actions { margin-top: 13px; }
.cookie-panel .button { min-height: 42px; background: var(--ink); color: white; border: 1px solid var(--ink); white-space: normal; }
.cookie-panel .button:hover { background: var(--red); border-color: var(--red); }
.web-notice { width: min(580px, calc(100% - 30px)); max-height: 88vh; border: 1px solid var(--rule); padding: 0; color: var(--ink); background: var(--paper); }
.web-notice::backdrop { background: #172024a8; }
.web-notice img { width: 100%; max-height: 360px; object-fit: contain; background: #e8e6df; }
.web-notice-content { padding: clamp(17px, 4vw, 32px); }
.web-notice p { white-space: pre-wrap; overflow-wrap: anywhere; }
.web-notice form { margin-top: 15px; }
.notice-admin { max-width: 720px; }
.notice-admin h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin-bottom: 20px; }
.notice-admin > p { margin-bottom: 18px; }
.notice-admin .notice-check { display: flex; align-items: center; gap: 8px; }
.notice-admin .notice-check input { width: 1.05rem; min-height: 1.05rem; margin: 0; }
.notice-preview { max-width: min(300px, 100%); max-height: 210px; }
.notice-logout { margin-top: 22px; }
.notice-logout button { border-color: var(--rule); background: transparent; }

.cookie-panel { max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); overflow-y: auto; }
@media (max-width: 510px) {
  .cookie-panel { padding: 13px 14px; }
  .cookie-panel p { font-size: .86rem; }
  .cookie-panel .actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; margin-top: 10px; }
  .cookie-panel .button { padding: 7px 5px; line-height: 1.24; font-size: .82rem; }
}
