/* Linkbook Tracker styles: builds on the Linkbook theme tokens. */
.lbt-card { background: var(--surface, #fff); border: 1px solid var(--rule-strong, #c9cfd8); border-radius: 8px; padding: 20px; margin-bottom: 24px; }
.lbt-card h2 { margin-top: 0; font-size: 1.2rem; }
.lbt-auth { max-width: 460px; }
.lbt-form label, .lbt-newp label, .lbt-auth p.login-username, .lbt-auth p.login-password { display: block; margin-bottom: 14px; font-weight: 600; font-size: .95rem; }
.lbt-form input, .lbt-newp input, .lbt-auth input[type=text], .lbt-auth input[type=password], .lbt-row-form input, .lbt-row-form select, .lbt-domain input, .lbt-toolbar select, .lbt-pick select, .lbt-work select {
  display: block; width: 100%; margin-top: 4px; font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--rule-strong, #c9cfd8); border-radius: 6px; background: var(--paper, #fbfbf9); color: var(--ink, #1b2430);
}
.lbt-form small { display: block; font-weight: 400; color: var(--ink-3, #7b8594); }
.lbt-auth .login-remember label { font-weight: 400; }
.lbt-auth #wp-submit { font: inherit; font-weight: 600; padding: 12px 18px; border: 0; border-radius: 6px; background: var(--link, #1f4fd8); color: #fff; cursor: pointer; }
.lbt-alert { background: #fdecec; color: #8a1c1c; border-radius: 6px; padding: 10px 14px; }
.lbt-muted { color: var(--ink-3, #7b8594); }
.lbt-msg { margin: 8px 0 0; font-size: .95rem; color: var(--ink-2, #4a5566); }
.lbt-link { font: inherit; background: none; border: 0; padding: 0; color: var(--link, #1f4fd8); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lbt-danger { color: #a3261d; }
.lbt-link:disabled { color: var(--ink-3, #7b8594); cursor: default; text-decoration: none; }
.lbt-nav a { font-weight: 600; color: var(--link, #1f4fd8) !important; }

/* status pills: colour carries stage, text carries detail */
.lbt-pill { display: inline-block; font-size: .82rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.lbt-pill.lbt-pending { background: transparent; border-color: var(--rule-strong, #c9cfd8); color: var(--ink-2, #4a5566); }
.lbt-pill.lbt-submitted { background: #eaf0fd; color: #163aa3; }
.lbt-pill.lbt-live { background: #e5f4ec; color: #17784a; }
.lbt-pill.lbt-indexed { background: #17784a; color: #fff; }
.lbt-pill.lbt-problem { background: #fff3d6; color: #8a5a00; }

/* list pages */
.lbt-pick { width: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .95rem; padding-bottom: 10px; border-bottom: 1px dashed var(--rule, #e3e6eb); }
.lbt-pick select { width: auto; min-width: 200px; margin: 0; padding: 6px 10px; }
.lbt-pick a { margin-left: auto; }
.lb-table td.lbt-cell { width: 1%; white-space: nowrap; }
.lbt-status { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.lbt-status:hover .lbt-pill { box-shadow: 0 0 0 2px var(--link-tint, #eaf0fd); }
.lb-table tr.lbt-edit { background: var(--paper, #fbfbf9); }
.lbt-row-form { display: grid; grid-template-columns: 2fr 1.2fr 1fr; gap: 12px; align-items: end; padding: 4px 0; }
.lbt-row-form label { font-size: .88rem; font-weight: 600; color: var(--ink-2, #4a5566); }
.lbt-actions { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.lbt-row-form .lbt-msg { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .lbt-row-form { grid-template-columns: 1fr; }
  .lb-table td.lbt-cell { grid-column: 1 / -1; }
  .lb-table tr.lbt-edit { display: block; }
}

/* dashboard */
.lbt-who { color: var(--ink-3, #7b8594); font-size: .95rem; }
.lbt-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 12px; }
.lbt-proj { font-weight: 600; font-size: .9rem; min-width: 260px; }
.lbt-export { margin-left: auto; padding: 10px 16px; }
.lbt-domain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; font-size: .95rem; color: var(--ink-2, #4a5566); }
.lbt-domain input { width: 240px; display: inline-block; margin: 0; padding: 6px 10px; }

.lbt-pipe { margin-bottom: 28px; }
.lbt-pipe .lbt-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--rule, #e3e6eb); }
.lbt-seg { display: block; min-width: 4px; }
.lbt-seg.lbt-pending { background: #d5dae2; }
.lbt-seg.lbt-submitted { background: #8fa9ee; }
.lbt-seg.lbt-live { background: #45a874; }
.lbt-seg.lbt-indexed { background: #17784a; }
.lbt-seg.lbt-problem { background: #e8b23a; }
.lbt-stages { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; counter-reset: none; }
.lbt-stages li { position: relative; }
.lbt-stages li:not(:last-child):not(:nth-child(4))::after { content: "\203A"; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); color: var(--ink-3, #7b8594); font-size: 1.3rem; }
.lbt-stages button { width: 100%; text-align: left; font: inherit; background: var(--surface, #fff); border: 1px solid var(--rule, #e3e6eb); border-left-width: 4px; border-radius: 6px; padding: 10px 12px; cursor: pointer; color: var(--ink, #1b2430); }
.lbt-stages button[aria-pressed="true"] { border-color: var(--ink, #1b2430); }
.lbt-stages b { display: block; font-family: var(--head, sans-serif); font-size: 1.6rem; line-height: 1.1; }
.lbt-stages span { font-size: .88rem; color: var(--ink-2, #4a5566); }
.lbt-stages .lbt-pending button { border-left-color: #d5dae2; }
.lbt-stages .lbt-submitted button { border-left-color: #8fa9ee; }
.lbt-stages .lbt-live button { border-left-color: #45a874; }
.lbt-stages .lbt-indexed button { border-left-color: #17784a; }
.lbt-stages .lbt-problem button { border-left-color: #e8b23a; }
@media (max-width: 760px) { .lbt-stages { grid-template-columns: repeat(2, 1fr); } .lbt-stages li::after { display: none; } }

.lbt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .lbt-cols { grid-template-columns: 1fr; } }
.lbt-lists, .lbt-feed, .lbt-pend { list-style: none; margin: 0; padding: 0; }
.lbt-lists li { padding: 10px 0; border-bottom: 1px solid var(--rule, #e3e6eb); }
.lbt-lists a { font-weight: 600; }
.lbt-mini { display: block; height: 6px; background: var(--rule, #e3e6eb); border-radius: 999px; margin: 6px 0 4px; overflow: hidden; }
.lbt-mini span { display: block; height: 100%; background: #45a874; }
.lbt-lists small, .lbt-feed small { display: block; color: var(--ink-3, #7b8594); font-size: .85rem; }
.lbt-feed { max-height: 360px; overflow-y: auto; }
.lbt-feed li { padding: 8px 0; border-bottom: 1px solid var(--rule, #e3e6eb); font-size: .95rem; }
.lbt-pend li { padding: 6px 0; border-bottom: 1px solid var(--rule, #e3e6eb); font-size: .95rem; }

.lbt-work-head { display: flex; align-items: baseline; gap: 16px; }
.lbt-scroll { overflow-x: auto; }
.lbt-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lbt-table th { text-align: left; font-size: .85rem; color: var(--ink-2, #4a5566); padding: 8px 10px; border-bottom: 1px solid var(--rule-strong, #c9cfd8); white-space: nowrap; }
.lbt-table td { padding: 10px; border-bottom: 1px solid var(--rule, #e3e6eb); vertical-align: top; }
.lbt-table td small { display: block; color: var(--ink-3, #7b8594); font-size: .82rem; max-width: 280px; }
.lbt-table select { width: auto; margin: 0; padding: 6px 8px; }
.lbt-url a { word-break: break-all; }
.lbt-acts { white-space: nowrap; }
.lbt-acts > * { display: block; margin-bottom: 4px; }
.lbt-newp { max-width: 520px; }
