.hidden .polygon-preview, .hidden .refinement-interface {
    opacity: 0;
    transition: none;
}

.polygon-preview {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}

.radial-interface {
    position: relative;
    touch-action: manipulation;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
/*    border: 1px solid;*/
    border-radius: 50%;
}

.radial-interface .concentric-circle {
    pointer-events: none;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    border: 1px solid #00000011;
    border-radius: 50%;
    z-index: 10;
}

.radial-interface .axes {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    touch-action: manipulation;
}

.radial-interface .axes .axis {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;;
    margin: 0;
    padding: 0;
    transform-origin: center;
    clip-path: polygon(50% 50%, 21.5% 0, 78.5% 0);
    border-radius: 50%;
    border: 0.5px solid;
    opacity: 0;
}
.radial-interface .axes .axis.active {
    opacity: 1;
}

.axes .axis:nth-child(1) { rotate:   0deg; }
.axes .axis:nth-child(2) { rotate:  60deg; }
.axes .axis:nth-child(3) { rotate: 120deg; }
.axes .axis:nth-child(4) { rotate: 180deg; }
.axes .axis:nth-child(5) { rotate: 240deg; }
.axes .axis:nth-child(6) { rotate: 300deg; }

.radial-interface .divider-axes {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    touch-action: manipulation;
}

.radial-interface .divider-axes .axis {
    position: absolute;
    top: 0;
    left: 50%;
    height: 50%;
    width: 0.75px;
    margin: 0;
    padding: 0;
    transform-origin: bottom;
    z-index: 100;
    visibility: hidden;
}

.radial-interface .divider-axes .axis.visible {
    visibility: visible;
}

.radial-interface .divider-axes .axis:after {
    content: "";
    width: 4px;
    height: 4px;
    position: absolute;
    bottom: 0;
    left: 0;
    translate: -50% 50%;
    border-radius: 50%;
/*    border: 2px solid;*/
}

.divider-axes .axis:nth-child(1) { rotate: -30deg; }
.divider-axes .axis:nth-child(2) { rotate:  30deg; }
.divider-axes .axis:nth-child(3) { rotate:  90deg; }
.divider-axes .axis:nth-child(4) { rotate: 150deg; }
.divider-axes .axis:nth-child(5) { rotate: 210deg; }
.divider-axes .axis:nth-child(6) { rotate: 270deg; }

.divider-axes .axis .pip {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
/*    border: 3px solid;*/
    left: 50%;
    translate: -50% -50%;
}

.divider-axes .axis .pip.mid {
    top: 25%;
}

.divider-axes .axis .pip.end {
    top: 0;

}

.axis-label {
    position: absolute;
    top: 0;
    left: 50%;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: .5em;
    text-transform: uppercase;
    padding: 0.5em 1em;
    margin: 0;
    translate: -50% 0%;
    cursor: pointer;
    transition: opacity 0.5s;
}

.polygon-preview .axis.active .axis-label {
    opacity: 1;
}

.refinement-interface .axis-label {
    color: #aaaaaa;
}

.refinement-interface .axis-label.active {
    color: unset;
}

.axis .trait-icon {
    width: 2em;
    height: 2em;
    z-index: 10;
}

.axis .trait-icon svg {
    scale: 0.75;
}

.axes .axis:nth-child(1) .handle {
    background: radial-gradient(50% 50% at 50% 50%, #DDF18A00 0%, #DDF18A 100%);
}
.axes .axis:nth-child(2) .handle {
    background: radial-gradient(50% 50% at 50% 50%, #BCE1FC00 0%, #BCE1FC 100%);
}
.axes .axis:nth-child(3) .handle {
    background: radial-gradient(50% 50% at 50% 50%, #FFF7B300 0%, #FFF7B3 100%);
}
.axes .axis:nth-child(4) .handle {
    background: radial-gradient(50% 50% at 50% 50%, #FFB79900 0%, #FFB799 100%);
}
.axes .axis:nth-child(5) .handle {
    background: radial-gradient(50% 50% at 50% 50%, #C3CAFC00 0%, #C3CAFC 100%);
}
.axes .axis:nth-child(6) .handle {
    background: radial-gradient(50% 50% at 50% 50%, #FBCCD400 0%, #FBCCD4 100%);
}

.radial-interface .axes .axis .handle {
    touch-action: manipulation;
    width: 0;
    height: 0;
    border: 1px solid;
    border-radius: 50%;
    transition: border-width 0.1s ease-out, width 0.75s 0.5s ease-in-out, height 0.75s 0.5s ease-in-out;
    z-index: 0;
    cursor: grab;
}

.radial-interface .axes .axis .handle.active {
    border-width: 0;
    transition: border-width 0.25s ease-in;
}

.radial-interface .axes .axis .handle.active .grab-handle {
    width: 1em;
    height: 1em;
}

.radial-interface .axes .axis .handle .grab-handle {
    position: relative;
    top: 0;
    left: 50%;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    box-sizing: border-box;
    border: 0.5px solid;
    translate: -50% -50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.25s, height 0.25s;
}

.radial-interface .axes .axis .handle .grab-handle:before {
    opacity: 0.1;
    border-radius: 50%;
    width: 80%;
    height: 80%;
    position: absolute;
    content: "";
}

.radial-interface .axes .axis .handle .grab-handle:after {
    content: "";
    position: absolute;
    top: -0.35em;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    transition: width 0.25s, height 0.25s;
}

.radial-interface .axes .axis .handle.active .grab-handle:after {
    width: 0;
    height: 0;
}

.radial-interface .axes .axis .handle.active .grab-handle .inner {
    width: 0;
    height: 0;
}

.radial-interface .axes .axis .handle .grab-handle .inner {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transition: width 0.25s, height 0.25s;
}

.page.two .edit-button {
    cursor: pointer;
}

.page.two .conversation-sample {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    flex-shrink: 1;
    overflow: visible;
    transition: height 0.5s ease-in-out;
}

.page.two .conversation-sample .conversation-text:not(.adjusting) {
    filter: blur(0);
    transition: filter 0.5s 0.25s ease-out;
}

.page.two .conversation-sample .conversation-text.adjusting {
    filter: blur(5em);
    transition: filter 1s 0.25s ease-out;
}

.page.two .conversation-sample .conversation-spinner.adjusting {
    opacity: 1;
}

.page.two .conversation-sample .conversation-spinner:not(.adjusting) {
    opacity: 0;
}

.page.two .conversation-sample .conversation-spinner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    width: 100%;
    top: 50%;
    left: 0;
    translate: 0 -50%;
    transition: opacity 0.5s;
}

.page.two .conversation-sample .conversation-spinner:after {
    content: "Generating...";
    text-transform: uppercase;
    font-size: 0.25em;
}


.sample-ornaments {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.sample-ornaments .border-side {
    position: absolute;
    top: 2em;
    left: 1em;
    border-left: 0.5px solid;
    border-right: 0.5px solid;
    width: calc(100% - 2em);
    height: calc(100% - 4em);
    content: "";
}

.sample-ornaments .border-end {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    top: 1em;
    left: 2em;
    height: calc(100% - 2em);
    width: calc(100% - 4em);
    content: "";
}

.sample-ornaments .border-end .border-top {
    display: flex;
    flex-direction: row;
}

.page.two .conversation-sample .block-title {
    font-family: "DM Serif Display", serif;
    font-size: 0.85em;
    line-height: 0;
    padding: 0 1em;
}

.sample-ornaments .border-end .border-top .border-seg {
    flex-grow: 1;
    border-top: 0.5px solid;
}

.sample-ornaments .border-end .border-bottom {
    display: flex;
    flex-direction: row;
}

.sample-ornaments .border-end .border-bottom .border-seg {
    flex-grow: 1;
    border-bottom: 0.5px solid #000000;
}

.sample-ornaments .border-end .border-bottom .trend-icons {
    display: flex;
    flex-direction: row;
/*    gap: 0.5em;*/
    align-items: center;
    justify-content: center;
    height: 0;
    padding: 0;
}

.sample-ornaments .border-end .border-bottom .trend-icons .trait-icon {
    align-items: center;
    justify-content: center;
    height: 0;
    width: 0;
    margin: 0;
    border-radius: 50%;
    display: flex;
    opacity: 0;
    transition: height 0.5s, width 0.5s, margin 0.5s, opacity 0.5s;
}

.sample-ornaments .border-end .border-bottom .trend-icons .trait-icon.up,
.sample-ornaments .border-end .border-bottom .trend-icons .trait-icon.dn {
    height: 1em;
    width: 1em;
    margin-right: 1em;
    margin-left: 0.5em;
    opacity: 1;
    border: 0.5px solid #222222;
}

.sample-ornaments .border-end .border-bottom .trend-icons .trait-icon svg {
    scale: 50%;
}

.sample-ornaments .border-end .border-bottom .trend-icons .trait-icon.up:after {
    content: "➔";
    font-weight: 200;
    position: absolute;
    transform: translateX(1em) rotate(-90deg) scale(75%);
}

.sample-ornaments .border-end .border-bottom .trend-icons .trait-icon.dn:after {
    content: "➔";
    font-weight: 200;
    position: absolute;
    transform: translateX(1em) rotate(90deg) scale(75%);
}

.axis:nth-child(1) .trait-icon, .sample-ornaments .trait-icon:nth-child(1) {
    background: radial-gradient(50% 50% at 50% 50%, #DDF18A 0%, #DDF18A00 100%);
}
.axis:nth-child(2) .trait-icon, .sample-ornaments .trait-icon:nth-child(2) {
    background: radial-gradient(50% 50% at 50% 50%, #BCE1FC 0%, #BCE1FC00 100%);
}
.axis:nth-child(3) .trait-icon, .sample-ornaments .trait-icon:nth-child(3) {
    background: radial-gradient(50% 50% at 50% 50%, #FFF7B3 0%, #FFF7B300 100%);
}
.axis:nth-child(4) .trait-icon, .sample-ornaments .trait-icon:nth-child(4) {
    background: radial-gradient(50% 50% at 50% 50%, #FFB799 0%, #FFB79900 100%);
}
.axis:nth-child(5) .trait-icon, .sample-ornaments .trait-icon:nth-child(5) {
    background: radial-gradient(50% 50% at 50% 50%, #C3CAFC 0%, #C3CAFC00 100%);
}
.axis:nth-child(6) .trait-icon, .sample-ornaments .trait-icon:nth-child(6) {
    background: radial-gradient(50% 50% at 50% 50%, #FBCCD4 0%, #FBCCD400 100%);
}

.sample-ornaments .corner {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background-color: #000000;
}

.sample-ornaments .corner:nth-child(3) {
    top: 1em;
    left: 1em;
}

.sample-ornaments .corner:nth-child(4) {
    top: 1em;
    right: 1em;
}

.sample-ornaments .corner:nth-child(5) {
    bottom: 1em;
    left: 1em;
}

.sample-ornaments .corner:nth-child(6) {
    bottom: 1em;
    right: 1em;
}

.page.two .conversation-sample .conversation-text {
    font-size: 0.75em;
}