/* ============================================================
   깨알도구
   Unix timestamp 변환기
   ============================================================ */

/* ============================================================
   MODE
   ============================================================ */

.timestamp-page .timestamp-mode-group {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 7px;

  margin-bottom: 14px;
}

.timestamp-page .timestamp-mode-button {
  min-height: 42px;

  padding: 0 8px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: var(--surface-soft);

  color: var(--text-soft);

  font-size: 12px;
  font-weight: 800;

  cursor: pointer;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.timestamp-page .timestamp-mode-button.active {
  border-color: var(--text);

  background: var(--text);

  color: #fff;
}

/* ============================================================
   PANEL
   ============================================================ */

.timestamp-page .timestamp-input-panel {
  min-width: 0;
}

/* ============================================================
   LABEL ROW
   ============================================================ */

.timestamp-page .timestamp-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 7px;

  height: 24px;

  margin: 0 0 6px;

  box-sizing: border-box;
}

.timestamp-page .timestamp-label-row label {
  display: flex;
  align-items: center;

  height: 24px;

  margin: 0;

  line-height: 1;
}

/* ============================================================
   SMALL BUTTON
   ============================================================ */

.timestamp-page .timestamp-small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  height: 22px;

  margin: 0;
  padding: 0 9px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: var(--surface-soft);

  color: var(--text-soft);

  font-size: 12px;
  font-weight: 800;
  line-height: 1;

  box-sizing: border-box;

  cursor: pointer;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

/* ============================================================
   SELECT
   ============================================================ */

.timestamp-page .timestamp-select {
  display: block;

  width: 100%;
  height: 44px;

  margin: 0;
  padding: 0 10px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: #fff;

  color: var(--text);

  font: inherit;
  font-size: 12px;

  outline: 0;

  box-sizing: border-box;

  cursor: pointer;
}

/* ============================================================
   TIMESTAMP INPUT
   ============================================================ */

.timestamp-page #timestampInput {
  width: 100%;
  height: 44px;

  margin: 0;
  padding: 0 10px;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  font-size: 12px;

  box-sizing: border-box;
}

/* ============================================================
   DATE / TIME
   ============================================================ */

.timestamp-page .timestamp-datetime-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(0, 1fr);

  gap: 7px;

  align-items: end;
}

.timestamp-page .timestamp-datetime-row .tool-form-group {
  min-width: 0;

  margin: 0;
}

.timestamp-page .timestamp-datetime-row .tool-input-wrap {
  display: flex;
  align-items: center;

  width: 100%;
  min-width: 0;
  height: 44px;

  margin: 0;
  padding: 0;

  box-sizing: border-box;
}

.timestamp-page .timestamp-datetime-row input[type='date'],
.timestamp-page .timestamp-datetime-row input[type='time'] {
  display: block;

  width: 100%;
  min-width: 0;

  height: 44px;
  min-height: 44px;
  max-height: 44px;

  margin: 0;
  padding: 0 7px 0 9px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: #fff;

  color: var(--text);

  font: inherit;
  font-size: 12px;
  line-height: 1;

  box-sizing: border-box;
}

.timestamp-page input[type='date']::-webkit-calendar-picker-indicator,
.timestamp-page input[type='time']::-webkit-calendar-picker-indicator {
  flex: 0 0 auto;

  width: 14px;
  height: 14px;

  margin: 0 0 0 2px;
  padding: 0;

  cursor: pointer;
}

/* ============================================================
   EXAMPLE
   ============================================================ */

.timestamp-page .timestamp-example-box {
  display: grid;

  grid-template-columns:
    auto
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 7px;

  align-items: center;

  margin-top: 9px;

  padding: 9px 10px;

  border-radius: 10px;

  background: var(--surface-soft);
}

.timestamp-page .timestamp-example-box > span {
  color: var(--text-soft);

  font-size: 12px;
  font-weight: 800;
}

.timestamp-page .timestamp-example-box > div {
  min-width: 0;
}

.timestamp-page .timestamp-example-box code {
  display: block;

  overflow: hidden;

  color: var(--text);

  font-size: 12px;
  font-weight: 800;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.timestamp-page .timestamp-example-box small {
  display: block;

  margin-top: 2px;

  color: var(--text-soft);

  font-size: 12px;
}

/* ============================================================
   INFO
   ============================================================ */

.timestamp-page .timestamp-info-box {
  display: flex;
  align-items: flex-start;

  gap: 7px;

  margin-top: 11px;

  padding: 9px 10px;

  border-radius: 10px;

  background: var(--surface-soft);
}

.timestamp-page .timestamp-info-box > span {
  flex: 0 0 auto;

  font-size: 14px;
}

.timestamp-page .timestamp-info-box p {
  margin: 0;

  color: var(--text-soft);

  font-size: 12px;
  line-height: 1.5;

  word-break: keep-all;
}

/* ============================================================
   MAIN RESULT
   ============================================================ */

.timestamp-page .timestamp-main-result {
  margin-top: 5px;

  text-align: center;
}

.timestamp-page .timestamp-main-result > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 43px;
  height: 23px;

  margin-bottom: 5px;
  padding: 0 8px;

  border-radius: 999px;

  background: var(--surface-soft);

  color: var(--text-soft);

  font-size: 12px;
  font-weight: 900;
}

.timestamp-page .timestamp-main-result strong {
  display: block;

  overflow-wrap: anywhere;

  color: var(--text);

  font-size: 31px;
  font-weight: 900;

  line-height: 1.15;

  letter-spacing: -0.8px;
}

.timestamp-page .timestamp-main-result p {
  margin: 5px 0 0;

  color: var(--text-soft);

  font-size: 12px;
  font-weight: 700;
}

/* ============================================================
   RESULT LONG TEXT
   ============================================================ */

.timestamp-page .tool-result-row strong {
  overflow-wrap: anywhere;

  text-align: right;
}

/* ============================================================
   GUIDE
   ============================================================ */

.timestamp-page .timestamp-guide-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 8px;

  margin-top: 13px;
}

.timestamp-page .timestamp-guide-grid > div {
  padding: 11px 12px;

  border-radius: 10px;

  background: var(--surface-soft);
}

.timestamp-page .timestamp-guide-grid strong {
  display: block;

  margin-bottom: 3px;

  color: var(--text);

  font-size: 12px;
  font-weight: 800;
}

.timestamp-page .timestamp-guide-grid p {
  margin: 0;

  color: var(--text-soft);

  font-size: 12px;
  line-height: 1.55;

  word-break: keep-all;
}

/* ============================================================
   HOVER
   ============================================================ */

@media (hover: hover) and (pointer: fine) {
  .timestamp-page .timestamp-mode-button:not(.active):hover,
  .timestamp-page .timestamp-small-button:hover {
    border-color: #bdb6aa;

    background: #f0eee8;

    color: var(--text);
  }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 520px) {
  .timestamp-page .timestamp-datetime-row {
    grid-template-columns:
      minmax(0, 1.06fr)
      minmax(0, 1fr);

    gap: 5px;
  }

  .timestamp-page .timestamp-datetime-row input[type='date'],
  .timestamp-page .timestamp-datetime-row input[type='time'] {
    padding-left: 7px;
    padding-right: 5px;

    font-size: 12px;
  }

  .timestamp-page .timestamp-main-result strong {
    font-size: 27px;
  }

  .timestamp-page .timestamp-guide-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   VERY SMALL
   ============================================================ */

@media (max-width: 380px) {
  .timestamp-page .timestamp-mode-group {
    grid-template-columns: 1fr;
  }

  .timestamp-page .timestamp-datetime-row {
    grid-template-columns: 1fr;

    gap: 7px;
  }

  .timestamp-page .timestamp-example-box {
    grid-template-columns: 1fr;
  }

  .timestamp-page .timestamp-main-result strong {
    font-size: 24px;
  }
}

.timestamp-batch label{display:block;font-weight:700;margin:16px 0 8px}.timestamp-batch textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--surface-soft);color:inherit;font:inherit}.timestamp-batch select{max-width:100%}
