.ec-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border-radius: 9px; font-weight: 700; font-size: 12px; background: var(--ec-primary); color: var(--ec-on-primary, #fff); border: 1px solid transparent; line-height: 1.7; }
.ec-btn:hover { background: var(--ec-primary-hover); }
.ec-btn-secondary { background: var(--ec-surface); border-color: var(--ec-border); color: var(--ec-text); }
[data-theme="shadow"] .ec-btn-secondary { color: var(--ec-text); }
.ec-btn-secondary:hover { background: var(--ec-surface-alt); }
.ec-btn-soft { background: var(--ec-primary-soft); color: var(--ec-primary); }
[data-theme="shadow"] .ec-btn-soft { color: var(--ec-primary); }
.ec-btn-soft:hover { background: var(--ec-surface-alt); }
.ec-btn-small { padding: 7px 12px; font-size: 11px; }
.ec-btn-full { width: 100%; }
.ec-text-link { color: var(--ec-primary); font-size: 12px; font-weight: 700; background: none; display: inline-flex; gap: 7px; align-items: center; }
.ec-icon-btn { width: 39px; height: 39px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--ec-border); background: var(--ec-surface); flex-shrink: 0; }
.ec-icon-btn:hover { background: var(--ec-surface-alt); }
.ec-avatar { width: 38px; height: 38px; border-radius: 50%; background: #f3dfc9; color: #704527; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.ec-avatar-green { background: #dce8d7; color: #3d6246; }
.ec-card { background: var(--ec-surface); border: 1px solid var(--ec-border); border-radius: var(--ec-radius); padding: 23px; box-shadow: var(--ec-shadow); min-width: 0; }
.ec-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--ec-green-soft); color: var(--ec-green); border-radius: 6px; padding: 3px 9px; font-size: 10px; font-weight: 700; }
.ec-badge-warm { color: var(--ec-primary); background: var(--ec-primary-soft); }
.ec-badge-neutral { background: var(--ec-surface-alt); color: var(--ec-muted); }
.ec-search { position: relative; display: flex; align-items: center; gap: 9px; background: var(--ec-bg); border: 1px solid var(--ec-border); border-radius: 10px; padding: 9px 14px; width: 330px; }
.ec-search input { width: 100%; border: 0; background: transparent; color: var(--ec-text); outline: none; font-size: 12px; min-width: 0; }
.ec-search:focus-within { outline: 2px solid var(--ec-primary); }
.ec-search .ec-icon { width: 17px; color: var(--ec-muted); }
.ec-kbd { font-size: 10px; padding: 1px 5px; border: 1px solid var(--ec-border); border-radius: 4px; color: var(--ec-muted); }
.ec-progress { width: 100%; height: 5px; border: 0; border-radius: 10px; display: block; appearance: none; background: var(--ec-surface-alt); color: var(--ec-green); overflow: hidden; }
.ec-progress::-webkit-progress-bar { background: var(--ec-surface-alt); border-radius: 10px; }
.ec-progress::-webkit-progress-value { background: var(--ec-green); border-radius: 10px; }
.ec-progress::-moz-progress-bar { background: var(--ec-green); border-radius: 10px; }
.ec-progress-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11px; color: var(--ec-muted); }
.ec-course { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ec-course-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ec-course h3 { font-size: 15px; }
.ec-course h3 a:hover { color: var(--ec-primary); }
.ec-course-meta { font-size: 10px; color: var(--ec-muted); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ec-course-meta .ec-icon { width: 13px; height: 13px; }
.ec-course-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ec-border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ec-cover { height: 155px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #dbe6d2; color: #3c5848; isolation: isolate; }
.ec-cover > .ec-badge { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; background: #ffffffdc; color: #344e3e; z-index: 2; }
.ec-cover-word { position: absolute; inset-block-end: 12px; inset-inline-start: 17px; font-size: 10px; letter-spacing: 3px; font-family: Arial,sans-serif; opacity: .7; }
.ec-cover-orbit { width: 148px; height: 148px; border: 1px solid currentColor; border-radius: 50%; opacity: .22; position: absolute; inset-inline-end: -22px; inset-block-start: -45px; }
.ec-cover-object { width: 110px; height: 88px; background: #f7f7e9; border: 1px solid #668068; box-shadow: 10px 10px 0 #839d7b; border-radius: 7px; transform: rotate(-8deg); display: grid; grid-template-columns: 27px 1fr; overflow: hidden; color: #3a5844; }
.ec-cover-object::before { content: ""; background: #adc5a0; border-inline-end: 1px solid #668068; }
.ec-cover-lines { display: flex; flex-direction: column; padding: 15px 10px; gap: 8px; }
.ec-cover-lines i { height: 4px; background: currentColor; opacity: .4; width: 100%; }
.ec-cover-lines i:nth-child(2) { width: 60%; }
.ec-cover-lines b { width: 28px; height: 22px; background: #c16d43; border-radius: 3px; }
.ec-cover[data-art="code"] { background: #dce4f1; color: #4e6488; }
.ec-cover[data-art="code"] .ec-cover-object { background: #374c6b; border-color: #6b7f9c; box-shadow: 10px 10px 0 #a6b8d2; color: white; transform: rotate(7deg); }
.ec-cover[data-art="code"] .ec-cover-object::before { background: #263853; border-color: #6b7f9c; }
.ec-cover[data-art="business"] { background: #f0dfcc; color: #926448; }
.ec-cover[data-art="business"] .ec-cover-object { transform: rotate(-12deg); background: #fff4df; box-shadow: 10px 10px 0 #d8af83; border-color: #a67d50; }
.ec-cover[data-art="business"] .ec-cover-object::before { background: #eccb96; border-color: #a67d50; }
.ec-cover[data-art="photo"] { background: #e7dfd9; color: #796354; }
.ec-cover[data-art="photo"] .ec-cover-object { border-radius: 18px; background: #4c4a40; box-shadow: 10px 10px 0 #b6a694; color: white; }
.ec-cover[data-art="photo"] .ec-cover-object::before { background: #a99a80; }
.ec-cover[data-art="writing"] { background: #efe6c7; color: #817234; }
.ec-cover[data-art="writing"] .ec-cover-object { transform: rotate(9deg); background: #fffae9; box-shadow: 10px 10px 0 #ccb973; }
.ec-cover[data-art="data"] { background: #d8e9e8; color: #386e70; }
.ec-cover[data-art="data"] .ec-cover-object { background: #eafaef; box-shadow: 10px 10px 0 #8fb8b5; }
.ec-stat { display: flex; gap: 13px; align-items: center; }
.ec-stat-icon { width: 46px; height: 46px; background: var(--ec-green-soft); color: var(--ec-green); border-radius: 12px; display: grid; place-items: center; }
.ec-stat strong { font-family: "Segoe UI",Tahoma,sans-serif; font-size: 25px; line-height: 1.3; }
.ec-stat small { display: block; color: var(--ec-muted); font-size: 11px; }
.ec-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--ec-border); margin-bottom: 22px; overflow-x: auto; }
.ec-tab { background: none; padding: 13px 16px; border-bottom: 2px solid transparent; color: var(--ec-muted); white-space: nowrap; font-size: 12px; }
.ec-tab[aria-selected="true"], .ec-tab[aria-pressed="true"] { color: var(--ec-primary); border-color: var(--ec-primary); font-weight: 700; }
.ec-field { display: flex; flex-direction: column; gap: 7px; font-size: 12px; }
.ec-field input, .ec-field textarea, .ec-field select, .ec-select { width: 100%; padding: 10px 13px; background: var(--ec-bg); border: 1px solid var(--ec-border); border-radius: 9px; color: var(--ec-text); }
.ec-field textarea { min-height: 130px; resize: vertical; }
.ec-notice { background: var(--ec-green-soft); color: var(--ec-green); padding: 14px 18px; border-radius: 10px; font-size: 12px; }
.ec-empty { text-align: center; padding: 55px 20px; }
.ec-empty p { color: var(--ec-muted); margin: 10px 0 20px; }
.ec-dialog { width: min(520px, calc(100% - 32px)); padding: 28px; background: var(--ec-surface); color: var(--ec-text); border: 1px solid var(--ec-border); border-radius: 20px; max-height: 88vh; }
.ec-dialog::backdrop { background: rgb(20 26 22 / 65%); backdrop-filter: blur(4px); }
.ec-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.ec-dialog p + p { margin-top: 12px; }
.ec-toasts { position: fixed; inset-block-end: 25px; inset-inline-end: 25px; z-index: 80; max-width: min(420px, calc(100% - 40px)); }
.ec-toast { background: var(--ec-text); color: var(--ec-bg); padding: 14px 20px; border-radius: 12px; box-shadow: var(--ec-shadow); margin-top: 8px; font-size: 12px; }
.ec-accordion { border: 1px solid var(--ec-border); border-radius: 12px; background: var(--ec-surface); overflow: hidden; }
.ec-accordion + .ec-accordion { margin-top: 12px; }
.ec-accordion summary { padding: 17px 20px; font-weight: 700; font-size: 13px; }
.ec-accordion-content { padding: 0 20px 20px; color: var(--ec-muted); font-size: 13px; }
.ec-table-wrap { overflow-x: auto; }
.ec-table { width: 100%; border-collapse: collapse; text-align: start; white-space: nowrap; font-size: 12px; }
.ec-table th { color: var(--ec-muted); background: var(--ec-bg); font-weight: 500; }
.ec-table th, .ec-table td { text-align: start; padding: 16px; border-bottom: 1px solid var(--ec-border); }
