/*
 * Global styles _after_ Foundation resets have been applied.
 */
html, body {
    height: 100%;
    min-height: 100%;
}

/*
 * Override some F5 styles
 */
.row {
    max-width: 95%;
}

/*
 * Site-wide styles
 */
body:not(.modal) .content-main {
    flex: 1 1 auto;
    margin-top: 1em;
    min-height: 0;
    margin-bottom: 0;
}

body:not(.modal) .content-main:after {
    content: "";
    display: block;
}

footer, .page-wrap:after {
    height: 3em;
}

body:not(.modal) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body:not(.modal) > footer {
    flex: 0 0 auto;
}

body.model-edit-body {
    overflow: hidden;
}

body.model-edit-body .content-main {
    display: flex;
    flex: 1 1 auto;
    margin-top: 0.6em;
    min-height: 0;
}

body.model-edit-body .content-main:after {
    display: none;
}

body.model-edit-body .content-main > .columns {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    float: none;
    min-height: 0;
    width: 100%;
}

body.model-edit-body footer {
    overflow: hidden;
}

body.model-edit-body footer hr {
    margin: 0 0 0.55rem;
}

body.model-edit-body footer .row {
    line-height: 1.25;
}

/*
 * Header styling
 * templates/fragments/header.html
 */
.top-bar {
}
.top-bar .title-area .name {
    font-family: walkway_blackregular;
    font-size: 1.6em;
    margin-left: 0.25em;
}
.top-bar .title-area .name a {
    display: inline-block;
    color: white;
    align-items: center;
}
.top-bar .title-area .name img {
    height: 1em;
}

/*
 * Styling for user sidebar
 * templates/layouts/user.html
 */
.user-profile-sidebar .user-image img {
    width: 160px;
    height: 160px;
}
.user-profile-sidebar .user-name {
}
.user-profile-sidebar .user-bio {
    padding-bottom: 1em;
}
.user-profile-sidebar .user-link {
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position-y: center;
    padding-left: 24px;
}
.user-profile-sidebar .user-link-citsci {
    background-image: url("https://www.citsci.org//favicon.ico");
}
.user-profile-sidebar .user-link-inaturalist {
    background-image: url("http://www.inaturalist.org/favicon.ico");
}
.user-profile-sidebar .user-link-twitter {
    background-image: url("https://twitter.com/favicon.ico");
}
.user-profile-sidebar .user-link-zooniverse {
    background-image: url('https://static.zooniverse.org/www.zooniverse.org/favicon.ico');
}

/*
 * Project add page
 * templates/project/add.html
 */
#project-add-form {

}

/*
 * Project edit page
 * templates/project/edit.html
 */
#project-edit-form {

}

/* override default setting */
.tabs-content {
    margin: 0;
}
.tabs-content > .content {
    padding: 0;
}

/*
 * Project listing table
 * templates/fragments/project-list.html
 */
table.project-list tr {
    vertical-align: top;
}

/*
 * Project view page
 * templates/project/view.html
 */
.button-group.project-controls {
    margin: 2em 0;
}

/*
 * Model add page
 * templates/model/add.html
 */
#model-add-form {

}

/*
 * Model edit page
 * templates/model/edit.html
 */
.model-edit-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    position: relative;
    isolation: isolate;
}

.model-edit-page > .row {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
}

.model-edit-page .tabs-content.contained,
body.model-edit-body .content-main > .columns > .tabs-content.contained {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: hidden;
}

.model-edit-page .tabs-content.contained > .content,
body.model-edit-body .content-main > .columns > .tabs-content.contained > .content {
    height: 100%;
    min-height: 0;
}

.model-edit-page .tabs-content.contained > .content.active,
body.model-edit-body .content-main > .columns > .tabs-content.contained > .content.active {
    display: flex;
    flex-direction: column;
}

body.model-edit-body .content-main > .columns > .row {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
}

.model-edit-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.model-edit-controls .tabs.right {
    float: none;
}

.model-edit-controls .button,
.model-edit-controls button {
    margin: 0;
}

.model-tutorial-button {
    vertical-align: middle;
}

.model-tutorial-menu-backdrop {
    position: fixed;
    z-index: 280;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    transition: opacity 160ms ease;
}

.model-tutorial-menu-backdrop.model-tutorial-menu-open {
    opacity: 1;
}

.model-tutorial-menu {
    position: relative;
    width: 42rem;
    max-width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.35rem;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    color: #243246;
}

.model-tutorial-menu h2 {
    margin: 0 2rem 0.45rem 0;
    font-size: 1.35rem;
}

.model-tutorial-menu p {
    margin: 0 2rem 1rem 0;
    color: #5d6774;
    line-height: 1.45;
}

.model-tutorial-menu-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #eef3f8;
    color: #314258;
    font-size: 1rem;
    font-weight: 700;
    line-height: 2rem;
    cursor: pointer;
}

.model-tutorial-menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.model-tutorial-menu-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 6.4rem;
    margin: 0;
    padding: 0.85rem;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    background: #ffffff;
    color: #243246;
    text-align: left;
    cursor: pointer;
}

.model-tutorial-menu-item:hover,
.model-tutorial-menu-item:focus {
    border-color: #008CBA;
    background: #f8fbfd;
    color: #243246;
    box-shadow: 0 0 0 3px rgba(0, 140, 186, 0.16);
    outline: 0;
}

.model-tutorial-menu-item:hover .model-tutorial-menu-item-description,
.model-tutorial-menu-item:focus .model-tutorial-menu-item-description {
    color: #5d6774;
}

.model-tutorial-menu-item:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.model-tutorial-menu-item-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.model-tutorial-menu-item-description {
    color: #5d6774;
    font-size: 0.82rem;
    line-height: 1.35;
}

.model-tutorial-overlay-part {
    position: absolute;
    z-index: 240;
    display: none;
    background: #000000;
    opacity: 0;
    filter: alpha(opacity=0);
    pointer-events: auto;
    transition: opacity 180ms ease;
}

.model-tutorial-overlay-part.model-tutorial-overlay-active {
    opacity: 0.68;
    filter: alpha(opacity=68);
}

.model-tutorial-highlight {
    position: absolute;
    z-index: 250;
    display: none;
    border: 3px solid #008CBA;
    border-radius: 8px;
    box-shadow: 0 0 0 4px rgba(0, 140, 186, 0.22), 0 18px 45px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.model-tutorial-popover {
    position: absolute;
    z-index: 260;
    display: none;
    width: 24.5rem;
    max-width: calc(100vw - 2rem);
    padding: 1rem;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    color: #243246;
    font-size: 1rem;
    line-height: 1.45;
}

.model-tutorial-popover-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.model-tutorial-popover-header h3 {
    margin: 0;
    color: #1f2933;
    font-size: 1.05rem;
    line-height: 1.25;
}

.model-tutorial-popover-progress {
    flex: 0 0 auto;
    color: #5d6774;
    font-size: 0.78rem;
    font-weight: 700;
}

.model-tutorial-popover-copy {
    margin-bottom: 0.85rem;
}

.model-tutorial-popover-copy p {
    margin: 0 0 0.65rem;
}

.model-tutorial-popover-copy p:last-child {
    margin-bottom: 0;
}

.model-tutorial-popover-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.model-tutorial-popover-button {
    min-width: 2.25rem;
    min-height: 2.25rem;
    margin: 0;
    padding: 0.45rem 0.8rem;
    border: 0;
    border-radius: 999px;
    background: #008CBA;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.model-tutorial-popover-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.model-tutorial-popover-secondary {
    background: #667085;
}

.model-tutorial-popover-footer {
    margin-top: 0.65rem;
    color: #667085;
    font-size: 0.78rem;
}

.model-tutorial-sandbox {
    position: fixed;
    z-index: 235;
    top: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    left: 1.5rem;
    display: none;
    flex-direction: column;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
    color: #243246;
}

.model-tutorial-sandbox-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #d8dee6;
    background: #f8fafc;
}

.model-tutorial-sandbox-eyebrow {
    display: inline-block;
    margin-bottom: 0.25rem;
    color: #008CBA;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.model-tutorial-sandbox-header h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}

.model-tutorial-sandbox-header p {
    margin: 0;
    color: #5d6774;
    line-height: 1.35;
}

.model-tutorial-sandbox-exit {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.55rem 0.85rem;
    border: 1px solid #d8dee6;
    border-radius: 4px;
    background: #ffffff;
    color: #314258;
    font-weight: 700;
    cursor: pointer;
}

.model-tutorial-sandbox-body {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 15rem minmax(24rem, 1fr) 18rem;
    gap: 1rem;
    padding: 1rem;
    background: #f4f7fb;
}

.model-tutorial-sandbox-palette,
.model-tutorial-sandbox-properties,
.model-tutorial-sandbox-canvas-shell {
    min-height: 0;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    background: #ffffff;
}

.model-tutorial-sandbox-palette,
.model-tutorial-sandbox-properties {
    padding: 1rem;
}

.model-tutorial-sandbox-palette h3,
.model-tutorial-sandbox-properties h3 {
    margin: 0 0 0.85rem;
    font-size: 1rem;
}

.model-tutorial-sandbox-tool {
    display: block;
    width: 100%;
    margin: 0 0 0.65rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d8dee6;
    border-radius: 6px;
    background: #ffffff;
    color: #243246;
    text-align: left;
    font-weight: 700;
    cursor: pointer;
}

.model-tutorial-sandbox-tool:hover,
.model-tutorial-sandbox-tool:focus {
    border-color: #008CBA;
    box-shadow: 0 0 0 3px rgba(0, 140, 186, 0.14);
    outline: 0;
}

.model-tutorial-sandbox-canvas-shell {
    position: relative;
    overflow: hidden;
}

.model-tutorial-sandbox-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 26rem;
    background-image:
        linear-gradient(to right, rgba(49, 66, 88, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(49, 66, 88, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
}

.model-tutorial-sandbox-node {
    position: absolute;
    min-width: 8.5rem;
    max-width: 11rem;
    margin: 0;
    padding: 0.65rem 0.8rem;
    border: 3px solid #008CBA;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2933;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.model-tutorial-sandbox-lines {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.model-tutorial-sandbox-lines line {
    stroke: #314258;
    stroke-width: 3;
}

.model-tutorial-sandbox-lines marker path {
    fill: #314258;
}

.model-tutorial-sandbox-properties ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #5d6774;
}

.model-tutorial-sandbox-properties li {
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

@media screen and (max-width: 900px) {
    .model-tutorial-menu-list {
        grid-template-columns: 1fr;
    }

    .model-tutorial-sandbox {
        top: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .model-tutorial-sandbox-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .model-tutorial-sandbox-canvas {
        min-height: 22rem;
    }
}

.ai-focus-overlay-part {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    background: #000000;
    opacity: 0;
    filter: alpha(opacity=0);
    z-index: 200;
    display: none;
    pointer-events: none;
    will-change: left, top, width, height, transform, opacity;
    transition:
        left 340ms cubic-bezier(0.22, 1, 0.36, 1),
        top 340ms cubic-bezier(0.22, 1, 0.36, 1),
        width 340ms cubic-bezier(0.22, 1, 0.36, 1),
        height 340ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 300ms ease;
}

.ai-focus-overlay-part.ai-focus-overlay-part-vertical {
    transform: scaleY(0);
}

.ai-focus-overlay-part.ai-focus-overlay-part-horizontal {
    transform: scaleX(0);
}

.ai-focus-overlay-part.ai-focus-overlay-part-top {
    transform-origin: 50% 0%;
}

.ai-focus-overlay-part.ai-focus-overlay-part-bottom {
    transform-origin: 50% 100%;
}

.ai-focus-overlay-part.ai-focus-overlay-part-left {
    transform-origin: 0% 50%;
}

.ai-focus-overlay-part.ai-focus-overlay-part-right {
    transform-origin: 100% 50%;
}

.ai-focus-overlay-part.ai-focus-overlay-active {
    opacity: 0.68;
    filter: alpha(opacity=68);
}

.ai-focus-overlay-part.ai-focus-overlay-part-vertical.ai-focus-overlay-active {
    transform: scaleY(1);
}

.ai-focus-overlay-part.ai-focus-overlay-part-horizontal.ai-focus-overlay-active {
    transform: scaleX(1);
}

#panel-editor .panel-editor-layout {
    flex: 1 1 auto;
    width: 100%;
    min-width: 18rem;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    display: flex;
    gap: 1rem;
    align-items: stretch;
    resize: both;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.model-edit-page #panel-editor.content,
.model-edit-page #panel-simulation.content {
    min-height: 0;
    overflow: hidden;
}

#panel-editor .model-editor-shell {
    flex: 1 1 auto;
    min-width: 22rem;
    min-height: 0;
    border: 1px solid #cfcfcf;
    background: #fff;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    transition: box-shadow 220ms ease, border-color 220ms ease;
}

#panel-editor .model-editor-shell > .model-editor-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.model-edit-page #panel-simulation > .model-editor-frame,
body.model-edit-body .content-main > .columns > .tabs-content.contained > #panel-simulation > .model-editor-frame {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
}

#panel-editor .ai-panel-shell {
    width: 22rem;
    min-width: 18rem;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #cfcfcf;
    background: #f8fafc;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    transition: box-shadow 220ms ease, border-color 220ms ease;
}

#panel-editor .ai-panel-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #d8dee6;
    background: #eef3f8;
}

#panel-editor .ai-panel-header h3 {
    margin: 0;
    font-size: 1rem;
}

#panel-editor .ai-panel-status {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #d9e7f5;
    color: #234a6b;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

#panel-editor .ai-panel-body {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
}

#panel-editor .ai-panel-launcher {
    flex: 1 1 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    text-align: center;
}

#panel-editor .ai-panel-launcher-copy {
    max-width: 16rem;
    margin: 0;
    color: #4b5b6b;
    font-size: 0.92rem;
    line-height: 1.4;
}

#panel-editor .ai-session-trigger {
    margin: 0;
}

#panel-editor .ai-message {
    margin-bottom: 0;
    padding: 0.85rem 0.95rem;
    border-radius: 0.75rem;
    line-height: 1.4;
}

#panel-editor .ai-message-phase {
    display: inline-block;
    margin-bottom: 0.45rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: #e6eef6;
    color: #2f4b63;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#panel-editor .ai-message-content {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#panel-editor .ai-message-assistant {
    background: #ffffff;
    border: 1px solid #dde5ee;
}

#panel-editor .ai-message-table-wrap {
    margin-top: 0.8rem;
    overflow-x: auto;
}

#panel-editor .ai-message-table-caption {
    margin-bottom: 0.35rem;
    color: #2f4b63;
    font-size: 0.78rem;
    font-weight: 700;
}

#panel-editor .ai-message-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

#panel-editor .ai-message-table th,
#panel-editor .ai-message-table td {
    padding: 0.45rem 0.55rem;
    border: 1px solid #d8e2ec;
    text-align: left;
    vertical-align: top;
}

#panel-editor .ai-message-table th {
    background: #eef4f8;
    color: #2f4b63;
    font-weight: 700;
}

#panel-editor .ai-message-guidance {
    background: linear-gradient(180deg, #fffdf5 0%, #fff6e3 100%);
    border: 1px solid #f3deb0;
    box-shadow: 0 14px 30px rgba(131, 92, 18, 0.08);
    color: #27364a;
    font-size: 1rem;
}

#panel-editor .ai-message-guidance-callout {
    position: relative;
    border-color: #e2a93d;
    background: linear-gradient(180deg, #fffaf0 0%, #ffe8b5 100%);
    box-shadow: 0 0 0 3px rgba(255, 214, 102, 0.24), 0 18px 38px rgba(131, 92, 18, 0.16);
    padding-right: 3.15rem;
}

#panel-editor .ai-final-prompt-dismiss {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
}

#panel-editor .ai-stage-cue-button,
.ai-editor-coach-bubble-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.55rem 0.95rem;
    border: 0;
    border-radius: 999px;
    background: #d48317;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

#panel-editor .ai-stage-cue-button {
    align-self: flex-end;
}

.ai-stage-cue-button-arrow {
    width: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 999px;
    font-size: 1rem;
}

.ai-editor-coach-bubble {
    position: absolute;
    z-index: 225;
    display: none;
    width: 22.5rem;
    max-width: calc(100vw - 2rem);
    padding: 1rem 1.1rem;
    border: 1px solid #f3deb0;
    border-radius: 1rem;
    background: linear-gradient(180deg, #fffdf5 0%, #fff5df 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    color: #27364a;
    font-size: 1rem;
    line-height: 1.45;
    pointer-events: auto;
}

.ai-editor-coach-bubble-copy {
    margin-bottom: 0.9rem;
}

.ai-editor-coach-bubble-action {
    display: inline-flex;
    margin-left: auto;
}

#panel-editor .ai-message-user {
    margin-left: 2rem;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

#panel-editor .ai-message-system {
    background: #e8f0f8;
    border: 1px solid #c8d8e8;
    color: #2d4d68;
}

#panel-editor .ai-message-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

#panel-editor .ai-panel-footer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #d8dee6;
    background: #ffffff;
}

#panel-editor .ai-panel-input-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5b6b;
}

#panel-editor .ai-panel-input {
    min-height: 6rem;
    margin: 0;
    resize: none;
    background: #f6f8fb;
    transition: box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

#panel-editor .ai-panel-send {
    margin: 0;
    align-self: flex-end;
}

#panel-editor .ai-panel-status-busy {
    background: #fef3c7;
    color: #92400e;
}

#panel-editor .ai-panel-status-error {
    background: #fee2e2;
    color: #991b1b;
}

.model-editor-frame {
    display: block;
    width: 100vw;
    height: 55vh;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0 none;
    box-sizing: border-box;
}

@media only screen and (max-width: 900px) {
    body.model-edit-body {
        overflow: auto;
    }

    body.model-edit-body .content-main,
    body.model-edit-body .content-main > .columns,
    .model-edit-page {
        min-height: 0;
    }

    .model-edit-page .tabs-content.contained,
    body.model-edit-body .content-main > .columns > .tabs-content.contained {
        height: auto;
        overflow: visible;
    }

    .model-edit-page .tabs-content.contained > .content.active,
    body.model-edit-body .content-main > .columns > .tabs-content.contained > .content.active {
        min-height: 42rem;
    }

    #panel-editor .panel-editor-layout {
        flex-direction: column;
        height: auto;
        min-height: 42rem;
        resize: vertical;
    }

    #panel-editor .model-editor-shell {
        flex: 1 1 28rem;
        min-width: 0;
        min-height: 24rem;
    }

    #panel-editor .ai-panel-shell {
        flex: 0 0 22rem;
        width: 100%;
        min-width: 0;
        height: 22rem;
    }

    .model-edit-page #panel-simulation > .model-editor-frame,
    body.model-edit-body .content-main > .columns > .tabs-content.contained > #panel-simulation > .model-editor-frame {
        height: calc(100vh - 5rem);
        min-height: 28rem;
        max-height: 100%;
    }
}
#model-operations {
    display: inline-block;
    padding-left: 1em;
}

/*
 * Model view page
 * templates/model/view.html
 */
.model-preview {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #cfcfcf;
}

/*
 * Model listing grid
 * templates/fragments/model-list.html
 */
.model-list-grid-item {
    text-align: center;
    border: 1px solid #cfcfcf;
    padding: 1em;
}
.model-list-grid-item:hover {
    border: 1px solid black;
}
.model-list-render {
    padding-bottom: 20px;
    height: 170px;
    width: 150px;
    white-space: nowrap;
    text-align: center;
    margin: auto;
}
.model-list-render:before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
.model-list-render img {
    max-width:150px;
    max-height: 150px;
    vertical-align: middle;
}

/*
 * Login page
 */
.sso-link {
    display: inline-block;
    border: 1px solid transparent;
}
.sso-link:hover {
    border: 1px solid grey;
}
body:not(.modal) .login-option {
    border-left: 1px solid black;
}
body:not(.modal) .login-option:first-of-type {
    border-left: none;
}
body.modal .login-option {
    border-top: 1px solid black;
}
body.modal .login-option:first-of-type {
    border-top: none;
}

/*
 * Announcement content page
 */
#announcement-content .content {
    padding-bottom: 1em;
}
.announcement-summary-heading {
    font-weight: bold;
}
#announcement-content .announcement-summary {
    border-bottom: 1px solid lightgray;
    margin-bottom: 1em;
    padding-bottom: 0;
}
#announcement-operations {
    display: inline-block;
    padding-left: 1em;
}

/*
 * Announcement add/edit pages
 */
#textarea-announcement-summary .CodeMirror, #textarea-announcement-summary .CodeMirror-scroll {
    min-height: 5em;
}
#textarea-announcement-content .CodeMirror, #textarea-announcement-content .CodeMirror-scroll {
}

/*
 * Announcements admin page
 */
table.announcement-list tr {
    vertical-align: top;
}
.announcement-ops {
    visibility: hidden;
}
.announcement-ops ul {
    margin-bottom: 0;
    font-size: 1em;
    padding-top: .25em;
}
table.announcement-list tr:hover .announcement-ops {
    visibility: visible;
}

/*
 * Announcements listing page (not admin)
 */
.announcement-brief {
    padding-top: 1em;
    margin-top: 1em;
    border-top: 1px solid lightgray;
}
.announcement-brief:first-of-type {
    border-top: none;
}
.announcement-brief .announcement-title {
    font-size: 1.5em;
}

/*
 * Log lineup on home page (or anywhere else we want to use it)
 */
ul.logo-lineup li {
    line-height: 200px;
}

/*
 * Registration form
 */
.g-recaptcha {
    margin: 0 0 1rem 0;
}

/*
 * Modal styles
 */
.reveal-modal iframe {
    border: 0;
}

/*
 * Animated loader spinner
 * https://ihatetomatoes.net/create-css3-spinning-preloader/
 */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}
#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #3498db;
    -webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #e74c3c;
    -webkit-animation: spin 3s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #f9c922;
    -webkit-animation: spin 1.5s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

@-webkit-keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg);  /* IE 9 */
        transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
    }
    100% {
        -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg);  /* IE 9 */
        transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
    }
}
@keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg);  /* IE 9 */
        transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
    }
    100% {
        -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg);  /* IE 9 */
        transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
    }
}

/**
 * User admin page
 */
.user-list {

}

/**
 * AskJill interface styles
 */

/* Message Styles */

.jw-notification::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right:60px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.6);
    border-bottom: 0;
    border-right: 0;
}

.jw-response::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right:60px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: #ccc;
    border-bottom: 0;
    border-right: 0;
}

.jw-msg-inner {
    margin-right: 25px;
    width: 400px;
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 0 3px #999;
    position: absolute;
    right: 0;
    bottom: 0;
    pointer-events: auto;
    max-height: 100%;
    overflow-y: auto;
}

.jw-response-inner {
    background-color: white;
    color: grey;
}

.jw-notification-inner {
    background-color:rgba(0, 0, 0, 0.6);
    color:white;
}

.jw-dialog-close {
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.jw-dialog-close:hover {
    background-color: transparent;
}

#jw-close-response {
    color: #ccc;
}

#jw-close-notification {
    color: white;
}

/* misc helper classes */

.hidden {
    display: none;
}

/* make placeholder text italics */
.jw-chat-input::-webkit-input-placeholder {
    font-style: italic;
}

.jw-chat-input:-moz-placeholder {
    font-style: italic;
}

.jw-chat-input::-moz-placeholder {
    font-style: italic;
}

.jw-chat-input:-ms-input-placeholder {
    font-style: italic;
}

/* clear fix */
.jw-msg::after {
    content: "";
    clear: both;
    display: table;
}

.jw-top-margin {
    margin-top:200px;
}

.jw-full-height {
    height: 100%;
}

.jw-full-width {
    width: 100%;
}

.jw-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.jw-flex-end {
    display: flex;
    justify-content: flex-end;
}

.jw-container {
    position: fixed;
    width: 100%;
    pointer-events: none;
}

/* other ask jill styles */

#jw-button-box div {
    height: 50px;
    width: 50px;
    pointer-events: auto;
}

.jw-feedback-btn {
    background-color: transparent;
    margin: 0;
    padding: 4px;
    color: grey;
    border: 1px solid grey;
    border-radius: 5px
}

/* ask jill popup interface */

#jw-popup-input-box {
    width: 80%;
    margin: 0 auto;
    pointer-events: auto;
}

#jw-popup-input-box-inner {
    height: 50px;
    width: 100%;
    background-color: #f2f2f2;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    box-shadow: 3px 3px 3px 3px #ccca;
    transition:margin 0.3s ease-in;
}

/* bug with Handson table */

div.ht_clone_top, div.ht_clone_left, div.ht_clone_top_left_corner {
    z-index: 0 !important;
}

.hide-border {
    border: 0;
}

.hide-border:focus {
    outline: none;
}
