/* ============ your space: upload cards, "your Plus has ended", make space (design canvas:
   UploadCard, PlusEnded, MakeSpaceDesktop, PhoneMakeSpace) ============ */

/* --- one upload or thing of yours: card (the wide grid), row (the phone list), sheet head --- */
.uc-th { position: relative; display: grid; place-items: center; overflow: hidden; font-size: 13px; color: var(--gray-600); }
.uc-th img { width: 100%; height: 100%; object-fit: cover; }
.uc-th.lg { height: 118px; border-bottom: 2px solid var(--gray-900); }
.uc-th.sm { width: 56px; height: 56px; flex-shrink: 0; box-sizing: border-box; border: 2px solid var(--gray-900); border-radius: 4px; font-size: 10px; font-weight: 700; overflow: visible; }
.uc-th.sm > .uc-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 2px; display: grid; place-items: center; }
.uc-th.lg > img, .uc-th.sm img { position: absolute; inset: 0; }
.uc-t-photo, .uc-t-wall, .uc-t-pin { background: repeating-linear-gradient(135deg, var(--gray-100) 0 10px, var(--bone) 10px 20px); }
.uc-t-video { background: var(--gray-900); color: var(--gray-300); }
.uc-t-file { background: var(--yellow-100); }
.uc-t-audio { background: var(--mist-100); color: var(--purple-500); }
.uc-t-avatar, .uc-t-card { background: var(--blue-50); }
.uc-t-sound { background: var(--pink-100); color: var(--pink-700); }
.uc-t-pen { background-color: var(--snow); background-image: radial-gradient(color-mix(in srgb, var(--gray-900) 16%, transparent) 1.1px, transparent 1.5px); background-size: 14px 14px; }
.uc-t-gone { background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--gray-500) 9%, transparent) 10px 20px); color: var(--ink-faint); }
.uc-th.sm.uc-t-gone { border-style: dashed; border-color: var(--ink-faint); background: transparent; }
.uc-play { width: 44px; height: 44px; display: grid; place-items: center; box-sizing: border-box; border: 2.5px solid var(--cream); border-radius: 50%; color: var(--cream); }
.uc-th.sm .uc-play { width: 26px; height: 26px; border-width: 2px; }
.uc-fi { width: 46px; height: 56px; box-sizing: border-box; border: 2.5px solid var(--gray-900); border-radius: 3px 14px 3px 3px; background: var(--cream); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; font-size: 12px; font-weight: 700; color: var(--gray-900); }
.uc-wave { display: flex; align-items: center; gap: 4px; height: 56px; }
.uc-wave i { width: 6px; border-radius: 3px; background: currentColor; }
.uc-th.sm .uc-wave { gap: 2px; height: 30px; }
.uc-th.sm .uc-wave i { width: 3px; }
.uc-tape { position: absolute; top: -3px; left: 50%; width: 58px; height: 16px; translate: -50% 0; rotate: -4deg; background: var(--hi-yellow); opacity: .9; border-left: 2px dashed color-mix(in srgb, var(--black) 18%, transparent); border-right: 2px dashed color-mix(in srgb, var(--black) 18%, transparent); }
.uc-th.sm .uc-tape { width: 30px; height: 9px; top: 0; }
.uc-av { position: relative; width: 76px; height: 76px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid var(--gray-900); background: repeating-linear-gradient(135deg, var(--gray-100) 0 8px, var(--bone) 8px 16px); }
.uc-av img { border-radius: 50%; }
.uc-th.sm .uc-av { width: 42px; height: 42px; border-width: 2px; }
.uc-gif { position: absolute; right: -10px; bottom: -2px; padding: 0 5px; font-size: 11px; font-weight: 700; line-height: 1.4; background: var(--gray-900); color: var(--cream); border-radius: 5px; rotate: -6deg; }
.uc-th.sm .uc-gif { font-size: 8px; right: -8px; bottom: -4px; padding: 0 3px; }
.uc-mini { position: relative; width: 132px; height: 84px; box-sizing: border-box; border: 2.5px solid var(--gray-900); border-radius: 8px 10px 9px 11px; background-color: var(--amber-200); background-size: cover; background-position: center; box-shadow: 3px 3px 0 color-mix(in srgb, var(--gray-900) 25%, transparent); }
.uc-mini::before { content: ""; position: absolute; left: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--gray-900); background: var(--cream); }
.uc-th.sm .uc-mini { width: 46px; height: 32px; border-width: 2px; box-shadow: none; }
.uc-th.sm .uc-mini::before { left: 4px; bottom: 4px; width: 12px; height: 12px; border-width: 1.5px; }
.uc-snd { display: flex; align-items: center; gap: 8px; }
.uc-pen { position: absolute; inset: 0; }
.uc-plus { position: absolute; right: 6px; top: 6px; padding: 0 6px; font-size: 11px; font-weight: 700; line-height: 1.5; color: var(--gray-900); background: var(--yellow-500); border: 1.5px solid var(--gray-900); border-radius: 6px 4px 7px 5px; rotate: 3deg; }
.uc-pick { position: absolute; left: 8px; top: 8px; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; box-sizing: border-box; border: 2.5px solid var(--gray-900); border-radius: 7px 5px 8px 6px; background: var(--cream); color: transparent; cursor: pointer; }
.uc-pick.on { background: var(--blue-700); color: var(--white); }
.uc-tick { position: absolute; left: -6px; top: -6px; z-index: 2; width: 22px; height: 22px; display: grid; place-items: center; box-sizing: border-box; border: 2px solid var(--gray-900); border-radius: 6px 4px 7px 5px; background: var(--cream); color: transparent; }
.uc-tick.on { background: var(--blue-700); color: var(--white); }

/* the card is white paper in every theme, like a photo print */
.uc-card { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 250px; box-sizing: border-box; border: 2.5px solid var(--gray-900); border-radius: 6px 10px 8px 12px; background: var(--white); color: var(--gray-900); box-shadow: 3px 4px 0 color-mix(in srgb, var(--gray-900) 18%, transparent); overflow: hidden; }
.uc-card.picked { box-shadow: 0 0 0 3px var(--blue-700), 3px 4px 0 color-mix(in srgb, var(--gray-900) 18%, transparent); }
.uc-card.gone { border-style: dashed; border-color: var(--ink-faint); box-shadow: none; background: transparent; color: var(--ink); }
.uc-card.gone .uc-th.lg { border-bottom: 2px dashed var(--ink-faint); }
.uc-card.letgo { opacity: .62; }
.uc-body { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 10px; flex: 1; min-width: 0; }
.uc-nm { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-meta { font-size: 13px; color: var(--gray-600); }
.uc-card.gone .uc-meta { color: var(--ink-soft); }
.uc-where { display: flex; align-items: center; gap: 5px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-chip { width: 10px; height: 10px; flex-shrink: 0; box-sizing: border-box; border: 1.5px solid var(--gray-900); border-radius: 3px; background: var(--p-note, var(--accent)); }
.uc-st { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--gray-600); line-height: 1.2; }
.uc-card.gone .uc-st { color: var(--ink-soft); }
.uc-st.soon { color: var(--orange-700); }
.uc-st.kept { color: var(--green-700); }
.uc-st.hold { color: var(--amber-900); }
.uc-acts { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.uc-acts .btn { box-shadow: 2px 2px 0 var(--gray-900); border-color: var(--gray-900); color: var(--gray-900); background: var(--cream); }
.uc-acts .btn.ghost { background: transparent; box-shadow: none; }
.uc-acts .uc-red { color: var(--red-800); border-color: var(--red-800); }
.uc-link { margin-left: auto; padding: 0; border: none; background: none; font: inherit; font-size: 13px; color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.uc-del { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding: 8px; border: 2px dashed var(--red-700); border-radius: 10px 8px 11px 7px; font-size: 13px; color: var(--red-900); line-height: 1.25; }
.uc-del .b { display: flex; gap: 6px; }
.uc-choose { display: flex; margin-top: auto; padding: 3px; border: 2.5px solid var(--gray-900); border-radius: 14px 18px 12px 16px; background: var(--sand); }
.uc-choose button { flex: 1; min-height: 30px; border: none; background: none; border-radius: 10px; font: inherit; font-size: 14px; color: var(--gray-700); cursor: pointer; }
.uc-choose button.on { background: var(--cream); color: var(--gray-900); box-shadow: 2px 2px 0 var(--gray-900); }
.uc-choose button.go.on { background: var(--red-700); color: var(--white); }

.uc-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 72px; padding: 6px; box-sizing: border-box; border: none; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 10%, transparent); background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; border-radius: 10px; }
.uc-row:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.uc-row.picked { background: color-mix(in srgb, var(--blue-700) 18%, transparent); }
.uc-row.gone { opacity: .75; }
.uc-row.letgo .n { text-decoration: line-through; text-decoration-color: var(--red-700); }
.uc-row .uc-th { color: var(--gray-600); }
.uc-mid { flex: 1; min-width: 0; line-height: 1.2; }
.uc-mid .n { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-mid .w { display: block; font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-mid .uc-st { display: block; color: var(--ink-soft); }
.uc-mid .uc-st.soon { color: var(--orange-700); }
.uc-mid .uc-st.kept { color: var(--success-text); }
.uc-mid .uc-st.hold { color: var(--warning-text); }
.uc-size { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }

.uc-sh-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.uc-sh-txt { min-width: 0; line-height: 1.2; font-size: 14px; color: var(--ink-soft); }
.uc-sh-txt .mk { font-size: 26px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-sheet .uc-st { font-size: 15px; margin-bottom: 4px; color: var(--ink-soft); }
.up-sheet .uc-st.soon { color: var(--orange-700); }
.up-sheet .uc-st.kept { color: var(--success-text); }
.up-sheet .uc-st.hold { color: var(--warning-text); }

/* "what kind" chips over the grid */
.up-kinds { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 18px; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 20%, transparent); }
.up-phone .up-kinds { padding: 8px 10px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.up-kchip { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 32px; padding: 0 10px; font: inherit; font-size: 14px; border: 2px solid var(--line); border-radius: 14px 10px 14px 9px; background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; }
.up-kchip i { width: 11px; height: 11px; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 3px; }
.up-kchip span { font-size: 12px; color: var(--ink-soft); }
.up-kchip.on { background: var(--hi-yellow); color: var(--gray-900); }
.up-kchip.on span { color: var(--gray-600); }

/* Plus ended over the free space */
.up-ended { margin-top: 12px; padding: 8px 10px; border: 2px dashed var(--red-700); border-radius: 10px 14px 9px 12px; color: var(--danger-text); font-size: 14px; line-height: 1.3; }
.up-phone .up-ended { margin-top: 6px; font-size: 13px; }
.up-ended-b { display: flex; gap: 8px; margin-top: 6px; }

/* --- "your Plus has ended": a card over the veil, or a sheet on a phone --- */
.pe { position: fixed; z-index: 401; box-sizing: border-box; color: var(--ink); font-family: var(--font-hand); }
.pe.desk { left: 50%; top: 50%; translate: -50% -50%; width: 640px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 40px); overflow: auto; padding: 20px 24px 18px; }
.pe.phone { left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow: auto; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); border-bottom: none; border-radius: 18px 22px 0 0; box-shadow: 0 -4px 0 color-mix(in srgb, var(--gray-900) 18%, transparent); }
.pe-grab { width: 48px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: var(--gray-300); }
.pe-h { margin: 0; font-family: var(--font-marker); font-weight: 700; font-size: 40px; line-height: 1.05; rotate: -1.5deg; }
.pe.phone .pe-h { font-size: 32px; }
.pe-p { margin: 8px 0 0; font-size: 16px; line-height: 1.3; color: var(--ink-soft); }
.pe-use { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; font-size: 15px; color: var(--ink-soft); }
.pe-use b { font-family: var(--font-marker); font-weight: 700; font-size: 30px; color: var(--ink); }
.pe-meter { position: relative; height: 18px; margin-top: 4px; box-sizing: border-box; border: 2.5px solid var(--line); border-radius: 9px 6px 9px 7px; background: repeating-linear-gradient(135deg, var(--red-100) 0 8px, var(--red-200) 8px 16px); overflow: hidden; }
.pe-meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green-200); border-right: 2.5px solid var(--gray-900); }
.pe-mk { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.pe-due { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; background: var(--yellow-200); color: var(--amber-950); border-radius: 2px 2px 16px 2px / 2px 2px 10px 2px; box-shadow: 0 1px 1px color-mix(in srgb, var(--black) 12%, transparent), 3px 6px 10px -6px color-mix(in srgb, var(--black) 35%, transparent); rotate: -.5deg; font-size: 15px; line-height: 1.3; }
.pe-due b { display: block; font-family: var(--font-marker); font-weight: 700; font-size: 24px; line-height: 1.05; }
.pe-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pe.phone .pe-two { grid-template-columns: 1fr; }
.pe-opt { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 2.5px solid var(--line); border-radius: 12px 9px 13px 10px; background: var(--surface); }
.pe-opt .t { font-family: var(--font-marker); font-weight: 700; font-size: 26px; line-height: 1; }
.pe-opt .d { font-size: 14px; line-height: 1.3; color: var(--ink-soft); flex: 1; }
.pe.phone .pe-opt { flex-direction: row; align-items: center; gap: 12px; }
.pe.phone .pe-opt .t { font-size: 24px; }
.pe-opt .btn { white-space: nowrap; }
.btn.pe-plus { background: var(--yellow-500); color: var(--gray-900); }
.pe-small { margin-top: 14px; font-size: 13.5px; line-height: 1.3; color: var(--ink-soft); }
.pe-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.pe-later { flex-shrink: 0; min-height: 44px; padding: 0; border: none; background: none; font: inherit; font-size: 15px; color: var(--link-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* --- make space --- */
.ms-meter { position: relative; height: 22px; margin: 10px 0 4px; flex-shrink: 0; box-sizing: border-box; border: 2.5px solid var(--line); border-radius: 10px 7px 11px 8px; background: var(--white); overflow: hidden; }
.ms-meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green-200); border-right: 2px solid var(--gray-900); }
.ms-meter i.over { background: var(--red-200); }
.up-pspace .ms-meter { height: 16px; margin: 6px 0 4px; }
.ms-say { font-size: 15px; line-height: 1.3; color: var(--ink-soft); }
.ms-say.bad { color: var(--danger-text); }
.ms-quick { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 14px; }
.ms-quick .btn .icon { margin-right: 4px; }
.ms-q { display: flex; gap: 6px; margin-top: 6px; }
.ms-away { margin-top: 14px; padding: 10px 12px; border: 2px dashed var(--ink-faint); border-radius: 12px 9px 12px 10px; font-size: 13.5px; line-height: 1.3; color: var(--ink-soft); }
.ms-away b { display: block; font-weight: 400; color: var(--ink); font-size: 15px; }
.up-list .ms-away { margin: 6px 6px 0; font-size: 13px; }
.ms-end { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ms-ask { padding: 10px 12px; border: 2px dashed var(--red-700); border-radius: 12px 9px 12px 10px; color: var(--danger-text); font-size: 14.5px; line-height: 1.3; }
.ms-yay { padding: 10px 12px; border-radius: 12px; background: var(--green-100); color: var(--green-900); font-size: 15px; line-height: 1.3; }
.ms-row { display: flex; gap: 8px; }
.ms-note { font-size: 13.5px; color: var(--ink-soft); line-height: 1.3; }
.ms-plus { font-size: 14px; }
.ms-hint { padding: 6px 12px 2px; font-size: 13px; color: var(--ink-soft); }
.ms-foot { flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 12px; box-sizing: border-box; background: var(--paper); border-top: 2.5px solid var(--line); }
.ms-foot .ms-done { min-height: 46px; }
.ms-foot .ms-plus { align-self: flex-end; font-size: 13px; }

/* --- the chat tray: picked files that won't fit what's left of your space (canvas: ChatPad) --- */
.ct-nfveil { position: fixed; inset: 0; z-index: 400; border: none; padding: 0; margin: 0; background: color-mix(in srgb, var(--night-900) 35%, transparent); cursor: pointer; }
.ct-nf { position: fixed; left: 50%; top: 50%; translate: -50% -50%; z-index: 401; width: min(400px, calc(100vw - 32px)); box-sizing: border-box; padding: 16px 18px; color: var(--ink); }
.ct-nf-h { margin: 0; font-family: var(--font-marker); font-weight: 700; font-size: 34px; line-height: 1.05; rotate: -1.5deg; }
.ct-nf p { margin: 8px 0 0; font-size: 15px; line-height: 1.3; color: var(--ink-soft); }
.ct-nf-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ct-nf-file { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 2px dashed var(--ink-faint); border-radius: 10px 12px 9px 13px; font-size: 13.5px; color: var(--ink-soft); overflow-wrap: anywhere; }
.ct-nf-acts { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn.ct-nf-plus { background: var(--yellow-500); color: var(--gray-900); }
