/* 07 — 01's paper, 04's stamp and 02's drafting surface. */
.pc-section[data-direction="07"] .pc-card { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); min-height: 437px; border-radius: 8px; background: #fafbf7; }
.pc-section[data-direction="07"] .pc-compose { padding: 30px 34px 23px; }
.pc-section[data-direction="07"] .pc-writing { height: 263px; margin-bottom: 18px; background: repeating-linear-gradient(transparent 0 37px, #e6ebdf 37px 38px); }
.pc-section[data-direction="07"] .pc-picture { padding: 24px 25px 22px; border-radius: 0 7px 7px 0; background-color: #edf2e4; background-image: linear-gradient(#b9c8a92e 1px, transparent 1px), linear-gradient(90deg, #b9c8a92e 1px, transparent 1px); background-size: 18px 18px; }
.pc-section[data-direction="07"] .pc-picture-top { color: #63764b; }
.pc-section[data-direction="07"] .pc-art-mat { width: 85%; max-width: 340px; margin-block: 24px 17px; padding: 5px; border: 8px solid #fff; border-radius: 0; outline: 1px solid #d2dcc3; background: #f2f6e9; box-shadow: 0 2px 3px #25391805, 0 8px 17px #2539180b; }
.pc-section[data-direction="07"] .pc-art-mat::before { content: ''; position: absolute; z-index: -1; inset: -13px; background: radial-gradient(circle at 5px 5px, transparent 2.8px, #fff 3.2px); background-size: 10px 10px; }
.pc-section[data-direction="07"] .pc-art-mat::after { content: ''; position: absolute; inset: 0; border: 1px solid #adbf922e; pointer-events: none; }
.pc-section[data-direction="07"] .pc-art-button { border-radius: 0; perspective: none; cursor: pointer; }
.pc-section[data-direction="07"] .pc-art-button:not(.hero-tab):not(:disabled):active { cursor: pointer; }
.pc-section[data-direction="07"] .pc-art-scene { transform: none; }
.pc-section[data-direction="07"] .pc-machine { max-height: none; aspect-ratio: 480 / 390; }
.pc-section[data-direction="07"] .pc-art-caption { margin-top: 0; font-size: 11px; }
.pc-section[data-direction="07"] .pc-writing-keys { justify-content: flex-start; gap: 9px; padding-top: 0; border-top: 0; }
.pc-section[data-direction="07"] .pc-writing-keys > button { gap: 9px; min-height: 44px; padding: 4px 12px 4px 5px; border: 1px solid #d0d9c3; border-radius: 12px; color: #485c33; background: #f5f8ee; box-shadow: inset 0 1px 0 #fff, 0 2px 0 #d7dfcc; font-size: 12px; }
.pc-section[data-direction="07"] .pc-writing-keys > .pc-rewrite-key { padding-right: 10px; background: #eaf2da; border-color: #c4d2af; }
.pc-section[data-direction="07"] .pc-key-icon { position: relative; display: grid; flex-shrink: 0; place-items: center; width: 30px; height: 30px; border: 1px solid #c9d5b9; border-radius: 8px; background: #fff; box-shadow: 0 1px 0 #c3cfb2; }
.pc-section[data-direction="07"] .pc-key-icon > svg { display: block; width: 19px; height: 19px; }
.pc-section[data-direction="07"] .pc-undo-icon { transform-box: view-box; transform-origin: 50% 50%; }
.pc-section[data-direction="07"] .pc-key-icon > .pc-rub-icon { position: absolute; opacity: 0; }
.pc-section[data-direction="07"] .pc-key-return { align-self: flex-end; margin: 0 0 3px 8px; color: #8a9a73; font: 12px var(--mono); }
.pc-section[data-direction="07"] .pc-undo-key:disabled { opacity: .45; box-shadow: none; background: transparent; }
.pc-section[data-direction="07"][data-phase="erase"] .pc-type-icon { opacity: 0; }
.pc-section[data-direction="07"][data-phase="erase"] .pc-key-icon > .pc-rub-icon { opacity: 1; }
.pc-section[data-direction="07"] .pc-recipient > div { gap: 0 13px; }
.pc-section[data-direction="07"] .pc-recipient .pc-copy-key { position: relative; gap: 7px; min-height: 36px; padding: 7px 10px; border: 1px solid #d6ddcc; border-radius: 18px; background: #f5f7f0; box-shadow: inset 0 1px 0 #fff; font-size: 10px; }
.pc-copy-art { position: relative; display: block; width: 15px; height: 15px; }
.pc-copy-art > svg { position: absolute; inset: 0; width: 15px; height: 15px; }
.pc-copy-art > .pc-copy-check { opacity: 0; }
.pc-copy-key[data-copied="true"] .pc-copy-art > svg:first-child { opacity: 0; }
.pc-copy-key[data-copied="true"] .pc-copy-art > .pc-copy-check { opacity: 1; }
.pc-copy-key[data-copied="true"] { color: #425c22; background: #e8f5cf !important; }
.pc-section[data-direction="07"][data-mode="showoff"] .pc-picture { color: #d4e7b3; border-left-color: #314523; background-color: #24301f; background-image: linear-gradient(#d8edb010 1px, transparent 1px), linear-gradient(90deg, #d8edb010 1px, transparent 1px); }
.pc-section[data-direction="07"][data-mode="showoff"] .pc-picture-top { color: #bed69d; }
.pc-section[data-direction="07"][data-mode="showoff"] .pc-art-caption { color: #b8caa2; }
.pc-section[data-direction="07"][data-mode="showoff"] .pc-art-mat { width: 91%; max-width: 360px; margin-block: 16px 15px; background: #e6edda; transform: rotate(3deg); outline: 0; box-shadow: 2px 3px 0 #d3dbc6, 4px 6px 0 #c0cbb0, 6px 9px 0 #dce4d0, 12px 24px 20px #08120166; }
.pc-section[data-direction="07"][data-mode="showoff"] .pc-underlay { display: block; position: absolute; z-index: -1; inset: 6px -4px -6px 4px; border: 1px solid #cfdbc0; border-radius: 8px; background: #e9f2dc; transform: rotate(-.6deg); }
.pc-section[data-direction="07"][data-mode="showoff"] .pc-eraser { filter: drop-shadow(0 4px 4px #2539181a); }
.pc-section[data-direction="07"][data-mode="showoff"][data-open="true"] .pc-art-mat { transform: rotate(-1.5deg) translateY(-3px); }
.pc-section[data-direction="07"][data-mode="bare"] .pc-card { border-radius: 0; border-color: #bbb; background: white; }
.pc-section[data-direction="07"][data-mode="bare"] .pc-writing { background: none; }
.pc-section[data-direction="07"][data-mode="bare"] .pc-picture { border-radius: 0; color: #444; background: white; border-left-color: #bbb; }
.pc-section[data-direction="07"][data-mode="bare"] .pc-picture-top { color: #666; }
.pc-section[data-direction="07"][data-mode="bare"] .pc-art-mat { width: 88%; padding: 0; border: 1px solid #bbb; outline: 0; box-shadow: none; background: white; }
.pc-section[data-direction="07"][data-mode="bare"] .pc-art-mat::before, .pc-section[data-direction="07"][data-mode="bare"] .pc-art-mat::after { display: none; }
.pc-section[data-direction="07"][data-mode="bare"] .pc-writing-keys > button { min-height: 44px; padding: 7px 12px; border: 1px solid #aaa; border-radius: 0; color: #333; background: #f6f6f6; box-shadow: none; font:var(--bare-type-control); }
.pc-section[data-direction="07"][data-mode="bare"] .pc-key-icon { width: 20px; height: 25px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.pc-section[data-direction="07"][data-mode="bare"] .pc-key-return { display: none; }
.pc-section[data-direction="07"][data-mode="bare"] .pc-copy-key { border-radius: 0; background: #f6f6f6; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .pc-section[data-direction="07"] .pc-writing-keys > button { transition: background-color 150ms var(--ease), scale 150ms ease-out; }
  .pc-section[data-direction="07"] .pc-key-icon { transition: transform 150ms var(--ease); }
  .pc-section[data-direction="07"] .pc-key-icon > svg, .pc-copy-art > svg { transition: opacity 150ms var(--ease); }
  .pc-section[data-direction="07"] .pc-writing-keys > button:not(:disabled):active .pc-key-icon { transform: translateY(2px); }
  @media (hover: hover) and (pointer: fine) {
    .pc-section[data-direction="07"] .pc-writing-keys > button:not(:disabled):hover { background: #e1edcb; }
    .pc-section[data-direction="07"] .pc-writing-keys > button:not(:disabled):hover .pc-key-icon { transform: translateY(-1px); }
    .pc-section[data-direction="07"] .pc-copy-key:hover .pc-copy-art > svg:first-child { transform: rotate(-8deg); }
    .pc-section[data-direction="07"][data-mode="showoff"] .pc-art-button:hover .pc-machine { transform: none; }
  }
}
@container postcard-preview (max-width: 1050px) {
  .pc-section[data-direction="07"] .pc-compose { padding-inline: 27px; }
  .pc-section[data-direction="07"] .pc-picture { padding-inline: 19px; }
  .pc-section[data-direction="07"] .pc-card { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); }
  .pc-section[data-direction="07"] .pc-sendline { flex-wrap: wrap; }
  .pc-section[data-direction="07"] .pc-send-action { margin-left: auto; }
}
@container postcard-preview (max-width: 760px) {
  .pc-section[data-direction="07"] .pc-card { grid-template-columns: 1fr; min-height: 0; }
  .pc-section[data-direction="07"] .pc-compose { padding: 23px 23px 20px; }
  .pc-section[data-direction="07"] .pc-writing { height: 205px; margin-bottom: 16px; background: repeating-linear-gradient(transparent 0 34px, #e6ebdf 34px 35px); }
  .pc-section[data-direction="07"] .pc-picture { padding: 19px 23px 23px; border-left: 0; border-top: 1px solid #d4dcca; border-radius: 0 0 7px 7px; }
  .pc-section[data-direction="07"] .pc-art-mat { width: 83%; max-width: 265px; margin-block: 22px 20px; }
  .pc-section[data-direction="07"][data-mode="showoff"] .pc-art-mat { width: 91%; max-width: 280px; margin-block: 23px; }
  .pc-section[data-direction="07"] .pc-machine { max-height: none; }
  .pc-section[data-direction="07"] .pc-writing-keys { justify-content: space-between; gap: 7px; }
  .pc-section[data-direction="07"] .pc-writing-keys > button { gap: 7px; font-size: 10px; }
  .pc-section[data-direction="07"] .pc-key-return { display: none; }
  .pc-section[data-direction="07"] .pc-sendline { flex-wrap: nowrap; gap: 18px; }
  .pc-section[data-direction="07"] .pc-send-action { margin-left: 0; }
  .pc-section[data-direction="07"] .pc-recipient > div { gap: 11px; margin-top: 8px; }
  .pc-section[data-direction="07"] .pc-recipient a { font-size: 11px; }
  .pc-section[data-direction="07"][data-mode="bare"] .pc-writing { background: none; }
  .pc-section[data-direction="07"][data-mode="bare"] .pc-picture { border-left: 0; border-top-color: #bbb; border-radius: 0; }
}
@container postcard-preview (max-width: 360px) {
  .pc-section[data-direction="07"] .pc-compose { padding-inline: 18px; }
  .pc-section[data-direction="07"] .pc-writing-keys > button { padding-right: 9px; font-size: 9px; }
  .pc-section[data-direction="07"] .pc-key-icon { width: 28px; height: 29px; }
  .pc-section[data-direction="07"] .pc-recipient > div { gap: 9px; }
  .pc-section[data-direction="07"] .pc-recipient a { font-size: 10px; }
  .pc-section[data-direction="07"] .pc-copy-key { padding-inline: 8px; font-size: 9px; }
}
