/* taboverview.com/links, on top of /styles.css. Every class starts with lk-, so none collides with the site's own. */
.lk { padding-bottom: 8px; }
.lk-tool, .lk-more { max-width: 780px; margin: 0 auto; }
/* Classes that set display would otherwise show what the script hid. */
.lk-tool [hidden] { display: none !important; }

/* The box: a name, the links, who may do what, and the button */
.lk-card { margin-top: 38px; }
.lk-card:has(.lk-name input:focus, textarea:focus) { box-shadow: inset 0 0 0 2px var(--cobalt), var(--shadow-soft); }
.lk-name { display: block; padding: 24px 28px 0; cursor: text; }
.lk-name > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.lk-name input { display: block; width: 100%; margin-top: 4px; padding: 0; border: 0; outline: 0; background: none; font: 650 25px/1.3 var(--font); letter-spacing: -.022em; color: var(--ink); text-overflow: ellipsis; }
.lk-name input::placeholder { color: rgb(16 20 42 / .3); opacity: 1; }
.lk-name:focus-within > span { color: var(--cobalt); }
.lk-card textarea { display: block; width: 100%; height: 168px; min-height: 168px; max-height: 452px; padding: 12px 28px 10px; border: 0; outline: 0; resize: none; background: none;
  font: 400 17px/1.75 var(--font); letter-spacing: -.006em; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; }
.lk-card textarea::placeholder { color: var(--ink-3); opacity: 1; }
.lk-card textarea:focus-visible { outline: 0; }
.lk-card textarea[aria-invalid="true"] { box-shadow: inset 3px 0 0 #b42318; }
.lk-left { margin: 0 28px 6px; font-size: 14px; line-height: 1.45; color: var(--ink-3); overflow-wrap: anywhere; }
.lk-choose { margin: 4px 14px 0; padding: 18px 14px 4px; border-top: 1px solid var(--hairline); }
.lk-error { font-size: 14.5px; line-height: 1.45; font-weight: 550; color: #b42318; overflow-wrap: anywhere; }
.lk-error:empty { display: none; }
.lk-card .lk-error { margin: 12px 28px 0; }
.lk-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 14px 14px 28px; }
.lk-count { font-size: 15px; font-weight: 550; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lk-foot .btn.big { flex: none; width: auto; max-width: none; height: 52px; padding: 0 26px; border-radius: 14px; font-size: 17px; }
.lk-under { margin-top: 18px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.lk-under .dr-lock { align-items: center; font-size: 14px; color: var(--ink-3); }
.lk-under .dr-lock .dr-ico { width: 16px; height: 16px; margin: 0; }
.lk-said { margin-top: 14px; text-align: center; font-size: 15px; font-weight: 550; color: var(--ink); }
.lk-said:empty { display: none; }
.lk-act { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 14px; background: rgb(16 20 42 / .06); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.lk-act:hover { background: rgb(16 20 42 / .1); }
.lk-act.plain { background: transparent; color: var(--ink-2); padding: 0 12px; }
.lk-act.plain:hover { background: var(--hover); color: var(--ink); }
.lk-act.danger { background: #b42318; color: #fff; }
.lk-act.danger:hover { background: #912018; }

/* Links made in this browser */
.lk-mine { margin-top: 44px; }
.lk-mine h2, .lk-about h2 { font-size: 19px; font-weight: 650; letter-spacing: -.016em; }
.lk-mine > p { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
.lk-mine ul { margin-top: 14px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); }
.lk-mine li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 10px 10px 20px; }
.lk-mine li + li { border-top: 1px solid var(--hairline); }
.lk-row { display: grid; min-width: 0; }
.lk-row b { font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; }
.lk-row small { font-size: 13.5px; color: var(--ink-3); }
.lk-open { flex: 1; padding: 4px 0; text-decoration: none; }
.lk-open:hover b { text-decoration: underline; text-underline-offset: 3px; }
.lk-row-acts, .lk-ask { display: inline-flex; align-items: center; gap: 6px; }
.lk-ask > span { font-size: 14.5px; color: var(--ink-2); margin-right: 2px; }
.lk-row-error { flex-basis: 100%; font-size: 13.5px; font-weight: 550; color: #b42318; }
.lk-row-error:empty { display: none; }

/* Under the tool */
.lk-about { margin-top: 56px; text-align: left; }
.lk-mine, .lk-about h2 { text-align: left; }
.lk-about p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }

/* Tablets and phones */
@media (max-width: 640px) {
  .lk-card { margin-top: 28px; border-radius: 22px; }
  .lk-name { padding: 18px 18px 0; }
  .lk-name input { font-size: 22px; }
  .lk-card textarea { height: 150px; min-height: 150px; max-height: 360px; padding: 10px 18px 8px; }
  .lk-left, .lk-card .lk-error { margin-left: 18px; margin-right: 18px; }
  .lk-choose { margin: 4px 10px 0; padding: 16px 8px 4px; }
  .lk-foot { padding: 16px 10px 10px 18px; }
  .lk-under { justify-items: start; text-align: left; }
  .lk-under .dr-lock { align-items: flex-start; font-size: 13.5px; }
  .lk-under .dr-lock .dr-ico { margin-top: 2px; }
  .lk-mine li { padding-left: 16px; }
  .lk-about { margin-top: 44px; }
}
/* The box grows with the links pasted (up to its max-height, then it scrolls): by itself where the browser can, else
   page.js sets its height. A long link wraps onto the next line, whole, instead of running out of the box. Last, so it wins. */
@supports (field-sizing: content) { .lk-card textarea { field-sizing: content; height: auto; } }
