[hidden] {
  display: none !important;
}

.afc-home {
  display: grid;
  gap: 32px;
}

.afc-stage-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.afc-board-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f5c26b;
  margin-bottom: 4px;
}

.afc-board-title {
  margin: 0;
  font-family: var(--afc-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #dce8f5;
  line-height: 1.15;
}

.afc-stage-pills {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  background: rgba(12, 24, 42, 0.72);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(220, 232, 245, 0.2);
}

.afc-stage-pill {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #9bb3cf;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.16s ease;
}

.afc-stage-pill:hover {
  color: #ffffff;
}

.afc-stage-pill.is-active {
  background: #f5c26b;
  color: #162233;
  box-shadow: 0 4px 12px rgba(245, 194, 107, 0.35);
}

.afc-chalet-wrap {
  position: relative;
}

.afc-roof-snow {
  display: block;
  height: 92px;
  margin: 0 -10px -8px;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.afc-roof-garland,
.afc-roof-stationery {
  display: none;
}

.afc-village-board {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #0d1d34 0%, #091526 100%);
  border: 2px solid rgba(182, 206, 232, 0.28);
  border-radius: 0 0 22px 22px;
  padding: 28px 26px 22px;
  box-shadow: 0 24px 56px rgba(3, 8, 18, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.afc-window-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 16px;
}

.afc-cell {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 118px;
  padding: 6px 14px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: #dce8f5;
  perspective: 500px;
}

.afc-shutter {
  position: absolute;
  top: 14px;
  bottom: 12px;
  width: 21px;
  border-radius: 5px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(20, 42, 68, 0.45) 0px,
      rgba(20, 42, 68, 0.45) 3px,
      transparent 3px,
      transparent 8px
    ),
    linear-gradient(180deg, #9eb8d4 0%, #6885a6 100%);
  border: 1.5px solid #c3d6ea;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease;
  z-index: 1;
}

.afc-shutter-l {
  left: 0;
  border-radius: 12px 3px 3px 5px;
  transform-origin: right center;
  transform: rotateY(-18deg);
}

.afc-shutter-r {
  right: 0;
  border-radius: 3px 12px 5px 3px;
  transform-origin: left center;
  transform: rotateY(18deg);
}

.afc-cell:hover .afc-shutter-l {
  transform: rotateY(-38deg);
}

.afc-cell:hover .afc-shutter-r {
  transform: rotateY(38deg);
}

.afc-cell-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50% 50% 6px 6px / 36% 36% 6px 6px;
  border: 3px solid #8ea7c4;
  background: linear-gradient(180deg, #27415f 0%, #162941 100%);
  box-shadow: inset 0 0 12px rgba(206, 228, 250, 0.24), 0 6px 14px rgba(0, 0, 0, 0.48);
  overflow: visible;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.afc-cell-frame::before,
.afc-cell-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: rgba(15, 29, 48, 0.55);
  z-index: 1;
}

.afc-cell-frame::before {
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.afc-cell-frame::after {
  left: 4px;
  right: 4px;
  top: 52%;
  height: 2px;
}

.afc-cell.is-lit .afc-cell-frame {
  border-color: #f4d398;
  background: radial-gradient(circle at 50% 62%, #fff5c8 0%, #f5b952 46%, #bf6d24 92%, #7d3e14 100%);
  box-shadow: 0 0 22px rgba(245, 194, 107, 0.55), inset 0 0 14px rgba(255, 246, 204, 0.72);
}

.afc-cell.is-lit .afc-cell-num {
  color: #2c1607;
  text-shadow: 0 1px 4px rgba(255, 245, 200, 0.8);
}

.afc-cell.is-locked .afc-cell-frame {
  background: linear-gradient(180deg, #4b6a8c 0%, #273f5b 62%, #1b2e46 100%);
  border-color: #9cb7d4;
}

.afc-cell:hover .afc-cell-frame {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(245, 194, 107, 0.65);
}

.afc-sill {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  height: 7px;
  border-radius: 3px;
  background: linear-gradient(180deg, #c6d8ec 0%, #7d96b3 100%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.45);
  z-index: 3;
}

.afc-env-flap,
.afc-door-knob {
  display: none;
}

.afc-cell-num {
  position: relative;
  z-index: 3;
  font-family: var(--afc-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #eef5fc;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.afc-cell-tag {
  position: relative;
  z-index: 3;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(236, 244, 252, 0.92);
  color: #162336;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.afc-cell-lock {
  position: relative;
  z-index: 3;
  font-size: 13px;
  color: #dce8f5;
  opacity: 0.9;
}

.afc-peek-letter {
  position: absolute;
  inset: 10px 8px 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff9ea 0%, #f1dfb8 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  transform: rotate(9deg) translate(4px, 2px);
  z-index: 2;
  transition: transform 0.25s ease;
}

.afc-cell.is-open-me:hover .afc-peek-letter {
  transform: rotate(4deg) translate(2px, -6px);
}

.afc-open-ribbon {
  position: absolute;
  right: -6px;
  bottom: -6px;
  padding: 3px 7px;
  border-radius: 5px;
  background: linear-gradient(135deg, #f8d278 0%, #d8902a 100%);
  color: #291505;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transform: rotate(16deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.afc-home[data-theme="evergreen"] .afc-roof-snow {
  display: none;
}

.afc-home[data-theme="evergreen"] .afc-roof-garland {
  display: block;
  position: relative;
  background: linear-gradient(180deg, #102a20 0%, #0d221a 100%);
  border: 2px solid rgba(230, 194, 122, 0.55);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  padding: 16px 22px 10px;
}

.afc-garland-bough {
  height: 10px;
  border-radius: 999px;
  background: repeating-linear-gradient(45deg, #194936, #194936 10px, #25634a 10px, #25634a 20px);
  margin-bottom: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.afc-garland-lights {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.afc-bulb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(230, 194, 122, 0.25);
}

.afc-bulb.is-lit {
  background: #f5c96e;
  box-shadow: 0 0 10px rgba(245, 201, 110, 0.9);
}

.afc-bulb.is-berry {
  background: #c93838;
  box-shadow: 0 0 9px rgba(201, 56, 56, 0.85);
}

.afc-home[data-theme="evergreen"] .afc-village-board {
  background: linear-gradient(180deg, #0e221b 0%, #091812 100%);
  border-color: rgba(230, 194, 122, 0.55);
  border-top: none;
}

.afc-home[data-theme="evergreen"] .afc-shutter,
.afc-home[data-theme="evergreen"] .afc-sill {
  display: none;
}

.afc-home[data-theme="evergreen"] .afc-cell {
  padding: 2px 4px;
}

.afc-home[data-theme="evergreen"] .afc-cell-frame {
  border-radius: 8px;
  border: 2px solid #d9b468;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45), inset 0 0 0 4px rgba(0, 0, 0, 0.16);
}

.afc-home[data-theme="evergreen"] .afc-cell-frame::before {
  top: 7px;
  bottom: 7px;
  left: 7px;
  right: 7px;
  width: auto;
  transform: none;
  background: transparent;
  border: 1px solid rgba(230, 194, 122, 0.42);
  border-radius: 4px;
}

.afc-home[data-theme="evergreen"] .afc-cell-frame::after {
  display: none;
}

.afc-home[data-theme="evergreen"] .afc-cell.tone-1 .afc-cell-frame {
  background: linear-gradient(180deg, #9e2a2b 0%, #751c1d 100%);
}

.afc-home[data-theme="evergreen"] .afc-cell.tone-2 .afc-cell-frame {
  background: linear-gradient(180deg, #1f5440 0%, #14382a 100%);
}

.afc-home[data-theme="evergreen"] .afc-cell.tone-3 .afc-cell-frame {
  background: linear-gradient(180deg, #7c4d2b 0%, #56331b 100%);
}

.afc-home[data-theme="evergreen"] .afc-cell.is-lit .afc-cell-frame {
  box-shadow: 0 0 18px rgba(230, 194, 122, 0.32), inset 0 0 0 4px rgba(230, 194, 122, 0.14);
}

.afc-home[data-theme="evergreen"] .afc-cell-num {
  color: #f6dfaa;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.afc-home[data-theme="evergreen"] .afc-cell.is-open-me .afc-cell-num {
  color: #3b220d;
  text-shadow: none;
}

.afc-home[data-theme="evergreen"] .afc-cell.is-open-me .afc-door-knob {
  display: none;
}

.afc-home[data-theme="evergreen"] .afc-door-knob {
  display: block;
  position: absolute;
  right: 11px;
  top: 52%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #f4d27d;
  background: #8a6423;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 4;
}

.afc-home[data-theme="paper"] .afc-roof-snow,
.afc-home[data-theme="paper"] .afc-shutter,
.afc-home[data-theme="paper"] .afc-sill {
  display: none;
}

.afc-home[data-theme="paper"] .afc-roof-stationery {
  display: block;
  background: #f7f1e5;
  border: 1.5px solid #d9ccb4;
  border-bottom: 1px dashed #cbbba0;
  border-radius: 22px 22px 0 0;
  padding: 13px 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1e4d3b;
}

.afc-home[data-theme="paper"] .afc-village-board {
  background: linear-gradient(180deg, #f7f1e5 0%, #efe6d4 100%);
  border: 1.5px solid #d9ccb4;
  border-top: none;
  box-shadow: 0 18px 42px rgba(4, 10, 20, 0.45);
}

.afc-home[data-theme="paper"] .afc-board-hint {
  color: #46584f;
}

.afc-home[data-theme="paper"] .afc-cell {
  padding: 2px 3px;
}

.afc-home[data-theme="paper"] .afc-cell-frame {
  border-radius: 8px;
  border: 1.5px solid #cdbca0;
  box-shadow: 0 6px 14px rgba(48, 36, 20, 0.14);
  overflow: hidden;
}

.afc-home[data-theme="paper"] .afc-cell.is-open-me .afc-cell-frame {
  overflow: visible;
}

.afc-home[data-theme="paper"] .afc-cell.is-open-me .afc-cell-num {
  position: relative;
  z-index: 4;
}

.afc-home[data-theme="paper"] .afc-cell-frame::before,
.afc-home[data-theme="paper"] .afc-cell-frame::after {
  display: none;
}

.afc-home[data-theme="paper"] .afc-cell.tone-1 .afc-cell-frame {
  background: linear-gradient(180deg, #eadac0 0%, #dfc9a7 100%);
}

.afc-home[data-theme="paper"] .afc-cell.tone-2 .afc-cell-frame {
  background: linear-gradient(180deg, #fcf9f2 0%, #f1eadc 100%);
}

.afc-home[data-theme="paper"] .afc-cell.tone-3 .afc-cell-frame {
  background: linear-gradient(180deg, #dbe4d8 0%, #c8d6c4 100%);
}

.afc-home[data-theme="paper"] .afc-env-flap {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(120, 95, 65, 0.14));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  border-bottom: 1px solid rgba(110, 86, 56, 0.2);
  transform-origin: top center;
  transition: transform 0.25s ease;
  z-index: 1;
}

.afc-home[data-theme="paper"] .afc-cell:hover .afc-env-flap {
  transform: rotateX(34deg);
}

.afc-home[data-theme="paper"] .afc-cell-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: #fff6e8;
  background: radial-gradient(circle at 35% 30%, #d9413b 0%, #a8231f 70%, #7d1512 100%);
  border: 2px solid rgba(255, 214, 195, 0.45);
  box-shadow: 0 3px 8px rgba(72, 16, 12, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.afc-home[data-theme="paper"] .afc-cell.tone-2 .afc-cell-num {
  background: radial-gradient(circle at 35% 30%, #e5be6b 0%, #b98932 72%, #8c631d 100%);
  color: #fff9ec;
}

.afc-home[data-theme="paper"] .afc-cell-tag {
  background: #1e4d3b;
  color: #fdfaf2;
}

.afc-home[data-theme="paper"] .afc-cell-lock {
  color: #6b5d4d;
  font-size: 12px;
}

.afc-home[data-theme="fireside"] .afc-village-board {
  background: linear-gradient(180deg, #2d131a 0%, #1c0b10 100%);
  border-color: rgba(242, 197, 114, 0.35);
}

.afc-home[data-theme="fireside"] .afc-shutter {
  background:
    repeating-linear-gradient(180deg, rgba(40, 12, 18, 0.5) 0 3px, transparent 3px 8px),
    linear-gradient(180deg, #7a3b45 0%, #4d2028 100%);
  border-color: #d9a88c;
}

.afc-board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(220, 232, 245, 0.14);
}

.afc-board-hint { font-size: 13px; color: #93abc7; }
.afc-footer-right { display: flex; align-items: center; gap: 10px; }

.afc-board-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f5c26b;
  color: #1b2432;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(245, 194, 107, 0.3);
}

.afc-chime-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(220, 232, 245, 0.28);
  background: #0e1a2b;
  color: #93abc7;
  cursor: pointer;
}

.afc-chime-btn.is-on {
  background: #f5c26b;
  color: #1b2432;
  border-color: #f5c26b;
}

.afc-create-card {
  background: linear-gradient(180deg, #172b45 0%, #122138 100%);
  border: 1px solid rgba(220, 232, 245, 0.24);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(4, 10, 20, 0.44);
}

.afc-create-head { margin-bottom: 22px; }
.afc-create-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f5c26b;
  margin-bottom: 6px;
}
.afc-create-head h2 {
  margin: 0 0 6px;
  font-family: var(--afc-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 30px;
  color: #dce8f5;
}
.afc-create-sub { margin: 0; font-size: 14px; color: #93abc7; }
.afc-create-form { display: grid; gap: 18px; }
.afc-form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.afc-field { display: grid; gap: 7px; }
.afc-field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.afc-field label, .afc-field-label { font-size: 13px; font-weight: 600; color: #dce8f5; }
.afc-field input[type="text"], .afc-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(220, 232, 245, 0.26);
  background: #0e1a2b;
  color: #dce8f5;
  font-size: 15px;
  font-family: inherit;
}
.afc-month-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.afc-text-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #f5c26b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.afc-mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.afc-mode-pill {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(220, 232, 245, 0.24);
  background: #0e1a2b;
  color: #93abc7;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.afc-mode-pill.is-active {
  background: rgba(245, 194, 107, 0.16);
  color: #f5c26b;
  border-color: #f5c26b;
}
.afc-theme-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.afc-theme-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 11px;
  border: 1px solid rgba(220, 232, 245, 0.22);
  background: #0e1a2b;
  color: #dce8f5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.afc-theme-chip.is-active {
  border-color: #f5c26b;
  background: rgba(245, 194, 107, 0.14);
  box-shadow: 0 0 0 1px #f5c26b;
}
.afc-swatch { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; border: 1px solid rgba(255, 255, 255, 0.28); }
.afc-swatch-snowglobe { background: linear-gradient(135deg, #101e33 45%, #f5c26b 100%); }
.afc-swatch-evergreen { background: linear-gradient(135deg, #1f5440 45%, #9e2a2b 100%); }
.afc-swatch-paper { background: linear-gradient(135deg, #f7f1e5 50%, #b52b27 100%); }
.afc-swatch-fireside { background: linear-gradient(135deg, #331820 45%, #f5c26b 100%); }

.afc-form-error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(200, 62, 59, 0.2);
  border: 1px solid #c83e3b;
  color: #ffd5d4;
  font-size: 14px;
}
.afc-form-info {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(245, 194, 107, 0.14);
  border: 1px solid rgba(245, 194, 107, 0.45);
  color: #fce2b0;
  font-size: 14px;
}
.afc-create-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.afc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 12px;
  border: none;
  background: #f5c26b;
  color: #1b2432;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.afc-btn-primary:hover { filter: brightness(1.06); }
.afc-btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }
.afc-code-shortcut { margin: 0; font-size: 14px; color: #93abc7; }
.afc-code-shortcut a { color: #f5c26b; font-weight: 600; }

.afc-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.afc-modal-backdrop { position: absolute; inset: 0; background: rgba(7, 14, 26, 0.78); backdrop-filter: blur(5px); }
.afc-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #fbf6ec;
  color: #1b2432;
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.56);
}
.afc-cream-note {
  background-image: linear-gradient(to bottom, transparent 27px, rgba(93, 114, 140, 0.14) 28px);
  background-size: 100% 28px;
}
.afc-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(27, 36, 50, 0.08);
  color: #1b2432;
  font-size: 22px;
  cursor: pointer;
}
.afc-paper-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #c83e3b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}
.afc-modal-card h3 {
  margin: 0 0 10px;
  font-family: var(--afc-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 26px;
  color: #1b2432;
}
.afc-paper-body { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: #313d4f; }
.afc-paper-meta { display: flex; justify-content: space-between; font-size: 13px; color: #5b697c; margin-bottom: 18px; }
.afc-modal-footer-actions { display: flex; justify-content: flex-end; }

@media (max-width: 920px) {
  .afc-window-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .afc-theme-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afc-roof-snow { height: 70px; }
}

@media (max-width: 640px) {
  .afc-village-board { padding: 20px 14px 16px; }
  .afc-window-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .afc-cell { height: 104px; padding: 4px 10px 8px; }
  .afc-shutter { width: 15px; }
  .afc-form-row-2 { grid-template-columns: 1fr; }
  .afc-create-card { padding: 20px 16px; }
  .afc-btn-primary { width: 100%; }
  .afc-roof-snow { height: 54px; margin: 0 -4px -6px; }
}