/* Home uses the shared theme and surface tokens, including dark mode. */
.home-view { max-width: 1480px; padding: 30px 52px 26px; }
body:has(#view-home:not([hidden])) #main-content { background: color-mix(in srgb, var(--accent) 3%, var(--settings-surface)); }
.home-intro { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-bottom: 23px; }
.home-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .3px; }
.home-eyebrow::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.home-intro h1 { font-size: clamp(23px, 1.9vw, 30px); line-height: 1.5; font-weight: 650; letter-spacing: -.7px; margin: 7px 0 5px; }
.home-intro > div > p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.home-wave { font-size: .88em; }
.home-title-ending { white-space: nowrap; }
.home-guide-button { display: flex; align-items: center; justify-content: center; gap: 9px; flex-shrink: 0; padding: 10px 15px; background: var(--settings-surface); border: 1px solid var(--settings-border); color: var(--muted); border-radius: 9px; font-size: 12px; }
.home-guide-button:hover { border-color: var(--theme-line); color: var(--accent); }
.home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.home-section-heading > div { display: flex; align-items: center; gap: 18px; }
.home-section-heading h2 { font-size: 16px; line-height: 1.6; font-weight: 600; }
.home-section-heading p, .home-heading-note { font-size: 12px; color: var(--quiet); }
.home-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 13px 0 25px; }
.home-tool-card { --tool-accent: var(--accent); --tool-soft: var(--theme-soft); position: relative; overflow: hidden; min-width: 0; min-height: 297px; padding: 26px 29px; border: 1px solid var(--settings-border); border-radius: 16px; background: radial-gradient(ellipse at 100% 0%, var(--theme-soft), transparent 54%), var(--settings-surface); box-shadow: 0 9px 24px #283d6c03; }
.home-tool-card.is-resume { --tool-accent: #7559da; --tool-soft: color-mix(in srgb, #8e72ef 11%, var(--settings-surface)); background: radial-gradient(ellipse at 100% 0%, var(--tool-soft), transparent 55%), var(--settings-surface); }
.home-tool-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tool-soft); color: var(--tool-accent); margin-bottom: 17px; }
.home-tool-icon .icon { width: 21px; height: 21px; }
.home-tool-card h2 { position: relative; z-index: 1; font-size: 22px; line-height: 1.5; font-weight: 650; }
.home-tool-card > p { position: relative; z-index: 1; max-width: 65%; font-size: 12px; color: var(--muted); line-height: 1.9; margin: 7px 0 14px; }
.home-tool-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 21px; }
.home-tool-tags > span { padding: 3px 9px; border-radius: 5px; border: 1px solid var(--settings-border); background: var(--settings-subtle); color: var(--quiet); font-size: 11px; }
.home-tool-action { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 39px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; color: #fff; background: var(--tool-accent); font-size: 12px; font-weight: 600; box-shadow: 0 4px 10px color-mix(in srgb, var(--tool-accent) 12%, transparent); }
.home-tool-action:hover { filter: brightness(.94); }
.home-tool-art { position: absolute; right: 28px; top: 78px; width: 141px; height: 145px; pointer-events: none; }
.home-art-sheet { position: absolute; top: 0; right: 7px; width: 117px; height: 122px; padding: 17px 12px; border: 1px solid color-mix(in srgb, var(--tool-accent) 21%, var(--settings-surface)); border-radius: 8px; background: var(--settings-surface); transform: rotate(9deg); box-shadow: 0 12px 28px color-mix(in srgb, var(--tool-accent) 9%, transparent); }
.home-art-sheet i { display: block; width: 43px; height: 22px; border-radius: 4px; background: color-mix(in srgb, var(--tool-accent) 21%, var(--settings-surface)); margin-bottom: 11px; }
.home-art-sheet b { display: block; height: 6px; border-radius: 5px; margin-top: 9px; background: color-mix(in srgb, var(--tool-accent) 10%, var(--settings-surface)); }
.home-art-sheet b:nth-of-type(2) { width: 77%; }.home-art-sheet b:last-child { width: 54%; }
.home-art-stamp { position: absolute; top: 0; left: -21px; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--tool-accent) 15%, var(--settings-surface)); border-radius: 12px; color: var(--tool-accent); background: var(--settings-surface); box-shadow: 0 4px 16px color-mix(in srgb, var(--tool-accent) 8%, transparent); font-size: 12px; font-weight: 600; transform: rotate(-7deg); }
.home-workspace-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; margin-bottom: 24px; }
.home-panel { min-width: 0; padding: 22px 24px; min-height: 297px; border: 1px solid var(--settings-border); border-radius: 15px; background: var(--settings-surface); box-shadow: 0 8px 24px #223a6b03; }
.home-panel > .home-section-heading { margin-bottom: 16px; }
.home-panel .home-section-heading h2 { font-size: 15px; }
.home-link { padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 12px; line-height: 1.7; white-space: nowrap; }
.home-link:hover { color: var(--theme-strong); }
.home-work-row { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; padding: 17px 0; border: 0; border-top: 1px solid var(--settings-border); background: transparent; text-align: left; color: var(--ink); }
.home-work-row:hover { background: var(--theme-faint); }
.home-work-icon { display: grid; place-items: center; flex: 0 0 37px; height: 37px; border-radius: 11px; background: var(--theme-soft); color: var(--accent); }
.home-work-icon .icon { height: 17px; width: 17px; }
.home-work-copy { min-width: 0; flex: 1; }
.home-work-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.home-work-copy small { display: block; color: var(--quiet); font-size: 11px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-work-type { font-size: 11px; color: var(--accent); background: var(--theme-soft); border-radius: 5px; padding: 3px 8px; flex-shrink: 0; }
.home-work-row > .icon { width: 14px; height: 14px; color: var(--quiet); margin-left: 8px; }
.home-work-row.is-resume .home-work-icon, .home-work-row.is-resume .home-work-type { color: #8868dd; background: color-mix(in srgb, #a48be8 12%, var(--settings-surface)); }
.home-work-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 192px; padding: 15px; text-align: center; }
.home-work-empty > .icon { color: var(--accent); background: var(--theme-soft); box-sizing: content-box; padding: 12px; border-radius: 14px; margin-bottom: 14px; }
.home-work-empty strong { font-size: 13px; font-weight: 500; }.home-work-empty p { color: var(--quiet); font-size: 12px; line-height: 1.8; margin-top: 7px; max-width: 360px; }
.home-materials-summary { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px dashed var(--theme-line); border-radius: 12px; background: var(--theme-faint); }
.home-materials-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; color: var(--accent); background: var(--theme-soft); border-radius: 10px; }
.home-materials-icon .icon { width: 20px; height: 20px; }
.home-materials-summary > div { flex: 1; min-width: 0; }.home-materials-summary h3 { font-size: 13px; font-weight: 600; line-height: 1.6; }
.home-materials-summary p { font-size: 11px; color: var(--quiet); line-height: 1.8; margin-top: 3px; }
#home-add-material { flex-shrink: 0; padding: 8px 10px; background: var(--settings-surface); border: 1px solid var(--theme-line); color: var(--accent); border-radius: 7px; font-size: 11px; }
.home-progress-heading { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin: 16px 0 10px; font-size: 12px; color: var(--quiet); }
.home-progress-heading .home-link { color: var(--ink); font-weight: 500; }
#home-materials-progress { display: block; width: 100%; height: 7px; appearance: none; border: 0; border-radius: 10px; overflow: hidden; background: var(--settings-control); accent-color: var(--accent); }
#home-materials-progress::-webkit-progress-bar { border-radius: 10px; background: var(--settings-control); }
#home-materials-progress::-webkit-progress-value { border-radius: 10px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, white)); }
#home-materials-progress::-moz-progress-bar { border-radius: 10px; background: var(--accent); }
.home-progress-detail { font-size: 10px; color: var(--quiet); line-height: 1.7; margin-top: 6px; }
.home-shared-note { padding: 12px 15px; margin-top: 12px; background: var(--theme-soft); border-radius: 10px; }
.home-shared-note strong { display: block; color: var(--accent); font-size: 12px; font-weight: 600; }
.home-shared-note p { color: var(--muted); font-size: 11px; line-height: 1.9; margin-top: 3px; }
.home-guide ol { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; padding: 0; margin: 13px 0 0; }
.home-guide li { display: flex; align-items: flex-start; gap: 12px; padding: 21px 20px; border: 1px solid var(--settings-border); border-radius: 14px; background: var(--settings-surface); }
.home-guide li > span { flex: 0 0 29px; height: 29px; line-height: 27px; text-align: center; font-size: 12px; color: var(--accent); border-radius: 50%; border: 1px solid var(--theme-line); background: var(--theme-faint); }
.home-guide h3 { font-size: 12px; font-weight: 600; line-height: 1.8; }.home-guide li p { color: var(--quiet); font-size: 11px; line-height: 1.8; margin-top: 4px; }
.home-footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--quiet); font-size: 10px; margin-top: 18px; }
.home-breadcrumb, .home-top-search { display: none; }
body:has(#view-home:not([hidden])) .studio-topbar { height: 63px; gap: 26px; }
body:has(#view-home:not([hidden])) .home-breadcrumb { display: flex; gap: 12px; align-items: center; margin-right: auto; color: var(--quiet); font-size: 12px; }
.home-breadcrumb strong { color: var(--ink); font-size: 12px; font-weight: 550; }
body:has(#view-home:not([hidden])) .home-top-search { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; min-height: 36px; background: var(--settings-subtle); border: 1px solid var(--settings-border); color: var(--quiet); border-radius: 9px; font-size: 12px; }
.home-top-search .icon { width: 15px; height: 15px; }.home-top-search kbd { font-family: inherit; margin-left: 12px; font-size: 10px; padding: 0 4px; background: var(--settings-surface); border: 1px solid var(--settings-border); border-radius: 3px; }
.home-search-dialog { width: min(650px, calc(100% - 28px)); }
.home-search-dialog h2 { font-size: 20px; }.home-search-dialog input { margin-bottom: 12px; }
#home-search-results { max-height: min(55vh, 500px); overflow: auto; margin-top: 10px; }
.home-search-empty { padding: 25px 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
@media (max-width: 1250px) {
  .home-view { padding: 30px; }.home-tool-card { padding: 25px; }.home-tool-art { right: 15px; transform: scale(.82); transform-origin: right center; }.home-tool-card > p { max-width: 67%; }
  .home-workspace-grid { grid-template-columns: 1.25fr 1fr; }.home-panel { padding: 21px; }.home-materials-summary { gap: 9px; padding: 12px; }.home-materials-icon { flex-basis: 33px; height: 35px; }
  .home-section-heading > div { gap: 12px; }.home-guide li { padding: 18px 15px; gap: 10px; }
}
@media (max-width: 1000px) {
  .home-view { padding: 25px 22px; }.home-intro { align-items: flex-start; }.home-intro h1 { font-size: 25px; }.home-guide-button { font-size: 11px; padding: 9px; }
  .home-workspace-grid { grid-template-columns: 1fr; }.home-panel { min-height: 240px; }.home-tool-art { opacity: .8; right: 12px; top: 50px; transform: scale(.65); }.home-tool-card > p { max-width: 100%; padding-right: 0; }.home-tool-card h2 { margin-top: 45px; }.home-tool-card { min-height: 330px; }
  .home-task-section .home-section-heading > div { align-items: flex-start; gap: 3px; flex-direction: column; }.home-heading-note { display: none; }.home-guide ol { grid-template-columns: 1fr; }.home-guide li { padding: 18px; }
  body:has(#view-home:not([hidden])) .home-top-search { font-size: 0; padding: 9px; }.home-top-search kbd { display: none; }
}
@media (max-width: 600px) {
  .home-view { padding: 24px 16px; }.home-intro { display: block; margin-bottom: 23px; }.home-intro h1 { font-size: 24px; max-width: 360px; }.home-intro > div > p { font-size: 12px; }.home-guide-button { margin-top: 13px; }
  .home-tools { grid-template-columns: 1fr; gap: 14px; margin-bottom: 19px; }.home-tool-card { padding: 23px; min-height: 289px; }.home-tool-card h2 { margin-top: 0; font-size: 22px; }.home-tool-card > p { max-width: 100%; }.home-tool-art { transform: scale(.62); transform-origin: top right; top: 32px; right: 18px; }.home-tool-tags { margin-bottom: 19px; }
  .home-panel { padding: 19px; }.home-work-row { gap: 10px; }.home-work-row > .icon { margin-left: 0; }.home-work-type { font-size: 10px; padding-inline: 5px; }.home-work-copy strong { font-size: 12px; }.home-work-copy small { font-size: 10px; }
  .home-materials-summary { flex-wrap: wrap; }.home-materials-summary > div { flex: 1 1 150px; }#home-add-material { margin-left: auto; }.home-progress-heading { font-size: 11px; gap: 10px; }.home-guide li { padding: 18px; }
  body:has(#view-home:not([hidden])) .studio-topbar { height: 55px; gap: 14px; }.home-breadcrumb > span { display: none; }body:has(#view-home:not([hidden])) .home-breadcrumb { gap: 0; }.home-footer { display: block; }.home-footer span { display: block; margin-top: 5px; }
  .home-search-dialog .home-work-type { display: none; }
}
@media (prefers-reduced-motion: reduce) { .home-tool-action { transition: none; } }
@media (max-width: 420px) {
  body:has(#view-home:not([hidden])) .home-breadcrumb { display: none; }
  body:has(#view-home:not([hidden])) .home-top-search { margin-right: auto; }
}
.experience-view { max-width: 1320px; padding: 30px; }
.experience-view .small-muted { white-space: normal; overflow-wrap: anywhere; line-height: 1.8; }
.experience-view :is(.card, .materials-workspace) { border-radius: var(--workspace-radius); border-color: var(--settings-border); background: var(--settings-surface); }
.experience-view .upload-zone { background: var(--settings-subtle); color: var(--ink); border-color: var(--settings-border); }
.experience-view .upload-zone:hover { background: var(--theme-faint); border-color: var(--accent); }
.experience-view .upload-icon { color: var(--accent); background: var(--settings-surface); border-color: var(--settings-border); }
.profile-readonly-identity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.profile-readonly-identity dt { color: var(--muted); font-size: 12px; }
.profile-readonly-identity dd { margin: 5px 0 0; font-size: 14px; overflow-wrap: anywhere; }
#profile-readonly > .settings-card { margin-top: 18px; }
.profile-readonly-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0 0; line-height: 1.9; font-size: 13px; color: var(--muted); }
.account-plan-preview { margin: 0 12px 8px; }
.current-plan-summary { padding: 12px; border: 1px solid var(--settings-border); border-radius: 10px; background: var(--settings-subtle); }
.current-plan-summary > strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.current-plan-summary .current-plan-count { color: var(--muted); font-size: 12px; margin-top: 6px; }
.current-plan-summary small { display: block; color: var(--quiet); font-size: 10px; margin-top: 7px; line-height: 1.7; }
.current-plan-summary progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 8px; overflow: hidden; appearance: none; background: var(--settings-border); margin-top: 8px; accent-color: var(--accent); }
.current-plan-summary progress::-webkit-progress-bar { background: var(--settings-border); border-radius: 8px; }
.current-plan-summary progress::-webkit-progress-value { background: var(--accent); border-radius: 8px; }
.current-plan-summary progress::-moz-progress-bar { background: var(--accent); border-radius: 8px; }
#current-plan-details { margin: 20px 0; }
#current-plan-details .current-plan-summary { padding: 20px; }
#current-plan-details .current-plan-summary strong { font-size: 18px; }
@media (max-width: 600px) {
  .experience-view { padding: 24px 16px; }
  .profile-readonly-identity { grid-template-columns: minmax(0, 1fr); }
}
