@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@600;700;800&family=Barlow:wght@400;500;600;700&display=swap');

:root { --pink: #E8006F; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  background: #f5f5f7;
  color: #1a1a1e;
}

/* Header */
.header {
  background: #0a0a0c;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 3px solid var(--pink);
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo-box { border: 2px solid var(--pink); border-radius: 6px; padding: 6px 14px; }
.logo-text { font-family: 'Unbounded', sans-serif; color: var(--pink); font-weight: 700; font-size: 18px; letter-spacing: 1px; }
.spacer { flex: 1; }
.ghost-btn {
  background: transparent;
  border: 1.5px solid var(--pink);
  color: var(--pink);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.container { max-width: 720px; margin: 0 auto; padding: 24px 16px 60px; }
.title-block { margin-bottom: 20px; }
h1 { font-family: 'Unbounded', sans-serif; font-size: 26px; font-weight: 700; margin: 0; color: #0a0a0c; }
.subtitle { font-size: 14px; color: #6b6b72; margin: 6px 0 0; }

.restored-banner {
  background: #fff0f6;
  border: 1px solid var(--pink);
  color: var(--pink);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.autosave-note { font-size: 12px; color: #9a9aa2; margin: 0 0 16px; }

.form-card { background: #fff; border-radius: 12px; padding: 18px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #3a3a40; }
.required { color: var(--pink); }
select, input[type="password"] {
  border: 1.5px solid #e2e2e6;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: 'Barlow', sans-serif;
  outline: none;
  background: #fff;
  color: #1a1a1e;
}

.progress-wrap {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  position: sticky; top: 66px; background: #f5f5f7; padding: 4px 0; z-index: 5;
}
.progress-track { flex: 1; height: 10px; background: #e5e5ea; border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--pink); transition: width 0.2s ease; }
.progress-label { font-size: 13px; font-weight: 600; color: #3a3a40; min-width: 100px; text-align: right; }

.section-card { background: #fff; border-radius: 12px; margin-bottom: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.section-header { background: var(--pink); padding: 12px 16px; color: #fff; }
.section-title { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 0.3px; text-transform: uppercase; }
.section-subtitle { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.section-body { padding: 6px 16px; }

.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f0f0f2; cursor: pointer; flex-wrap: wrap; }
.row:last-child { border-bottom: none; }
.row-label { font-size: 15px; line-height: 1.3; }
.row-label.checked { color: #8a8a92; text-decoration: line-through; }
.checked-by {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink);
  background: #fff0f6;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: auto;
  white-space: nowrap;
}

input[type="checkbox"].mygd-check {
  appearance: none; -webkit-appearance: none;
  width: 26px; height: 26px; min-width: 26px;
  border-radius: 6px; border: 2px solid #d8d8dc; background: #fff;
  cursor: pointer; position: relative; transition: all .15s ease;
}
input[type="checkbox"].mygd-check:checked { background: var(--pink); border-color: var(--pink); }
input[type="checkbox"].mygd-check:checked::after {
  content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}

.finish-area { margin-top: 8px; text-align: center; padding-bottom: 20px; }
.hint { font-size: 13px; color: #8a8a92; margin-bottom: 10px; min-height: 1em; }
.hint-warn { font-size: 13px; color: var(--pink); font-weight: 600; margin-bottom: 10px; }
.finish-btn {
  background: #0a0a0c; color: #fff; border: none; border-radius: 10px;
  padding: 16px 32px; font-size: 16px; font-weight: 700;
  font-family: 'Unbounded', sans-serif; width: 100%; cursor: pointer;
}
.finish-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.done-card { background: #fff; border-radius: 14px; padding: 36px 24px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.done-check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--pink); color: #fff;
  font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.done-card h2 { font-family: 'Unbounded', sans-serif; font-size: 22px; margin: 0 0 8px; }
.done-text { font-size: 14px; color: #6b6b72; margin: 0 0 20px; }
.done-details { text-align: left; background: #f9f9fb; border-radius: 10px; padding: 14px; margin-bottom: 18px; }
.done-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid #eee; }
.done-row:last-child { border-bottom: none; }
.done-row .k { color: #8a8a92; font-weight: 600; }
.done-row .v { color: #1a1a1e; font-weight: 600; }
.done-note { font-size: 12px; color: #9a9aa2; margin-bottom: 20px; line-height: 1.5; }
.new-btn {
  background: transparent; border: 1.5px solid var(--pink); color: var(--pink);
  border-radius: 10px; padding: 12px 24px; font-size: 14px; font-weight: 700;
  font-family: 'Unbounded', sans-serif; cursor: pointer;
}

.logbook-view .empty-log { background: #fff; border-radius: 12px; padding: 24px; text-align: center; color: #8a8a92; font-size: 14px; }
.log-entry { background: #fff; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.log-entry-top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.log-name { font-weight: 700; font-size: 15px; }
.log-time { font-size: 12px; color: #8a8a92; }
.log-meta { display: flex; gap: 14px; font-size: 12px; color: #6b6b72; flex-wrap: wrap; }
.log-contributors { font-size: 12px; color: #6b6b72; margin-top: 6px; }
.log-detail-toggle { margin-top: 10px; font-size: 12px; padding: 6px 12px; }
.log-item-detail { margin-top: 10px; border-top: 1px solid #f0f0f2; padding-top: 10px; }
.log-detail-section {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--pink);
  margin: 10px 0 4px;
}
.log-detail-section:first-child { margin-top: 0; }
.log-detail-item { font-size: 13px; color: #3a3a40; padding: 3px 0; }

.footer { text-align: center; font-size: 11px; color: #b5b5bc; padding-bottom: 20px; }

/* Login page */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-card {
  background: #fff; border-radius: 16px; padding: 36px 28px; max-width: 340px; width: 100%;
  text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.login-card .logo-box { display: inline-block; margin-bottom: 18px; }
.login-title { font-family: 'Unbounded', sans-serif; font-size: 20px; margin: 0 0 6px; }
.login-sub { font-size: 13px; color: #6b6b72; margin: 0 0 20px; }
.login-note { font-size: 12px; color: #8a8a92; margin-bottom: 12px; }
.login-error { font-size: 13px; color: var(--pink); font-weight: 600; margin-bottom: 12px; }
.login-input { width: 100%; margin-bottom: 14px; text-align: center; }
.login-btn {
  width: 100%; background: #0a0a0c; color: #fff; border: none; border-radius: 10px;
  padding: 13px; font-size: 15px; font-weight: 700; font-family: 'Unbounded', sans-serif; cursor: pointer;
}
