/* stylelint-disable property-no-vendor-prefix */
/* stylelint-disable property-no-vendor-prefix */

:root {
    --primary: #0996f8;
    --primary-accent: #0670cc;
    --primary-pressed: #005bab;
    --primary-pressed-accent: #004480;
    --secondary-hover: #ffffff;
    --secondary-pressed: #efefef;
}
/* Global */
html,
body {
    background: transparent;
    box-sizing: border-box;
    color: #222426;
    cursor: default;
    display: flex;
    flex-direction: column;
    font: caption;
    margin: 0;
    padding: 0;
    -moz-user-select: none;
    user-select: none;
}

body * {
    box-sizing: border-box;
    text-align: start;
}

.browser-style {
    -moz-appearance: none;
    -webkit-appearance: none;
    margin-bottom: 6px;
    text-align: left;
}

/* stylelint-disable property-no-vendor-prefix */
/* Buttons */
button.browser-style,
select.browser-style {
    background-color: #fbfbfb;
    border: 1px solid #b1b1b1;
    box-shadow: 0 0 0 0 transparent;
    font: caption;
    height: 24px;
    outline: 0 !important;
    padding: 0 8px 0;
    transition-duration: 250ms;
    transition-property: box-shadow, border;
}

select.browser-style {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNOCwxMkwzLDcsNCw2bDQsNCw0LTQsMSwxWiIgZmlsbD0iIzZBNkE2QSIgLz4KPC9zdmc+Cg==);
    background-position: calc(100% - 4px) center;
    background-repeat: no-repeat;
    padding-inline-end: 24px;
    text-overflow: ellipsis;
}

label.browser-style-label {
    font: caption;
}

button.browser-style::-moz-focus-inner {
    border: 0;
    outline: 0;
}

/* Dropdowns */
select.browser-style {
    background-color: #fff;
    border: 1px solid #b1b1b1;
    box-shadow: 0 0 0 0 transparent;
    font: caption;
    height: 32px;
    border-radius: 4px;
    outline: 0 !important;
    padding: 0 8px 0;
    transition-duration: 250ms;
    transition-property: box-shadow, border;
}

select.browser-style {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNOCwxMkwzLDcsNCw2bDQsNCw0LTQsMSwxWiIgZmlsbD0iIzZBNkE2QSIgLz4KPC9zdmc+Cg==);
    background-position: calc(100% - 4px) center;
    background-repeat: no-repeat;
    padding-inline-end: 24px;
    text-overflow: ellipsis;
}

select.browser-style:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #000;
}

select.browser-style:-moz-focusring * {
    color: #000;
    text-shadow: none;
}

button.browser-style:disabled,
select.browser-style:disabled {
    color: #999;
    opacity: 0.5;
}

button.browser-style.focused,
select.browser-style.focused {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(97, 181, 255, 0.75);
}

button.browser-style.default {
    background-color: var(--primary);
    border-color: var(--primary-accent);
    color: #fff;
}

button.browser-style.default.hover {
    background-color: #0670cc;
    border-color: #005bab;
}

button.browser-style.default.pressed {
    background-color: #005bab;
    border-color: #004480;
}

button.browser-style.default.focused {
    border-color: #fff;
}

.browser-style > label {
    -moz-user-select: none;
}

.browser-style.disabled > label {
    color: #999;
    opacity: 0.5;
}

/* Radio Buttons */
.browser-style > input[type="radio"] {
    -moz-appearance: none;
    background-color: #fff;
    background-position: center;
    border: 1px solid #b1b1b1;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 16px;
    margin-right: 6px;
    vertical-align: text-top;
    width: 16px;
}

.browser-style > input[type="radio"]:hover,
.browser-style.hover > input[type="radio"]:not(:active) {
    background-color: #fbfbfb;
    border-color: #b1b1b1;
}

.browser-style > input[type="radio"]:hover:active,
.browser-style.pressed > input[type="radio"]:not(:active),
.browser-style > input[type="checkbox"]:hover:active,
.browser-style.pressed > input[type="checkbox"]:not(:active) {
    background-color: var(--secondary-hover);
    border-color: #858585;
}

button.browser-style:hover:not(.pressed):not(:disabled):not(.focused),
select.browser-style:hover:not(.pressed):not(:disabled):not(.focused) {
    background-color: var(--secondary-hover);
    border: 1px solid #b1b1b1;
}

.browser-style > input[type="radio"]:checked {
    background-color: var(--primary);
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8Y2lyY2xlIGN4PSI4IiBjeT0iOCIgcj0iNCIgZmlsbD0iI2ZmZiIgLz4KPC9zdmc+Cg==);
    border-color: var(--primary-accent);
}

.browser-style > input[type="radio"]:checked:hover,
.browser-style.hover > input[type="radio"]:checked:not(:active) {
    background-color: #0670cc;
    border-color: #005bab;
}

.browser-style > input[type="radio"]:checked:hover:active,
.browser-style.pressed > input[type="radio"]:checked:not(:active) {
    background-color: #005bab;
    border-color: #004480;
}

.browser-style.focused > input[type="radio"] {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(97, 181, 255, 0.75);
}

.browser-style.focused > input[type="radio"]:checked {
    border-color: #fff;
}

/* Checkboxes */
.browser-style > input[type="checkbox"] {
    -moz-appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-position: center;
    border: 1px solid #b1b1b1;
    content: "";
    display: inline-block;
    height: 16px;
    margin-right: 6px;
    vertical-align: text-top;
    width: 16px;
}

.browser-style > input[type="checkbox"]:hover,
.browser-style.hover > input[type="checkbox"]:not(:active) {
    background-color: #fbfbfb;
    border-color: #b1b1b1;
}

.browser-style > input[type="checkbox"]:checked {
    background-color: var(--primary);
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNNy43LDEyLjkgQzcuNCwxMy4zIDYuOCwxMy40IDYuNCwxMyBMMy4yLDkuOCBDMi44LDkuNCAyLjgsOC42IDMuMiw4LjIgQzMuNiw3LjggNC40LDcuOCA0LjgsOC4yIEw2LjksMTAuMyBMMTEuMSw0LjQgQzExLjUsMy45IDEyLjIsMy44IDEyLjcsNC4xIEMxMy4yLDQuNSAxMy4zLDUuMiAxMyw1LjcgTDcuNywxMi45IEw3LjcsMTIuOSBaIiBmaWxsPSIjZmZmIiAvPgo8L3N2Zz4K);
    border-color: #0670cc;
}

.browser-style > input[type="checkbox"]:checked:hover,
.browser-style.hover > input[type="checkbox"]:checked:not(:active) {
    background-color: #0670cc;
    border-color: #005bab;
}

.browser-style > input[type="checkbox"]:checked:hover:active,
.browser-style.pressed > input[type="checkbox"]:checked:not(:active) {
    background-color: #005bab;
    border-color: #004480;
}

.browser-style.focused > input[type="checkbox"] {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(97, 181, 255, 0.75);
}

.browser-style.focused > input[type="checkbox"]:checked {
    border-color: #fff;
}

/* Expander Button */
button.browser-style.expander {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNOCwxMkwzLDcsNCw2bDQsNCw0LTQsMSwxWiIgZmlsbD0iIzZBNkE2QSIgLz4KPC9zdmc+Cg==);
    background-position: center;
    background-repeat: no-repeat;
    height: 24px;
    padding: 0;
    width: 24px;
}

/* Interactive States */

button.browser-style:hover:active:not(:disabled):not(.focused),
select.browser-style:hover:active:not(:disabled):not(.focused) {
    background-color: var(--secondary-pressed);
    border: 1px solid #858585;
}

button.browser-style.default:hover:not(.pressed):not(:disabled):not(.focused) {
    background-color: #0670cc;
    border-color: #005bab;
}

button.browser-style.default:hover:active:not(.hover):not(:disabled):not(.focused) {
    background-color: #005bab;
    border-color: #004480;
}

button.browser-style:focus:not(:disabled) {
    border-color: #fff !important;
    box-shadow: 0 0 0 2px rgba(97, 181, 255, 0.75);
}

/* Fields */
.browser-style > input[type="text"],
.browser-style > input[type="number"],
textarea.browser-style {
    background-color: #fff;
    border: 1px solid #b1b1b1;
    border-radius: 4px;
    box-shadow: 0 0 0 0 rgba(97, 181, 255, 0);
    font: caption;
    padding: 0 8px 0;
    transition-duration: 250ms;
    transition-property: box-shadow;
}

.browser-style > input[type="text"],
.browser-style > input[type="number"] {
    height: 32px;
}

.browser-style > input::placeholder {
    color: #b8b8b8;
}

.browser-style > input[type="text"].hover,
.browser-style > input[type="number"].hover,
textarea.browser-style.hover {
    border: 1px solid #858585;
}

.browser-style > input[type="text"]:disabled,
.browser-style > input[type="number"]:disabled,
textarea.browser-style:disabled {
    color: #999;
    opacity: 0.5;
}

.browser-style > input[type="text"].focused,
.browser-style > input[type="number"].focused,
textarea.browser-style.focused {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(97, 181, 255, 0.75);
}

/* Interactive States */
.browser-style > input[type="text"]:not(:disabled):hover,
.browser-style > input[type="number"]:not(:disabled):hover,
textarea.browser-style:not(:disabled):hover {
    border: 1px solid #858585;
}

.browser-style > input[type="text"]:focus,
.browser-style > input[type="text"]:focus:hover,
.browser-style > select:focus,
.browser-style > select:focus:hover,
.browser-style > input[type="number"]:focus,
.browser-style > input[type="number"]:focus:hover,
textarea.browser-style:focus,
textarea.browser-style:focus:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(97, 181, 255, 0.75);
}

/* stylelint-disable property-no-vendor-prefix */
.panel-section {
    display: flex;
    flex-direction: row;
}

.panel-section-separator {
    background-color: rgba(0, 0, 0, 0.15);
    min-height: 1px;
}

/* Panel Section - Header */
.panel-section-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding: 16px;
}

.panel-section-header > .icon-section-header {
    background-position: center center;
    background-repeat: no-repeat;
    height: 32px;
    margin-right: 16px;
    position: relative;
    width: 32px;
}

.panel-section-header > .text-section-header {
    align-self: center;
    font-size: 1.385em;
    font-weight: lighter;
}

.panel-section-body {
    padding: 1em;
    overflow: auto;
}

/* Panel Section - List */
.panel-section-list {
    flex-direction: column;
    padding: 4px 0;
}

.panel-list-item {
    align-items: center;
    display: flex;
    flex-direction: row;
    height: 24px;
    padding: 0 16px;
}

.panel-list-item:not(.disabled):hover {
    background-color: rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.panel-list-item:not(.disabled):hover:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.panel-list-item.disabled {
    color: #999;
}

.panel-list-item > .icon {
    flex-grow: 0;
    flex-shrink: 0;
}

.panel-list-item > .text {
    flex-grow: 10;
}

.panel-list-item > .text-shortcut {
    color: #808080;
    font-family: "Lucida Grande", caption;
    font-size: 0.847em;
    justify-content: flex-end;
}

.panel-section-list .panel-section-separator {
    margin: 4px 0;
}

.captioned-separator {
    font-size: large;
    font-weight: 500;
    margin: 8px 0;
    overflow: hidden;
    z-index: 99;
}
.captioned-separator::after {
    content: "";
    display: inline-block;
    height: 0.5em;
    vertical-align: bottom;
    width: 100%;
    margin-right: -100%;
    margin-left: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

/* Panel Section - Form Elements */
.panel-section-formElements {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.panel-formElements-item {
    align-items: center;
    display: flex;
    flex-direction: row;
    margin-bottom: 12px;
}

.panel-formElements-item:last-child {
    margin-bottom: 0;
}

.panel-formElements-item label {
    flex-shrink: 0;
    margin-right: 6px;
    text-align: right;
}

.panel-formElements-item input[type="text"],
.panel-formElements-item select.browser-style {
    flex-grow: 1;
}

/* Panel Section - Footer */
.panel-section-footer {
    background-color: rgba(0, 0, 0, 0.06);
    /* border-top: 1px solid rgba(0, 0, 0, 0.15); */
    color: #1a1a1a;
    display: flex;
    flex-direction: row;
    height: 41px;
    min-height: 41px;
    margin-top: -1px;
    padding: 0;
}

.panel-section-footer-spacer {
    flex-grow: 2;
}

.panel-section-footer-button {
    flex: 1 1 auto;
    height: 100%;
    margin: 0 -1px;
    padding: 12px;
    text-align: center;
    flex-basis: 0;
}

.panel-section-footer-button > .text-shortcut {
    color: #808080;
    font-family: "Lucida Grande", caption;
    font-size: 0.847em;
}

.panel-section-footer-button:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.panel-section-footer-button:hover:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.panel-section-footer-button.default {
    background-color: var(--primary);
    color: #fff;
}

.panel-section-footer-button.default:hover {
    background-color: #0670cc;
}

.panel-section-footer-button.default:hover:active {
    background-color: #005bab;
}

.panel-section-footer-separator {
    background-color: rgba(0, 0, 0, 0.1);
    width: 1px;
    z-index: 99;
}

/* Panel Section - Tabs */
.panel-section-tabs {
    color: #1a1a1a;
    display: flex;
    flex-direction: row;
    height: 41px;
    margin-bottom: -1px;
    padding: 0;
}

.panel-section-tabs-button {
    flex: 1 1 auto;
    height: 100%;
    margin: 0 -1px;
    padding: 12px;
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, 0);
    border-left: 1px solid rgba(0, 0, 0, 0);
    transition: color 0.2s, background-color 0.2s;
    position: relative;
}

.panel-section-tabs-button:hover:not(.selected) {
    background-color: rgba(0, 0, 0, 0.13);
}

.panel-section-tabs-button:hover:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.panel-section-tabs-button.selected {
    box-shadow: 0 1px 0 var(--primary-accent) inset,
        0px 4px 0px var(--primary) inset;
    color: var(--primary);
}

.panel-section-tabs-button::after {
    content: "";
    background-color: hsl(205, 94%, 50%);
    width: 20%;
    height: 1px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    opacity: 0;
    transition: 0.2s;
    transition-timing-function: ease-out;
}
.panel-section-tabs-button:hover::after {
    content: "";
    opacity: 100;
    width: 100%;
}
.panel-section-tabs-button:not(.selected) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    background-color: rgba(0, 0, 0, 0.05);
}
.panel-section-tabs-button:not(.selected)::after {
    content: "";
    background-color: rgba(0, 0, 0, 0.1);
    width: 70%;
    height: 2px;
}
.panel-section-tabs-button:not(.selected):hover::after {
    width: 100%;
}

.panel-section-tabs-button.selected:hover {
    color: var(--primary-accent);
}

.panel-section-tabs-separator {
    background-color: rgba(0, 0, 0, 0.1);
    width: 1px;
    z-index: 99;
}

.form-group {
    position: relative;
    width: 300px;
}
input[type="text"].form-control {
    padding-right: 32px;
    width: 100%;
}
input[type="text"].form-control-prefix {
    padding-left: 62px;
    width: 100%;
}
.form-control-feedback {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    line-height: 32px;
    width: 32px;
    text-align: center;
    z-index: 2;
}
.form-control-feedback-prefix {
    display: block;
    position: absolute;
    left: 1px;
    top: 0.9px;
    line-height: 30px;
    width: 56px;
    text-align: center;
    z-index: 2;
    background-color: var(--primary);
    color: white;
    border-radius: 3px 0px 0px 3px;
}
.form-control-feedback:hover {
    color: #005bab;
}
.form-control-feedback-prefix:hover {
    background-color: var(--primary-accent);
}
.form-control-feedback:hover:active,
.form-control-feedback:active {
    color: var(--primary-accent);
}
.form-control-feedback-prefix:hover:active,
.form-control-feedback-prefix:active {
    background-color: var(--primary-pressed);
}

.settings-panel > .browser-style {
    margin: 0px;
    width: 100%;
}
.settings-panel {
    display: grid;
    grid-auto-rows: max-content;
    grid-column-gap: 16px;
    grid-row-gap: 10px;
    width: 100%;
    max-width: 550px;
    grid-template-columns: 1fr 2fr;
    margin-left: auto;
    margin-right: auto;
}
.settings-input {
    grid-column: 2 / 3;
}
.settings-label {
    grid-column: 1 / 2;
    align-self: center;
}

.about-panel {
    width: 100%;
}

.about-panel ul {
    list-style-type: none;
}

.about-panel a {
    text-decoration: none;
    margin-right: 1em;
}
