.hr-automatic{color:#20364e;font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;margin:24px 0;padding:28px;background:#fff;border:1px solid #dfe7f0;border-radius:20px;box-shadow:0 8px 28px #20364e05}
.hr-automatic *, .ham-dialog *{box-sizing:border-box}
.hr-automatic button,.ham-dialog button{font:inherit;border:1px solid #d4e0ee;border-radius:10px;background:#fff;color:#2863b6;padding:10px 14px;cursor:pointer}
.hr-automatic button:hover:not(:disabled),.ham-dialog button:hover:not(:disabled){background:#eff5ff;border-color:#98b8e8}
.hr-automatic button:disabled,.ham-dialog button:disabled{opacity:.55;cursor:not-allowed}
.hr-automatic button:focus-visible,.ham-dialog button:focus-visible,.ham-dialog input:focus-visible,.ham-dialog select:focus-visible,.ham-dialog textarea:focus-visible{outline:3px solid #a5c4ff;outline-offset:2px}
.hr-automatic .ham-primary,.ham-dialog .ham-primary{background:#2563eb;border-color:#2563eb;color:#fff;font-weight:650}
.hr-automatic .ham-primary:hover:not(:disabled),.ham-dialog .ham-primary:hover:not(:disabled){background:#1d52c5;color:#fff}
.ham-header,.ham-header>div:last-child,.ham-journal>header,.ham-rules article>header,.ham-dialog header,.ham-dialog footer,.ham-preview-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ham-header h2{font-size:26px;letter-spacing:-.6px;line-height:1.25;margin:7px 0}
.ham-eyebrow{font-size:10px;letter-spacing:1.6px;color:#6f87a0;font-weight:750}
.ham-header p,.ham-journal header p{color:#73869c;margin:0;font-size:13px}
.ham-zone{font-size:12px;color:#5c748e;border-radius:20px;background:#f0f5fb;padding:7px 12px;white-space:nowrap}
.ham-summary{display:flex;gap:22px;align-items:center;flex-wrap:wrap;margin:22px 0;padding:14px 0;border-top:1px solid #e5edf5;border-bottom:1px solid #e5edf5;font-size:12px;color:#687f98}
.ham-summary strong{color:#284e81;font-size:17px;margin-right:4px}.ham-summary a{margin-left:auto;color:#2563b6;text-decoration:none}
.ham-presets,.ham-variables{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:16px 0}
.ham-presets>span,.ham-variables>span{font-size:12px;color:#6c829b;margin-right:7px}.ham-presets button,.ham-variables button{font-size:12px;padding:7px 11px;border-radius:20px;background:#f7faff}
.ham-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}
.ham-rules article{border:1px solid #dce6f0;border-radius:16px;padding:20px;min-width:0;background:linear-gradient(135deg,#fafdff,#fff)}
.ham-rules h3,.ham-journal h3{font-size:17px;line-height:1.4;margin:0;color:#213b59}.ham-rules h3{overflow-wrap:anywhere}
.ham-state{padding:4px 9px;border-radius:20px;background:#edf1f6;font-size:11px;color:#6e8197;white-space:nowrap}.ham-state.enabled{background:#e5f7ed;color:#218455}
.ham-schedule{font-weight:600;margin:14px 0 9px;color:#3b618e}.ham-channel{font-size:11px;padding:4px 8px;border:1px solid #e0e9f4;border-radius:6px;color:#527497;background:#f4f8fe}
.ham-body{color:#667f99;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:98px;overflow:auto;margin:14px 0 18px}.ham-rules footer{display:flex;gap:8px;justify-content:flex-end;border-top:1px solid #e5edf6;padding-top:14px}.ham-rules footer button{font-size:12px;padding:8px 12px}
.ham-empty{padding:28px 20px;text-align:center;color:#71879f;background:#f7fafd;border:1px dashed #d7e3ee;border-radius:14px;margin:20px 0}.ham-empty strong{color:#325273}.ham-empty p{margin:8px 0 0;font-size:13px}
.ham-journal{margin-top:28px;padding-top:24px;border-top:1px solid #e4ecf4}.ham-journal header button{font-size:12px}
.ham-filters{display:inline-flex;gap:4px;padding:4px;border-radius:11px;background:#f1f5fb;margin:18px 0}.ham-filters button{border:0;background:transparent;font-size:12px;padding:7px 14px}.ham-filters button[aria-pressed=true]{background:#fff;color:#245eb0;box-shadow:0 1px 4px #264d7b13}
.ham-table-scroll{overflow:auto}.ham-journal table{width:100%;border-collapse:collapse;font-size:12px}.ham-journal th{padding:12px;text-align:left;color:#7c90a6;background:#f8fafd;font-size:11px;font-weight:650;white-space:nowrap}.ham-journal td{padding:14px 12px;border-bottom:1px solid #e9eff5;vertical-align:top}.ham-journal td time{white-space:nowrap}.ham-journal td small{display:block;color:#7a8ea4;margin-top:4px;max-width:340px}.ham-journal td a{color:#2563b6;white-space:nowrap;text-decoration:none}
.ham-job-status{color:#52769e}.ham-job-status.sent{color:#1e8b59}.ham-job-status.failed,.ham-job-status.unknown{color:#b64b48}.ham-job-status.skipped,.ham-job-status.cancelled{color:#8d94a0}
.ham-dialog{width:min(760px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid #d6e1ed;border-radius:20px;padding:26px;color:#20364e;background:#fff;box-shadow:0 24px 80px #152c5540;font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.ham-dialog::backdrop{background:#1534545c;backdrop-filter:blur(3px)}
.ham-dialog form{display:grid;gap:18px}.ham-dialog h3{font-size:22px;letter-spacing:-.4px;margin:5px 0}.ham-dialog header>button{border:0;font-size:24px;padding:0 10px;color:#8094a9}
.ham-dialog label{display:grid;gap:7px;font-size:13px;font-weight:600}.ham-dialog input:not([type=checkbox]),.ham-dialog select,.ham-dialog textarea{width:100%;min-width:0;border:1px solid #ccdaea;border-radius:10px;background:#fff;color:#253f5e;font:inherit;font-weight:400;padding:11px 12px}.ham-dialog textarea{resize:vertical;min-height:140px;line-height:1.6}.ham-form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ham-timing{padding:16px;border:1px solid #dce7f2;border-radius:12px;margin:0;min-width:0;background:#f8fbff}.ham-timing legend{font-weight:650;font-size:13px;padding:0 6px}.ham-time-row{display:grid;grid-template-columns:1.4fr .8fr 1fr;gap:10px;margin-top:12px;align-items:center}.ham-timing p{font-size:13px;font-weight:600;margin:12px 0 5px;color:#3b6395}.ham-timing small{font-size:11px;color:#73899f;line-height:1.5;display:block;margin-top:7px}
.ham-variables{margin:0}.ham-preview-actions small{color:#8295aa}.ham-preview-actions button{font-size:12px}.ham-preview{padding:18px;background:#edf5ff;border:1px solid #d1e3fa;border-radius:14px}.ham-preview p{white-space:pre-wrap;overflow-wrap:anywhere;margin:13px 0}.ham-preview small{display:block;color:#7b91a9;margin-top:4px}.ham-dialog .ham-check{display:flex;align-items:center;gap:10px}.ham-check input{width:18px;height:18px;margin:0;accent-color:#2563eb}.ham-help{font-size:12px;color:#7c8fa5;margin:0}.ham-dialog footer{justify-content:flex-end;padding-top:18px;border-top:1px solid #e3eaf4}
.ham-error{padding:12px;border-radius:10px;background:#fff1f0;color:#a44440;font-size:13px}.ham-notice{padding:12px;border-radius:10px;background:#edf8f0;color:#2a8054;font-size:13px}
@media(max-width:800px){.hr-automatic{padding:20px}.ham-rules{grid-template-columns:1fr}.ham-header h2{font-size:23px}.ham-summary a{margin-left:0}}
@media(max-width:520px){.hr-automatic{padding:16px;border-radius:14px}.ham-dialog{padding:18px}.ham-form-row{grid-template-columns:1fr}.ham-time-row{grid-template-columns:1fr 1fr}.ham-time-row>select:first-child{grid-column:1/-1}.ham-dialog header{align-items:flex-start}.ham-header>div:last-child{width:100%;justify-content:space-between}.ham-summary{gap:12px}}
.ham-instructions{margin-top:22px;border:1px solid #d6e5f5;border-radius:14px;background:#f7faff;overflow:hidden}
.ham-instructions>summary{display:flex;align-items:center;gap:14px;cursor:pointer;padding:17px 20px;list-style:none;color:#245b9b}
.ham-instructions>summary::-webkit-details-marker{display:none}.ham-instructions>summary::before{content:'›';font-size:26px;line-height:1;transition:transform .15s}.ham-instructions[open]>summary::before{transform:rotate(90deg)}
.ham-instructions>summary strong{display:block;font-size:15px}.ham-instructions>summary small{display:block;margin-top:3px;font-size:12px;font-weight:400;color:#607890}
.ham-instructions>summary:focus-visible,.ham-guide-table:focus-visible{outline:3px solid #a5c4ff;outline-offset:-3px}
.ham-instructions-body{padding:4px 24px 24px;background:#fff;border-top:1px solid #dce7f2;line-height:1.7;color:#3e5770;font-size:14px}
.ham-instructions-body h3{font-size:19px;color:#233e5b;margin:28px 0 12px;line-height:1.4}.ham-instructions-body p{margin:10px 0}.ham-instructions-body b,.ham-instructions-body strong{color:#254666}
.ham-guide-intro{padding:14px 0;color:#60768d}.ham-guide-steps{list-style:none;counter-reset:guide;display:grid;gap:22px;padding:0;margin:20px 0}
.ham-guide-steps>li{position:relative;padding-left:46px;min-width:0;counter-increment:guide}.ham-guide-steps>li::before{content:counter(guide);position:absolute;left:0;top:0;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#e9f1ff;color:#245fbb;font-weight:700;font-size:13px}.ham-guide-steps>li>strong{display:block;font-size:15px;line-height:30px}.ham-guide-steps ul{padding-left:22px}.ham-guide-steps ul li+li{margin-top:10px}
.ham-instructions-body code{font-size:13px;background:#eef3fa;padding:2px 6px;border-radius:5px;overflow-wrap:anywhere}.ham-guide-table{overflow:auto;border:1px solid #dce6f0;border-radius:12px;margin:16px 0}.ham-guide-table table{width:100%;border-collapse:collapse;min-width:580px;font-size:13px}.ham-guide-table th{background:#f0f5fb;text-align:left;color:#375c83}.ham-guide-table th,.ham-guide-table td{padding:13px 15px;border-bottom:1px solid #e5edf5;vertical-align:top}.ham-guide-table tr:last-child td{border-bottom:0}.ham-guide-table td:first-child{font-weight:600;min-width:175px}
.ham-guide-example{padding:16px 18px;background:#eef6ff;border-left:3px solid #7ca9e3;border-radius:0 10px 10px 0}.ham-guide-notes{padding-left:22px}.ham-guide-notes li+li{margin-top:9px}.ham-guide-statuses{margin:12px 0 0}.ham-guide-statuses>div{padding:13px 0;border-top:1px solid #e5edf5}.ham-guide-statuses dt{font-weight:650;color:#315779}.ham-guide-statuses dd{margin:5px 0 0}
@media(max-width:520px){.ham-instructions>summary{padding:14px}.ham-instructions-body{padding:4px 14px 18px}.ham-guide-steps>li{padding-left:37px}.ham-guide-steps>li>strong{line-height:1.5;padding-top:4px}.ham-instructions-body h3{font-size:17px}.ham-guide-steps{gap:18px}}

.ham-messenger-tabs{display:flex;gap:4px;align-items:center;margin:0 0 10px;padding:4px;width:fit-content;max-width:100%;border:1px solid #dce6f0;border-radius:10px;background:#f3f6fb}.ham-messenger-tabs button{font:600 13px/1.4 system-ui;border:0;background:transparent;color:#64748b;padding:8px 16px;border-radius:7px;cursor:pointer}.ham-messenger-tabs button[aria-pressed=true]{background:#fff;color:#2563eb;box-shadow:0 1px 4px #1e293b14}.ham-messenger-editor{max-height:calc(100dvh - 155px);overflow:auto;overscroll-behavior:contain}.ham-messenger-editor[hidden]{display:none}.ham-messenger-editor .hr-automatic{margin:0;padding:20px;border-radius:14px}.ham-order{border:1px solid #dce6f0;border-radius:12px;display:flex;gap:8px;flex-wrap:wrap;padding:12px}.ham-order legend{font-weight:600;padding:0 5px}.ham-order span{display:flex;align-items:center;gap:4px;background:#f3f6fb;border-radius:8px;padding:6px;font-size:12px}.ham-order button{padding:3px 8px}.ham-order small{display:block;flex-basis:100%;color:#64748b}
.ham-messenger-tabs + .ham-messenger-editor + .hr-messenger-center.hm-inbox{height:calc(100dvh - 138px)}
