/* Illustrated sentence cards. Applied only to days that have illustrations. */
.sentence-illustrated-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px!important;max-width:820px!important;width:100%}
.sentence-illustrated-list .sentence-illustrated-card{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:0;overflow:hidden;border:1px solid #8b4a2b;border-radius:16px;background:#fff}
.sentence-illustration{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;background:white}
.sentence-illustration-frame{position:relative;flex-shrink:0}
.sentence-illustration-number{position:absolute;right:8px;bottom:8px;display:flex;align-items:center;justify-content:center;width:52px;height:52px;box-sizing:border-box;padding:0;border:2px solid #000;border-radius:50%;background:#fff;color:#000;font:700 32px/1 Arial,sans-serif;pointer-events:none}
.sentence-illustrated-copy{padding:16px 18px 8px;min-width:0}
.sentence-illustrated-card .round6-sentence-cn,.sentence-illustrated-card .round4-sentence-cn{font-size:1.65rem;line-height:1.5;overflow-wrap:anywhere;letter-spacing:normal;padding-left:0}
.sentence-illustrated-card .round6-sentence-en{font-size:1.05rem;line-height:1.5;color:#786350;margin-top:6px;overflow-wrap:anywhere}
.sentence-illustrated-card .round6-right,.sentence-illustrated-card .round4-right{display:flex;flex-direction:column;align-items:center;padding:8px 18px 16px;justify-content:center;gap:8px;margin-top:auto;min-height:68px}
@media(max-width:600px){.sentence-illustrated-list{grid-template-columns:minmax(0,1fr);max-width:390px!important;gap:20px!important}.sentence-illustrated-copy{padding:14px 16px 6px}.sentence-illustrated-card .round6-right,.sentence-illustrated-card .round4-right{padding:6px 16px 14px}}



.sentence-char-button,.sentence-char-button:hover,.sentence-char-button:active,.sentence-char-button:focus,.sentence-char-button:focus-visible{display:inline;appearance:none;border:0!important;outline:0!important;box-shadow:none!important;border-radius:0;padding:0;margin:0;background:transparent!important;color:inherit!important;font:inherit;line-height:inherit;letter-spacing:inherit;vertical-align:baseline;cursor:pointer;text-decoration:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}

.recording-feedback{display:block;flex-basis:100%;font-size:12px;line-height:1.4;font-weight:400;color:#786350;max-width:100%;overflow-wrap:anywhere;text-align:center}.recording-feedback:empty{display:none}

.sentence-char-glyph{display:inline-block;transform-origin:center center}

.phrase-recording-actions{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-height:96px}.phrase-recording-actions .recording-feedback{flex-basis:auto;width:100%;min-height:1.4em}

.phrase-recording-actions .recording-feedback{grid-area:2 / 1}.phrase-recording-actions>button,.phrase-recording-actions>.loader-rotate{grid-area:1 / 1}

.main.lesson-restoring>:not(#learningDayHeading):not(#lessonRestoreStatus):not(#course-account):not(#course-account-status){visibility:hidden}.main.lesson-restoring #lessonRestoreStatus{min-height:1.4em}

@media(max-width:600px){
  #cardsRowRound3 .main-char.phrase-text,#cardsRowRound4 .main-char.phrase-text{font-size:28px!important;line-height:1.3;max-width:100%;min-height:96px;flex-wrap:wrap;align-content:center;overflow-wrap:anywhere}
  .course-overseas #summarySection .summary-table{display:block;table-layout:fixed;width:100%}
  .course-overseas #summarySection .summary-table tbody{display:block}
  .course-overseas #summarySection .summary-table tr{display:grid;grid-template-columns:40px minmax(0,.85fr) minmax(0,1fr);border-bottom:1px solid #e5e7eb}
  .course-overseas #summarySection .summary-table tr:last-child{border-bottom:0}
  .course-overseas #summarySection .summary-table td{display:block;min-width:0;overflow-wrap:anywhere;border-bottom:0;padding:10px 8px}
  .course-overseas #summarySection .summary-table tr.summary-sentence{grid-template-columns:40px minmax(0,1fr)}
  .course-overseas #summarySection .summary-sentence td:first-child{grid-column:1;grid-row:1 / span 2;align-self:center}
  .course-overseas #summarySection .summary-sentence .summary-cn{grid-column:2;grid-row:1;padding-bottom:3px}
  .course-overseas #summarySection .summary-sentence .summary-en{grid-column:2;grid-row:2;padding-top:0}
}

/* Compact phone phrase cards, using the same 3rem Chinese size as Phrase Matching. */
@media(max-width:600px){
  #cardsRowRound3,#cardsRowRound4{gap:12px 8px}
  #cardsRowRound3 .word-card,#cardsRowRound4 .word-card{width:calc((100% - 8px)/2);max-width:none;min-height:0;height:auto;padding:14px 12px 12px;gap:8px;justify-content:flex-start}
  #cardsRowRound3 .main-char.phrase-text,#cardsRowRound4 .main-char.phrase-text{font-size:3rem!important;line-height:1.15;height:auto;min-height:56px;width:100%;max-width:100%;flex-wrap:wrap;align-content:center}
  #cardsRowRound3 .phrase-recording-actions,#cardsRowRound4 .phrase-recording-actions{margin-top:0;min-height:0!important;grid-template-rows:32px minmax(18px,auto)!important;gap:4px!important}
  #cardsRowRound4 .translation{min-height:0;font-size:.95rem;line-height:1.35;overflow-wrap:anywhere}
}
