/* Shared tool styles. Rules here are identical in every tools.css that defines the selector. */

.top {
  padding:0 0 12px 0;
}

.intro h1,.top h1 {
  font-size: 20px;
  margin: 0 0 5px;
  padding:0;
  color:#dd4814;
}

.sub {
  font-size:13px;
  color:var(--muted);
}

.file-label {
  padding:6px 11px;
}

.primary:hover {
  background: #333;
}

.danger {
  color:#b42318;
}
.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
}
.grid > div {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    min-width: 0;
    max-width: 100%;
}
.panel+.panel {
  border-left:1px solid #e5e9f0;
}

.editor-with-lines {
  display:flex;
  overflow:hidden;
}

.line-numbers {
  flex:0 0 52px;
  padding:16px 10px 16px 0;
  text-align:right;
  overflow:hidden;
  user-select:none;
  color:#98a2b3;
  background:#f8fafc;
  border-right:1px solid #e5e9f0;
  font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  white-space:pre;
}

.editor-with-lines textarea {
  flex:1;
  min-width:0;
  overflow:auto;
}

.error {
  padding:12px 14px;
  background:#fff2f0;
  color:#b42318;
  border-bottom:1px solid #ffd8d2;
  font:12px/1.5 ui-monospace,monospace;
  display:none;
}

.footer {
  padding:8px 12px;
  border-top:1px solid #e5e9f0;
  font-size:11px;
  color:var(--muted);
  display:flex;
  gap:18px;
}

.error.show {
  display:block;
}

.field input,.field select {
  border:1px solid #cfd5da;
  background:#fff;
  border-radius:7px;
  font-size:13px;
  color:#263246;
  padding:6px 8px;
}

.intro {
  padding: 0 0 12px 0;
}

.intro p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.actions,.settings {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.settings {
  flex-wrap: nowrap;
  gap: 6px;
  white-space: nowrap;
}

.settings>.check {
  flex: 0 0 auto;
}

button,select,.file-label {
  font-size:13px;
}

button:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:2px solid #7aa7f7;
  outline-offset:2px;
}

.panel-head small {
  font-weight:400;
  color:var(--muted);
}

.lines {
  padding:13px 10px 13px 0;
  text-align:right;
  white-space:pre;
  overflow:hidden;
  background:#f7f8fa;
  color:#9299a3;
  border-right:1px solid #e7eaf0;
  font:13px/1.65 Consolas,Monaco,monospace;
  user-select:none;
}

textarea[readonly] {
  background:#fcfcfd;
}

.status .message {
  overflow-wrap:anywhere;
}

.container {
  padding: 25px;
}

.preview h2 {
  font-size:18px;
  margin:0 0 5px;
}

.preview p {
  font-size:13px;
  color:#777;
  margin:0 0 17px;
}

.tool-card {
  padding: 20px;
}

button:focus-visible,textarea:focus-visible {
  outline:3px solid #1769aa40;
  outline-offset:2px;
}

.editors {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
}

.heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin:0 0 8px;
}

.heading label {
  font-weight:700;
}

.heading span {
  color:var(--muted);
  font-size:12px;
}

.tabs {
  display:flex;
  gap:8px;
  border-bottom:1px solid #ddd;
  margin-bottom:20px;
}

.tab.active {
  border-bottom-color:#111;
  color:#111;
}

.output {
  background:#fafafa;
}

.desc h2 {
  font-size:18px;
  margin:0 0 8px;
}

.desc p {
  font-size:14px;
  color:#555;
  margin:6px 0;
}

.label {
  display: block;
  font-weight: bold;
  margin-bottom: 9px;
}

.pane-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}

.pane-tools .label {
  margin: 0;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-btn:hover {
  background: #f4f6f8;
}

.file-btn input {
  display: none;
}

.editor:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12);
}

.status.bad {
  color: var(--danger);
}

.encoding,.options select,.options input[type="text"],.options input[type="number"] {
  border: 1px solid #cfd5da;
  border-radius: 7px;
  background: #fff;
  color: #30363b;
  font-size: 13px;
  padding: 6px 8px;
}

.options input[type="number"] {
  width: 88px;
}

.pane-tools button {
  min-height: 0;
  padding: 5px 10px;
}

.options input[type="checkbox"] {
  accent-color: var(--blue);
  width: auto;
}
.grid>* {
  min-width: 0;
  max-width: 100%;
}

.quiet {
  color: var(--muted);
  font-size: 12px;
  font-weight: normal;
}

.options label[hidden] {
  display: none;
}

.note {
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid #e8eaed;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
}
.note h2{margin:0;font-size: 15px;font-weight:bold;}
.note h3{margin:10px 0 3px 0;color:#222;font-size: 13px;}
.note p{margin:5px 0 5px 0;color:#555;}
.note code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}
.note ul{margin:5px 0 5px 25px; padding:0;}
.note ul li{list-style:decimal;margin:0; padding:0;}

@media (max-width: 480px) {
  .settings {
    flex-wrap: wrap;
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .card {
    padding: 15px 12px;
  }
  .toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .toolbar button {
    padding: 10px 8px;
  }
  .intro p {
    font-size: 14px;
  }
  textarea,.result {
    height: 220px;
  }
  .options {
    align-items: stretch;
    max-width: 100%;
  }
  .options select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .app,.card {
    min-width: 0;
    max-width: 100%;
  }
  .options select,.options input[type="text"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media(max-width:420px) {
  .field {
    margin-bottom:14px;
  }
  .actions {
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .actions button {
    width:100%;
    padding:11px 8px;
    font-size:14px;
  }
}

@media(max-width:480px) {
  .top {
    padding:14px 12px 10px;
  }
  h1 {
    font-size:18px;
  }
  .sub {
    font-size:12px;
  }
  .toolbar {
    gap:6px;
  }
  button,.file-label {
    font-size:12px;
    padding:7px 9px;
  }
  .line-numbers {
    flex-basis:42px;
    padding-right:7px;
  }
  textarea,pre {
    padding:12px;
    font-size:12px;
  }
}

@media(max-width:600px) {
  header {
    padding:0 16px;
  }
  .actions button {
    flex:1 1 auto;
    padding:9px 11px;
  }
  .tab {
    flex:1;
    padding:10px 8px;
  }
  .card {
    padding:10px;
  }
}

@media(max-width:760px) {
  .card {
    padding:10px;
  }
  .editor-wrap {
    height:330px;
  }
  .actions button,.actions .file-label {
    flex:1;
  }
  .settings {
    width:100%;
  }
  .settings select {
    flex:1;
  }
  .editors {
    grid-template-columns:minmax(0,1fr);
    gap:16px;
  }
  button {
    padding:9px 11px;
  }
  .grid {
    grid-template-columns:1fr;
    gap:17px;
  }
  .toolbar button {
    padding:10px 8px;
  }
  .intro p {
    font-size:14px;
  }
}

@media(max-width:850px) {
  body {
    padding:0;
  }
  .panel+.panel {
    border-left:0;
    border-top:1px solid #e5e9f0;
  }
  .status {
    width:100%;
    margin:0;
  }
  .workspace>.panel {
    height:auto;
    min-height:0;
    flex:none;
  }
  .workspace .editor-wrap {
    height:220px;
    min-height:220px;
    flex:none;
  }
}
