/* ══════════════════════════════════════════════════════════════════════
   결과함 [redesign/ai-studio 2026-10-30] 시안 'AI 툴 페이지 시안' Results 보드
   왼쪽 거르기(어디서·언제) | 오른쪽 종류 알약 + 찾기 + 날짜별 격자. 무채색 틀, 도구 색은 점으로만.
   ══════════════════════════════════════════════════════════════════════ */
:root:has(.ares) { --dp-bg: #FFFFFF; }

.ares {
  --ink: #1F1B24; --sub: #4D4657; --mute: #625B6C; --line: #E7E4EB; --line2: #DDD8E3; --soft: #F1EFF4; --soft2: #F7F6F9;
  --ui: var(--font-menu, 'Wanted Sans'), 'DPmind Ko', sans-serif;
  --ko: 'Gowun Dodum', var(--font-ko, 'DPmind Ko'), sans-serif;
  display: flex; flex-wrap: wrap; align-items: stretch; min-height: 60vh; background: #FFFFFF; color: var(--ink); font-family: var(--ko);
}
.ares-lock { flex: 1 1 100%; margin: 24px 20px; padding: 40px; text-align: center; border: 1px solid var(--line); border-radius: 14px; color: var(--sub); font: 400 14px var(--ui); }

/* 왼쪽 */
.ares-side { flex: 1 1 230px; max-width: 250px; min-width: 0; box-sizing: border-box; padding: 20px 14px; border-right: 1px solid #EEECF1; display: flex; flex-direction: column; gap: 18px; }
.ares-side-group { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ares-k { padding: 0 10px 4px; font: 500 11px 'Google Sans', var(--ui); letter-spacing: .14em; color: var(--mute); text-transform: uppercase; }
.ares-nav { display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 100%; }
.ares-nav a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--sub); text-decoration: none; font: 400 13.5px var(--ui); }
.ares-nav a:hover { background: var(--soft2); color: var(--ink); }
.ares-nav a.is-active { background: var(--soft); color: var(--ink); font-weight: 700; }
.ares-cnt { margin-left: auto; font: 400 11.5px 'Google Sans', var(--ui); color: var(--mute); }
.ares-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--d, #9AA3B2); flex: none; display: inline-block; }
.ares-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.ares-side-foot a { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 8px; background: var(--soft2); font: 400 13px var(--ui); color: #3D3646; text-decoration: none; }
.ares-side-foot a:hover { background: var(--soft); color: var(--ink); }
.ares-side-note { padding: 0 4px; font: 400 11.5px/1.55 var(--ko); color: var(--mute); }

/* 오른쪽 */
.ares-main { flex: 999 1 640px; min-width: 0; box-sizing: border-box; padding: 20px 28px 40px; display: flex; flex-direction: column; gap: 14px; }
.ares-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ares-spacer { flex: 1 1 auto; }
.ares-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.ares-pill { height: 34px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 17px; background: #FFFFFF; display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--ui); color: #2B2532; cursor: pointer; white-space: nowrap; }
.ares-pill:hover { background: var(--soft2); }
.ares-pill.is-on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.ares-pill.is-on .ares-dot { background: #FFFFFF; }
.ares-search { display: flex; align-items: center; gap: 8px; height: 36px; width: 260px; max-width: 100%; padding: 0 12px; border: 1px solid var(--line2); border-radius: 9px; box-sizing: border-box; color: var(--mute); background: #FFFFFF; }
.ares-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 400 14px var(--ui); color: var(--ink); }

.ares-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 8px 8px 14px; border-radius: 10px; background: var(--ink); color: #FFFFFF; position: sticky; top: calc(var(--dp-head-h, 65px) + 8px); z-index: 5; }
.ares-selbar strong { font: 700 14px var(--ui); }
.ares-sel-size { font: 400 13px 'Google Sans', var(--ui); color: #D9C9E6; margin-right: 8px; }
.ares-sb { height: 34px; padding: 0 12px; border: 0; border-radius: 7px; background: #3D4451; color: #FFFFFF; font: 500 13px var(--ui); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ares-sb:hover { background: #4B5363; }
.ares-sb-pri { background: #5B6475; }
.ares-sb-x { background: transparent; width: 34px; padding: 0; }

.ares-status { padding: 24px; text-align: center; color: var(--mute); font: 400 13.5px var(--ui); }
.ares-empty { padding: 48px 20px; text-align: center; color: var(--mute); font: 400 14px var(--ui); border: 1px dashed var(--line2); border-radius: 12px; }
.ares-feed { display: flex; flex-direction: column; gap: 18px; }
.ares-day { display: flex; flex-direction: column; gap: 10px; }
.ares-day h2 { margin: 4px 0 0; font: 700 15px var(--ui); color: var(--ink); }
.ares-day h2 span { font: 400 12.5px 'Google Sans', var(--ui); color: var(--mute); margin-left: 4px; }
.ares-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }

.ares-card { position: relative; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #FFFFFF; transition: box-shadow .12s, border-color .12s; }
.ares-card:hover { border-color: var(--line2); box-shadow: 0 6px 18px rgba(31, 27, 36, .08); }
.ares-card.is-sel { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.ares-tile { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--soft2); overflow: hidden; color: var(--ink); text-decoration: none; }
.ares-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ares-tile-video { background: #1F1B24; }
.ares-tile-audio { background: #F3EEF8; }
.ares-tile-text { background: #F1EFF4; }
.ares-play { width: 40px; height: 40px; border-radius: 20px; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; color: #1F1B24; }
.ares-bars { display: flex; align-items: center; gap: 2px; height: 46px; width: 76%; }
.ares-bars span { flex: 1; border-radius: 1px; background: #9C8FB0; }
.ares-audio-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, .95); color: #1F1B24; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.ares-audio-btn.is-playing { background: var(--tc, #5B2A8C); color: #FFFFFF; }
.ares-audio-btn.is-playing svg { display: none; }
.ares-audio-btn.is-playing::after { content: ''; width: 11px; height: 11px; border-radius: 2px; background: currentColor; }
.ares-glyph { font-size: 26px; color: #9C8FB0; }
.ares-badge { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 4px; background: var(--tc, #475467); color: #FFFFFF; font: 500 11.5px 'Google Sans', var(--ko); }
.ares-check { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, .94); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); margin: 0; cursor: pointer; }
.ares-check input { width: 16px; height: 16px; margin: 0; accent-color: #1F1B24; cursor: pointer; }
.ares-meta { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.ares-name { font: 400 13px var(--ko); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ares-sub { display: flex; align-items: center; gap: 6px; font: 400 11.5px 'Google Sans', var(--ko); color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ares-sub .ares-dot { background: var(--tc, #9AA3B2); width: 7px; height: 7px; }

@media (max-width: 860px) {
  .ares-side { flex: 1 1 100%; max-width: none; border-right: 0; border-bottom: 1px solid #EEECF1; padding: 12px 12px 10px; gap: 10px; flex-direction: row; flex-wrap: wrap; }
  .ares-side-group { flex: 1 1 100%; width: 100%; }
  .ares-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .ares-nav::-webkit-scrollbar { display: none; }
  .ares-nav a { flex: none; height: 34px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 17px; }
  .ares-nav a.is-active { border-color: var(--ink); }
  .ares-cnt { margin-left: 4px; }
  .ares-side-foot { display: none; }
  .ares-main { padding: 12px 12px 32px; }
  .ares-search { width: 100%; }
  .ares-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
