@charset "UTF-8";
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
   HTML5 display definitions
   ========================================================================== */
/**
 * Correct `block` display not defined in IE 8/9.
 */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&family=Source+Code+Pro:ital,wght@0, 200..900;1,200..900&display=swap");
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block; }

/**
 * Correct `inline-block` display not defined in IE 8/9.
 */
audio,
canvas,
video {
  display: inline-block; }

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */
audio:not([controls]) {
  display: none;
  height: 0; }

/**
 * Address `[hidden]` styling not present in IE 8/9.
 * Hide the `template` element in IE, Safari, and Firefox < 22.
 */
[hidden],
template {
  display: none; }

/* ==========================================================================
   Base
   ========================================================================== */
/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */
html {
  font-family: sans-serif;
  /* 1 */
  -ms-text-size-adjust: 100%;
  /* 2 */
  -webkit-text-size-adjust: 100%;
  /* 2 */ }

/**
 * Remove default margin.
 */
body {
  margin: 0; }

/* ==========================================================================
   Links
   ========================================================================== */
/**
 * Remove the gray background color from active links in IE 10.
 */
a {
  background: transparent; }

/**
 * Address `outline` inconsistency between Chrome and other browsers.
 */
a:focus {
  outline: thin dotted; }

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */
a:active,
a:hover {
  outline: 0; }

/* ==========================================================================
   Typography
   ========================================================================== */
/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari 5, and Chrome.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0; }

/**
 * Address styling not present in IE 8/9, Safari 5, and Chrome.
 */
abbr[title] {
  border-bottom: 1px dotted; }

/**
 * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
 */
b,
strong {
  font-weight: bold; }

/**
 * Address styling not present in Safari 5 and Chrome.
 */
dfn {
  font-style: italic; }

/**
 * Address differences between Firefox and other browsers.
 */
hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0; }

/**
 * Address styling not present in IE 8/9.
 */
mark {
  background: #ff0;
  color: #000; }

/**
 * Correct font family set oddly in Safari 5 and Chrome.
 */
code,
kbd,
pre,
samp {
  font-family: monospace, serif;
  font-size: 1em; }

/**
 * Improve readability of pre-formatted text in all browsers.
 */
pre {
  white-space: pre-wrap; }

/**
 * Set consistent quote types.
 */
q {
  quotes: "\201C" "\201D" "\2018" "\2019"; }

/**
 * Address inconsistent and variable font size in all browsers.
 */
small {
  font-size: 80%; }

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline; }

sup {
  top: -0.5em; }

sub {
  bottom: -0.25em; }

/* ==========================================================================
   Embedded content
   ========================================================================== */
/**
 * Remove border when inside `a` element in IE 8/9.
 */
img {
  border: 0; }

/**
 * Correct overflow displayed oddly in IE 9.
 */
svg:not(:root) {
  overflow: hidden; }

/* ==========================================================================
   Figures
   ========================================================================== */
/**
 * Address margin not present in IE 8/9 and Safari 5.
 */
figure {
  margin: 0; }

/* ==========================================================================
   Forms
   ========================================================================== */
/**
 * Define consistent border, margin, and padding.
 */
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em; }

/**
 * 1. Correct `color` not being inherited in IE 8/9.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */
legend {
  border: 0;
  /* 1 */
  padding: 0;
  /* 2 */ }

/**
 * 1. Correct font family not being inherited in all browsers.
 * 2. Correct font size not being inherited in all browsers.
 * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
 */
button,
input,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 2 */
  margin: 0;
  /* 3 */ }

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */
button,
input {
  line-height: normal; }

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
 * Correct `select` style inheritance in Firefox 4+ and Opera.
 */
button,
select {
  text-transform: none; }

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  /* 2 */
  cursor: pointer;
  /* 3 */ }

/**
 * Re-set default cursor for disabled elements.
 */
button[disabled],
html input[disabled] {
  cursor: default; }

/**
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */ }

/**
 * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
 *    (include `-moz` to future-proof).
 */
input[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  /* 2 */
  box-sizing: content-box; }

/**
 * Remove inner padding and search cancel button in Safari 5 and Chrome
 * on OS X.
 */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none; }

/**
 * Remove inner padding and border in Firefox 4+.
 */
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0; }

/**
 * 1. Remove default vertical scrollbar in IE 8/9.
 * 2. Improve readability and alignment in all browsers.
 */
textarea {
  overflow: auto;
  /* 1 */
  vertical-align: top;
  /* 2 */ }

/* ==========================================================================
   Tables
   ========================================================================== */
/**
 * Remove most spacing between table cells.
 */
table {
  border-collapse: collapse;
  border-spacing: 0; }

/*
 * * * * * * * * * * * * * * * * * * *
 * COLORS
 * * * * * * * * * * * * * * * * * * *
 */
/*
 * * * * * * * * * * * * * * * * * * *
 * @mixins
 * * * * * * * * * * * * * * * * * * *
 */
/*~~~~~~~~~~~ GRID ~~~~~~~~~~~~~~*/
.breakpoint-tester {
  position: fixed;
  top: 50px;
  right: 0;
  background: #ff6600;
  font-size: 20px;
  padding: 10px 15px;
  z-index: 1001; }
  .breakpoint-tester:before {
    content: 'default'; }
  @media (max-width: 1200px) {
    .breakpoint-tester:before {
      content: 'extra-large'; } }
  @media (max-width: 1000px) {
    .breakpoint-tester:before {
      content: 'large'; } }
  @media (max-width: 800px) {
    .breakpoint-tester:before {
      content: 'medium'; } }
  @media (max-width: 600px) {
    .breakpoint-tester:before {
      content: 'medium-step'; } }
  @media (max-width: 400px) {
    .breakpoint-tester:before {
      content: 'small'; } }
  @media (max-width: 380px) {
    .breakpoint-tester:before {
      content: 'dang-small'; } }

/*
 * * * * * * * * * * * * * * * * * * *
 * GRID
 * * * * * * * * * * * * * * * * * * *
 */
/*
 * * * * * * * * * * * * * * * * * * *
 * BUTTONS
 * * * * * * * * * * * * * * * * * * *
 */
.button {
  border: none;
  border-image-source: none;
  border-image-slice: none;
  border-image-width: none;
  border-image-outset: none;
  border-image-repeat: none;
  padding: 0;
  font-family: "Source Sans 3", Verdana, Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  display: inline-block;
  width: auto;
  height: 30px;
  line-height: 28px;
  font-size: 15px;
  font-size: 1.5rem;
  padding: 0 10px;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid rgba(17, 17, 17, 0.3);
  cursor: pointer;
  background: #eee;
  color: #111; }
  .button:active {
    border: 1px solid rgba(17, 17, 17, 0.2); }
  .button:focus {
    outline: 0; }
  .button:disabled, .button[disabled=disabled] {
    opacity: 0.4; }
    .button:disabled:hover, .button:disabled:active, .button[disabled=disabled]:hover, .button[disabled=disabled]:active {
      cursor: default; }
  .button:hover {
    background: #f3f3f3;
    border: 1px solid rgba(17, 17, 17, 0.3);
    text-decoration: none; }
  .button:active, .button.selected {
    background: #bebebe; }
  .button:disabled:hover, .button:disabled:active, .button[disabled=disabled]:hover, .button[disabled=disabled]:active {
    background: #f3f3f3; }
  .button.action {
    border: none;
    border-image-source: none;
    border-image-slice: none;
    border-image-width: none;
    border-image-outset: none;
    border-image-repeat: none;
    padding: 0;
    font-family: "Source Sans 3", Verdana, Helvetica, Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    display: inline-block;
    width: auto;
    height: 30px;
    line-height: 28px;
    font-size: 15px;
    font-size: 1.5rem;
    padding: 0 10px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid rgba(17, 17, 17, 0.3);
    cursor: pointer;
    background: #0090cb;
    color: #fff;
    text-shadow: 1px 1px 1px rgba(17, 17, 17, 0.4); }
    .button.action:active {
      border: 1px solid rgba(17, 17, 17, 0.2); }
    .button.action:focus {
      outline: 0; }
    .button.action:disabled, .button.action[disabled=disabled] {
      opacity: 0.4; }
      .button.action:disabled:hover, .button.action:disabled:active, .button.action[disabled=disabled]:hover, .button.action[disabled=disabled]:active {
        cursor: default; }
    .button.action:hover {
      background: #4db1db;
      border: 1px solid rgba(17, 17, 17, 0.3);
      text-decoration: none; }
    .button.action:active, .button.action.selected {
      background: #0073a2; }
    .button.action:disabled:hover, .button.action:disabled:active, .button.action[disabled=disabled]:hover, .button.action[disabled=disabled]:active {
      background: #4db1db; }
  .button.outline {
    border: none;
    border-image-source: none;
    border-image-slice: none;
    border-image-width: none;
    border-image-outset: none;
    border-image-repeat: none;
    padding: 0;
    font-family: "Source Sans 3", Verdana, Helvetica, Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    display: inline-block;
    width: auto;
    height: 30px;
    line-height: 28px;
    font-size: 15px;
    font-size: 1.5rem;
    padding: 0 10px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid rgba(17, 17, 17, 0.3);
    cursor: pointer;
    background: #fff;
    color: #111; }
    .button.outline:active {
      border: 1px solid rgba(17, 17, 17, 0.2); }
    .button.outline:focus {
      outline: 0; }
    .button.outline:disabled, .button.outline[disabled=disabled] {
      opacity: 0.4; }
      .button.outline:disabled:hover, .button.outline:disabled:active, .button.outline[disabled=disabled]:hover, .button.outline[disabled=disabled]:active {
        cursor: default; }
    .button.outline:hover {
      background: white;
      border: 1px solid rgba(17, 17, 17, 0.3);
      text-decoration: none; }
    .button.outline:active, .button.outline.selected {
      background: #cccccc; }
    .button.outline:disabled:hover, .button.outline:disabled:active, .button.outline[disabled=disabled]:hover, .button.outline[disabled=disabled]:active {
      background: white; }
  .button.outline-destructive {
    border: none;
    border-image-source: none;
    border-image-slice: none;
    border-image-width: none;
    border-image-outset: none;
    border-image-repeat: none;
    padding: 0;
    font-family: "Source Sans 3", Verdana, Helvetica, Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    display: inline-block;
    width: auto;
    height: 30px;
    line-height: 28px;
    font-size: 15px;
    font-size: 1.5rem;
    padding: 0 10px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid rgba(17, 17, 17, 0.3);
    cursor: pointer;
    background: #fbd2d3;
    color: #ed1c24; }
    .button.outline-destructive:active {
      border: 1px solid rgba(17, 17, 17, 0.2); }
    .button.outline-destructive:focus {
      outline: 0; }
    .button.outline-destructive:disabled, .button.outline-destructive[disabled=disabled] {
      opacity: 0.4; }
      .button.outline-destructive:disabled:hover, .button.outline-destructive:disabled:active, .button.outline-destructive[disabled=disabled]:hover, .button.outline-destructive[disabled=disabled]:active {
        cursor: default; }
    .button.outline-destructive:hover {
      background: #fce0e0;
      border: 1px solid rgba(17, 17, 17, 0.3);
      text-decoration: none; }
    .button.outline-destructive:active, .button.outline-destructive.selected {
      background: #c9a8a9; }
    .button.outline-destructive:disabled:hover, .button.outline-destructive:disabled:active, .button.outline-destructive[disabled=disabled]:hover, .button.outline-destructive[disabled=disabled]:active {
      background: #fce0e0; }
  .button.ghost-destructive {
    border: none;
    border-image-source: none;
    border-image-slice: none;
    border-image-width: none;
    border-image-outset: none;
    border-image-repeat: none;
    padding: 0;
    font-family: "Source Sans 3", Verdana, Helvetica, Arial, sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    display: inline-block;
    width: auto;
    height: 30px;
    line-height: 28px;
    font-size: 15px;
    font-size: 1.5rem;
    padding: 0 10px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid rgba(17, 17, 17, 0.3);
    cursor: pointer;
    background: transparent;
    color: #111;
    border-color: transparent; }
    .button.ghost-destructive:active {
      border: 1px solid rgba(17, 17, 17, 0.2); }
    .button.ghost-destructive:focus {
      outline: 0; }
    .button.ghost-destructive:disabled, .button.ghost-destructive[disabled=disabled] {
      opacity: 0.4; }
      .button.ghost-destructive:disabled:hover, .button.ghost-destructive:disabled:active, .button.ghost-destructive[disabled=disabled]:hover, .button.ghost-destructive[disabled=disabled]:active {
        cursor: default; }
    .button.ghost-destructive:hover {
      background: rgba(255, 255, 255, 0.3);
      border: 1px solid rgba(17, 17, 17, 0.3);
      text-decoration: none; }
    .button.ghost-destructive:active, .button.ghost-destructive.selected {
      background: rgba(0, 0, 0, 0.2); }
    .button.ghost-destructive:disabled:hover, .button.ghost-destructive:disabled:active, .button.ghost-destructive[disabled=disabled]:hover, .button.ghost-destructive[disabled=disabled]:active {
      background: rgba(255, 255, 255, 0.3); }
    .button.ghost-destructive:hover {
      border-color: transparent;
      color: #ed1c24;
      background-color: transparent; }
  .button.large {
    height: 40px;
    line-height: 38px;
    font-size: 20px;
    font-size: 2rem; }
  .button.small {
    height: 22px;
    line-height: 20px;
    font-size: 12px;
    font-size: 1.2rem; }

.icon-button {
  border: none;
  border-image-source: none;
  border-image-slice: none;
  border-image-width: none;
  border-image-outset: none;
  border-image-repeat: none;
  padding: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border-radius: 4px;
  color: rgba(17, 17, 17, 0.4); }
  .icon-button svg {
    width: 100%;
    height: 100%;
    fill: rgba(17, 17, 17, 0.4);
    color: rgba(17, 17, 17, 0.4);
    pointer-events: none; }
  .icon-button:focus {
    outline: none;
    background: rgba(17, 17, 17, 0.1); }
    .icon-button:focus svg {
      fill: rgba(17, 17, 17, 0.8);
      color: rgba(17, 17, 17, 0.8); }
  .icon-button:hover svg {
    fill: rgba(17, 17, 17, 0.8);
    color: rgba(17, 17, 17, 0.8); }

.button-group .button {
  border-radius: 0;
  margin-left: 0;
  margin-right: -4px;
  display: inline-block;
  vertical-align: top; }
  .button-group .button:first-child {
    border-radius: 4px 0 0 4px; }
  .button-group .button:last-child {
    border-radius: 0 4px 4px 0; }
  .button-group .button.selected {
    position: relative;
    z-index: 5;
    border-top-width: 2px; }

/*
 * * * * * * * * * * * * * * * * * * *
 * ICON ANIMATIONS
 * * * * * * * * * * * * * * * * * * *
 */
.spin-the-spinner {
  display: inline-block;
  -webkit-animation: spin 1.35s linear infinite;
  -moz-animation: spin 1.35s linear infinite;
  -ms-animation: spin 1.35s linear infinite;
  -o-animation: spin 1.35s linear infinite;
  animation: spin 1.35s linear infinite; }

@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg); }
  50% {
    -webkit-transform: rotate(180deg); }
  to {
    -webkit-transform: rotate(360deg); } }

@-moz-keyframes spin {
  from {
    -moz-transform: rotate(0deg); }
  50% {
    -moz-transform: rotate(180deg); }
  to {
    -moz-transform: rotate(360deg); } }

@-ms-keyframes spin {
  from {
    -ms-transform: rotate(0deg); }
  50% {
    -ms-transform: rotate(180deg); }
  to {
    -ms-transform: rotate(360deg); } }

@-o-keyframes spin {
  from {
    -o-transform: rotate(0deg); }
  50% {
    -o-transform: rotate(180deg); }
  to {
    -o-transform: rotate(360deg); } }

@keyframes spin {
  from {
    transform: rotate(0deg); }
  50% {
    transform: rotate(180deg); }
  to {
    transform: rotate(360deg); } }

/*
 * * * * * * * * * * * * * * * * * * *
 * BASE
 * * * * * * * * * * * * * * * * * * *
 */
*, *::before, *::after {
  box-sizing: border-box; }

html {
  font-family: "Source Sans 3", Verdana, Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  font-size: 10px;
  color: #111;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0; }

body {
  font-size: 16px;
  font-size: 1.6rem;
  background-color: #fff;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0; }

h1, h2, h3 {
  line-height: 1.2em;
  font-weight: normal;
  margin: 0 0 15px 0; }

h1 {
  font-size: 15px;
  font-size: 1.5rem;
  color: #111;
  font-weight: 700; }

h2 {
  font-size: 16px;
  font-size: 1.6rem;
  color: #111;
  font-weight: 700; }

h3 {
  font-size: 12px;
  font-size: 1.2rem; }

p {
  font-weight: 400;
  font-size: 20px;
  font-size: 2rem;
  line-height: 1.5em;
  margin: 0 0 1em 0; }
  p.note {
    font-size: 14px;
    font-size: 1.4rem;
    font-style: italic;
    color: #aaa; }

a {
  color: #0090cb;
  text-decoration: none; }
  a:hover {
    border-bottom: 1px solid #0090cb; }

img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0; }

.rule {
  width: 100%;
  height: 1px;
  background: #aaa;
  margin: 10px 0 30px; }

hr {
  width: 100%;
  border: none;
  border-top: 1px solid #ccc;
  margin: 30px 0; }

::selection {
  background: #bfe3f2; }

:root {
  --line-width: 3px;
  --box-size: 1.5em; }

header {
  display: flex;
  width: 100%;
  padding: var(--box-size);
  justify-content: flex-end;
  gap: var(--box-size); }

.patterns-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: auto; }

.pattern-list-item {
  padding: var(--box-size) var(--box-size) calc(var(--box-size) * 8);
  display: flex;
  height: 250px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #ccc; }
  .pattern-list-item::before {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 110%;
    height: 110%;
    box-shadow: 0 0 25px 35px #fff inset;
    z-index: 1; }
  .pattern-list-item::after {
    content: 'View';
    display: none;
    position: absolute;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    background-color: rgba(230, 241, 246, 0.8); }
  .pattern-list-item:hover {
    cursor: pointer; }
    .pattern-list-item:hover::after {
      display: flex; }
    .pattern-list-item:hover .button.remove {
      opacity: .5; }
      .pattern-list-item:hover .button.remove:hover {
        opacity: 1; }

.button.remove {
  position: absolute;
  bottom: calc(var(--box-size) / 2);
  right: calc(var(--box-size) / 2);
  z-index: 3;
  opacity: 0; }

.saved-pattern-wrapper {
  scale: .8;
  transform-origin: 0 0; }

.saved-pattern {
  position: relative;
  display: flex;
  flex-wrap: wrap; }

.wrapper,
.saved-pattern-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  grid-template-rows: 1fr max-content 1fr;
  gap: var(--box-size);
  align-items: center;
  justify-content: center;
  font-family: "Source Code Pro", Monaco, monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px; }

.wrapper {
  height: 100%;
  overflow: auto;
  padding-top: 80px;
  padding-bottom: 80px; }

.main-header {
  position: fixed;
  top: 0;
  right: 0;
  padding-right: calc(var(--box-size) * 3);
  transition: 300ms ease all; }
  .main-header.inset {
    right: 250px;
    padding-right: var(--box-size);
    transition: 300ms ease all; }

.h-phrase,
.v-phrase {
  font-size: 16px;
  font-size: 1.6rem;
  white-space: pre; }
  .h-phrase:empty,
  .v-phrase:empty {
    padding-left: 4px; }
    .h-phrase:empty::before,
    .v-phrase:empty::before {
      content: "😭"; }
  .h-phrase:focus,
  .v-phrase:focus {
    outline: none;
    border-color: #98bdcf; }

.h-phrase {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  width: 100%;
  line-height: var(--box-size);
  letter-spacing: calc(var(--box-size) / 1.67);
  padding-left: calc(var(--box-size) / 3);
  margin-right: calc(var(--box-size) * -1);
  padding-bottom: 0;
  border-bottom: 2px solid transparent;
  align-self: end; }

.v-phrase {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  justify-self: end;
  line-height: var(--box-size);
  letter-spacing: calc(var(--box-size) / 6);
  text-orientation: upright;
  writing-mode: vertical-lr;
  margin-top: 1px;
  padding-right: calc(var(--box-size) / 2);
  border-right: 2px solid transparent; }

.v-phrase {
  padding-right: 0; }

#pattern,
.saved-pattern {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  position: relative; }

.pattern-container {
  display: flex;
  flex-wrap: wrap; }

.fancy .pattern-container {
  outline: calc(var(--line-width) * 2) solid #59717d;
  outline-offset: calc(var(--line-width) / 2);
  border-radius: calc(var(--line-width) / 4); }
  .fancy .pattern-container:before {
    display: block;
    content: "";
    position: absolute;
    top: calc((var(--line-width) / 2) * -1);
    right: calc((var(--line-width) / 2) * -1);
    bottom: calc((var(--line-width) / 2) * -1);
    left: calc((var(--line-width) / 2) * -1);
    background-color: #fffdf3;
    z-index: -2; }

.fancy .block:after {
  display: block;
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: calc(var(--line-width) / 2) solid #59717d;
  border-radius: var(--line-width); }

.fancy .block.h-on.v-on:before {
  display: block;
  top: 0;
  left: 0;
  border-color: #b4d4e3;
  border-bottom-right-radius: calc(var(--box-size) / 2); }

.block {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--box-size);
  height: var(--box-size);
  z-index: -1; }
  .block:before {
    display: none;
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-width: calc((var(--box-size) / 4));
    border-style: solid; }

.h-line,
.v-line {
  position: absolute;
  box-sizing: content-box;
  border: calc(var(--line-width) / 2) solid #b4d4e3;
  z-index: 2;
  border-radius: 10px;
  print-color-adjust: exact; }

.h-line {
  width: var(--box-size);
  height: 0;
  top: calc((var(--line-width) / 2) * -1);
  left: calc((var(--line-width) / 2) * -1); }

.v-line {
  width: 0;
  height: var(--box-size);
  top: calc((var(--line-width) / 2) * -1);
  left: calc((var(--line-width) / 2) * -1); }
  .v-line:before {
    display: none;
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-width: calc((var(--box-size) / 4));
    border-style: solid;
    border-bottom-color: #59717d;
    border-left-color: #59717d;
    border-top-color: transparent;
    border-right-color: transparent;
    z-index: -1; }

body {
  display: flex; }

.page-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%; }

.drawer {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid #ccc;
  width: 250px;
  max-width: 0;
  transition: 300ms ease all; }
  .drawer.show {
    max-width: 250px;
    transition: 300ms ease all; }

.drawer-header {
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc; }

.count-plain {
  position: fixed;
  top: var(--box-size);
  right: var(--box-size);
  font-size: 16px;
  font-size: 1.6rem;
  color: #aaa;
  padding: 2px 8px;
  border: 1px solid #ccc;
  border-radius: 4px; }

.count-badge {
  position: absolute;
  top: -10px;
  right: -15px;
  background: #0090cb;
  font-size: 12px;
  font-size: 1.2rem;
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  pointer-events: none; }

.show-list {
  position: relative;
  visibility: visible;
  margin-right: 0;
  transition: 300ms ease all; }
  .show-list.hide {
    opacity: 0;
    width: 0;
    padding: 0;
    margin-right: calc(var(--box-size) * -1);
    visibility: hidden;
    transition: 300ms ease all; }
