/* Keep the original pink, Comic Sans and playful early-2000s theme. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 8px;
    text-align: center;
    font-family: "Comic Sans MS", cursive, sans-serif;
    background-color: #ffccff;
    color: #76135f;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
h1 { color: #a82c00; text-shadow: 2px 2px yellow; line-height: 1.25; }
a { color: #0000c2; text-underline-offset: .18em; }
form {
    display: inline-block;
    max-width: 100%;
    background: #fff3f3;
    padding: 20px;
    border-radius: 10px;
    border: 5px dashed #ff00ff;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, .3);
}
input, textarea, button, .button { margin: 10px; padding: 10px 14px; font-size: 16px; }
input, textarea {
    max-width: calc(100% - 20px);
    min-height: 44px;
    border: 2px solid #94508a;
    border-radius: 5px;
    background: white;
    color: #36112e;
    font: inherit;
    font-size: 16px;
}
input::placeholder, textarea::placeholder { color: #70546a; opacity: 1; }
textarea { resize: vertical; min-height: 130px; }
input[aria-invalid="true"] { border-color: #b00020; }
button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    max-width: 100%;
    background: blue;
    color: white;
    font-family: Arial, sans-serif;
    font-weight: bold;
    line-height: 1.35;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 5px;
    touch-action: manipulation;
}
button:hover, .button:hover { background: #c00000; color: white; }
button:disabled { opacity: .7; cursor: wait; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex="0"]:focus-visible {
    outline: 3px solid #000;
    outline-offset: 3px;
}
img { max-width: 90%; height: auto; border-radius: 10px; border: 5px dashed #ff00ff; }
.home-page { display: flex; flex-direction: column; min-height: calc(100vh - 16px); }
.home-page .content { flex: 1; min-width: 0; }
.home-page img, .report-page img {
    max-height: 68vh;
    max-height: 68svh;
    max-width: min(92%, 1000px);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, .3);
    display: block;
    margin: 0 auto;
}
.home-page button, .home-page .button, .report-page button, .report-page .button { font-size: 18px; }
.kitty-actions { margin-bottom: 0; }
#another-kitty { min-width: min(100%, 280px); font-size: 20px; }
.kitty-status { min-height: 1.5em; margin: 4px 12px 12px; }
.marquee {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: yellow;
    background: purple;
    padding: 10px;
    border: 2px solid white;
}
.marquee-message { overflow: hidden; flex: 1; min-width: 0; }
.banner-track { display: flex; width: max-content; animation: welcome-scroll 55s linear infinite; }
.banner-sayings { display: flex; align-items: center; flex-shrink: 0; gap: 3rem; padding: 0 1.5rem; white-space: nowrap; }
@keyframes welcome-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .banner-track { animation: none; width: auto; }
    .banner-sayings { display: block; padding: 0; white-space: normal; }
    .banner-sayings[aria-hidden="true"], .banner-sayings span:not(:first-child) { display: none; }
}
.share-dropdown { display: inline-block; position: relative; margin: 12px 0; max-width: 100%; text-align: left; }
.share-dropdown summary { margin: 0; list-style: none; gap: 12px; font-size: 18px; }
.share-dropdown summary::-webkit-details-marker { display: none; }
.share-dropdown[open] .share-chevron { transform: rotate(180deg); }
.share-menu {
    position: absolute;
    z-index: 5;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    max-width: calc(100vw - 32px);
    padding: 6px;
    border: 3px dashed #ff00ff;
    border-radius: 10px;
    background: #fff3f3;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, .3);
}
.share-menu .share-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 2px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #76135f;
    font: bold 16px/1.35 Arial, sans-serif;
    text-decoration: none;
}
.share-menu .share-option:hover { background: #ffccff; color: #36112e; }
.nav-buttons, .admin-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}
.nav-buttons .button, .admin-actions .button, .admin-actions button { margin: 0; }
.nav-buttons { padding: 12px 0; }
.admin-actions { gap: 20px; }
.copy-fallback { max-width: 600px; margin: 12px auto; text-align: left; }
.copy-fallback label { display: block; font-weight: bold; }
.copy-fallback input { width: 100%; max-width: 100%; margin: 6px 0; }
.site-footer {
    background: purple;
    color: white;
    font-size: 14px;
    text-align: center;
    padding: 12px;
    width: 100%;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.button-warning { background: orange; color: #3c1900; }
.button-purple { background: purple; }
.button-success { background: green; }
.button-danger { background: #bd001f; }
.button-muted { background: #595959; }
.plain-form { background: none; border: none; box-shadow: none; padding: 0; }
.cf-turnstile { display: flex; justify-content: center; margin: 12px 0; }
.login-form, .upload-form, .report-form { width: min(100%, 520px); margin: 12px auto; text-align: left; }
.login-form { max-width: 400px; }
.login-form label, .upload-form label, .report-form label, .field-label { display: block; font-weight: bold; margin: 16px 0 6px; }
.login-form label:first-of-type, .upload-form label:first-of-type, .report-form label:first-of-type { margin-top: 0; }
.login-form input, .upload-form input, .report-form input, .report-form textarea { width: 100%; max-width: 100%; margin: 0 0 8px; }
.login-form button, .upload-form button, .report-form button { width: 100%; margin: 12px 0 0; }
input[type="file"] { padding: 10px 6px; }
input::file-selector-button { padding: 8px; margin-right: 8px; border: 1px solid #94508a; border-radius: 4px; background: #ffccff; color: #36112e; cursor: pointer; }
.field-hint { font-size: 14px; margin: 4px 0 16px; }
.field-hint:empty, .status-message:empty:not(.kitty-status) { display: none; }
.upload-preview { margin: 16px 0; text-align: center; }
.upload-preview img { max-width: 100%; max-height: 260px; border-width: 3px; }
.upload-preview figcaption { font-size: 14px; margin-top: 6px; }
.reported-image { max-width: min(300px, 90%); }
.caught-up { font-size: 20px; color: #b00020; font-weight: bold; }
.status-message { font-weight: bold; }
.flash-message, .notice-panel {
    max-width: 700px;
    margin: 20px auto;
    padding: 15px;
    background: #fff3f3;
    border: 3px dashed #ff00ff;
    border-radius: 10px;
}
.doc-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff3f3;
    border: 5px dashed #ff00ff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, .3);
    text-align: left;
}
.doc-container h2 { color: #a82c00; }
.doc-container a:not(.button) { color: blue; }
.centered { text-align: center; }
code { background: #eee; padding: 2px 6px; border-radius: 4px; font-family: monospace; }
pre { background: #fff; padding: 1rem; border-radius: 10px; overflow-x: auto; border: 1px solid #ccc; }
.visually-hidden, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.skip-link:focus { display: block; background: white; color: blue; padding: 10px; }
.preview-notice { padding: 10px; background: yellow; color: black; }
@media (max-width: 600px) {
    h1 { font-size: 28px; margin: 16px 0 12px; }
    .marquee { font-size: 18px; padding: 8px; }
    .home-page #kitty-img { max-height: 56vh; max-height: 56svh; }
    .nav-buttons .button { flex: 1 1 200px; }
    .site-footer .nav-buttons { width: 100%; }
    .site-footer .nav-buttons .button { flex-basis: 100%; }
    form { padding: 14px; }
    .doc-container { padding: 14px; }
    .doc-container h2 { font-size: 20px; }
}

/* Moderation keeps the same dashed borders, colors and simple page structure. */
.admin-page .content { max-width: 1120px; margin: 0 auto; }
.admin-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.admin-nav a { padding: 10px 14px; min-height: 44px; border: 2px solid purple; border-radius: 5px; font-weight: bold; }
.admin-nav a[aria-current="page"] { background: purple; color: white; text-decoration: none; }
.queue-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.queue-card { background: #fff3f3; border: 4px dashed #ff00ff; border-radius: 10px; padding: 18px 12px; }
.queue-card h2 { font-size: 20px; margin: 0 0 12px; }
.queue-card p { font-size: 14px; }
.queue-count { display: block; color: purple; font-size: 40px; line-height: 1.2; }
.queue-summary { padding: 12px; border: 2px dashed #ff00ff; border-radius: 8px; background: #fff3f3; }
.queue-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; }
.queue-pager .button { margin: 0; }
.moderation-image { display: block; margin: 18px auto; max-height: 55vh; max-height: 55svh; max-width: min(92%, 760px); }
.moderation-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 20px 0; }
.moderation-actions form { padding: 8px; }
.moderation-actions button { margin: 0; }
.report-details { max-width: 700px; margin: 20px auto; padding: 18px; border: 3px dashed #ff00ff; border-radius: 10px; background: #fff3f3; text-align: left; }
.report-details dt { font-weight: bold; }
.report-details dd { margin: 4px 0 16px; white-space: pre-wrap; }
.report-details dd:last-child { margin-bottom: 0; }
.operations-list, .rejected-files { text-align: left; }
.operation-item { padding: 12px 0; border-top: 2px dashed #ff00ff; }
.operation-item h3 { margin: 4px 0; }
.rejected-files summary { min-height: 44px; cursor: pointer; font-weight: bold; }
.rejected-files li { margin: 12px 0; }
@media (max-width: 760px) {
    .queue-overview { grid-template-columns: 1fr; }
    .queue-card .button { margin: 8px 0 0; }
    .admin-nav a { flex: 1 1 150px; }
    .moderation-actions form { flex: 1 1 180px; }
    .moderation-actions button { width: 100%; }
}
