.wardrobe-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 8px;
  color: var(--muted);
  font-size: 10px;
}

.wardrobe-pagination button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  padding: 8px 10px;
  font: 600 10px inherit;
  cursor: pointer;
}

.wardrobe-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

@media (min-width: 801px) {
  .assistant-panel {
    position: sticky;
    top: 18px;
    align-self: start;
    height: calc(100vh - 36px);
  }

  .assistant-chat {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

@media (max-width: 800px) {
  .wardrobe-pagination {
    gap: 7px;
    font-size: 9px;
  }
}

.look-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 215px;
  gap: 16px;
}

.look-builder-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; }
.look-builder-head h2 { margin: 0; font-size: 17px; }
.look-builder-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.look-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.look-picker-item { position: relative; min-height: 122px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #ece9e2; text-align: left; cursor: pointer; }
.look-picker-item.selected { outline: 2px solid var(--purple); outline-offset: 2px; }
.look-picker-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.look-picker-item span, .look-picker-item small { position: relative; z-index: 1; display: block; width: max-content; max-width: calc(100% - 14px); margin-left: 7px; background: rgba(255,255,255,.83); }
.look-picker-item span { margin-top: 76px; padding: 4px 6px 0; border-radius: 7px 7px 0 0; font-size: 9px; }
.look-picker-item small { padding: 0 6px 4px; border-radius: 0 0 7px 7px; color: var(--muted); font-size: 8px; }
.look-summary { align-self: start; padding: 18px; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; background: linear-gradient(145deg, #eeeafb, #f8f8fa); }
.look-summary h2 { margin: 15px 0 12px; font-size: 17px; letter-spacing: -.7px; }
.selected-look-items { display: grid; gap: 6px; min-height: 90px; }
.selected-look-items span { border-radius: 8px; background: rgba(255,255,255,.78); padding: 7px 8px; font-size: 9px; }
.selected-look-items p, .look-empty { color: var(--muted); font-size: 10px; line-height: 1.6; }
.look-empty { display: grid; align-content: center; gap: 7px; min-height: 122px; padding: 14px; border: 1px dashed rgba(103, 84, 181, .28); border-radius: 15px; background: rgba(255,255,255,.42); }
.look-empty strong { color: var(--ink); font-size: 12px; }
.look-empty p { margin: 0; }
.look-empty .text-button, .selected-look-items .text-button { justify-self: start; padding: 0; color: var(--purple); font-size: 10px; }
.look-summary .primary-button:disabled { cursor: not-allowed; opacity: .48; }
.look-summary .primary-button { width: 100%; margin-top: 14px; }
.look-memory-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.look-memory-card { display: flex; justify-content: space-between; gap: 9px; padding: 15px; border: 1px solid rgba(255,255,255,.9); border-radius: 16px; background: rgba(255,255,255,.58); }
.look-memory-preview { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 11px; object-fit: cover; }
.look-memory-card h3 { margin: 10px 0 4px; font-size: 13px; }.look-memory-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }.look-memory-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; }.look-memory-card button { align-self: start; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.look-note-trigger { margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--purple); font: 700 10px inherit; cursor: pointer; }
.look-note-dialog { width: min(620px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 40px)); padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: 0 24px 60px rgba(35,31,48,.22); color: var(--ink); }
.look-note-dialog::backdrop { background: rgba(38,34,47,.34); backdrop-filter: blur(4px); }
.look-note-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 15px; border-bottom: 1px solid var(--line); }
.look-note-dialog-head h2 { margin: 0; font-size: 17px; letter-spacing: -.5px; }
.look-note-dialog-head button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f1eff7; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.look-note-dialog-content { max-height: calc(min(720px, 100vh - 40px) - 66px); overflow-y: auto; padding: 20px; color: var(--ink); font-size: 13px; line-height: 1.75; }
.look-note-dialog-content .ai-heading { margin-top: 12px; font-size: 14px; }
.look-note-dialog-content .ai-line, .look-note-dialog-content .ai-list { margin-top: 6px; }
.clothing-open { position: absolute; inset: 0; z-index: 1; border: 0; background: transparent; cursor: pointer; }
.add-to-look { position: absolute; z-index: 3; top: 9px; right: 9px; border: 1px solid rgba(255,255,255,.72); border-radius: 8px; background: rgba(255,255,255,.86); color: var(--ink); padding: 5px 7px; font: 600 9px inherit; cursor: pointer; opacity: 0; transition: .18s; }
.clothing-card:hover .add-to-look, .add-to-look.added { opacity: 1; }
.add-to-look.added { background: var(--purple); color: #fff; }
.look-picker-item { display: block; border: 0; }
.clothing-card { background-color: #ece9e2; }
.clothing-preview, .detail-photo { opacity: 0; transition: opacity .18s ease; }
.clothing-preview.is-loaded, .detail-photo.is-loaded { opacity: 1; }
.memory-timeline div { grid-template-columns: 82px minmax(0, 1fr); }
.memory-timeline time { white-space: nowrap; }
.memory-timeline { gap: 18px; }
.memory-timeline .memory-day { display: block; }
.memory-timeline .memory-day h3 { margin: 0 0 10px; color: var(--purple); font: 500 10px "DM Mono", monospace; letter-spacing: .4px; }
.memory-timeline .memory-event { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; margin: 0 0 10px; }
.memory-timeline .memory-event:last-child { margin-bottom: 0; }
.memory-timeline .memory-event span { top: 3px; }

@media (max-width: 800px) {
  .look-builder { grid-template-columns: 1fr; }
  .look-picker { grid-template-columns: repeat(2, 1fr); }
  .look-memory-list { grid-template-columns: 1fr; }
  .add-to-look { opacity: 1; }
}

html { overflow-x: hidden; }

.assistant-launcher { display: none; }
.sidebar-bottom.is-signed-out { justify-content: center; padding: 14px 7px 0; }
.sidebar-bottom.is-signed-out .profile-avatar,
.sidebar-bottom.is-signed-out > div:not(.profile-avatar),
.sidebar-bottom.is-signed-out .more-button { display: none; }
.sidebar-bottom.is-signed-out .auth-action { margin-left: 0; padding: 9px 14px; font-size: 10px; }
.assistant-brand-icon { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; vertical-align: middle; }
.back-to-life { align-self: center; margin: 18px auto 0; padding: 8px 11px; border: 1px solid rgba(97, 84, 168, .12); border-radius: 11px; background: rgba(97, 84, 168, .07); color: var(--purple); font-size: 10px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.back-to-life span { margin-left: 8px; font-size: 12px; }
.back-to-life:hover, .back-to-life:focus-visible { background: rgba(97, 84, 168, .13); transform: translateX(2px); }
.ai-avatar { overflow: hidden; padding: 0; background: #f6f2ed; }
.ai-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 801px) and (max-width: 960px) {
  .app-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .assistant-panel { display: none; }
  .assistant-panel.is-open { display: flex; position: fixed; z-index: 30; top: 18px; right: 18px; bottom: 18px; width: min(350px, calc(100vw - 36px)); }
  .assistant-launcher { position: fixed; z-index: 25; right: 20px; bottom: 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.9); border-radius: 14px; background: var(--ink); box-shadow: 0 14px 28px rgba(39,38,41,.18); padding: 7px; cursor: pointer; }
  .assistant-launcher img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; }
  .assistant-panel.is-open + .assistant-launcher { display: none; }
}
