/* Palette UI tokens (mirrors sketches/themes/tokens.css, midnight approved preset) */ :root { --bg: #241B30; --surface: #2D2340; --surface-2: #3A2D52; --muted: #7A6A9E; --muted-fg: #C0B2DE; --fg: #F2EDF8; --accent: #C4A8F0; --border: #42355C; --radius: 14px; --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --font-mono: ui-monospace, "JetBrains Mono", "Fira Code", monospace; } [data-preset="smooth"] { --bg: #F6F5FA; --surface: #FFFFFF; --surface-2: #DAD7E6; --muted: #B5B1C9; --muted-fg: #7A7796; --fg: #2A2A36; --accent: #7A7796; --border: #DAD7E6; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: var(--font-body); background: var(--bg); color: var(--fg); line-height: 1.45; -webkit-font-smoothing: antialiased; min-height: 100vh; font-size: 14px; } .topbar { display: flex; align-items: center; gap: 20px; padding: 0 20px; height: 52px; background: var(--surface); border-bottom: 1px solid var(--border); } .logo { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; text-decoration: none; color: var(--fg); } .logo em { font-style: normal; color: var(--muted-fg); font-weight: 400; } .topbar nav { display: flex; gap: 4px; } .topbar nav a { color: var(--muted-fg); text-decoration: none; padding: 6px 12px; border-radius: 8px; font-size: 13.5px; } .topbar nav a:hover { background: var(--surface-2); color: var(--fg); } .topbar nav a.on { background: var(--accent); color: var(--bg); } .topbar .spacer { flex: 1; } .kbd { font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; color: var(--muted-fg); } .float { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 6px rgba(20,14,32,.25), 0 12px 32px rgba(20,14,32,.3); overflow: hidden; } /* new paste page */ .deck { display: grid; grid-template-columns: 1fr 300px; gap: 16px; padding: 16px 20px; height: calc(100vh - 52px); max-width: 1400px; margin: 0 auto; } .pane-r { display: flex; flex-direction: column; gap: 16px; overflow-y: auto; padding-bottom: 4px; } .side-section { padding: 14px 16px; flex-shrink: 0; } .side-section h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg); margin-bottom: 10px; } .pane-l { display: flex; flex-direction: column; } .editor-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); } .editor-head input { border: none; outline: none; background: transparent; color: var(--fg); font: inherit; font-size: 13.5px; flex: 1; } .editor-head select { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted-fg); border-radius: 7px; padding: 4px 10px; font: inherit; font-size: 12.5px; cursor: pointer; } .editor-wrap { flex: 1; display: flex; min-height: 0; } .gutter { padding: 14px 10px; text-align: right; color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; user-select: none; white-space: pre; overflow: hidden; border-right: 1px solid var(--border); } .editor { flex: 1; padding: 14px 16px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; white-space: pre; outline: none; overflow: auto; border: none; background: transparent; color: var(--fg); resize: none; width: 100%; } .editor::placeholder { color: var(--muted); } .actionbar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--border); } .btn { background: var(--accent); color: var(--bg); border: none; cursor: pointer; padding: 8px 18px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; } .btn:hover { filter: brightness(1.08); } .hint { font-size: 12px; color: var(--muted-fg); } .hint b { color: var(--fg); font-weight: 550; } .seg { display: flex; flex-direction: column; gap: 2px; } .seg label { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; } .seg label:hover { background: var(--surface-2); } .seg input { accent-color: var(--accent); } .toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 5px 8px; border-radius: 7px; } .toggle:hover { background: var(--surface-2); } .toggle input { accent-color: var(--accent); } .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 4px 0; } .row input[type="text"] { border: 1px solid var(--border); border-radius: 7px; padding: 5px 8px; background: var(--bg); color: var(--fg); font: inherit; font-size: 12.5px; width: 130px; } .created-banner { display: none; padding: 10px 16px; font-size: 13px; background: var(--surface-2); border-bottom: 1px solid var(--border); word-break: break-all; } .created-banner a { color: var(--accent); } /* paste view */ .meta-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; flex-wrap: wrap; } .meta-bar h1 { font-size: 17px; font-weight: 600; } .slug { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-fg); background: var(--surface-2); padding: 3px 9px; border-radius: 7px; } .tag { font-size: 11.5px; color: var(--muted-fg); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; } .meta-bar .spacer { flex: 1; } .iconbtn { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted-fg); border-radius: 8px; padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; text-decoration: none; } .iconbtn:hover { color: var(--fg); border-color: var(--muted); } .iconbtn.danger:hover { color: #ff8fa3; border-color: #ff8fa3; } .code-head { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--muted-fg); } .code-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); } .code { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; padding: 14px 0; display: flex; overflow-x: auto; } .code .gutter { flex-shrink: 0; } .codebody { padding: 0 18px; white-space: pre; } .footnote { display: flex; gap: 20px; padding: 10px 18px; font-size: 12px; color: var(--muted-fg); border-top: 1px solid var(--border); flex-wrap: wrap; } /* history */ .page { max-width: 860px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; } .head-row { display: flex; align-items: baseline; gap: 14px; } .head-row h1 { font-size: 20px; font-weight: 600; } .search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; width: 260px; } .search input { border: none; outline: none; background: transparent; color: var(--fg); font: inherit; font-size: 13px; width: 100%; } table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; } th:nth-child(1), td:nth-child(1) { width: 130px; } th:nth-child(2), td:nth-child(2) { width: auto; } th:nth-child(3), td:nth-child(3) { width: 80px; } th:nth-child(4), td:nth-child(4) { width: 80px; } th:nth-child(5), td:nth-child(5) { width: 64px; } th:nth-child(6), td:nth-child(6) { width: 90px; } th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg); padding: 10px 16px; border-bottom: 1px solid var(--border); font-weight: 600; } td { padding: 10px 16px; border-bottom: 1px solid var(--border); } tr:last-child td { border-bottom: none; } tr.row { cursor: pointer; } tr.row:hover td { background: var(--surface-2); } tr.row:hover td a.slug { color: var(--accent); } td a.slug { font-family: var(--font-mono); font-size: 12.5px; color: var(--fg); text-decoration: none; } td a.slug:hover { color: var(--accent); } .badge { font-size: 11px; border: 1px solid var(--border); color: var(--muted-fg); border-radius: 999px; padding: 1px 8px; } .badge.lock { color: var(--accent); border-color: var(--accent); } .dim { color: var(--muted-fg); white-space: nowrap; } .pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 12.5px; color: var(--muted-fg); } .pager .pg { display: flex; gap: 6px; } .pager button { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted-fg); border-radius: 7px; padding: 4px 11px; font: inherit; font-size: 12.5px; cursor: pointer; } .pager button:hover:not(:disabled) { color: var(--fg); border-color: var(--muted); } .pager button.on { background: var(--accent); color: var(--bg); border-color: var(--accent); } .pager button:disabled { opacity: .4; cursor: default; } .empty { text-align: center; padding: 40px 16px; color: var(--muted-fg); font-size: 13px; } /* unlock */ .center { display: flex; align-items: center; justify-content: center; padding: 20px; height: calc(100vh - 52px); } .center .float { width: 400px; max-width: 100%; } .inner { padding: 28px; text-align: center; } .lockring { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 24px; } .inner h1 { font-size: 17px; font-weight: 600; margin-bottom: 6px; } .inner .sub { font-size: 13px; color: var(--muted-fg); margin-bottom: 20px; } .pwinput { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--fg); font: inherit; font-size: 13.5px; outline: none; text-align: center; letter-spacing: .12em; } .pwinput:focus { border-color: var(--accent); } .center .btn { width: 100%; margin-top: 12px; } .err { display: none; margin-top: 12px; font-size: 12.5px; color: #ff8fa3; } .center .foot { font-size: 12px; color: var(--muted-fg); padding: 14px; border-top: 1px solid var(--border); }