:root { --navy: #014f90; --navy2: #013d70; --accent: #014f90; --logo: #014f90; --bg: #f4f6f9; --card: #fff; --line: #dfe3ea; --line2: #eef0f4; --text: #1d2433; --mute: #5b6472; --faint: #8a93a2; --green: #1a7f4e; --red: #b3261e; --amber: #9a6400; --radius: 6px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; }
.top { background: #fff; height: 58px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.top-left { display: flex; align-items: center; gap: 16px; }
.top-logo { height: 34px; width: auto; }
.top-title { color: var(--navy); font-weight: 600; font-size: 15px; letter-spacing: .2px; padding-left: 16px; border-left: 1px solid var(--line); }
.who { color: var(--mute); font-size: 13px; }
.who a { color: var(--accent); text-decoration: none; margin-left: 14px; font-size: 13px; }
.who a:hover { text-decoration: underline; }
.titlebar { background: #014f90; color: #fff; }
.titlebar-in { max-width: 1160px; margin: 0 auto; padding: 22px 28px 24px; }
.titlebar h1 { margin: 0 0 4px; font-size: 21px; font-weight: 600; letter-spacing: .1px; }
.titlebar p { margin: 0; max-width: 760px; color: #d4e4f2; font-size: 13.5px; }
main { max-width: 1160px; margin: 22px auto 24px; padding: 0 28px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 920px) { main { grid-template-columns: 1fr; padding: 0 14px; } .top-title { display: none; } .top { padding: 0 14px; } }
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px 22px; }
.tabs { display: flex; gap: 0; margin: 0 -24px 6px; border-bottom: 1px solid var(--line); }
.tab { flex: 1; border: 0; border-bottom: 3px solid transparent; background: #fafbfc; color: var(--mute); font: inherit; font-weight: 600; padding: 13px 8px; cursor: pointer; border-radius: 0; }
.tab:first-child { border-top-left-radius: var(--radius); } .tab:last-child { border-top-right-radius: var(--radius); }
.tab.on { background: #fff; color: var(--navy); border-bottom-color: var(--accent); }
.tab:hover:not(.on) { color: var(--navy); background: #f4f6f9; }
.sec { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--mute); margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line2); }
.sec.first { margin-top: 20px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px dashed #b5bfd0; border-radius: var(--radius); padding: 22px 14px; text-align: center; cursor: pointer; background: #fafbfd; color: var(--mute); transition: .12s; }
.drop:hover, .drop.over { border-color: var(--accent); background: #f1f7fc; color: var(--navy); }
.drop input { display: none; }
.ico-up { width: 28px; height: 28px; color: var(--accent); }
.drop small { color: var(--faint); font-size: 12px; }
.drop.has { border-style: solid; border-color: var(--green); background: #f4fbf7; color: #14583a; font-weight: 600; }
.drop.has .ico-up { color: var(--green); }
.look { display: grid; grid-template-columns: 1fr 138px; gap: 20px; align-items: start; }
@media (max-width: 560px) { .look { grid-template-columns: 1fr; } }
.look-fields { display: grid; gap: 12px; }
label { display: block; font-weight: 600; font-size: 12.5px; color: #2b3445; }
.opt-note { font-weight: 400; color: var(--faint); }
select, input[type=text], textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #c3cad8; border-radius: 4px; font: inherit; font-size: 14px; background: #fff; color: var(--text); }
textarea { resize: vertical; min-height: 70px; }
select:focus, input[type=text]:focus, textarea:focus { outline: 2px solid #bcd5ea; border-color: var(--accent); }
.preview { text-align: center; }
.preview small { color: var(--faint); font-size: 11px; display: block; margin-top: 6px; }
.pv-page { background: #fff; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 1px 4px rgba(16,24,40,.12); padding: 11px 11px 12px; height: 160px; text-align: left; overflow: hidden; }
.pv-page img { height: 24px; width: auto; max-width: 100%; display: block; }
.pv-page i { display: block; border-radius: 1px; background: #e6e9f0; height: 4px; margin: 5px 0; }
.pv-rule { height: 2px !important; background: #333 !important; margin: 7px 0 9px !important; }
.pv-h { width: 70%; height: 8px !important; background: #2b2f38 !important; margin-bottom: 8px !important; }
.pv-h2 { width: 45%; height: 5px !important; background: #555 !important; margin: 10px 0 6px !important; }
.pv-l.s { width: 60%; }
.checks { display: grid; gap: 2px; margin: 16px 0 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--text); padding: 7px 8px; border-radius: 4px; cursor: pointer; }
.check:hover { background: #f6f8fb; }
.check input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--accent); }
.check b { font-weight: 600; display: block; }
.check small { color: var(--mute); display: block; font-size: 12.5px; }
.check.sub { margin-left: 25px; }
.check input:disabled + span { opacity: .45; }
.notice { margin: 14px 0 4px; padding: 10px 12px; border: 1px solid #e6d9b0; background: #fffaeb; border-radius: 4px; color: #5c4a14; font-size: 12.5px; }
.only-form { display: none; }
body.mode-form .only-form { display: block; }
body.mode-form .only-doc { display: none !important; }
body.mode-form label.only-form { display: block; }
details { margin: 12px 0; border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; background: #fafbfd; }
summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0 4px; }
.actions { margin-top: 20px; display: flex; gap: 14px; align-items: center; }
button { font: inherit; cursor: pointer; border: 1px solid #c3cad8; background: #fff; color: #2b3445; border-radius: 4px; padding: 6px 12px; transition: .1s; }
button:hover { border-color: var(--accent); color: var(--accent); }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; padding: 10px 22px; font-size: 14px; }
button.primary:hover { background: #013d70; border-color: #013d70; color: #fff; }
button:disabled { opacity: .5; cursor: default; }
.msg { color: var(--red); font-size: 13px; }
.fine { color: var(--mute); font-size: 12px; margin: 16px 0 0; }
.jobs { display: grid; gap: 8px; }
.job { border: 1px solid var(--line); border-radius: 4px; padding: 11px 14px; display: grid; gap: 8px; background: #fff; }
.job-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.job-name { font-weight: 600; word-break: break-word; }
.job-meta { color: var(--mute); font-size: 12.5px; }
.job-note { color: var(--mute); font-size: 12.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 3px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip.done { background: #e8f5ee; color: #14583a; border-color: #c4e3d2; }
.chip.running, .chip.queued { background: #e7f0f8; color: #014f90; border-color: #bfd6ea; }
.chip.needs_answer { background: #fff4d9; color: #7a5200; border-color: #f0dca6; }
.chip.failed { background: #fbeae9; color: #98211a; border-color: #f1c7c4; }
.chip.needs_review { background: #fff1de; color: #8a5200; border-color: #f2d6ac; }
.spin { width: 10px; height: 10px; border: 2px solid #a9c8e2; border-top-color: #014f90; border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.btns { display: flex; flex-wrap: wrap; gap: 6px; }
.btns button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; font-size: 12.5px; }
.btns button.primary { padding: 4px 12px; font-size: 12.5px; }
.btns svg { width: 13px; height: 13px; }
.ask { display: grid; gap: 6px; background: #fffaf0; border: 1px solid #f0dca6; border-radius: 4px; padding: 10px 12px; }
.ask b { color: #5c4a14; font-size: 13px; }
.ask input { margin-top: 0; }
.ask .row { display: flex; gap: 8px; }
.empty { text-align: center; color: var(--faint); padding: 28px 10px; }
.empty svg { width: 46px; height: 46px; color: #c3cad8; }
.empty p { margin: 6px 0 0; }
.foot { text-align: center; color: var(--faint); font-size: 12px; padding: 4px 0 28px; }
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 30px 12px; z-index: 100; }
.modal[hidden] { display: none; }
.panel { background: #fff; border-radius: var(--radius); max-width: 880px; width: 100%; padding: 22px 28px; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.x { position: absolute; right: 14px; top: 8px; border: 0; background: none; font-size: 26px; color: var(--faint); padding: 0 6px; }
.report h2 { margin: 0 0 8px; color: var(--navy); font-size: 18px; word-break: break-word; }
.report h3 { margin: 18px 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.report table { width: 100%; border-collapse: collapse; font-size: 13px; }
.report th { text-align: left; background: #f4f6f9; padding: 7px 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
.report td { padding: 7px 8px; border-bottom: 1px solid var(--line2); vertical-align: top; }
.report ul { margin: 4px 0 0 18px; padding: 0; }
.ok { color: #14583a; font-weight: 600; }
.bad { color: #98211a; font-weight: 600; }
.opt { color: var(--mute); font-size: 12.5px; }
.report iframe { width: 100%; height: 540px; border: 1px solid var(--line); border-radius: 4px; margin-top: 8px; }

.filelist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.filelist li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fafbfd; font-size: 13px; }
.filelist li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filelist li small { color: var(--faint); margin-left: 8px; }
.filelist li button { border: 0; background: none; color: var(--faint); font-size: 18px; line-height: 1; padding: 0 4px; }
.filelist li button:hover { color: var(--red); }
.filelist li.err { border-color: #f1c7c4; background: #fdf3f2; }
.filelist li.ok { border-color: #c4e3d2; background: #f4fbf7; }
.bulk { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px; font-size: 13px; }
.bulk[hidden] { display: none; }
.check-all { font-weight: 400; display: flex; align-items: center; gap: 7px; }
.job-sel { margin-right: 8px; accent-color: var(--accent); }

.panel-card.wide { grid-column: 1 / -1; }
.access-add { align-items: end; }
.access-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 8px; }
.access-table th { text-align: left; background: #f4f6f9; padding: 7px 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
.access-table td { padding: 7px 8px; border-bottom: 1px solid var(--line2); }
.access-table button { padding: 2px 9px; font-size: 12px; }
