/* Yandex Bulk Tool v2 stylesheet. No external dependencies. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #1f2329; background: #f7f8fa; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

header.topbar { background: #1f2329; color: #fff; padding: 12px 0; }
header.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 600; font-size: 1.1rem; text-decoration: none; }
header.topbar nav { display: flex; gap: 16px; flex-wrap: wrap; }
header.topbar nav a { color: #c9cdd4; text-decoration: none; font-size: 0.95rem; }
header.topbar nav a:hover { color: #fff; }
header.topbar nav a.danger { color: #ff8b8b; }

.orgbar { background: #2c3138; color: #c9cdd4; padding: 8px 0; font-size: 0.9rem; }
.orgbar .label { color: #8a9099; margin-right: 8px; }
.orgbar select { background: #1f2329; color: #fff; border: 1px solid #3a4049; padding: 4px 8px; border-radius: 4px; font-size: 0.9rem; }
.orgbar form.inline { display: inline; }

main { padding: 24px 0 64px; }
footer { padding: 32px 0; color: #6c727a; }

h1 { margin: 0 0 16px; font-size: 1.6rem; }
h2 { margin: 24px 0 12px; font-size: 1.25rem; }
h3 { margin: 0 0 6px; font-size: 1.05rem; }
p  { line-height: 1.5; }

.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px; margin: 16px 0; box-shadow: 0 1px 2px rgba(15,17,21,0.04); }
.card.narrow { max-width: 480px; }

form label { display: block; margin: 0 0 12px; font-size: 0.95rem; color: #2c3138; }
form label.inline { display: inline-block; margin-right: 16px; }
form input[type=text], form input[type=password], form input[type=file] { display: block; width: 100%; padding: 10px 12px; border: 1px solid #d0d4da; border-radius: 6px; font-size: 0.95rem; margin-top: 4px; }
form input:focus { outline: none; border-color: #1f6feb; box-shadow: 0 0 0 3px rgba(31,111,235,0.15); }
form small { color: #6c727a; }

button, .ghost, .primary, .danger { font: inherit; padding: 9px 16px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; }
button.primary, .primary { background: #1f6feb; color: #fff; border-color: #1f6feb; }
button.primary:hover { background: #1858c7; }
button.ghost, .ghost { background: #fff; color: #2c3138; border-color: #d0d4da; }
button.danger, a.danger.ghost, .danger { background: #dc2626; color: #fff; border-color: #dc2626; }
button.danger:hover { background: #b91c1c; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.actions { display: flex; gap: 10px; margin: 16px 0; align-items: center; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 24px 0; }
.tile { display: block; background: #fff; padding: 18px; border: 1px solid #e5e7eb; border-radius: 8px; text-decoration: none; color: inherit; transition: border-color 0.1s, transform 0.1s; }
.tile:hover { border-color: #1f6feb; transform: translateY(-1px); }

.flash, .ok, .warn, .error { padding: 12px 14px; border-radius: 6px; margin: 12px 0; font-size: 0.95rem; }
.flash { background: #eef6ff; color: #0f4a8b; border: 1px solid #b6d4fb; }
.ok    { background: #ecfdf3; color: #086c39; border: 1px solid #abe7c0; }
.warn  { background: #fff8e6; color: #7a4a05; border: 1px solid #f3d68b; }
.error { background: #fff1f1; color: #8a1c1c; border: 1px solid #f4b4b4; }

table.data { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; margin: 12px 0; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef0f3; font-size: 0.9rem; vertical-align: top; }
table.data thead th { background: #f3f4f6; font-weight: 600; color: #2c3138; }
table.data tr:last-child td { border-bottom: none; }
.result-ok       { color: #086c39; }
.result-fail     { color: #8a1c1c; }
.result-already  { color: #7a4a05; }
.result-notfound { color: #6c727a; }

code { background: #f3f4f6; padding: 1px 6px; border-radius: 4px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; }

.hidden { display: none; }

.progress { background: #eef0f3; border-radius: 999px; height: 12px; overflow: hidden; margin: 8px 0; }
.progress .bar { background: #1f6feb; height: 100%; width: 0%; transition: width 0.2s; }

#progress-status, #delete-status { font-size: 0.9rem; color: #2c3138; margin: 8px 0; }
#blocked-status { font-size: 0.9rem; color: #2c3138; margin: 8px 0; }
#selection-count { font-size: 0.9rem; color: #2c3138; }
