/* clipr demo: the popup over a pretend editor */

#desk { height: 520px; user-select: auto; -webkit-user-select: auto; }

.edwin { position: absolute; left: 4%; top: 8%; width: 48%; height: 80%; background: #141414; border: 1px solid #1d1d1d; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.app-bar { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 14px; border-bottom: 1px solid #1b1b1b; font-size: 10.5px; color: #555; }
.ed { padding: 16px 18px; font: 300 13px/1.8 var(--font); color: #cfcfcf; white-space: pre-wrap; word-break: break-word; }
.ed .mute { color: #3a3a3a; }
.ed .pasted { color: var(--strong); background: rgba(255, 255, 255, .08); transition: background 1.2s; }
.ed .pasted.done { background: transparent; }
.ed::after { content: ''; display: inline-block; width: 1px; height: 15px; margin-left: 1px; vertical-align: -3px; background: #cfcfcf; animation: blink 1.06s steps(1) infinite; }

.cpop { position: absolute; right: 6%; top: 50%; width: 400px; height: 380px; transform: translateY(-50%); display: flex; flex-direction: column; transition: opacity .18s ease-out; }
.cpop.gone { opacity: 0; pointer-events: none; }
.cpop .find { flex: none; gap: 12px; height: 44px; padding: 0 10px 0 16px; }
.cpop input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--strong); font: 300 13px var(--font); caret-color: var(--strong); }
.cico { display: flex; align-items: center; gap: 6px; color: var(--dim); }
.cico button { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--dim); cursor: pointer; }
.cico button:hover { color: var(--strong); }
.list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 4px; scrollbar-width: thin; scrollbar-color: #2a2a2a transparent; }
.clip { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 6px 8px; font-size: 12.5px; line-height: 1.6; color: var(--text); cursor: default; }
.clip .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip .tm { flex: none; font-size: 10px; color: var(--dim); }
.clip.sel { background: var(--row); color: var(--strong); }
.clip.fresh { animation: fresh .9s ease-out; }
@keyframes fresh { from { background: rgba(255, 255, 255, .14); } }
.list .none { padding: 10px 8px; font-size: 11px; color: var(--dim); }
.cstatus { flex: none; }
.cconfirm { flex: none; display: flex; gap: 14px; align-items: center; height: 30px; padding: 0 16px; background: var(--raised); border-top: 1px solid var(--border); font-size: 12px; animation: rise .14s ease-out; }
.cconfirm button { border: 0; padding: 0; background: none; color: var(--dim); font: inherit; cursor: pointer; }
.cconfirm button:hover { color: var(--strong); }
.cconfirm .danger { color: var(--danger); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.reopen { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); padding: 10px 14px; color: var(--dim); font: 300 12px var(--font); cursor: pointer; }
.reopen:hover { color: var(--strong); }
.reopen kbd { font-size: 10.5px; }
#toast { left: 50%; top: 16px; transform: translateX(-50%); }
#toast.on { transform: translateX(-50%); }

@media (max-width: 720px) {
  .edwin { left: 16px; right: 16px; width: auto; top: 16px; height: 150px; }
  .cpop { left: 16px; right: 16px; width: auto; top: 186px; height: 316px; transform: none; }
  .reopen { left: 16px; right: 16px; top: 220px; transform: none; }
}
.cpop input::placeholder { color: var(--faint); }
.cconfirm[hidden], .reopen[hidden] { display: none; }
