body { margin: 0; background: var(--efys-bg, #f5f7fb); }
.efys-ui { min-height: 100vh; color: var(--efys-text, #182230); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.app-topbar { min-height: 68px; padding: 0 clamp(16px, 3.2vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--efys-border-color, #e6eaf0); background: var(--efys-card-bg, #fff); }
.app-brand { display: inline-flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; font-size: 17px; letter-spacing: -.03em; }
.app-brand-mark,.auth-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#4f70e8,#7657d5); font-weight: 800; }
.app-top-actions { display: flex; align-items: center; gap: 10px; }
.app-user,.muted { color: var(--efys-text-muted, #788394); font-size: 13px; }
.inline-form { display: inline-flex; margin: 0; }
.app-main { width: 100%; max-width: none; margin: 0; min-height: calc(100vh - 125px); padding: 34px clamp(16px, 3.2vw, 64px) 64px; }
.app-footer { border-top: 1px solid var(--efys-border-color, #e6eaf0); padding: 20px 18px; text-align: center; color: var(--efys-text-muted, #788394); font-size: 12px; }
.eyebrow { display: inline-block; margin-bottom: 7px; color: #6574bf; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.page-heading h1,.reader-heading h1 { margin: 0 0 6px; font-size: clamp(28px,4vw,36px); letter-spacing: -.045em; }
.page-heading p,.project-hero p,.reader-heading p { margin: 0; color: var(--efys-text-muted, #788394); }
.search-panel { padding: 20px; margin-bottom: 24px; }
.search-row { display: flex; gap: 10px; }
.search-row .efys-input { flex: 1; min-width: 0; }
.category-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.category-link { padding: 6px 12px; border-radius: 999px; color: var(--efys-text-muted, #788394); text-decoration: none; font-size: 12px; }
.category-link:hover,.category-link.is-active { background: #eef1ff; color: #4b5ec7; }
.guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.guide-card { min-height: 235px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.guide-icon { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #eef1ff; color: #5b68c7; font-size: 21px; }
.guide-icon.large { width: 56px; height: 56px; font-size: 26px; }
.guide-meta { display: flex; align-items: center; gap: 8px; margin: 15px 0 10px; }
.guide-card h2 { margin: 0 0 7px; font-size: 18px; letter-spacing: -.02em; }
.guide-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 18px; color: var(--efys-text-muted, #788394); font-size: 13px; line-height: 1.6; }
.guide-open { justify-content: space-between; width: 100%; margin-top: auto; }
.empty-state { text-align: center; padding: 58px 20px; }
.empty-state h2 { margin: 12px 0 8px; font-size: 20px; }
.empty-state p { color: var(--efys-text-muted, #788394); margin: 0 auto 20px; max-width: 420px; }
.empty-state.compact { padding: 38px 20px; }
.empty-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #eef1ff; color: #596bd0; font-size: 23px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 0 0 20px; color: var(--efys-text-muted, #788394); font-size: 12px; }
.breadcrumb a,.back-link { color: #596bd0; text-decoration: none; }
.project-hero { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.project-hero-main { display: flex; gap: 17px; align-items: flex-start; }
.project-hero-main h1 { margin: 8px 0 5px; font-size: clamp(23px,3vw,30px); letter-spacing: -.04em; }
.project-hero-main p { margin: 0 0 10px; max-width: 650px; line-height: 1.6; }
.project-actions,.step-actions,.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 17px; }
.section-title-row h2 { margin: 0; font-size: 21px; }
.manage-timeline,.reader-timeline { width: 100%; max-width: none; margin: 0; }
.manage-timeline .efys-timeline-item,.reader-timeline .efys-timeline-item { padding-bottom: 27px; }
.manage-step-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.manage-step-head h3 { margin: 8px 0 0; }
.step-actions { justify-content: flex-end; }
.step-actions button:disabled { opacity: .4; cursor: not-allowed; }
.step-content-copy-row { display: flex; align-items: center; gap: 12px; margin-top: 13px; }
.step-code { flex: 1 1 auto; min-width: 0; margin: 0; padding: 14px; border-radius: 10px; background: #f3f5f8; color: #344054; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.step-code.is-code { background: #172033; color: #e5eaf4; white-space: pre; overflow-wrap: normal; }
.step-copy-button { flex: 0 0 auto; }
.step-image-thumb { display: block; max-width: min(420px,100%); max-height: 260px; object-fit: contain; margin-top: 14px; border-radius: 10px; border: 1px solid var(--efys-border-color,#e6eaf0); }
.form-card { max-width: 760px; margin: 0 auto; overflow: hidden; }
.form-card > .efys-card-header { padding: 24px 26px 0; border: 0; }
.form-card > .efys-card-header h1 { margin: 0 0 5px; font-size: 25px; }
.form-card > .efys-card-header p { margin: 0; color: var(--efys-text-muted,#788394); }
.form-card > form { padding: 22px 26px 26px; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { justify-content: flex-end; margin-top: 26px; }
.required { color: #d14343; }
.code-input { font-family: Consolas,Monaco,monospace; }
.efys-upload { margin-top: 8px; }
.efys-upload-box { min-height: 125px; cursor: pointer; }
.efys-upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.current-image { display: flex; align-items: center; gap: 16px; margin-top: 15px; }
.current-image img { max-width: 150px; max-height: 110px; object-fit: contain; border-radius: 8px; }
.auth-card { width: min(420px,100%); margin: 5vh auto 0; padding: 30px; }
.auth-mark { width: 48px; height: 48px; margin-bottom: 20px; font-size: 20px; }
.auth-card h1 { margin: 2px 0 7px; font-size: 28px; letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 24px; color: var(--efys-text-muted,#788394); }
.auth-card form { margin-top: 22px; }
.auth-card .efys-alert { margin-top: 18px; }
.app-flash { margin-bottom: 18px; }
.reader-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.reader-heading { max-width: 800px; margin: 0 auto 40px; text-align: center; }
.reader-heading .efys-badge { display: table; margin: 0 auto 12px; }
.reader-heading h1 { margin-bottom: 9px; }
.reader-heading p { max-width: 620px; margin: 0 auto; line-height: 1.65; }
.reader-summary { display: inline-block; margin-top: 18px; padding: 7px 12px; border-radius: 999px; background: var(--efys-bg-light,#f0f2f6); color: var(--efys-text-muted,#788394); font-size: 12px; }
.reader-timeline .efys-timeline-content { padding: 4px 0 4px 8px; }
.step-kicker { color: #6876c6; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.reader-timeline .efys-timeline-title { margin: 6px 0 8px; font-size: 22px; }
.reader-description,.reader-content { color: var(--efys-text-muted,#667085); line-height: 1.75; }
.reader-content { margin-top: 13px; white-space: normal; }
.reader-note { padding: 13px 16px; border-left: 3px solid #e8b64e; border-radius: 6px; background: #fff8e8; color: #795b22; }
.reader-code { margin-top: 16px; overflow: hidden; border-radius: 12px; background: #151d2e; color: #e6ebf5; }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; border-bottom: 1px solid #2c3547; color: #9ca9bf; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.reader-code pre { margin: 0; padding: 17px; overflow: auto; white-space: pre; font: 13px/1.65 Consolas,Monaco,monospace; }
.reader-code code { color: inherit; }
.reader-image { margin: 18px 0 0; }
.reader-image img { display: block; max-width: 100%; max-height: 560px; border-radius: 12px; object-fit: contain; }
.reader-image figcaption { margin-top: 7px; color: var(--efys-text-muted,#788394); font-size: 11px; }
.guide-complete { display: flex; align-items: center; gap: 12px; margin: 2px 0 0 14px; padding: 16px 0 0 22px; border-left: 2px solid #d9e2ed; }
.guide-complete span { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -37px; border-radius: 50%; background: #e5f6ec; color: #27804a; }
.guide-complete strong { color: #27804a; }
@media (max-width: 820px) { .guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .project-hero { align-items: flex-start; flex-direction: column; } .project-actions { width: 100%; } }
@media (max-width: 560px) { .app-topbar { padding: 0 16px; } .app-user { display: none; } .app-main { padding-top: 25px; } .page-heading { align-items: flex-start; flex-direction: column; } .guide-grid { grid-template-columns: 1fr; } .search-panel { padding: 15px; } .search-row { flex-wrap: wrap; } .search-row .efys-input { flex-basis: 100%; } .project-hero { padding: 18px; } .project-hero-main { gap: 12px; } .project-actions { width: 100%; } .project-actions .efys-btn { flex: 1 1 auto; } .section-title-row { align-items: flex-start; gap: 10px; } .manage-step-head { flex-direction: column; } .step-actions { justify-content: flex-start; } .step-content-copy-row { align-items: stretch; flex-direction: column; } .step-copy-button { align-self: flex-end; } .form-card > .efys-card-header { padding: 20px 18px 0; } .form-card > form { padding: 20px 18px; } .form-columns { grid-template-columns: 1fr; } .form-actions .efys-btn { flex: 1; } .auth-card { padding: 24px 20px; } .reader-heading { margin-bottom: 30px; } .reader-timeline .efys-timeline-title { font-size: 19px; } .reader-top .efys-btn { font-size: 11px; } }
