.owner-alert-pet{position:fixed;z-index:900;display:flex;align-items:center;gap:3px;width:236px;padding:8px;box-sizing:border-box;border-radius:20px;background:rgba(27,28,32,.97);border:1px solid #8f7954;box-shadow:0 5px 22px #0004;color:#f4ead8;user-select:none;-webkit-user-select:none}
.owner-alert-pet[hidden],.owner-alert-pet [hidden]{display:none!important}
.owner-alert-drag{flex:0 0 96px;width:96px;height:96px;padding:0;border:0;background:transparent;cursor:grab;touch-action:none;color:inherit;border-radius:14px}
.owner-alert-drag:active{cursor:grabbing}
.owner-alert-drag img{display:block;width:96px;height:96px;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;pointer-events:none}
.owner-alert-message{display:flex;flex-direction:column;gap:7px;padding-top:12px;min-width:0;font-size:13px;line-height:1.5}
.owner-alert-caption{font-weight:700;color:#d2c1a0}
.owner-alert-message a{color:#efe8d8;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.owner-alert-close{position:absolute;right:4px;top:3px;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font-size:22px;cursor:pointer}
.owner-alert-close:hover{background:#ffffff18}
.owner-alert-pet button:focus-visible,.owner-alert-pet a:focus-visible{outline:2px solid #c4a56c;outline-offset:2px}
.home-theme-warm .owner-alert-pet{background:rgba(255,253,249,.98);border-color:#d5c5aa;color:#40382d;box-shadow:0 5px 22px #70532626}
.home-theme-warm .owner-alert-caption{color:#80633b}
.home-theme-warm .owner-alert-message a{color:#55432a}
.home-theme-warm .owner-alert-close:hover{background:#eee3d1}
.owner-alert-admin-status{font-size:13px}
@media(max-width:600px){.owner-alert-pet{width:214px;padding:6px}.owner-alert-drag,.owner-alert-drag img{width:80px;height:80px}.owner-alert-drag{flex-basis:80px}.owner-alert-message{font-size:12px}}
@media(prefers-reduced-motion:reduce){.owner-alert-drag img{content:url('../assets/decorative/lingmao-guardian-still.png')}}

.owner-alert-pet{touch-action:none;cursor:grab}
.owner-alert-pet.is-dragging,.owner-alert-pet.is-dragging *{cursor:grabbing}

/* 觀看模式 (owner only): a corner control, so the navigation keeps its room. */
.view-as-dock {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2147483000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  max-width: calc(100vw - 32px);
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(29, 39, 51, 0.92);
  color: #ffffff;
  font-size: 0.86rem;
  line-height: 1.4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.view-as-dock label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.view-as-dock select {
  min-height: 32px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  background: #1d2733;
  color: #ffffff;
  font: inherit;
}
.view-as-dock option { color: #1d2733; background: #ffffff; }
.view-as-dock.is-active { border: 2px solid #f2b705; background: #1d2733; font-size: 0.95rem; }
.view-as-dock button {
  flex: none;
  min-height: 36px;
  padding: 4px 12px;
  border: 0;
  border-radius: 6px;
  background: #f2b705;
  color: #1d2733;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
html.has-view-as-dock body { padding-bottom: 72px; }
/* The private test site keeps its own bar along the bottom edge. */
html:has(.staging-banner) .view-as-dock { bottom: 62px; }
html.has-view-as-dock:has(.staging-banner) body { padding-bottom: 124px; }

/* Image storage usage in the admin backup section. */
.admin-media-usage { margin-top: 8px; }
.admin-media-usage.is-warning { font-weight: 700; text-decoration: underline; }

/* 當事人申訴: a clear button under the home list and on each row's page. */
.appeal-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin: 16px 0 0; padding: 12px 16px; border: 1px solid rgba(240, 180, 70, 0.75); border-radius: 10px; background: rgba(240, 180, 70, 0.1); text-align: center; }
.appeal-box p { margin: 0; font-size: 15px; line-height: 1.6; color: inherit; }
#app .appeal-box .appeal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 20px; border: 1px solid #b97a0b; border-radius: 8px; background: #f2b33d; color: #2a1a00 !important; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
#app .appeal-box .appeal-button:hover, #app .appeal-box .appeal-button:focus-visible { background: #ffc85c; }
.detail-side .appeal-box { flex-direction: column; margin-top: 12px; }
.detail-side .appeal-box .appeal-button { width: 100%; }
html.home-theme-holographic .appeal-box p { color: #d8e8f5; }
html.home-theme-warm .appeal-box p { color: #39332b; }

/* The appeal page lists the rows that match the name so the person can pick one. */
.appeal-search-row { display: flex; gap: 8px; }
.appeal-search-row input { flex: 1; min-width: 0; }
.appeal-case-picker { margin: 4px 0 0; padding: 10px 12px; border: 1px solid rgba(240, 180, 70, 0.6); border-radius: 8px; }
.appeal-case-picker legend { padding: 0 6px; font-weight: 700; }
.appeal-case-option { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; font-weight: 400; cursor: pointer; }
.appeal-case-option input { margin-top: 4px; flex: none; }
.appeal-case-option small { display: block; opacity: 0.75; }
@media (max-width: 480px) { .appeal-search-row { flex-direction: column; } }

/* Recommended screen size note in the footer. */
.footer-resolution-note { margin-top: 8px; }

/* Article images open full size on click (owner, 2026-11-09). */
.article-media-grid img { cursor: zoom-in; }
.image-viewer { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, 0.92) !important; }
.image-viewer::backdrop { background: rgba(0, 0, 0, 0.88); }
.image-viewer-frame { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: auto; box-sizing: border-box; padding: 56px 16px 16px; cursor: zoom-out; }
.image-viewer-frame img { max-width: 100%; max-height: calc(100vh - 72px); object-fit: contain; cursor: zoom-in; }
.image-viewer-frame img.is-actual-size { max-width: none; max-height: none; margin: auto; cursor: zoom-out; }
.image-viewer-close { position: fixed; top: 12px; right: 16px; z-index: 2; min-width: 44px; min-height: 44px; padding: 6px 14px; border: 1px solid #ffffff99; border-radius: 6px; color: #fff; background: #000000b3; font-size: 16px; font-weight: 700; cursor: pointer; }
.image-viewer-close:hover, .image-viewer-close:focus-visible { background: #333; outline: 2px solid #fff; }
.image-viewer-actual { position: fixed; top: 12px; left: 16px; z-index: 2; min-height: 44px; padding: 6px 14px; border: 1px solid #ffffff99; border-radius: 6px; color: #fff; background: #000000b3; font-size: 14px; cursor: pointer; }
