/* Eyelash Link — visual canonical carried over from the Novita Flutter
   prototype (colors, radii, shadows, pill CTAs, card patterns). The
   implementation itself is new CSS, not a port of Flutter ThemeData. */

@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Quicksand:wght@500;600;700&display=swap');

:root {
  --el-primary: #ff8fa3;
  --el-primary-dark: #e85d75;
  --el-secondary: #ffc2d1;
  --el-accent: #ff6b88;
  --el-background: #fff8f9;
  --el-surface: #ffffff;
  --el-text-primary: #2d2a32;
  --el-text-secondary: #8a8590;
  --el-star: #ffb800;
  --el-divider: #f0e4e7;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--el-background);
  color: var(--el-text-primary);
  font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.el-brand-font {
  font-family: 'Quicksand', 'Zen Kaku Gothic New', sans-serif;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- layout shells ---------- */

.el-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--el-background);
}

.el-profile-shell {
  width: 100%;
  max-width: 480px;
  background: var(--el-background);
  min-height: 100vh;
}

@media (min-width: 900px) {
  .el-profile-shell {
    max-width: 560px;
    margin: 24px auto;
    min-height: auto;
    border-radius: 28px;
    box-shadow: 0 8px 40px rgba(45, 42, 50, 0.08);
    overflow: hidden;
    padding-bottom: 8px;
  }
}

.el-editor-shell {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

/* ---------- header ---------- */

.el-header-gradient {
  background: linear-gradient(to bottom, var(--el-header-tint, #fff0f3), var(--el-background));
  padding: 28px 16px;
  text-align: center;
}

.el-avatar-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: 0 6px 16px var(--el-theme-shadow, rgba(255, 143, 163, 0.3));
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.el-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.el-avatar-fallback {
  width: 100%;
  height: 100%;
  background: var(--el-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 40px;
}

/* ---------- pill CTA ---------- */

.el-pill-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--el-primary), var(--el-accent));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 10px var(--el-theme-shadow, rgba(255, 143, 163, 0.3));
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.el-pill-cta:disabled,
.el-pill-cta.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.el-booking-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 30px;
  background: var(--el-surface);
  color: var(--el-primary-dark);
  font-weight: 700;
  font-size: 16px;
  border: 2px solid var(--el-primary);
  text-decoration: none;
}

/* ---------- cards ---------- */

.el-card {
  background: var(--el-surface);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.el-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.el-section-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--el-header-tint, rgba(255, 194, 209, 0.4));
  color: var(--el-primary-dark);
  flex-shrink: 0;
}

.el-section-title h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--el-text-primary);
}

/* ---------- albums ---------- */

.el-album-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.el-album-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--el-text-primary);
}

.el-album-thumb-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2.5px solid var(--el-primary);
  box-shadow: 0 3px 8px var(--el-theme-shadow, rgba(255, 143, 163, 0.2));
  padding: 2.5px;
  overflow: hidden;
}

.el-album-thumb-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.el-album-thumb-circle .el-avatar-fallback {
  border-radius: 50%;
  font-size: 22px;
}

.el-album-thumb-name {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 78px;
}

/* ---------- menu ---------- */

.el-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--el-divider);
}

.el-menu-item:last-child {
  border-bottom: none;
}

.el-menu-item-name {
  font-weight: 700;
  font-size: 15px;
}

.el-menu-item-desc {
  font-size: 12px;
  color: var(--el-text-secondary);
  margin-top: 2px;
}

.el-menu-item-price {
  font-weight: 700;
  font-size: 15px;
  color: var(--el-primary-dark);
  white-space: nowrap;
}

.el-menu-item-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.el-menu-item-aside { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.el-menu-item-duration { color: var(--el-theme-link, #c54b5f); white-space: nowrap; }
.el-menu-item-image { display: block; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.el-menu-item-image[hidden] { display: none; }
.el-menu-item-desc { white-space: pre-wrap; }
.el-menu-editor-row { flex-wrap: wrap; }
.el-menu-editor-row .el-row-actions { margin-left: auto; }
.el-menu-editor-row > .el-menu-item-image { flex-shrink: 0; }
.el-menu-form fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.el-menu-form input[type=file] { display: block; width: 100%; margin-top: 8px; }
.el-menu-form :focus-visible { outline: 2px solid var(--el-primary-dark); outline-offset: 3px; }
@media (max-width: 360px) {
  .el-menu-item-image { width: 64px; height: 64px; }
  .el-menu-item { gap: 8px; }
}

/* ---------- qualifications ---------- */

.el-qualification-tile {
  padding: 10px 0;
  border-bottom: 1px solid var(--el-divider);
}

.el-qualification-tile:last-child {
  border-bottom: none;
}

.el-qualification-tile .title {
  font-size: 16px;
  font-weight: 700;
}

.el-qualification-tile .year {
  font-size: 13px;
  color: var(--el-text-secondary);
  margin-top: 2px;
}

/* ---------- career timeline ---------- */

.el-timeline-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.el-timeline-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 10px;
}

.el-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--el-primary);
  flex-shrink: 0;
}

.el-timeline-line {
  flex: 1;
  width: 2px;
  background: var(--el-secondary);
  margin-top: 2px;
}

.el-timeline-body {
  padding-bottom: 18px;
}

.el-timeline-period {
  font-size: 13px;
  font-weight: 700;
  color: var(--el-primary-dark);
}

.el-timeline-org {
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
}

/* ---------- reviews ---------- */

.el-review-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.el-review-card {
  width: 240px;
  flex-shrink: 0;
  background: var(--el-surface);
  border-radius: 16px;
  border: 1px solid var(--el-divider);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  padding: 14px;
}

.el-review-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--el-secondary);
  overflow: hidden;
  flex-shrink: 0;
}

.el-review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.el-review-name {
  font-size: 13px;
  font-weight: 700;
}

.el-review-menu {
  font-size: 11px;
  color: var(--el-text-secondary);
}

.el-review-comment {
  font-size: 12px;
  color: var(--el-text-primary);
  line-height: 1.5;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- empty state ---------- */

.el-empty-state {
  width: 100%;
  padding: 24px;
  border: 1px dashed #e0d3d7;
  border-radius: 16px;
  text-align: center;
  color: var(--el-text-secondary);
  font-size: 13px;
}

/* ---------- footer CTA ---------- */

.el-footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 16px 32px;
  text-decoration: none;
  color: var(--el-text-secondary);
}

.el-footer-cta .logo {
  height: 40px;
}

.el-footer-cta span {
  font-size: 12px;
}

/* ---------- link sheet (modal) ---------- */

.el-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 42, 50, 0.4);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}

.el-sheet-backdrop.is-open {
  display: flex;
}

.el-sheet {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 12px 16px 20px;
  max-height: 80vh;
  overflow-y: auto;
}

.el-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #ddd;
  margin: 4px auto 16px;
}

.el-sheet-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.el-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  text-decoration: none;
  color: var(--el-text-primary);
  border-radius: 12px;
}

.el-link-row:hover {
  background: #fafafa;
}

.el-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--el-header-tint, rgba(255, 194, 209, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--el-primary-dark);
  flex-shrink: 0;
}

.el-link-label {
  font-weight: 700;
  font-size: 14px;
}

.el-link-url {
  font-size: 12px;
  color: var(--el-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.el-link-row.is-preview-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ---------- editor ---------- */

.el-editor-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}

.el-editor-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.el-field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--el-text-secondary);
  display: block;
  margin-bottom: 4px;
}

.el-input,
.el-textarea,
.el-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5dde0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--el-text-primary);
}

.el-input:focus,
.el-textarea:focus,
.el-select:focus {
  outline: none;
  border-color: var(--el-primary);
}

.el-field {
  margin-bottom: 12px;
}

.el-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.el-btn-primary {
  background: var(--el-primary);
  color: #fff;
}

.el-btn-primary:hover {
  background: var(--el-primary-dark);
}

.el-btn-outline {
  background: #fff;
  border: 1px solid var(--el-primary);
  color: var(--el-primary-dark);
}

.el-btn-ghost {
  background: transparent;
  color: var(--el-text-secondary);
}

.el-btn-danger {
  background: #fff;
  border: 1px solid #e57373;
  color: #d32f2f;
}

.el-btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

.el-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#el-share-btn {
  min-height: 44px;
}

.el-list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--el-divider);
}

.el-list-row:last-child {
  border-bottom: none;
}

.el-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.el-tabbar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--el-divider);
}

.el-tab {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--el-text-secondary);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.el-tab.is-active {
  color: var(--el-primary-dark);
  border-bottom-color: var(--el-primary);
}

.el-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--el-text-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.el-toast.is-visible {
  opacity: 1;
}

.el-toast.is-error {
  background: #d32f2f;
}

.el-app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--el-divider);
  position: sticky;
  top: 0;
  z-index: 10;
}

.el-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.el-status-badge.draft {
  background: #f0f0f0;
  color: #757575;
}

.el-status-badge.published {
  background: #e3f6e6;
  color: #2e7d32;
}

@media (min-width: 900px) {
  .el-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 24px;
    align-items: start;
  }

  .el-editor-preview-pane {
    position: sticky;
    top: 16px;
  }
}

.el-preview-frame-wrap {
  border: 8px solid #222;
  border-radius: 28px;
  overflow: hidden;
  max-height: 80vh;
  overflow-y: auto;
}

.el-marketing-hero {
  padding: 48px 20px;
  text-align: center;
}

/* PF1-A login stays intentionally small; the editor remains the product UI. */
.el-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--el-secondary);
}

.el-login-card {
  width: min(100%, 420px);
  padding: 32px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(60, 42, 52, 0.12);
  text-align: center;
}

.el-login-logo { width: 56px; height: 56px; border-radius: 16px; }
.el-login-card h1 { margin: 12px 0 8px; }
.el-login-card > p { color: var(--el-text-secondary); margin-bottom: 20px; }
.el-login-google,
.el-login-external {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  text-decoration: none;
}
.el-login-error,
.el-login-guidance {
  margin: 16px 0;
  padding: 14px;
  border-radius: 12px;
  text-align: left;
}
.el-login-error { background: #fff1f3; color: #9d2335; }
.el-login-guidance { background: #fff8ea; }
.el-login-guidance p { margin: 8px 0 12px; font-size: 14px; }
.el-login-manual-fallback {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--el-divider);
}
.el-login-manual-fallback > strong,
.el-login-guidance label { display: block; font-size: 12px; font-weight: 700; }
.el-login-guidance input {
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--el-divider);
  border-radius: 8px;
}

/* Theme selection: tokens remain scoped; existing NULL/legacy profiles are unchanged. */
.el-theme-page{max-width:1040px;margin:auto;padding:32px 20px;display:grid;gap:28px;background:#faf8f5;color:#302c29;min-height:100vh}
.el-theme-page h1{font-size:clamp(24px,5vw,32px);line-height:1.5}.el-theme-page p{line-height:1.8;color:#655d55}
.el-theme-eyebrow{font-size:11px;letter-spacing:.18em}.el-theme-page fieldset{padding:0;border:0;margin:24px 0}.el-theme-page legend{font-weight:700;margin-bottom:12px}
.el-theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.el-theme-option{display:flex;align-items:flex-start;gap:7px;min-height:58px;padding:8px;border:2px solid #d8d0c7;border-radius:12px;background:var(--el-background);font-size:12px;cursor:pointer;color:#302c29}
.el-theme-option:has(input:checked){border-color:var(--el-primary);box-shadow:0 0 0 1px var(--el-primary)}
.el-theme-option:focus-within{outline:3px solid #302c29;outline-offset:3px}.el-theme-option input{width:18px;height:18px;accent-color:var(--el-primary);flex:none}
.el-theme-swatch{width:20px;height:20px;border-radius:50%;background:var(--el-primary);flex:none}
.el-theme-page .el-btn-primary{background:#756151;color:white;min-height:48px;width:100%}.el-theme-page a{color:#66503f;text-decoration:underline}
.el-theme-page button:focus-visible,.el-theme-page a:focus-visible{outline:3px solid #302c29;outline-offset:3px}
.el-theme-preview{min-width:0}.el-theme-preview iframe{width:100%;height:660px;border:1px solid #ddd1c3;border-radius:20px;background:#fff}
@media(min-width:760px){.el-theme-page{grid-template-columns:1.1fr 1fr;align-items:start}.el-theme-preview{position:sticky;top:16px}}
@media(prefers-reduced-motion:reduce){.el-theme-page *{scroll-behavior:auto;transition:none}}

@media(max-width:759px){
 .el-theme-controls{display:contents}.el-theme-controls>p,.el-theme-controls>h1{margin:0}
 .el-theme-eyebrow{order:0}.el-theme-controls>h1{order:1}.el-theme-controls>p:not(.el-theme-eyebrow){order:2}
 .el-theme-preview{order:3;position:sticky;top:0;z-index:2;background:#faf8f5;padding:4px 0 8px}
 .el-theme-preview>p{margin:0 0 6px;font-size:12px}.el-theme-preview iframe{height:240px}
 .el-theme-controls>form{order:4}.el-theme-controls>a{order:5}.el-theme-page{gap:16px}
}

/* Reuse the approved LP silhouette tint and original lash restoration. */
.el-theme-logo{position:relative;display:block;width:calc(32px * 1024 / 209);height:32px;margin:0 auto;flex-shrink:0;background:linear-gradient(90deg,var(--el-primary) 0 30%,#655d55 30% 100%);-webkit-mask:url('/static/images/eyelash-link-logo.png') center/contain no-repeat;mask:url('/static/images/eyelash-link-logo.png') center/contain no-repeat}
.el-footer-cta .el-theme-logo{width:calc(40px * 1024 / 209);height:40px}
.el-theme-logo::after{content:"";position:absolute;inset:0;background:url('/static/images/eyelash-link-logo.png') center/contain no-repeat;clip-path:polygon(0.0000% 31.1005%,5.3711% 31.1005%,6.8359% 35.8852%,8.7891% 43.5407%,10.7422% 48.8038%,12.6953% 53.5885%,14.6484% 56.4593%,16.6016% 58.3732%,18.5547% 58.8517%,20.5078% 58.8517%,22.4609% 57.8947%,23.4375% 56.4593%,24.4141% 55.9809%,25.3906% 52.6316%,26.1719% 50.2392%,26.1719% 100.0000%,0.0000% 100.0000%)}
.el-theme-copy{display:block;min-width:0;flex:1}
.el-theme-name{display:block;font-weight:700;line-height:1.6}
.el-theme-description{display:block;margin-top:5px;font-size:12px;line-height:1.8;color:var(--el-text-secondary)}
@media(max-width:479px){.el-theme-grid{grid-template-columns:1fr}.el-theme-option{padding:12px;gap:10px}}
