/* Unicorn Works Online · Home. Uses the shared themes (Unicorn, Galaxy, Pastel, Midnight). */
body { background: radial-gradient(1100px 500px at 15% -10%, var(--glow), transparent 70%), radial-gradient(900px 500px at 100% 0%, rgba(236, 72, 153, .10), transparent 70%), var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); }
.top { display: flex; align-items: center; gap: 14px; padding: 12px 22px; background: color-mix(in srgb, var(--surface) 85%, transparent); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 600 21px 'Fredoka', sans-serif; }
.u-pill.online { background: linear-gradient(135deg, #e0f2fe, #ede9fe); color: #4c1d95; border-color: #c4b5fd; }
[data-theme="galaxy"] .u-pill.online, [data-theme="midnight"] .u-pill.online { background: #1e1b4b; color: #c4b5fd; border-color: #4c1d95; }
.top-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.u-btn.sm { padding: 7px 13px; font-size: 13.5px; border-radius: 11px; text-decoration: none; }
.themes { display: flex; gap: 5px; }
.themes button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 0; }
.themes button.on { box-shadow: 0 0 0 2px var(--accent); }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; padding: 30px 0 40px; flex: 1; }
.hello h1 { font-size: clamp(30px, 4vw, 42px); }
.hello p { margin: 6px 0 0; }
.link { border: 0; background: none; color: var(--accent); font-weight: 800; padding: 0; }
section { margin-top: 30px; }
.sec-title { font-size: 20px; margin-bottom: 12px; } .sec-title small { font: 700 13px 'Nunito', sans-serif; margin-left: 6px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 18px; text-align: left; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; display: grid; gap: 4px; }
.tile::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 34px var(--glow); }
.tile .te { font-size: 34px; width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); margin-bottom: 6px; }
.tile b { font: 600 18px 'Fredoka', sans-serif; } .tile small { color: var(--muted); font-weight: 700; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.drop { width: 100%; display: flex; gap: 14px; align-items: center; text-align: left; border: 2px dashed var(--line); background: var(--surface-2); border-radius: 20px; padding: 26px 20px; color: var(--text); }
.drop:hover { border-color: var(--accent); } .drop > b { font-size: 38px; } .drop span b { display: block; font-size: 16px; } .drop small { color: var(--muted); font-weight: 700; }
.tip { font-size: 13.5px; color: var(--muted); margin: 10px 4px 0; }
.recent { display: grid; gap: 8px; }
.rf { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 12px; }
.rf button.open { flex: 1; display: flex; gap: 10px; align-items: center; border: 0; background: none; text-align: left; padding: 0; color: var(--text); min-width: 0; }
.rf .re { font-size: 22px; } .rf .rn { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rf small { color: var(--muted); font-weight: 700; display: block; }
.rf .x { border: 0; background: none; color: var(--muted); font-size: 15px; border-radius: 8px; width: 28px; height: 28px; } .rf .x:hover { background: var(--surface-2); }
.empty { color: var(--muted); font-size: 14.5px; border: 1px dashed var(--line); border-radius: 14px; padding: 16px; }
.more { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mc { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 12px; color: var(--text); opacity: .78; }
.mc:hover { opacity: 1; border-color: var(--accent); }
.mc .me { font-size: 24px; filter: grayscale(.35); } .mc b { display: block; font-size: 14.5px; } .mc small { color: var(--muted); font-weight: 800; font-size: 11.5px; }
.small { font-size: 13.5px; margin-top: 12px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; }
.modal { position: fixed; inset: 0; background: rgba(10, 5, 30, .45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal-box { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; width: min(520px, 100%); box-shadow: var(--shadow); }
.modal-box input { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; width: 100%; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.modal-actions a { text-decoration: none; }
.dropping { position: fixed; inset: 0; z-index: 70; background: rgba(139, 92, 246, .18); display: grid; place-items: center; pointer-events: none; }
.dropping div { background: var(--surface); border: 3px dashed var(--accent); border-radius: 24px; padding: 30px 50px; font: 600 24px 'Fredoka', sans-serif; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(140px); background: var(--sidebar); color: var(--sidebar-text); padding: 10px 18px; border-radius: 14px; font-weight: 800; transition: transform .25s; z-index: 80; }
.toast.show { transform: translateX(-50%) translateY(0); }
@media (max-width: 640px) { .top { flex-wrap: wrap; } .top-right { margin-left: 0; width: 100%; justify-content: space-between; } }
