:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --sky: #63ccff;
  --sky-deep: #2eaeea;
  --yellow: #ffd83d;
  --yellow-deep: #ffad22;
  --pink: #ff7697;
  --purple: #8665e9;
  --mint: #57dbb1;
  --navy: #283854;
  --muted: #6e7892;
  --paper: #fffdfa;
  --line: rgba(75, 91, 130, .12);
  --shadow: 0 26px 70px rgba(45, 93, 143, .19);
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--navy);
  background: #effaff;
}

body, button, input { font-family: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  position: relative;
  min-height: 100vh;
  padding-bottom: 86px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 76%, rgba(255, 219, 69, .22), transparent 22%),
    radial-gradient(circle at 94% 84%, rgba(255, 118, 151, .2), transparent 24%),
    linear-gradient(180deg, #dff5ff 0, #f4fbff 66%, #fff9ed 100%);
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 48% 52% 44% 56%;
  pointer-events: none;
  filter: blur(1px);
}

.page::before {
  right: -90px;
  bottom: 230px;
  width: 280px;
  height: 280px;
  background: rgba(132, 102, 233, .08);
  transform: rotate(24deg);
}

.page::after {
  left: -110px;
  bottom: 45px;
  width: 250px;
  height: 250px;
  background: rgba(87, 219, 177, .12);
}

.header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 72px));
  height: 94px;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(17, 93, 139, .28);
}

.brand__mark {
  width: clamp(158px, 15vw, 198px);
  height: auto;
  filter: drop-shadow(0 7px 10px rgba(27, 99, 138, .2));
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}

.brand:hover .brand__mark { transform: rotate(-2deg) translateY(-2px) scale(1.025); }

.brand__copy { display: grid; gap: 2px; }
.brand__copy strong { font-size: 27px; font-weight: 950; line-height: 1; letter-spacing: .02em; }
.brand__copy small { font-size: 8px; font-weight: 900; letter-spacing: .24em; opacity: .85; }

.header__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 8px 26px rgba(28, 104, 154, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 800;
}

.header__badge i {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: #48e6a6;
  box-shadow: 0 0 0 4px rgba(72, 230, 166, .18);
}

.hero {
  position: relative;
  z-index: 1;
  height: 720px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(35, 165, 229, .24) 0, rgba(35, 165, 229, .07) 36%, transparent 58%),
    linear-gradient(180deg, transparent 68%, rgba(228, 247, 255, .78) 88%, #effaff 100%),
    url("/assets/eggy/eggy-hero.png") center center / cover no-repeat,
    #64cfff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.75) 0 2px, transparent 2.5px);
  background-size: 62px 62px;
  opacity: .17;
  mask-image: linear-gradient(90deg, #000, transparent 50%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 50%);
}

.hero__glow {
  position: absolute;
  top: 135px;
  left: max(24px, calc((100vw - 1320px) / 2 - 40px));
  width: 560px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
  filter: blur(70px);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 72px));
  margin: 0 auto;
  padding-top: 172px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
  color: #fff;
  background: rgba(62, 158, 213, .28);
  box-shadow: 0 10px 28px rgba(45, 122, 169, .13);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.hero__eyebrow i {
  width: 25px;
  height: 25px;
  border: 5px solid #fff;
  border-radius: 50% 50% 46% 54%;
  background: var(--yellow);
  box-shadow: 0 3px 8px rgba(49, 105, 135, .15);
}

.hero h1 {
  margin: 24px 0 18px;
  color: #fff;
  font-size: clamp(64px, 6vw, 92px);
  font-weight: 950;
  line-height: .98;
  letter-spacing: -.055em;
  text-shadow:
    0 5px 0 rgba(52, 164, 216, .25),
    0 16px 40px rgba(34, 118, 163, .2);
}

.hero h1 em {
  display: inline-block;
  margin-top: 8px;
  color: #fff7a9;
  font-style: normal;
  text-shadow:
    0 5px 0 rgba(255, 174, 34, .35),
    0 16px 38px rgba(34, 118, 163, .22);
}

.hero__content > p {
  margin: 0;
  color: rgba(255,255,255,.95);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  text-shadow: 0 3px 14px rgba(28, 102, 145, .35);
}

.hero__chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.hero__chips span {
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  font-size: 12px;
  font-weight: 800;
}

.hero__scroll {
  position: absolute;
  right: max(34px, calc((100vw - 1320px) / 2));
  bottom: 100px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.9);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-shadow: 0 2px 8px rgba(43, 110, 149, .3);
}

.hero__scroll span {
  position: relative;
  width: 23px;
  height: 38px;
  border: 2px solid rgba(255,255,255,.86);
  border-radius: 999px;
}

.hero__scroll span::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 99px;
  background: #fff;
  transform: translateX(-50%);
  animation: scrollCue 1.7s ease-in-out infinite;
}

@keyframes scrollCue {
  0%, 100% { opacity: .35; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 11px); }
}

.cdk-shell {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100vw - 40px));
  margin: -65px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 34px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(84, 149, 203, .08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.cdk-shell::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -60px;
  width: 250px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 216, 61, .18);
  filter: blur(12px);
}

.cdk-shell__title {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .85fr);
  gap: 38px;
  align-items: end;
  padding: 42px 48px 30px;
  border-bottom: 1px solid var(--line);
}

.section-kicker,
.panel-number {
  color: var(--purple);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .22em;
}

.cdk-shell__title h2 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.cdk-shell__title > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.cdk-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); gap: 20px; padding: 24px; }

.panel-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(91, 111, 159, .1);
  border-radius: 26px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}

.panel-card:hover { transform: translateY(-3px); }

.convert {
  padding: 31px 34px 27px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 215, 61, .18), transparent 28%),
    linear-gradient(145deg, #fffdfa, #fff8e9);
  box-shadow: 0 14px 34px rgba(200, 146, 32, .08);
}

.convert:hover { border-color: rgba(255, 189, 36, .3); box-shadow: 0 18px 42px rgba(200, 146, 32, .13); }

.archive {
  padding: 31px 30px 27px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, .17), transparent 27%),
    radial-gradient(circle at 12% 105%, rgba(87, 219, 177, .25), transparent 36%),
    linear-gradient(145deg, #7663e5, #4fbadb);
  box-shadow: 0 18px 42px rgba(91, 94, 203, .19);
}

.archive:hover { border-color: rgba(255,255,255,.55); box-shadow: 0 22px 50px rgba(91, 94, 203, .26); }

.convert__head,
.archive__head { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }

.panel-icon {
  position: relative;
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #ffbe31, #ff7e6f);
  box-shadow: 0 9px 20px rgba(255, 142, 78, .23);
  font-size: 23px;
  transform: rotate(-4deg);
}

.panel-icon--search { background: rgba(255,255,255,.21); box-shadow: none; transform: rotate(4deg); }
.panel-icon--search::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 4px solid #fff;
  border-radius: 50%;
  transform: translate(-2px, -2px);
}
.panel-icon--search::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 10px;
  width: 13px;
  height: 4px;
  border-radius: 8px;
  background: #fff;
  transform: rotate(45deg);
}

.convert__head h3,
.archive__head h2 { margin: 3px 0 0; font-size: 25px; font-weight: 950; line-height: 1.16; letter-spacing: -.025em; }
.convert__head h3 { color: var(--navy); }
.archive .panel-number { color: #fff7a9; }
.archive__head h2 { color: #fff; }
.archive__head p { margin: 7px 0 0; color: rgba(255,255,255,.77); font-size: 12px; line-height: 1.6; }

.form,
.archive form { position: relative; z-index: 1; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field__label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field label,
.archive label { color: #3d4965; font-size: 13px; font-weight: 900; }
.archive label { color: rgba(255,255,255,.92); }

.help-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: #8b6bd3;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.help-link__icon {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  font: 900 12px/1 Arial, sans-serif;
  transition: transform .2s ease;
}

.help-link:hover .help-link__icon,
.help-link:focus-visible .help-link__icon { transform: rotate(12deg) scale(1.1); }
.help-link:focus-visible { outline: 3px solid rgba(134,101,233,.22); outline-offset: 4px; border-radius: 8px; }

.input { position: relative; }
.input__icon {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 1;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: #987526;
  background: #fff0ad;
  font-size: 10px;
  font-weight: 950;
  transform: translateY(-50%);
  pointer-events: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.input__icon--code {
  font-size: 0;
}

.input__icon--code::before {
  width: 17px;
  height: 17px;
  background: currentColor;
  content: "";
  -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik0zIDloMTh2NEgzeiIvPjxwYXRoIGQ9Ik01IDEzaDE0djhINXoiLz48cGF0aCBkPSJNMTIgOXYxMiIvPjxwYXRoIGQ9Ik0xMiA5SDguNUM2LjYgOSA1LjUgOCA1LjUgNi41UzYuNiA0IDguMSA0QzEwLjQgNCAxMiA2LjkgMTIgOVoiLz48cGF0aCBkPSJNMTIgOWgzLjVjMS45IDAgMy0xIDMtMi41UzE3LjQgNCAxNS45IDRDMTMuNiA0IDEyIDYuOSAxMiA5WiIvPjwvZz48L3N2Zz4=") center / contain no-repeat;
  mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxwYXRoIGQ9Ik0zIDloMTh2NEgzeiIvPjxwYXRoIGQ9Ik01IDEzaDE0djhINXoiLz48cGF0aCBkPSJNMTIgOXYxMiIvPjxwYXRoIGQ9Ik0xMiA5SDguNUM2LjYgOSA1LjUgOCA1LjUgNi41UzYuNiA0IDguMSA0QzEwLjQgNCAxMiA2LjkgMTIgOVoiLz48cGF0aCBkPSJNMTIgOWgzLjVjMS45IDAgMy0xIDMtMi41UzE3LjQgNCAxNS45IDRDMTMuNiA0IDEyIDYuOSAxMiA5WiIvPjwvZz48L3N2Zz4=") center / contain no-repeat;
}

.input input {
  display: block;
  width: 100%;
  height: 58px;
  padding: 0 18px 0 60px;
  border: 1px solid rgba(74, 90, 126, .15);
  border-radius: 16px;
  outline: 0;
  color: var(--navy);
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 #fff, 0 7px 18px rgba(71, 90, 131, .06);
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.input input::placeholder { color: #a5abba; }
.input input:focus { border-color: #ffbd2f; box-shadow: 0 0 0 4px rgba(255, 197, 53, .16), 0 9px 22px rgba(83, 94, 128, .09); transform: translateY(-1px); }
.input:focus-within .input__icon { color: #fff; background: linear-gradient(145deg, #ffcb3e, #ff9c25); transform: translateY(-50%) rotate(-5deg); }

.archive .input__icon { color: #6153c9; background: rgba(255,255,255,.88); }
.archive .input input { border-color: rgba(255,255,255,.26); color: #fff; background: rgba(38, 46, 117, .2); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.archive .input input::placeholder { color: rgba(255,255,255,.54); }
.archive .input input:focus { border-color: rgba(255,247,169,.9); box-shadow: 0 0 0 4px rgba(255, 247, 169, .14); }

.primary,
.archive__controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  outline: 0;
  color: #563d10;
  background: linear-gradient(135deg, #ffe65a, #ffb62f);
  box-shadow: 0 10px 0 #ed9822, 0 15px 28px rgba(234, 145, 34, .22);
  font-size: 16px;
  font-weight: 950;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.primary b,
.archive__controls button b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.45); font-size: 16px; }
.primary:hover,
.archive__controls button:hover { filter: brightness(1.035); transform: translateY(-2px); box-shadow: 0 12px 0 #ed9822, 0 19px 32px rgba(234, 145, 34, .25); }
.primary:active,
.archive__controls button:active { transform: translateY(7px); box-shadow: 0 3px 0 #ed9822, 0 8px 16px rgba(234, 145, 34, .2); }
.primary:focus-visible,
.archive__controls button:focus-visible { outline: 3px solid rgba(134, 101, 233, .42); outline-offset: 4px; }
.primary:disabled,
.archive__controls button:disabled { cursor: wait; opacity: .65; filter: grayscale(.15); transform: none; box-shadow: 0 5px 0 #d5a453; }

.status { min-height: 21px; margin: 1px 0 0; color: #858da1; font-size: 12px; font-weight: 700; line-height: 1.55; }
.status > span:first-child { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #b8bfd0; }
.status[data-kind="error"] { color: #d75062; }
.status[data-kind="error"] > span:first-child { background: #ff6b7e; }
.status[data-kind="success"] { color: #21936d; }
.status[data-kind="success"] > span:first-child { background: #3bd59e; box-shadow: 0 0 0 4px rgba(59,213,158,.12); }

.archive__controls { display: grid; gap: 14px; }
.archive__controls button { color: #433594; background: linear-gradient(135deg, #fff8a9, #ffd94b); box-shadow: 0 9px 0 rgba(61, 47, 145, .45), 0 14px 28px rgba(42, 37, 116, .18); }
.archive__controls button:hover { box-shadow: 0 11px 0 rgba(61, 47, 145, .45), 0 18px 32px rgba(42, 37, 116, .22); }
.archive__controls button:active { box-shadow: 0 3px 0 rgba(61, 47, 145, .45), 0 7px 16px rgba(42, 37, 116, .15); }
.archive .status { min-height: 46px; margin-top: 3px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; color: rgba(255,255,255,.75); background: rgba(35, 41, 112, .16); }
.archive .status[data-kind="error"] { color: #ffe3e7; background: rgba(144, 39, 74, .2); }
.archive .status[data-kind="success"] { color: #d7fff0; background: rgba(26, 122, 91, .2); }

.cdk-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 31px 24px;
  color: #8991a6;
  font-size: 11px;
  font-weight: 700;
}

.cdk-footer i { display: inline-grid; width: 18px; height: 18px; margin-right: 5px; place-items: center; border-radius: 50%; color: #fff; background: var(--mint); font-style: normal; }

.dialog,
.confirm-dialog,
.number-guide-dialog {
  width: min(calc(100vw - 28px), 560px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 28px;
  color: var(--navy);
  background: transparent;
}

.dialog::backdrop,
.confirm-dialog::backdrop,
.number-guide-dialog::backdrop { background: rgba(41, 54, 84, .56); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dialog[open],
.confirm-dialog[open],
.number-guide-dialog[open] { animation: dialogPop .3s cubic-bezier(.2,.85,.25,1.1); }
@keyframes dialogPop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

.dialog__card,
.confirm-dialog__card,
.number-guide-dialog__card {
  position: relative;
  max-height: calc(100dvh - 28px);
  padding: 40px 34px 32px;
  overflow: auto;
  border: 5px solid #fff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 219, 63, .22), transparent 28%),
    linear-gradient(145deg, #fff, #fff8eb);
  box-shadow: 0 30px 80px rgba(35, 56, 96, .28);
  scrollbar-width: none;
}
.dialog__card::-webkit-scrollbar,
.confirm-dialog__card::-webkit-scrollbar,
.number-guide-dialog__card::-webkit-scrollbar { width: 0; }

.confirm-dialog { width: min(calc(100vw - 28px), 520px); }
.confirm-dialog__card { padding: 38px 34px 32px; text-align: center; }
.confirm-dialog__icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 17px;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 23px;
  color: #fff;
  background: linear-gradient(145deg, #ffcf42, #ff8e4c);
  box-shadow: 0 12px 24px rgba(238, 135, 48, .2);
  font-size: 32px;
  font-weight: 950;
  transform: rotate(-5deg);
}
.confirm-dialog__eyebrow { color: var(--purple); font-size: 9px; font-weight: 950; letter-spacing: .2em; }
.confirm-dialog h2 { margin: 8px 0 13px; color: var(--navy); font-size: 30px; font-weight: 950; }
.confirm-dialog p { margin: 0; color: #68728a; font-size: 15px; font-weight: 700; line-height: 1.8; }
.confirm-dialog__actions { display: grid; grid-template-columns: 1fr 1.18fr; gap: 12px; margin-top: 27px; }
.confirm-dialog__actions button {
  min-height: 54px;
  padding: 0 18px;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 950;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.confirm-dialog__return { border: 1px solid rgba(91, 106, 143, .18); color: #667089; background: #f1f3f8; }
.confirm-dialog__submit { border: 0; color: #563d10; background: linear-gradient(135deg, #ffe65a, #ffb62f); box-shadow: 0 7px 0 #ed9822; }
.confirm-dialog__actions button:hover { filter: brightness(1.03); transform: translateY(-2px); }
.confirm-dialog__actions button:active { transform: translateY(3px); }
.confirm-dialog__actions button:focus-visible { outline: 3px solid rgba(134,101,233,.3); outline-offset: 3px; }

.dialog__mascot { position: absolute; top: 18px; left: 24px; display: block; width: 132px; height: auto; transform: rotate(-2deg); filter: drop-shadow(0 8px 12px rgba(92,64,18,.15)); }
.dialog__mascot img { display: block; width: 100%; height: auto; }
.dialog__close,
.number-guide-dialog__close {
  position: absolute;
  top: 16px;
  right: 17px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #777f95;
  background: #f1f3f8;
  font: 400 28px/1 Arial, sans-serif;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}
.dialog__close:hover,
.number-guide-dialog__close:hover { color: #fff; background: var(--pink); transform: rotate(8deg); }
.dialog__close:focus-visible,
.number-guide-dialog__close:focus-visible { outline: 3px solid rgba(134,101,233,.3); outline-offset: 3px; }

.dialog__eyebrow { display: block; margin: 10px 45px 8px; color: var(--purple); font-size: 10px; font-weight: 950; letter-spacing: .22em; text-align: center; }
.dialog h2 { margin: 0; padding: 6px 42px 0; color: var(--navy); font-size: clamp(28px, 6vw, 38px); font-weight: 950; line-height: 1.15; text-align: center; }
.dialog__feature { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; align-items: center; margin: 28px 0 4px; padding: 14px; border: 1px solid rgba(134,101,233,.16); border-radius: 20px; background: #f5f1ff; }
.dialog__feature[hidden] { display: none; }
.dialog__feature img { width: 92px; height: 92px; border-radius: 17px; object-fit: cover; }
.dialog__feature strong { color: var(--purple); font-size: clamp(30px, 7vw, 45px); font-weight: 950; }
.dialog__message { max-height: min(38dvh, 330px); margin: 24px 0 0; overflow: auto; color: #666f87; font-size: 15px; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.dialog__emphasis { margin: 16px 0 0; padding: 13px 15px; border-left: 5px solid var(--yellow-deep); border-radius: 9px; color: #795312; background: #fff3bc; font-weight: 900; }
.dialog__emphasis[hidden] { display: none; }
.dialog .primary { width: 100%; margin-top: 25px; }

.number-guide-dialog { width: min(calc(100vw - 28px), 780px); max-width: 780px; }
.number-guide-dialog__card { padding: 30px; }
.number-guide-dialog__header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding-right: 45px; }
.number-guide-dialog__header span { color: var(--purple); font-size: 10px; font-weight: 950; letter-spacing: .22em; }
.number-guide-dialog__header h2 { margin: 7px 0 0; color: var(--navy); font-size: clamp(26px, 4vw, 34px); font-weight: 950; line-height: 1.2; }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-steps article { position: relative; min-height: 205px; padding: 25px 19px 20px; overflow: hidden; border: 1px solid rgba(90,105,145,.1); border-radius: 21px; text-align: center; background: linear-gradient(145deg, #f7fbff, #edf8ff); }
.guide-steps article:nth-child(2) { background: linear-gradient(145deg, #fffdf2, #fff5cf); }
.guide-steps article:nth-child(3) { background: linear-gradient(145deg, #f7f3ff, #eee8ff); }
.guide-steps__number { position: absolute; top: 11px; left: 14px; color: rgba(74,87,119,.33); font-size: 10px; font-weight: 950; letter-spacing: .14em; }
.guide-steps i { display: grid; width: 62px; height: 62px; margin: 11px auto 16px; place-items: center; border: 4px solid #fff; border-radius: 20px; color: #fff; background: linear-gradient(145deg, #66d5ff, #4eb8f1); box-shadow: 0 9px 18px rgba(50,139,193,.16); font: 900 26px/1 Arial, sans-serif; transform: rotate(-4deg); }
.guide-steps article:nth-child(2) i { background: linear-gradient(145deg, #ffdb50, #ffb731); transform: rotate(4deg); }
.guide-steps article:nth-child(3) i { background: linear-gradient(145deg, #a77bec, #775add); }
.guide-steps h3 { margin: 0; color: var(--navy); font-size: 16px; font-weight: 950; }
.guide-steps p { margin: 9px 0 0; color: #7c8498; font-size: 12px; line-height: 1.65; }
.guide-note { margin: 18px 0 0; padding: 13px 16px; border-radius: 13px; color: #78601d; background: #fff4c2; font-size: 12px; line-height: 1.6; }
.guide-note strong { margin-right: 9px; color: #563e0b; }

@media (max-width: 900px) {
  .header { width: calc(100% - 36px); height: 80px; }
  .brand__mark { width: 164px; height: auto; }
  .brand__copy strong { font-size: 23px; }
  .header__badge { padding: 8px 12px; font-size: 11px; }
  .hero { height: 650px; background-position: 56% center; }
  .hero__content { width: calc(100% - 44px); padding-top: 145px; }
  .hero h1 { font-size: clamp(56px, 10vw, 76px); }
  .hero__scroll { display: none; }
  .cdk-shell { width: calc(100vw - 22px); margin-top: -58px; border-radius: 27px; }
  .cdk-shell__title { display: block; padding: 34px 30px 25px; }
  .cdk-shell__title > p { margin-top: 15px; }
  .cdk-grid { grid-template-columns: 1fr; }
  .convert, .archive { min-height: auto; }
  .cdk-footer { padding: 0 26px 23px; }
}

@media (max-width: 620px) {
  .page { padding-bottom: 34px; }
  .header { width: calc(100% - 26px); }
  .brand { gap: 8px; }
  .brand__mark { width: 142px; height: auto; }
  .brand__copy strong { font-size: 20px; }
  .brand__copy small { font-size: 6px; }
  .header__badge { padding: 7px 10px; }
  .header__badge i { width: 7px; height: 7px; }
  .hero { height: 600px; background-position: 63% center; }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(50,158,215,.32), transparent 78%); }
  .hero__content { width: calc(100% - 34px); padding-top: 127px; }
  .hero__eyebrow { padding: 7px 11px 7px 8px; font-size: 11px; }
  .hero h1 { margin-top: 19px; font-size: clamp(48px, 15vw, 65px); }
  .hero__content > p { max-width: 260px; font-size: 14px; line-height: 1.7; }
  .hero__chips { max-width: 260px; margin-top: 18px; }
  .hero__chips span { padding: 7px 10px; font-size: 10px; }
  .cdk-shell { width: calc(100vw - 14px); margin-top: -47px; border-radius: 23px; }
  .cdk-shell__title { padding: 28px 21px 22px; }
  .cdk-shell__title h2 { font-size: 34px; }
  .cdk-shell__title > p { font-size: 12px; line-height: 1.7; }
  .cdk-grid { gap: 13px; padding: 13px; }
  .panel-card { border-radius: 20px; }
  .convert, .archive { padding: 25px 20px 23px; }
  .panel-icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
  .convert__head h3, .archive__head h2 { font-size: 22px; }
  .field__label-row { gap: 8px; }
  .help-link { font-size: 11px; }
  .input input, .primary, .archive__controls button { height: 55px; min-height: 55px; font-size: 14px; }
  .cdk-footer { display: grid; gap: 8px; padding: 4px 20px 21px; }
  .dialog__card { padding: 34px 22px 24px; }
  .confirm-dialog__card { padding: 32px 20px 24px; }
  .confirm-dialog__actions { grid-template-columns: 1fr; }
  .confirm-dialog__submit { grid-row: 1; }
  .dialog__eyebrow { margin-right: 40px; margin-left: 40px; }
  .dialog h2 { padding-right: 38px; padding-left: 38px; font-size: 27px; }
  .dialog__feature { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .dialog__feature img { width: 72px; height: 72px; }
  .number-guide-dialog__card { padding: 24px 18px 20px; }
  .guide-steps { grid-template-columns: 1fr; }
  .guide-steps article { display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; gap: 3px 14px; align-items: center; min-height: 0; padding: 17px 17px; text-align: left; }
  .guide-steps i { grid-row: 1 / 3; width: 54px; height: 54px; margin: 0; }
  .guide-steps h3, .guide-steps p { grid-column: 2; }
  .guide-steps p { margin-top: 2px; }
  .guide-steps__number { top: 8px; right: 10px; left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
