.app{width: min(1280px, calc(100% - 32px));margin: 22px auto 20px;background:#fffdf8;border:1px solid #e2d8c8;border-radius:14px;box-shadow:0 8px 30px rgba(20,30,50,.08);display:flex;flex-direction:column;overflow:}
.intro{padding: 16px 18px 12px;}
h1{font-size: 20px; margin: 0 0 5px;}
.intro p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}
.card { width: min(1240px, 100% - 40px); min-width: 0; margin: 20px auto; background: #fffdf8; border: 1px solid #e2d8c8; border-radius: 12px; box-shadow: 0 4px 18px rgba(20, 35, 50, 0.06); padding: 23px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
button { border: 1px solid transparent; border-radius: 7px; padding: 10px 14px; min-height: 40px; font: bold 14px/1.25 Arial, sans-serif; cursor: pointer; }
.primary { background: #000; color: #fff; }
.primary:hover { background: #333; }
.secondary { background: #fff; border-color: #cfd5da; color: #30363b; }
.secondary:hover { background: #f4f6f8; }
.pane-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.pane-tools .label { margin: 0; }
.label { display: block; font-weight: bold; margin-bottom: 9px; }
.quiet { color: var(--muted); font-size: 12px; font-weight: normal; }
.file-row { display: flex; align-items: center; gap: 8px; }
.result { width: 100%; max-width: 100%; height: 280px; overflow: auto; border: 1px solid #cfd5da; border-radius: 8px; background: #fff; }
.result pre { margin: 0; padding: 13px 14px; min-height: 100%; width: max-content; min-width: 100%; box-sizing: border-box; white-space: pre; font: 16px/28px Consolas, "Courier New", monospace; color: #202124; letter-spacing: 0.02em; }
.pane-tools button { min-height: 0; padding: 6px 12px; }
.empty { color: var(--muted); padding: 16px; font-size: 13px; }
.options { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin: 0 0 18px; padding: 14px; background: #fffdf8; border: 1px solid #e2d8c8; border-radius: 8px; }
.options label { display: flex; align-items: center; gap: 7px; font-size: 14px; min-width: 0; }
.options input[type="text"], .options input[type="number"] { border: 1px solid #cfd5da; border-radius: 7px; background: #fff; color: #30363b; font: 13px Arial, sans-serif; padding: 6px 8px; }
.options input[type="number"] { width: 88px; }
#custom { width: min(280px, 100%); }
.options input[type="checkbox"] { accent-color: var(--blue); width: auto; }
.status { min-height: 22px; font-size: 13px; margin-top: 8px; overflow-wrap: anywhere; color: #287346; }
.status.bad { color: var(--danger); }
.note { margin-top: 14px; padding: 13px 15px; border: 1px solid #e2d8c8; background: #fffdf8; border-radius: 8px; color: #29475d; font-size: 14px; }
.note code { font-family: Consolas, "Courier New", monospace; font-size: 13px; }
@media (max-width: 760px) {
  .card { padding: 15px 12px; }
  .result { height: 220px; }
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .toolbar button { padding: 10px 8px; }
  .intro p { font-size: 14px; }
  .options { align-items: stretch; max-width: 100%; }
  .options label { max-width: 100%; }
  #lengthWrap, #countWrap, #customWrap { flex-direction: column; align-items: stretch; width: 100%; }
  .options input[type="text"], .options input[type="number"], #custom { display: block; width: 100%; max-width: 100%; min-width: 0; }
}
