.page { padding: 40px 20px; max-width: 1200px; margin: 0 auto; }
.page h1 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.page .subtitle { color: #888; margin-bottom: 20px; font-size: 14px; }

label {
  display: block; font-size: 13px; font-weight: 600; color: #aaa;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.btn {
  padding: 9px 16px; background: #141414; border: 1px solid #2a2a2a;
  color: #ccc; border-radius: 6px; font-size: 13px; cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.btn:hover { border-color: #ff4444; color: #fff; background: #1f1f1f; }
.btn-reset { margin-left: auto; }
.btn-reset:hover { border-color: #f87171; color: #f87171; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.col { display: flex; flex-direction: column; }

textarea {
  width: 100%; min-height: 260px; resize: vertical;
  background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 8px;
  color: #e1e1e1; font-size: 13px; padding: 14px; outline: none;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  line-height: 1.5; transition: border-color 0.2s;
  word-break: break-all;
}
textarea:focus { border-color: #ff4444; }
#output { background: #0a0a0a; }

.stats { color: #666; font-size: 12px; margin-top: 6px; text-transform: none; letter-spacing: normal; font-weight: 500; display: block; font-family: 'SF Mono', Monaco, monospace; }
.stats-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.small-actions { display: flex; gap: 6px; }
.small-btn {
  padding: 5px 12px; background: transparent; border: 1px solid #333;
  color: #aaa; border-radius: 4px; font-size: 12px; cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.small-btn:hover { border-color: #ff4444; color: #fff; }

.error-box {
  margin-top: 16px; padding: 14px 18px; background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3); border-radius: 8px;
  color: #f87171; font-size: 13px; font-family: 'SF Mono', Monaco, monospace;
}
.error-box strong { color: #fca5a5; display: block; margin-bottom: 4px; font-weight: 700; }

.url-parts {
  margin-top: 24px; padding: 18px 20px;
  background: #0d0d0d; border: 1px solid #1f1f1f; border-radius: 10px;
}
.url-parts h3 { color: #ccc; font-size: 13px; margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.url-parts table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.url-parts td { padding: 8px 12px; border-bottom: 1px solid #1a1a1a; font-size: 13px; vertical-align: top; }
.url-parts td:first-child {
  color: #888; font-family: 'SF Mono', Monaco, monospace;
  width: 140px; text-transform: uppercase; font-size: 11px; letter-spacing: 0.5px;
}
.url-parts td:last-child {
  color: #e1e1e1; font-family: 'SF Mono', Monaco, monospace;
  word-break: break-all;
}
.url-parts tr:last-child td { border-bottom: none; }

.info-card {
  margin-top: 24px; padding: 16px 20px;
  background: #0d0d0d; border: 1px solid #1f1f1f; border-radius: 10px;
}
.info-card h3 { color: #ccc; font-size: 14px; margin-bottom: 8px; font-weight: 600; }
.info-card p { color: #888; font-size: 13px; line-height: 1.6; margin: 0; }
.info-card code { background: #1a1a1a; color: #ff4444; padding: 1px 6px; border-radius: 3px; font-size: 12px; font-family: 'SF Mono', Monaco, monospace; }

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  textarea { min-height: 180px; }
  .btn-reset { margin-left: 0; }
  .url-parts td:first-child { width: 90px; }
}
