:root { --bg:#f6f7fb; --card:#fff; --ink:#20232d; --muted:#8b91a2; --line:#e9ebf2; --accent:#5b56e8; --accent-soft:#efeeff; --danger:#d84f61; --shadow:0 8px 25px rgba(40,44,75,.06); }
* { box-sizing:border-box; }
html { background:var(--bg); }
body { margin:0; color:var(--ink); background:var(--bg); font-family:'Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; -webkit-font-smoothing:antialiased; }
button,input,textarea { font:inherit; }
button { cursor:pointer; border:0; }
.app-shell { width:100%; max-width:720px; margin:0 auto; padding:calc(24px + env(safe-area-inset-top)) 18px calc(34px + env(safe-area-inset-bottom)); }
.topbar { display:flex; align-items:flex-start; justify-content:space-between; padding:9px 2px 25px; }
.eyebrow { margin:0 0 6px; color:var(--accent); font-size:11px; font-weight:700; letter-spacing:.16em; }
h1,h2,p { margin:0; } h1 { font-size:31px; letter-spacing:-.04em; line-height:1.2; } .subtitle { margin-top:6px; color:var(--muted); font-size:14px; }
.icon-button { width:44px; height:44px; display:grid; place-items:center; border-radius:14px; color:#73798c; background:var(--card); box-shadow:var(--shadow); transition:.2s; }
.icon-button:active { transform:scale(.94); } .icon-button svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; }
.toolbar { position:sticky; top:0; z-index:2; margin:0 -2px 17px; padding:3px 2px 11px; background:rgba(246,247,251,.94); backdrop-filter:blur(12px); }
.search-box { display:flex; align-items:center; height:50px; padding:0 15px; gap:10px; background:var(--card); border:1px solid transparent; border-radius:15px; box-shadow:var(--shadow); }
.search-box:focus-within { border-color:#d9d7ff; box-shadow:0 0 0 4px var(--accent-soft); } .search-box svg { width:20px; height:20px; flex:none; fill:none; stroke:#a0a5b4; stroke-width:2; stroke-linecap:round; }
.search-box input { width:100%; min-width:0; color:var(--ink); border:0; outline:0; background:transparent; font-size:15px; } .search-box input::placeholder { color:#a5aab8; }
.chips { display:flex; gap:8px; overflow:auto; margin-top:12px; padding:1px 1px 3px; scrollbar-width:none; } .chips::-webkit-scrollbar { display:none; }
.chip { flex:none; padding:8px 14px; color:#777d8f; background:transparent; border:1px solid var(--line); border-radius:99px; font-size:13px; white-space:nowrap; } .chip.active { color:var(--accent); background:var(--accent-soft); border-color:transparent; font-weight:600; }
.message-list { display:grid; gap:12px; } .message-card { position:relative; padding:18px 17px 15px; border:1px solid rgba(231,233,241,.9); border-radius:18px; background:var(--card); box-shadow:var(--shadow); animation:rise .25s ease both; }
.card-top { display:flex; align-items:center; gap:9px; margin-bottom:10px; } .card-title { max-width:70%; font-size:16px; font-weight:600; } .card-category { padding:4px 8px; color:#7771da; background:var(--accent-soft); border-radius:6px; font-size:11px; }
.card-content { color:#4d5261; font-size:14px; line-height:1.75; white-space:pre-wrap; word-break:break-word; } .copy-button { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; min-height:42px; margin-top:15px; color:var(--accent); background:var(--accent-soft); border-radius:11px; font-size:14px; font-weight:600; transition:.2s; } .copy-button:active { transform:scale(.98); background:#e5e3ff; } .copy-button svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.empty-state { padding:70px 20px; text-align:center; color:var(--muted); } .empty-icon { width:52px; height:52px; display:grid; place-items:center; margin:0 auto 13px; color:#aaa7ee; background:var(--accent-soft); border-radius:18px; font-size:28px; } .empty-state p { font-size:15px; color:#6c7282; } .empty-state span { display:block; margin-top:6px; font-size:13px; }
.admin-panel { margin-top:30px; padding-top:29px; border-top:1px solid var(--line); } .admin-heading { display:flex; align-items:flex-start; justify-content:space-between; } h2 { font-size:23px; letter-spacing:-.03em; } .text-button { padding:6px 0; color:var(--accent); background:none; font-size:14px; font-weight:600; } .admin-tip { margin:8px 0 18px; color:var(--muted); font-size:12px; line-height:1.6; }
.message-form { padding:16px; background:var(--card); border:1px solid var(--line); border-radius:17px; box-shadow:var(--shadow); } .message-form label,.password-input { display:block; margin-bottom:13px; color:#73798b; font-size:12px; font-weight:500; } .message-form input,.message-form textarea,.password-input input { width:100%; margin-top:7px; padding:11px 12px; color:var(--ink); background:#fafaff; border:1px solid var(--line); border-radius:10px; outline:none; font-size:14px; resize:vertical; } .message-form input:focus,.message-form textarea:focus,.password-input input:focus { border-color:#b9b5fa; box-shadow:0 0 0 3px var(--accent-soft); }
.form-actions { display:flex; gap:9px; } .primary-button,.secondary-button { min-height:43px; padding:0 17px; border-radius:11px; font-size:14px; font-weight:600; } .primary-button { color:#fff; background:var(--accent); box-shadow:0 5px 13px rgba(91,86,232,.2); } .secondary-button { color:#73798b; background:#f1f2f7; }
.admin-list { display:grid; gap:9px; margin-top:18px; } .admin-item { display:flex; align-items:center; gap:10px; padding:11px 10px; background:var(--card); border:1px solid var(--line); border-radius:13px; } .drag-icon { color:#b3b7c5; font-size:18px; letter-spacing:-4px; } .admin-item-main { min-width:0; flex:1; } .admin-item-title { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; font-weight:600; } .admin-item-cat { display:block; margin-top:3px; color:var(--muted); font-size:11px; } .admin-controls { display:flex; gap:3px; } .small-button { width:29px; height:29px; color:#777d8e; background:#f3f4f8; border-radius:8px; font-size:14px; } .small-button:disabled { opacity:.35; cursor:default; } .small-button.edit { color:var(--accent); } .small-button.delete { color:var(--danger); }
.toast { position:fixed; left:50%; bottom:calc(27px + env(safe-area-inset-bottom)); z-index:10; max-width:calc(100% - 36px); padding:11px 17px; color:#fff; background:#272a36; border-radius:11px; box-shadow:0 7px 25px rgba(0,0,0,.2); font-size:13px; opacity:0; pointer-events:none; transform:translate(-50%,14px); transition:.24s; } .toast.show { opacity:1; transform:translate(-50%,0); }
.login-dialog { width:min(390px,calc(100% - 32px)); padding:0; border:0; border-radius:20px; background:var(--card); box-shadow:0 20px 60px rgba(30,34,58,.25); } .login-dialog::backdrop { background:rgba(26,28,42,.35); backdrop-filter:blur(3px); } .login-dialog form { position:relative; padding:27px 22px 23px; } .login-dialog h2 { margin:4px 0 8px; } .dialog-copy { margin-bottom:22px; color:var(--muted); font-size:13px; line-height:1.6; } .dialog-close { position:absolute; top:13px; right:16px; color:#a2a6b2; background:none; font-size:25px; line-height:1; } .login-dialog .primary-button { width:100%; margin-top:2px; } .error-text { margin:-7px 0 12px; color:var(--danger); font-size:12px; }
@keyframes rise { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
@media (min-width:600px) { .app-shell { padding-left:30px; padding-right:30px; } .message-list { grid-template-columns:repeat(2,minmax(0,1fr)); } .message-card { display:flex; flex-direction:column; } .copy-button { margin-top:auto; } }
