/* Доп. стили для виджетов и блоков новых страниц, поверх styles.css сайта */
.ext { margin: 0 0 18px; }
.ext .btn { background: var(--forest); color: var(--lime); }
.zone.over { background: var(--mint); border-color: var(--forest); }
.zone .btn { cursor: pointer; }
.files-list { list-style: none; margin: 18px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); max-height: 360px; overflow: auto; }
.files-list:empty { display: none; }
.files-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.files-list li:last-child { border-bottom: 0; }
.files-list img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.files-list .pdfi { width: 44px; height: 44px; border-radius: 8px; background: var(--mint); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.files-list .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.files-list button { border: 0; background: rgba(22, 51, 0, 0.08); color: var(--forest); width: 34px; height: 34px; border-radius: 999px; cursor: pointer; font-size: 16px; flex: none; }
.files-list button:hover { background: rgba(22, 51, 0, 0.16); }
.opts { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 0; }
.opts label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.opts input { font: inherit; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; width: 160px; }
#go { margin-top: 18px; }
#cropbox { margin: 18px 0 0; text-align: center; }
#cropbox canvas { border-radius: 12px; max-width: 100%; }
#result:not(:empty) { margin-top: 18px; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--forest); color: var(--lime); }
#result img { display: block; max-width: 100%; border-radius: 12px; margin: 0 0 16px; }
#result .btn { background: var(--lime); color: var(--forest); }
#result .dl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { background: var(--white); border-radius: 999px; padding: 10px 20px; font-weight: 600; }
.chips--plain li { background: rgba(22, 51, 0, 0.06); font-weight: 500; }

.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; min-width: 560px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--forest); color: var(--lime); font-weight: 700; }
.cmp tbody th { font-weight: 600; width: 28%; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:nth-child(2) { background: rgba(159, 232, 112, 0.25); font-weight: 600; }

.cmp--plain td:nth-child(2) { background: transparent; font-weight: 400; }
.cmp-note { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.cmp-note a { color: var(--forest); }
