
:root{color-scheme:light;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033;background:#f5f7fb}
body{margin:0}
a{color:#3157c8}
.search-page{box-sizing:border-box;width:100%;padding:.5rem}
.search-page form{margin:0}
.search-grid{display:grid;grid-template-columns:repeat(auto-fill,44px);align-content:start;justify-content:start;gap:3px}
.search-grid:empty{display:none}
.search-grid .meme-card{width:44px;height:44px;border-radius:4px;box-shadow:none}
.search-grid .meme-card:hover{transform:none;box-shadow:0 2px 8px rgba(33,48,82,.18)}
.search-grid .meme-image{width:44px;height:44px;aspect-ratio:auto}
.search-grid .meme-card-body{display:none}
.all-shell{min-height:100vh}
.all-toolbar{position:sticky;z-index:10;top:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem clamp(1rem,4vw,2.5rem);border-bottom:1px solid #e4e8f0;background:rgba(255,255,255,.92);box-shadow:0 4px 18px rgba(31,45,78,.06);backdrop-filter:blur(12px)}
.brand{color:#172033;font-size:1.15rem;font-weight:800;letter-spacing:-.03em;text-decoration:none}
.toolbar-actions{display:flex;align-items:center;gap:.6rem}
.toolbar-link,.logout-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.25rem;padding:0 .85rem;border-radius:999px;text-decoration:none}
.toolbar-link{background:#eef2ff;color:#2f50ba}
.icon-link{display:inline-flex;width:2.35rem;height:2.35rem;align-items:center;justify-content:center;border-radius:999px;background:#172033;color:#fff;font-size:1.05rem;text-decoration:none}
.logout-button{border:1px solid #f0c9cd;background:#fff5f5;color:#b4232f;font-weight:700}
.all-page{box-sizing:border-box;width:min(1180px,100%);margin:0 auto;padding:clamp(1rem,4vw,2.5rem)}
.upload-panel{margin-bottom:1.5rem;border:1px solid #dfe5ef;border-radius:14px;background:#fff;box-shadow:0 8px 28px rgba(33,48,82,.07);overflow:hidden}
.upload-panel>summary{padding:1rem 1.15rem;cursor:pointer;font-weight:750;list-style-position:inside}
.upload-panel[open]>summary{border-bottom:1px solid #edf0f5}
.upload-panel form,.upload-panel .upload-console{width:auto;margin:1rem 1.15rem}
.upload-panel form{display:flex;align-items:end;flex-wrap:wrap;gap:.8rem}
.upload-panel form p{margin:0}
.upload-panel label{display:grid;gap:.35rem;color:#4b5568;font-size:.85rem;font-weight:650}
.upload-panel input{box-sizing:border-box;min-height:2.4rem;padding:.45rem .6rem;border:1px solid #cfd6e3;border-radius:8px;background:#fff;color:#172033}
.upload-panel button,.delete-button{min-height:2.35rem;padding:.45rem .8rem;border:0;border-radius:8px;cursor:pointer;font-weight:750}
.upload-panel button{background:#3157c8;color:#fff}
.upload-panel button:disabled{cursor:wait;opacity:.55}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem}
.meme-card{min-width:0;overflow:hidden;border:1px solid #e1e6ef;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(33,48,82,.08);transition:transform .15s ease,box-shadow .15s ease}
.meme-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(33,48,82,.13)}
.meme-image{display:block;aspect-ratio:1;overflow:hidden;background:#eef1f6}
.meme-image img{display:block;width:100%;height:100%;object-fit:cover}
.meme-card-body{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.8rem .9rem}
.meme-description{min-width:0;margin:0;overflow-wrap:anywhere}
.delete-button{flex:none;background:#fff0f1;color:#b4232f}
.empty-state{grid-column:1/-1;margin:2rem 0;padding:2rem;border:1px dashed #cbd3e1;border-radius:14px;color:#667085;text-align:center}
.next-page{text-align:center}
.next-page a{display:inline-block;padding:.65rem 1rem;border-radius:999px;background:#3157c8;color:#fff;text-decoration:none}
.login-shell{display:grid;min-height:100vh;place-items:center;padding:1rem}
.login-card{box-sizing:border-box;width:min(420px,100%);padding:clamp(1.5rem,6vw,2.5rem);border:1px solid #e1e6ef;border-radius:20px;background:#fff;box-shadow:0 20px 60px rgba(33,48,82,.14);text-align:center}
.login-card h1{margin:.2rem 0 .75rem;font-size:2.4rem;letter-spacing:-.06em}
.login-card>p:not(.login-eyebrow){margin:0 0 1.5rem;color:#667085;line-height:1.6}
.login-eyebrow{margin:0;color:#3157c8;font-size:.75rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.google-login-button{display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;padding:0 1.2rem;border-radius:10px;background:#3157c8;color:#fff;font-weight:750;text-decoration:none;box-shadow:0 8px 18px rgba(49,87,200,.24)}
.google-login-button:hover{background:#2748aa}
.upload-console{box-sizing:border-box;width:100%;min-height:8rem;max-height:20rem;overflow:auto;margin:.75rem 0;padding:.75rem;border:1px solid #30363d;border-radius:8px;background:#0d1117;color:#c9d1d9;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.upload-console:empty::before{content:"업로드 로그 대기 중";color:#8b949e}
footer{box-sizing:border-box;width:min(1180px,100%);margin:1rem auto 0;padding:0 clamp(1rem,4vw,2.5rem) 1.5rem;color:#667085}
@media(max-width:560px){.toolbar-actions{gap:.3rem}.toolbar-link,.logout-button{padding:0 .55rem;font-size:.82rem}.all-page{padding:1rem}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.meme-card-body{align-items:flex-start;flex-direction:column}.delete-button{width:100%}}
