/*
 * Left.ly dashboard skin, 2026-04-29.
 * Loaded by the Left Coast Customize plugin so YOURLS core CSS can stay upstream-clean.
 */
:root {
  --bg: #1a1a1a;
  --bg-card: #222;
  --bg-header: #111;
  --bg-soft: #181818;
  --text: #e8e8e8;
  --text-dim: #9a9a9a;
  --text-muted: #707070;
  --border: #333;
  --border-strong: #3f3f3f;
  --accent: #4a9;
  --accent-soft: rgba(68, 170, 153, 0.14);
  --accent-strong: #58c4a3;
  --warning: #e8a040;
  --danger: #e05555;
  --success: #4a9;
  --info: #6ba3d6;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --radius: 8px;
  --radius-small: 4px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 18px;
  color: var(--text);
  background: var(--bg) !important;
  font: 14px/1.5 var(--font-sans);
  text-align: left;
}

div,
p,
td,
th,
input,
select,
textarea,
button {
  font-family: var(--font-sans);
  font-size: 14px;
}

a,
a:link,
a:active,
a:visited {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover,
a:focus {
  color: #7fd4c2;
  text-decoration: underline;
}

#wrap {
  width: min(1180px, calc(100vw - 36px));
  min-height: 150px;
  margin: 0 auto;
  padding: 18px;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.hide-if-no-js {
  display: none;
}

h1 {
  float: none;
  height: auto;
  max-width: none;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border);
}

h1 a {
  float: none;
  display: inline-block;
  color: var(--text) !important;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
  text-align: left;
}

h1 a:hover {
  text-decoration: none;
}

h1 a span {
  color: var(--accent-strong);
}

h1 a:hover span {
  color: var(--accent-strong);
  text-decoration: none;
}

#yourls-logo {
  display: none;
}

ul#admin_menu {
  display: flex;
  flex-wrap: wrap;
  min-height: 0;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border);
  list-style: none;
}

ul#admin_menu li {
  margin: 0;
  padding: 0;
  color: var(--text-muted);
}

ul#admin_menu li:hover {
  color: var(--text);
  list-style: none;
}

ul#admin_menu a,
.navigation .nav_link a,
.navigation .nav_current {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  text-decoration: none;
}

ul#admin_menu a:hover,
ul#admin_menu a:focus,
.navigation .nav_link a:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}

ul#admin_menu .leftcoast-plugin-pages {
  position: relative;
}

.leftcoast-plugin-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  min-height: 30px;
  padding: 0;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  cursor: pointer;
}

.leftcoast-plugin-menu-toggle:hover,
.leftcoast-plugin-menu-toggle:focus,
.leftcoast-plugin-pages.is-open .leftcoast-plugin-menu-toggle {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: var(--accent);
  outline: 0;
}

.leftcoast-plugin-menu-icon,
.leftcoast-plugin-menu-icon::before,
.leftcoast-plugin-menu-icon::after {
  display: block;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.leftcoast-plugin-menu-icon {
  position: relative;
}

.leftcoast-plugin-menu-icon::before,
.leftcoast-plugin-menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.leftcoast-plugin-menu-icon::before {
  top: -5px;
}

.leftcoast-plugin-menu-icon::after {
  top: 5px;
}

ul#admin_menu .leftcoast-plugin-menu-list {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  min-width: 220px;
  margin: 0;
  padding: 6px;
  background: var(--bg-header);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
  list-style: none;
}

ul#admin_menu .leftcoast-plugin-pages.is-open .leftcoast-plugin-menu-list,
ul#admin_menu .leftcoast-plugin-pages:focus-within .leftcoast-plugin-menu-list {
  display: grid;
  gap: 5px;
}

ul#admin_menu .leftcoast-plugin-menu-list li {
  margin: 0;
  padding: 0;
}

ul#admin_menu .leftcoast-plugin-menu-list a {
  display: flex;
  width: 100%;
  min-height: 30px;
  justify-content: flex-start;
  padding: 6px 8px;
  white-space: nowrap;
}

code,
tt,
pre {
  color: var(--text);
  background: var(--bg-header);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  font-family: var(--font-mono);
}

code,
tt {
  padding: 1px 4px;
}

input,
select,
textarea {
  max-width: 100%;
  color: var(--text);
  background: #151515;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
}

input.text,
select,
textarea,
Input.text {
  min-height: 32px;
  margin: 0;
  padding: 6px 8px;
  color: var(--text);
  background: #151515;
  border: 1px solid var(--border-strong);
}

input.text:focus,
textarea:focus,
select:focus {
  margin: 0;
  border-color: var(--accent);
  outline: 2px solid rgba(68, 170, 153, 0.25);
  outline-offset: 0;
}

input.button,
button,
.button,
input[type="submit"] {
  min-height: 32px;
  padding: 6px 10px;
  color: var(--text);
  font-weight: 650;
  background: #151515;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  cursor: pointer;
}

input.button:hover,
button:hover,
.button:hover,
input[type="submit"]:hover,
input.primary {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: var(--accent);
}

#new_url {
  clear: both;
  margin: 0 0 16px;
  padding: 0;
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

#new_url > div,
#new_url #feedback {
  padding: 12px;
  background: transparent;
}

#new_url_form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.add-url-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0;
  background: transparent;
}

.add-url-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  background: transparent;
}

.add-url-main-row #add-url {
  flex: 1 1 520px;
  min-width: 220px;
}

#add-url {
  width: min(560px, 100%);
}

#new_url #feedback {
  width: auto;
  margin: 8px 0 0;
  padding: 8px 10px;
  color: var(--warning);
  background: rgba(232, 160, 64, 0.12);
  border: 1px solid rgba(232, 160, 64, 0.45);
  border-radius: var(--radius-small);
}

#new_url #feedback .fail {
  color: var(--danger);
}

#shareboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
  overflow: visible;
}

#tweet {
  overflow: visible;
}

div.share,
#copybox,
#sharebox {
  float: none;
  width: min(100%, 520px);
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 14px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

div.share h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

div.share p {
  margin: 0 0 10px;
}

div.share small {
  color: var(--text-dim);
}

#copylink {
  width: 100%;
  cursor: pointer;
  background: #151515 url(../../../../images/copy.svg) right 8px center no-repeat;
  background-size: 16px 16px;
  padding-right: 32px;
}

#copylink:hover,
#copylink.hover,
#copylink:focus {
  background-position: right 8px center;
  border-color: var(--accent);
}

#origlink,
#statlink {
  display: inline;
  width: auto;
  max-width: 100%;
  color: var(--accent-strong);
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: baseline;
}

#tweet_body {
  float: none;
  width: 100%;
  min-height: 92px;
  height: auto;
  font-size: 13px;
  resize: vertical;
}

#charcount {
  float: right;
  min-width: 34px;
  padding: 2px 6px;
  color: var(--text-dim);
  background: #151515;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  text-align: center;
}

#charcount.negative {
  color: #ffb4b4;
  border-color: rgba(224, 85, 85, 0.45);
}

#share_links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--text-dim);
}

#share_links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px 5px 28px;
  color: var(--text);
  font-weight: 700;
  background-color: #151515;
  background-position: 8px center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
}

#share_links a:hover,
#share_links a:focus {
  color: var(--accent-strong);
  background-position: 8px center;
  border-color: var(--accent);
  text-decoration: none;
}

#share_tw {
  background-image: url(../../../../images/twitter.svg);
}

#share_fb {
  background-image: url(../../../../images/facebook.svg);
}

#tabs ul#headers,
ul.toggle_display {
  border-color: var(--border);
}

#tabs ul#headers li,
#tabs ul#headers li h2,
#stats_lines li {
  color: var(--text);
}

#tabs ul#headers li a,
#stats_lines li a {
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-small) var(--radius-small) 0 0;
}

#tabs ul#headers li a:hover,
#tabs ul#headers li a:focus,
#stats_lines li a:hover,
#stats_lines li a:focus {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}

#tabs ul#headers li a.selected,
#tabs ul#headers li a.selected:hover,
#stats_lines li a.selected,
#stats_lines li a.selected:hover {
  color: var(--accent-strong);
  background: var(--bg-card);
  border-color: var(--accent);
  border-bottom-color: var(--bg-card);
}

.tab,
ul.toggle_display {
  color: var(--text-dim);
  background: var(--bg-card);
}

#historical_clicks li:hover {
  background: var(--accent-soft) !important;
}

#details_clicks li.bestday,
#details_clicks li span.best_month,
#details_clicks li span.best_year {
  color: var(--accent-strong);
}

#longurl,
#informations,
#referrer_cell {
  color: var(--text);
}

.datepicker {
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.datepicker th,
.datepicker tfoot td {
  color: var(--text);
  background: var(--bg-header);
}

.datepicker tbody td {
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.datepicker tbody td.date {
  cursor: pointer;
}

.datepicker tbody td.date.over,
.datepicker tbody td.date:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.datepicker tbody td.date.chosen {
  color: #062217;
  background: #4fd38f;
  font-weight: 700;
}

td.url small a {
  color: var(--text-muted);
}

td.url .leftcoast-url-shortened {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
}

td.url .leftcoast-url-shortened strong {
  color: var(--text);
  font-weight: 650;
}

td.url .leftcoast-url-shortened span {
  color: var(--accent-strong);
  font-family: var(--font-mono);
  white-space: normal;
  overflow-wrap: anywhere;
}

table.tblSorter {
  width: 100%;
  max-width: 100%;
  margin: 10px 0 0;
  color: var(--text);
  background: var(--border);
  border: 1px solid var(--border);
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 13px;
  text-align: left;
}

table.tblSorter thead tr th,
table.tblSorter tfoot tr th,
table.tblSorter th.header {
  padding: 8px 10px;
  color: var(--text);
  background: var(--bg-header);
  border: 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

table.tblSorter tfoot tr th {
  color: var(--text-dim);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

table.tblSorter thead tr .tablesorter-header {
  padding-right: 24px;
  background-image: url(../../../../images/bg.svg);
  background-repeat: no-repeat;
  background-position: center right 8px;
  cursor: pointer;
}

table.tblSorter thead tr .sorter-false {
  background-image: none;
  cursor: default;
}

table.tblSorter tbody td {
  padding: 8px 10px;
  color: var(--text);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  vertical-align: top;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.index table.tblSorter th:first-child,
body.index table.tblSorter td.keyword,
body.bookmark table.tblSorter th:first-child,
body.bookmark table.tblSorter td.keyword {
  width: 156px;
}

body.index table.tblSorter th:nth-child(3),
body.index table.tblSorter td.timestamp,
body.bookmark table.tblSorter th:nth-child(3),
body.bookmark table.tblSorter td.timestamp {
  width: 92px;
}

body.index table.tblSorter th:nth-child(4),
body.index table.tblSorter td.ip,
body.bookmark table.tblSorter th:nth-child(4),
body.bookmark table.tblSorter td.ip {
  width: 118px;
}

body.index table.tblSorter th:nth-child(5),
body.index table.tblSorter td.clicks,
body.bookmark table.tblSorter th:nth-child(5),
body.bookmark table.tblSorter td.clicks {
  width: 86px;
}

body.index table.tblSorter th:nth-child(6),
body.index table.tblSorter td.actions,
body.bookmark table.tblSorter th:nth-child(6),
body.bookmark table.tblSorter td.actions {
  width: 128px;
}

table.tblSorter td.url,
table.tblSorter td.url a,
table.tblSorter td.url small {
  min-width: 0;
  overflow-wrap: anywhere;
}

table.tblSorter tbody td.ip {
  max-width: 9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.tblSorter tbody tr.normal-row td,
table.tblSorter tbody tr.alt-row td {
  background: var(--bg-card);
}

table.tblSorter tbody tr:nth-child(even) td {
  background: #202020;
}

table.tblSorter tbody tr.normal-row:hover td,
table.tblSorter tbody tr.alt-row:hover td,
table.tblSorter tbody tr:hover td {
  background: var(--accent-soft);
}

table.tblSorter thead tr .tablesorter-headerDesc {
  background-image: url(../../../../images/desc.svg);
  background-repeat: no-repeat;
  background-position: center right 8px;
}

table.tblSorter thead tr .tablesorter-headerAsc {
  background-image: url(../../../../images/asc.svg);
  background-repeat: no-repeat;
  background-position: center right 8px;
}

table.tblSorter thead tr .tablesorter-headerAsc,
table.tblSorter thead tr .tablesorter-headerDesc {
  color: var(--accent-strong);
  background-color: #151515;
}

table.tblSorter thead tr th span {
  margin-right: 10px;
}

table.tblSorter tfoot tr {
  background-color: var(--bg-soft);
}

table.tblSorter tr.edit-row td,
table.tblSorter tr.edit-row:hover td,
tr.edit-row td.edit-row {
  color: var(--text) !important;
  background: var(--bg-soft) !important;
  border-top: 1px solid var(--accent) !important;
}

tr.edit-row td.edit-row {
  padding: 12px 10px !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

tr.edit-row strong {
  display: inline-block;
  min-width: 78px;
  color: var(--text);
}

tr.edit-row input.text {
  box-sizing: border-box;
  width: min(100%, 680px);
  max-width: min(100%, 680px);
  margin: 3px 0 8px;
  color: var(--text);
  background: #151515;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
}

tr.edit-row input[id^="edit-url-"],
tr.edit-row input[id^="edit-title-"] {
  display: block;
  width: min(100%, 680px) !important;
  max-width: min(100%, 680px) !important;
}

tr.edit-row input.text:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

tr.edit-row input[id^="edit-keyword-"] {
  display: inline-block;
  width: min(62vw, 680px) !important;
  min-width: min(420px, 100%) !important;
  max-width: calc(100% - 120px) !important;
}

tr.edit-row input.button {
  color: var(--text);
  background: #151515;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
}

tr.edit-row .leftcoast-duplicate-actions {
  clear: both;
  margin-top: 10px;
}

tr.edit-row .leftcoast-duplicate-button {
  display: block;
  width: 100%;
  min-height: 30px;
  color: var(--text);
  background: #151515;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  font-weight: 700;
  cursor: pointer;
}

tr.edit-row .leftcoast-duplicate-button:hover,
tr.edit-row .leftcoast-duplicate-button:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

tr.edit-row .leftcoast-duplicate-button.loading,
tr.edit-row .leftcoast-duplicate-button.disabled {
  cursor: wait;
  opacity: 0.75;
}

td.keyword {
  min-width: 150px;
}

.leftcoast-copy-list {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.leftcoast-copy-field {
  display: grid;
  grid-template-columns: minmax(58px, 68px) 64px;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.leftcoast-copy-domain {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.2;
  text-align: right;
}

.leftcoast-copy-button {
  box-sizing: border-box;
  width: 64px;
  min-height: 26px;
  padding: 4px 6px;
  color: var(--text);
  background: #151515;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.leftcoast-copy-button:hover,
.leftcoast-copy-button:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.leftcoast-copy-button.is-copied {
  color: #062217;
  background: #4fd38f;
  border-color: #4fd38f;
  box-shadow: 0 0 0 2px rgba(79, 211, 143, 0.2);
}

body.desktop td.actions input,
body.desktop td.actions a {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

td.timestamp span.timestamp {
  display: none;
}

td.actions input.disabled,
td.actions input.loading {
  visibility: visible;
}

tr:hover td.actions input,
tr:hover td.actions a,
td.actions:focus-within input,
td.actions:focus-within a,
tr:focus-within td.actions input,
tr:focus-within td.actions a {
  opacity: 1;
  pointer-events: auto;
}

td.actions .button {
  display: block;
  float: left;
  width: 26px;
  height: 26px;
  min-height: 26px;
  margin: 0 5px 0 0;
  padding: 0;
  color: transparent;
  background-color: transparent;
  background-size: 15px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  text-indent: -9999px;
  outline: 0;
}

td.actions .button:hover,
td.actions .button:focus {
  background-color: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}

td.actions .button.disabled,
#add-button.disabled {
  border-color: var(--border);
  background-color: #2b2b2b;
}

td.actions .button.loading,
#add-button.loading {
  background: #332b18 url(../../../../images/loading.gif) center center no-repeat;
  color: transparent;
}

td.actions .button_share {
  background: transparent url(../../../../images/share.svg) center no-repeat;
}

td.actions .button_edit {
  background: transparent url(../../../../images/pencil.svg) center no-repeat;
}

td.actions .button_delete {
  background: transparent url(../../../../images/delete.svg) center no-repeat;
}

td.actions .button_stats {
  background: transparent url(../../../../images/chart_bar.svg) center no-repeat;
}

@media (max-width: 980px) {
  #wrap {
    width: calc(100vw - 20px);
    padding: 12px;
  }

  body.index table.tblSorter th:first-child,
  body.index table.tblSorter td.keyword,
  body.bookmark table.tblSorter th:first-child,
  body.bookmark table.tblSorter td.keyword {
    width: 136px;
  }

  body.index table.tblSorter th:nth-child(4),
  body.index table.tblSorter td.ip,
  body.bookmark table.tblSorter th:nth-child(4),
  body.bookmark table.tblSorter td.ip {
    display: none;
  }

  body.index table.tblSorter th:nth-child(6),
  body.index table.tblSorter td.actions,
  body.bookmark table.tblSorter th:nth-child(6),
  body.bookmark table.tblSorter td.actions {
    width: 116px;
  }

  td.actions .button {
    margin-right: 3px;
  }
}

#main_table tfoot th,
#main_table tfoot th div {
  font-size: 12px;
}

.error,
ul.error,
#error-message {
  color: #ffb4b4;
  background: rgba(224, 85, 85, 0.12);
  border-color: rgba(224, 85, 85, 0.4);
}

.warning,
ul.warning {
  color: #ffd79a;
  background: rgba(232, 160, 64, 0.12);
  border-color: rgba(232, 160, 64, 0.4);
}

.success,
ul.success {
  color: #95e5d5;
  background: rgba(68, 170, 153, 0.12);
  border-color: rgba(68, 170, 153, 0.4);
}

#login {
  max-width: 360px;
  margin: 70px auto 10px;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

#login p {
  margin: 0 0 12px;
  font-weight: 650;
}

#login .text {
  width: 100%;
}

#login ul {
  margin: 0 0 12px;
  padding-left: 0;
  list-style: none;
  text-indent: 0;
}

#login ul li {
  padding: 0 0 5px 20px;
}

#login ul.error li {
  background: transparent url(../../../../images/cancel.svg) top left no-repeat;
}

#login ul.warning li {
  background: transparent url(../../../../images/error.svg) top left no-repeat;
}

#login ul.success li {
  background: transparent url(../../../../images/accept.svg) top left no-repeat;
}

.sub_wrap {
  max-width: 760px;
  padding-bottom: 30px;
  color: var(--text-dim);
  text-align: left;
}

.sub_wrap span {
  color: var(--warning);
  background: rgba(232, 160, 64, 0.12);
  border-radius: var(--radius-small);
  padding: 0 3px;
}

a.bookmarklet {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 3px;
  padding: 5px 10px 5px 30px;
  color: var(--text);
  background: var(--bg-soft) url(../../../../images/favicon.svg) 8px center no-repeat;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
}

a.bookmarklet:hover {
  border-color: var(--accent);
  text-decoration: none;
}

#footer {
  width: min(1180px, calc(100vw - 36px));
  margin: 14px auto 0;
  text-align: center;
}

#footer p {
  max-width: none;
  margin: 0;
  padding: 10px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

#footer p a {
  background: transparent;
  padding-left: 0;
}

.notice {
  width: auto;
  margin: 0 0 12px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid rgba(68, 170, 153, 0.35);
  border-radius: var(--radius);
}

.jquery-notify-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 32768;
  width: 100%;
  padding: 14px 18px;
  color: var(--text);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  font: 14px/1.5 var(--font-sans);
  text-align: center;
  opacity: 0.98;
  text-shadow: none;
}

.jquery-notify-bar.error,
.jquery-notify-bar.fail {
  color: #ffb4b4;
  background: #2b1515;
}

.jquery-notify-bar.success {
  color: #95e5d5;
  background: #10261f;
}

.jquery-notify-bar.error span,
.jquery-notify-bar.fail span {
  background: transparent url("../../../../images/error.svg") no-repeat left center;
  padding-left: 22px;
}

.jquery-notify-bar.success span {
  background: transparent url("../../../../images/accept.svg") no-repeat left center;
  padding-left: 22px;
}

.notify-bar-close {
  position: absolute;
  right: 18px;
  left: auto;
  font-size: 12px;
}

tr.plugin.active a {
  font-weight: 700;
}

body.desktop tr.plugin td.plugin_desc small {
  visibility: hidden;
}

tr:hover.plugin td.plugin_desc small {
  visibility: visible;
}

#plugin_summary {
  color: var(--text-dim);
}

body.plugins table.tblSorter {
  table-layout: fixed;
}

body.plugins table.tblSorter th:nth-child(1),
body.plugins table.tblSorter td.plugin_name {
  width: 24%;
}

body.plugins table.tblSorter th:nth-child(2),
body.plugins table.tblSorter td.plugin_version {
  width: 82px;
}

body.plugins table.tblSorter th:nth-child(4),
body.plugins table.tblSorter td.plugin_author {
  width: 18%;
}

body.plugins table.tblSorter th:nth-child(5),
body.plugins table.tblSorter td.plugin_actions {
  width: 116px;
}

body.plugins table.tblSorter td.plugin_name,
body.plugins table.tblSorter td.plugin_desc,
body.plugins table.tblSorter td.plugin_author,
body.plugins table.tblSorter td.plugin_actions {
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
}

body.plugins table.tblSorter td.plugin_actions {
  white-space: nowrap;
}

body.desktop.plugins td.actions a,
body.plugins td.plugin_actions a {
  opacity: 1;
  pointer-events: auto;
}

body.plugins td.plugin_actions a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  color: var(--text);
  background: #151515;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-small);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

body.plugins td.plugin_actions a:hover,
body.plugins td.plugin_actions a:focus {
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-color: var(--accent);
  text-decoration: none;
}

#plugin_summary strong,
td.plugin_name,
td.plugin_version,
td.plugin_author,
td.plugin_actions {
  color: var(--text);
}

td.plugin_desc small {
  color: var(--text-muted);
}

#delete-confirm-dialog {
  width: min(50em, calc(100vw - 32px));
  height: auto;
  padding: 0;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

#delete-confirm-dialog > div[name="dialog_title"] {
  padding: 12px 16px;
  color: var(--text);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  border-start-start-radius: var(--radius);
  border-start-end-radius: var(--radius);
  font-size: 18px;
  text-align: left;
}

#delete-confirm-dialog div.confirm-message {
  width: auto;
  height: auto;
  min-height: 120px;
  padding: 16px;
  overflow: auto;
  background: var(--bg-card);
  text-align: left;
}

#delete-confirm-dialog div.confirm-message ul {
  border-left: 4px solid var(--accent);
  list-style: none;
  padding: 0 0 0 12px;
}

#delete-confirm-dialog div.confirm-message ul li {
  margin-bottom: 8px;
}

#delete-confirm-dialog div.confirm-message ul li span {
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  padding: 1px 5px;
}

#delete-confirm-dialog div.button-group {
  width: auto;
  height: auto;
  padding: 12px 16px;
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  border-end-start-radius: var(--radius);
  border-end-end-radius: var(--radius);
  text-align: right;
}

#delete-confirm-dialog::backdrop {
  background-color: #000;
  opacity: 0.74;
}

@media (max-width: 760px), (max-device-width: 1024px) {
  body {
    padding: 10px;
    font-size: 16px;
    line-height: 1.45;
  }

  #wrap,
  #footer {
    width: 100%;
  }

  #wrap {
    padding: 10px;
    border-radius: 6px;
  }

  div,
  p,
  td,
  th,
  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  h1 {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  h1 a {
    font-size: 18px;
  }

  p {
    margin: 12px 0;
  }

  input.text,
  input[type="text"],
  input[type="url"],
  input[type="search"],
  select,
  textarea,
  input.button,
  button,
  .button {
    min-height: 44px;
    font-size: 16px;
  }

  ul#admin_menu,
  .leftcoast-org-rail {
    gap: 6px;
  }

  .leftcoast-org-rail {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  #new_url_form {
    display: flex;
  }

  #new_url > div,
  #new_url #feedback {
    padding: 10px;
  }

  .add-url-fields,
  .add-url-row {
    gap: 8px;
  }

  #new_url_form input,
  #new_url_form select {
    width: 100%;
    margin-bottom: 8px;
  }

  #add-button {
    width: 100%;
    min-height: 44px;
  }

  #filter_form,
  #pagination,
  #filter_buttons {
    float: none;
    width: 100%;
    max-width: none;
    text-align: left;
  }

  #filter_form form,
  #filter_options,
  #filter_buttons {
    display: grid;
    gap: 10px;
  }

  #filter_form input.text,
  #filter_form select,
  #filter_buttons input {
    width: 100%;
    max-width: none;
    min-height: 44px;
    font-size: 16px;
  }

  #pagination {
    margin-top: 14px;
  }

  .navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .navigation .nav_total {
    flex: 1 1 100%;
    margin-bottom: 0;
    color: var(--text);
    font-size: 17px;
    font-weight: 650;
  }

  .navigation a,
  .navigation span {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.index #main_table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    white-space: normal;
  }

  body.index #main_table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body.index #main_table tbody {
    display: grid;
    gap: 12px;
  }

  body.index #main_table tbody {
    order: 1;
  }

  body.index #main_table tfoot {
    order: 2;
    margin-top: 14px;
  }

  body.index #main_table tfoot,
  body.index #main_table tfoot tr,
  body.index #main_table tfoot th {
    display: block;
    width: 100%;
  }

  body.index #main_table tbody tr:not(.edit-row) {
    display: grid;
    gap: 12px;
    padding: 14px;
    background: #202020;
    border: 1px solid #383838;
    border-radius: var(--radius);
  }

  body.index #main_table tbody tr:not(.edit-row) td {
    display: block;
    width: auto !important;
    max-width: none;
    padding: 0;
    color: var(--text);
    background: transparent !important;
    border: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  body.index #main_table tbody tr:not(.edit-row) td::before {
    display: block;
    margin-bottom: 5px;
    color: #9f9f9f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0;
  }

  body.index #main_table tbody td.keyword::before {
    content: "Short URLs";
  }

  body.index #main_table tbody td.url::before {
    content: "Destination";
  }

  body.index #main_table tbody td.timestamp::before {
    content: "Created";
  }

  body.index #main_table tbody td.clicks::before {
    content: "Clicks";
  }

  body.index #main_table tbody td.ip {
    display: none !important;
  }

  body.index #main_table tbody td.actions::before {
    content: none;
  }

  body.index #main_table tbody td.url a,
  body.index #main_table tbody td.url small,
  body.index #main_table tbody td.url .leftcoast-url-shortened,
  body.index #main_table tbody td.url .leftcoast-org-badges,
  body.index #main_table tbody td.url .leftcoast-smart-dashboard-badges {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.index #main_table tbody td.url > a {
    color: var(--accent-strong);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.3;
  }

  body.index #main_table tbody td.url small,
  body.index #main_table tbody td.url small a {
    margin-top: 8px;
    color: #a8a8a8;
    font-size: 15px;
    line-height: 1.35;
  }

  body.index #main_table tbody td.url .leftcoast-url-shortened {
    margin-top: 10px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.35;
  }

  body.index #main_table tbody td.url .leftcoast-url-shortened span {
    color: var(--accent-strong);
    font-size: 16px;
  }

  body.index #main_table tbody td.timestamp,
  body.index #main_table tbody td.clicks {
    color: var(--text);
    font-size: 17px;
    line-height: 1.3;
  }

  body.index #main_table tbody td.timestamp span.timestamp {
    display: none;
  }

  body.index .leftcoast-copy-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.index .leftcoast-copy-field {
    grid-template-columns: 56px minmax(0, 1fr);
    max-width: none;
  }

  body.index .leftcoast-copy-domain {
    color: #a0a0a0;
    font-size: 12px;
  }

  body.index .leftcoast-copy-button {
    width: 100%;
    min-height: 44px;
    font-size: 12px;
  }

  body.index td.actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }

  body.index td.actions input.button,
  body.index td.actions a,
  body.index td.actions .button {
    display: inline-flex;
    float: none;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(50% - 6px);
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 44px;
    margin: 0;
    padding: 9px 10px;
    color: var(--text);
    background-color: #151515;
    background-image: none;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-small);
    font-size: 13px;
    font-weight: 700;
    text-indent: 0;
    opacity: 1;
    pointer-events: auto;
  }

  body.index td.actions .button:hover,
  body.index td.actions .button:focus {
    color: var(--accent-strong);
  }

  body.index #main_table tbody tr.edit-row {
    display: block;
    padding: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
  }

  body.index #main_table tbody tr.edit-row td {
    display: block;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.index tr.edit-row strong {
    display: block;
    min-width: 0;
    margin-top: 8px;
  }

  body.index tr.edit-row input.text,
  body.index tr.edit-row input[id^="edit-keyword-"],
  body.index tr.edit-row input[id^="edit-url-"],
  body.index tr.edit-row input[id^="edit-title-"],
  body.index tr.edit-row select {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body.index tr.edit-row input.button,
  body.index tr.edit-row .leftcoast-duplicate-button {
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
  }

  body.index .leftcoast-org-edit-controls,
  body.index .leftcoast-smart-edit-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.index .leftcoast-smart-edit-url {
    grid-column: auto;
  }
}
