.home-page { gap: 36px; }
.home-top { display: grid; grid-template-columns: minmax(0,1fr) 325px; gap: 42px; align-items: start; }
.home-start { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.home-greeting h1 { margin-bottom: 7px; overflow-wrap: anywhere; }
.home-greeting > p { font-size: 17px; color: var(--text2); }
/* Three short messages arriving beside Antonello's portrait. */
.home-note { position: relative; display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 20px; width: min(100%, 540px); padding: 4px 0 9px 5px; align-items: end; }
.home-note-avatar { grid-column: 1; grid-row: 1; position: relative; width: 76px; height: 76px; margin-bottom: 75px; border-radius: 50%; transition: transform .25s; animation: home-photo-arrive .5s ease-out backwards; }
.home-note-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; border: 3px solid var(--surface); box-shadow: 0 9px 22px #142b4220; }
.home-note-avatar::before { content: ''; position: absolute; inset: -5px; border: 1px solid var(--line); border-top-color: #7096be; border-right-color: var(--red); border-radius: inherit; pointer-events: none; }
.home-note.has-unread .home-note-avatar::before { animation: home-note-ring 2.8s ease-out .7s 2; }
.home-note-avatar:hover { transform: translateY(-3px) rotate(-3deg); }
.home-note-indicator { position: absolute; top: -3px; right: -3px; display: grid; place-items: center; min-width: 27px; height: 27px; padding: 0 5px; border-radius: 50%; border: 3px solid var(--bg); background: #244763; color: white; font: 600 11px/1 var(--font); animation: home-badge-arrive .5s cubic-bezier(.2,.8,.2,1) .2s both; }
.home-note.has-unread .home-note-indicator { background: var(--red); }
.home-note-symbol { display: flex; }
.home-note-symbol svg { width: 13px; height: 13px; }
.home-note-thread { grid-column: 2; grid-row: 1; min-width: 0; transform-origin: 0 80%; transition: opacity .2s, transform .2s; }
.home-note-byline { display: flex; align-items: center; gap: 9px; min-height: 29px; padding-left: 4px; margin-bottom: 5px; color: var(--text2); font-size: 11px; font-weight: 500; }
.home-note-unread { margin-left: auto; font-size: 10px; color: var(--red); }
.home-note-unread::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.home-note-dismiss { display: grid; place-items: center; flex-shrink: 0; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; color: var(--text2); }
.home-note-dismiss svg { width: 13px; height: 13px; }
.home-note-dismiss:hover { color: var(--text); background: var(--surface2); }
.home-note-messages { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.home-note-message { width: fit-content; max-width: 100%; margin: 0; padding: 12px 17px; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; background: var(--surface); box-shadow: 0 5px 15px -8px #152d4533; color: var(--text); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; transform-origin: 0 100%; animation: home-message-arrive .46s cubic-bezier(.2,.8,.2,1) var(--arrival,260ms) backwards; }
.home-note-message:last-child { background: var(--blue-soft); border-color: transparent; }
.home-note-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-top: 7px; padding-left: 3px; }
.home-note-links > :is(a,button) { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding-block: 5px; color: var(--blue); font-size: 11px; text-align: left; }
.home-note-links svg { width: 13px; height: 13px; flex-shrink: 0; }
.home-note-links .home-note-read { flex-basis: 100%; }
.home-note-read:disabled { color: var(--text2); cursor: default; }
.home-note-links > :is(a,button):not(:disabled):hover { text-decoration: underline; text-underline-offset: 3px; }
.home-note-links > [data-home-messages] { color: var(--text2); }
.home-note-recall { grid-column: 2; grid-row: 1; align-self: center; text-align: left; }
.home-note-recall > strong { display: block; font-size: 14px; font-weight: 600; }
.home-note-recall > span { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--blue); font-size: 12px; }
.home-note-recall svg { width: 13px; height: 13px; }
.home-note.is-dismissed { min-height: 96px; }
.home-note.is-dismissed .home-note-avatar { margin-bottom: 0; align-self: center; }
.home-note.is-dismissed .home-note-thread { position: absolute; left: 101px; right: 0; bottom: 0; opacity: 0; transform: translate(-18px,12px) scale(.92); pointer-events: none; }
.home-note.is-dismissed .home-note-message { animation: none; }
.home-note [hidden] { display: none; }
.home-note button:focus-visible, .home-note a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@keyframes home-photo-arrive { from { opacity: 0; transform: scale(.9) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes home-badge-arrive { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes home-message-arrive { from { opacity: 0; transform: translate(16px,14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes home-note-ring { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 6px var(--red-soft); } }
.home-resume { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 20px; align-items: center; padding: 17px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 3px; }
.home-resume-image { align-self: stretch; min-height: 152px; border-radius: 8px; overflow: hidden; background: var(--deep); }
.home-resume-image img { width: 100%; height: 100%; object-fit: cover; }
.home-status { display: inline-flex; margin-bottom: 7px; font-size: 12px; font-weight: 600; color: var(--blue); }
.home-resume h2 { font-size: 20px; line-height: 1.3; }
.home-resume p { color: var(--text2); font-size: 13px; line-height: 1.6; margin-block: 8px 14px; }
.home-resume .lnk { font-size: 12px; }
.home-configuration { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 23px; }
.home-configuration h2 { font-family: var(--font); font-size: 16px; font-weight: 600; }
.home-configuration .lnk { font-size: 12px; }
.home-configuration dl { margin: 19px 0 0; display: grid; gap: 15px; }
.home-configuration dl > div { padding-top: 13px; border-top: 1px solid var(--line); }
.home-configuration dt { font-size: 12px; color: var(--text2); margin-bottom: 6px; }
.home-configuration dd { margin: 0; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.home-cad-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.home-cad-tags > span { background: var(--blue-soft); color: var(--blue); border-radius: 5px; padding: 4px 8px; font-size: 11px; }
.offset-state { display: block; font-size: 11px; font-weight: 400; color: var(--text2); margin-top: 4px; }
.offset-state.verified { color: var(--green); }
.offset-state svg { width: 13px; height: 13px; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.home-section-heading h2 { font-size: 22px; }
.home-section-heading p { margin-top: 5px; font-size: 13px; color: var(--text2); }
.home-section-heading .lnk { font-size: 13px; flex-shrink: 0; }
.home-lesson-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(228px,1fr)); gap: 19px; }
.home-install-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
/* Gemini and both installations (method both, or not answered): one row of three. */
.home-install-grid.is-both { grid-template-columns: repeat(3,minmax(0,1fr)); }
.home-install-grid .lcard { display: grid; grid-template-columns: 42% minmax(0,1fr); }
.home-install-grid .lcard-img { height: 100%; min-height: 188px; }
.home-install-grid .lcard-img img { object-fit: contain; }
.home-lesson-grid .lcard-body { min-width: 0; }
.home-lesson-grid .lcard-body > .mono { font: 400 11px var(--font); letter-spacing: 0; text-transform: none; }
.home-lesson-grid .lcard-img { background: var(--deep); }
.home-lesson-grid .pills { flex-wrap: wrap; }
.home-resources { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 23px; }
.home-resources a { display: flex; align-items: center; gap: 13px; min-width: 0; }
.home-resources a > svg { color: var(--blue); width: 22px; }
.home-resources a > svg:last-child { margin-left: auto; width: 16px; }
.home-resources a span span { display: block; margin-top: 3px; font-size: 12px; color: var(--text2); }
.home-resources a strong { font-weight: 600; font-size: 14px; }
@media (max-width: 1100px) {
  .home-top { grid-template-columns: minmax(0,1fr) 290px; gap: 27px; }
  .home-resume { grid-template-columns: 115px minmax(0,1fr); gap: 15px; padding: 14px; }
  .home-resume h2 { font-size: 18px; }
  .home-configuration { padding: 19px; }
  .home-install-grid .lcard { display: flex; }
  .home-install-grid .lcard-img { height: 200px; min-height: 0; }
}
@media (max-width: 768px) {
  .home-page { gap: 30px; }
  .home-top { grid-template-columns: 1fr; gap: 23px; }
  .home-greeting > p { font-size: 15px; }
  .home-start { gap: 18px; }
  .home-note { grid-template-columns: 60px minmax(0,1fr); gap: 14px; padding-left: 3px; }
  .home-note-avatar { width: 60px; height: 60px; }
  .home-note-avatar::before { inset: -4px; }
  .home-note-indicator { min-width: 25px; height: 25px; top: -5px; right: -4px; border-width: 2px; font-size: 10px; }
  .home-note-byline { gap: 5px; }
  .home-note-unread { font-size: 0; }
  .home-note-unread::before { margin-right: 0; }
  .home-note-message { padding: 11px 13px; }
  .home-note.is-dismissed .home-note-thread { left: 77px; }
  .home-configuration dl { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; }
  .home-configuration dl > div { min-width: 0; }
  .home-resume { grid-template-columns: 100px minmax(0,1fr); padding: 12px; gap: 13px; }
  .home-resume-image { min-height: 190px; }
  .home-resume p { font-size: 12px; }
  .home-resume .btn { text-align: left; padding-inline: 11px; }
  .home-section-heading { align-items: start; }
  .home-section-heading h2 { font-size: 20px; }
  .home-section-heading .lnk { max-width: 90px; font-size: 12px; }
  .home-lesson-grid, .home-install-grid.is-both { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .home-lesson-grid .lcard-img { min-height: 0; height: auto; aspect-ratio: 16/11; }
  .home-lesson-grid .lcard-body { padding: 12px; gap: 9px; }
  .home-lesson-grid .lcard-body b { font-size: 14px; }
  .home-lesson-grid .lcard-summary { display: none; }
  .home-lesson-grid .pills { gap: 5px; }
  .home-lesson-grid .pill-l { width: 100%; margin-left: 0; }
  .home-resources { grid-template-columns: 1fr; gap: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-note, .home-note *, .home-note *::before, .home-note *::after { animation: none !important; transition: none !important; }
}

@media (pointer: coarse) {
  .home-note-dismiss { width: 44px; height: 44px; }
  .home-note-links > :is(a,button) { min-height: 44px; }
}
