/* YouTube Description Counter — tool-specific */
.page { padding: 40px 20px; max-width: 720px; 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; }

.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 12px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
.form-row textarea {
  background: #0d0d0d; border: 1px solid #2a2a2a; color: #fff;
  padding: 12px; border-radius: 6px; font-size: 14px;
  font-family: 'SF Mono', Menlo, monospace;
  resize: vertical; line-height: 1.5;
}

.counter-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.counter { font-size: 12px; color: #888; font-family: 'SF Mono', monospace; }
.counter.warn { color: #ffa726; }
.counter.over { color: #ff4444; font-weight: 600; }
.counter-bar { flex: 1; margin-left: 12px; height: 4px; background: #0d0d0d; border-radius: 2px; overflow: hidden; max-width: 200px; }
.counter-fill { display: block; height: 100%; width: 0%; background: #4caf50; transition: width 0.15s, background 0.15s; }
.counter-fill.warn { background: #ffa726; }
.counter-fill.over { background: #ff4444; }

.opt-label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; display: block; margin-bottom: 10px; }

.preview-fold {
  background: #fff; color: #0f0f0f; padding: 16px; border-radius: 8px;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
  border: 1px solid #2a2a2a; margin-bottom: 12px; min-height: 60px;
}
.preview-fold .cut-marker {
  display: inline-block; color: #065fd4; font-weight: 500; margin-left: 4px;
  cursor: pointer;
}

.detected-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px;
}
.detected-block { padding: 12px; background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 8px; }
.detected-label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.detected-value { font-size: 13px; color: #fff; font-family: 'SF Mono', monospace; word-break: break-all; line-height: 1.6; max-height: 200px; overflow-y: auto; }
.detected-value .item { display: block; padding: 2px 0; }
.detected-warn { font-size: 13px; color: #ffa726; margin-top: 12px; padding: 8px 12px; background: rgba(255,167,38,0.08); border-radius: 6px; border-left: 3px solid #ffa726; }

.action-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-msg { font-size: 13px; margin-left: 8px; }
.status-msg.ok { color: #4caf50; }

@media (max-width: 600px) {
  .page { padding: 24px 12px; }
  .page h1 { font-size: 22px; }
}
