:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,Noto Sans TC,sans-serif;line-height:1.5;color:#0f172a;background:#f1f5f9}*{box-sizing:border-box}body{margin:0}#app{max-width:720px;margin:0 auto;padding:1.5rem 1rem 3rem}.top h1{margin:0 0 .25rem;font-size:1.5rem}.muted{color:#64748b}.small{font-size:.85rem}.card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:1rem 1.25rem;margin-top:1rem;box-shadow:0 1px 2px #0f172a0f}.card h2{margin:0 0 .75rem;font-size:1.1rem}.grid{display:grid;gap:.75rem}.grid label{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem}.grid .full{grid-column:1 / -1}input,textarea,button{font:inherit}input,textarea{padding:.45rem .6rem;border:1px solid #cbd5e1;border-radius:8px}button{border-radius:8px;border:1px solid #cbd5e1;padding:.45rem .75rem;background:#fff;cursor:pointer}button.primary{justify-self:start;background:#2563eb;border-color:#1d4ed8;color:#fff}button.danger{border-color:#fecaca;color:#b91c1c;background:#fef2f2}button.ghost{background:transparent}.list{list-style:none;margin:0;padding:0}.row{display:flex;gap:.75rem;justify-content:space-between;align-items:flex-start;padding:.75rem 0;border-bottom:1px solid #e2e8f0}.row:last-child{border-bottom:none}.row .main{min-width:0}.row a{font-weight:600;color:#1d4ed8;word-break:break-all}.note{margin-top:.35rem;white-space:pre-wrap;word-break:break-word}.actions{display:flex;gap:.35rem;flex-shrink:0}.merge-rule{margin-top:0}.backup-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.5rem}.sep{border:none;border-top:1px solid #e2e8f0;margin:1rem 0}.subh{margin:0 0 .5rem;font-size:1rem}.restore-grid{margin-top:.5rem}.alert.error{margin-top:.75rem;padding:.6rem .75rem;border-radius:8px;background:#fef2f2;border:1px solid #fecaca;color:#991b1b;font-size:.9rem}.restore-preview .diff-grid{display:grid;gap:1rem}@media(min-width:900px){.restore-preview .diff-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}.diff-h{margin:0 0 .35rem;font-size:.95rem}table.diff{width:100%;border-collapse:collapse;font-size:.85rem}table.diff th,table.diff td{text-align:left;padding:.35rem .4rem;border-bottom:1px solid #e2e8f0;vertical-align:top}table.diff th{color:#64748b;font-weight:600}.restore-actions{display:flex;gap:.5rem;justify-content:flex-end;margin-top:1rem}
