:root { --bg: #ffffff; --fg: #111827; --muted: #6b7280; --border: #e5e7eb; --border-strong: #d1d5db; --accent: #2563eb; --accent-hover: #1d4ed8; --danger: #dc2626; --danger-bg: #fef2f2; --row-hover: #f9fafb; --shadow: 0 10px 30px rgba(0, 0, 0, 0.08); --radius: 8px; } * { box-sizing: border-box; } html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; } button { font-family: inherit; font-size: inherit; } input, select { font-family: inherit; font-size: inherit; } /* Top bar */ .topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; } .brand { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: inherit; text-decoration: none; } .topbar-actions { display: flex; gap: 10px; align-items: center; } /* Layout */ main { max-width: 1100px; margin: 0 auto; padding: 24px; } /* Hero */ .hero { text-align: center; padding: 64px 16px 32px; } .hero.compact { text-align: left; padding: 8px 0 16px; } .hero.compact .hero-title, .hero.compact .hero-sub { display: none; } .hero-title { margin: 0 0 8px; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; } .hero-sub { margin: 0 0 28px; color: var(--muted); } .search-row { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; } .hero.compact .search-row { max-width: 100%; } .search-input { flex: 1; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); outline: none; transition: border-color 0.1s, box-shadow 0.1s; } .search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); } /* Buttons */ .btn { border: 1px solid transparent; border-radius: var(--radius); padding: 10px 16px; cursor: pointer; font-weight: 500; white-space: nowrap; transition: background 0.1s, border-color 0.1s, color 0.1s; } .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .btn-primary { background: var(--accent); color: #fff; } .btn-primary:hover { background: var(--accent-hover); } .btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--fg); } .btn-ghost:hover { background: var(--row-hover); } .btn-danger { background: var(--danger); color: #fff; } .btn-danger:hover { background: #b91c1c; } .btn-sm { padding: 6px 10px; font-size: 13px; } .btn-link { background: none; border: none; color: var(--accent); cursor: pointer; padding: 6px 8px; } .btn-link:hover { text-decoration: underline; } .btn-link-danger { color: var(--danger); } /* Results */ .results { margin-top: 8px; } .table { width: 100%; border-collapse: collapse; background: var(--bg); } .table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); } .table th { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--row-hover); } .table tbody tr:hover { background: var(--row-hover); } .actions-col { width: 1%; white-space: nowrap; text-align: right; } .actions-cell { text-align: right; white-space: nowrap; } .results-empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); margin-top: 16px; } /* Modal */ .modal { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.45); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; z-index: 50; overflow-y: auto; } .modal-card { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 480px; } .modal-card-wide { max-width: 720px; } .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); } .modal-header h2 { margin: 0; font-size: 17px; font-weight: 600; } .modal-close { background: none; border: none; cursor: pointer; font-size: 22px; line-height: 1; color: var(--muted); padding: 0 4px; } .modal-close:hover { color: var(--fg); } /* Form */ .form { padding: 20px; display: flex; flex-direction: column; gap: 14px; } .field { display: flex; flex-direction: column; gap: 6px; } .field span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); } .field input, .field select { padding: 9px 10px; border: 1px solid var(--border-strong); border-radius: 6px; outline: none; background: var(--bg); } .field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); } .field-row { display: flex; gap: 12px; } .field-row .field { flex: 1; } .form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; } /* Banners */ .banner { margin: 0 20px; margin-top: 16px; padding: 10px 12px; border-radius: 6px; font-size: 13px; } .banner-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; } /* Inline confirm */ .confirm-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); } /* Tabs */ .tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--border); } .tab { background: none; border: none; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; } .tab:hover { color: var(--fg); } .tab-active { color: var(--accent); border-bottom-color: var(--accent); } /* Manage body */ .manage-body { padding: 16px 20px 20px; } .manage-list { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; } .manage-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); } .manage-row:last-child { border-bottom: none; } .manage-row.add-row { background: var(--row-hover); } .manage-row input, .manage-row select { padding: 7px 9px; border: 1px solid var(--border-strong); border-radius: 6px; outline: none; } .manage-row .grow { display: flex; gap: 8px; } .manage-row .grow > * { flex: 1; } .manage-row .label { color: var(--fg); } .manage-row .label .muted { color: var(--muted); margin-right: 6px; } .manage-empty { padding: 20px; color: var(--muted); text-align: center; } /* Detail page */ .detail { padding: 8px 0 24px; max-width: 720px; } .back-link { display: inline-block; color: var(--muted); text-decoration: none; font-size: 13px; margin-bottom: 16px; } .back-link:hover { color: var(--accent); } .detail-title { margin: 0 0 4px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; word-break: break-all; } .detail-subtitle { margin: 0 0 24px; color: var(--muted); font-size: 13px; } .detail-list { display: grid; grid-template-columns: 160px 1fr; gap: 0; margin: 0 0 24px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; } .detail-list dt, .detail-list dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--border); } .detail-list dt { background: var(--row-hover); color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; align-content: center; } .detail-list dt:nth-last-of-type(1), .detail-list dd:nth-last-of-type(1) { border-bottom: none; } .detail-list dd { word-break: break-word; } .detail-list .empty { color: var(--muted); } .detail-actions { display: flex; gap: 10px; } /* Hostname link in results */ .host-link { color: var(--accent); text-decoration: none; font-weight: 500; } .host-link:hover { text-decoration: underline; } /* Interfaces section on detail page */ .interfaces { margin: 0 0 24px; } .interfaces-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .interfaces-header h2 { margin: 0; font-size: 17px; font-weight: 600; } .iface-edit-input { width: 100%; padding: 5px 7px; border: 1px solid var(--border-strong); border-radius: 4px; outline: none; font: inherit; } .iface-edit-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15); } .iface-error { color: var(--danger); font-size: 12px; padding: 4px 12px; } .muted { color: var(--muted); } [hidden] { display: none !important; }