:root {
	--background: #161d2e;
	--panel: #1d2740;
	--text: #d6d9e0;
	--dim: #8b93a7;
	--accent: #6ea8fe;
	--border: #3a5a9c;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 1.5rem 2.5rem;
	background: var(--background);
	color: var(--text);
	font-family: Menlo, Monaco, "Courier New", monospace;
	font-size: 14px;
	line-height: 1.5;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.bar {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding-bottom: 0.75rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--border);
}

.bar .home {
	font-size: 1.1rem;
}

.bar .who {
	color: var(--dim);
}

.buttons {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.buttons form {
	margin: 0;
}

.button,
button {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	border: 1px solid var(--border);
	border-radius: 3px;
	background: var(--panel);
	color: var(--accent);
	font: inherit;
	cursor: pointer;
}

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

.quick {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 0.75rem;
}

.quick select {
	margin-top: 0;
}

table.bugs {
	width: 100%;
	border-collapse: collapse;
}

table.bugs th {
	text-align: left;
	color: var(--dim);
	font-weight: normal;
	border-bottom: 1px solid var(--border);
	padding: 0.35rem 0.9rem;
	white-space: nowrap;
}

table.bugs th a {
	color: var(--dim);
}

table.bugs th a:hover {
	color: var(--accent);
}

table.bugs td {
	padding: 0.35rem 0.9rem;
	border-bottom: 1px solid rgba(58, 90, 156, 0.3);
	white-space: nowrap;
}

table.bugs th:first-child,
table.bugs td:first-child {
	padding-left: 0;
}

table.bugs .col-id {
	min-width: 7ch;
}

.row-link {
	display: block;
	color: inherit;
}

.row-link:hover {
	text-decoration: none;
}

table.bugs tr:hover td {
	background: rgba(110, 168, 254, 0.1);
}

.pill {
	display: inline-block;
	padding: 0.1rem 0.55rem;
	border-radius: 5px;
	color: #f0f0f2;
	font-size: 0.9em;
	white-space: nowrap;
}

.edit-link {
	font-size: 0.85em;
	color: var(--dim);
}

.edit-link:hover {
	color: var(--accent);
}

.has-comments {
	font-size: 0.85em;
}

body.embed {
	padding: 0.5rem;
}

.embed-link {
	margin-top: 1.5rem;
	color: var(--dim);
}

.embed-link summary {
	cursor: pointer;
}

.embed-link input {
	margin-top: 0.4rem;
	max-width: 48rem;
}

table.bugs td.col-subject {
	width: 100%;
	white-space: normal;
}

.panel {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 1rem;
	margin-bottom: 1rem;
	max-width: 50rem;
}

label {
	display: block;
	margin-bottom: 0.75rem;
	color: var(--dim);
}

label.check {
	display: inline-block;
	margin-right: 1rem;
	color: var(--text);
}

input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
	display: block;
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.4rem;
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: 3px;
	color: var(--text);
	font: inherit;
}

select {
	width: auto;
	min-width: 10rem;
}

textarea {
	field-sizing: content;
	min-height: 10lh;
	max-height: 30lh;
	resize: vertical;
}

textarea.short {
	min-height: 3lh;
}

fieldset {
	border: 1px solid var(--border);
	border-radius: 3px;
	margin: 0 0 0.75rem 0;
	padding: 0.5rem 0.75rem;
}

legend {
	color: var(--dim);
	padding: 0 0.3rem;
}

.bug h1 {
	font-size: 1.2rem;
	margin: 0 0 0.25rem 0;
}

.meta {
	color: var(--dim);
	margin: 0 0 0.75rem 0;
}

.edit {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.edit select {
	margin-top: 0;
}

.body {
	white-space: normal;
	margin-bottom: 1rem;
}

.comment {
	border-top: 1px solid rgba(58, 90, 156, 0.4);
	padding-top: 0.75rem;
	margin-top: 0.75rem;
	max-width: 50rem;
}

.shot {
	max-width: 100%;
	border: 1px solid var(--border);
	border-radius: 3px;
}

.empty,
.hint {
	color: var(--dim);
}

.error {
	color: #ff6b6b;
}

button.danger {
	color: #ff6b6b;
	border-color: #7a2b2b;
}

button.danger:hover {
	border-color: #ff6b6b;
}

.filed {
	color: var(--dim);
	margin-top: 0;
}

@media (max-width: 40rem) {
	body {
		padding: 1rem;
	}
}
