.date-page {
  background:
    radial-gradient(circle at 78% 5%, rgba(179, 169, 224, .31), transparent 26rem),
    radial-gradient(circle at 7% 40%, rgba(151, 207, 184, .22), transparent 25rem),
    #f4f1ea;
}

.back-home {
  justify-self: end;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}
.back-home span { color: var(--coral); margin-left: 4px; }
.date-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 110px; }
.date-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; margin-bottom: 48px; }
.date-hero h1 { margin: 24px 0 17px; font-size: clamp(48px, 6vw, 76px); line-height: 1.02; letter-spacing: -.065em; }
.date-hero h1 em { color: #6c61a9; font-family: Georgia, "Songti SC", serif; font-weight: 500; }
.date-hero > div > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.today-card { min-width: 288px; display: flex; align-items: center; gap: 15px; padding: 18px; border: 1px solid rgba(99, 92, 82, .16); border-radius: 18px; background: rgba(255, 254, 250, .72); box-shadow: 0 18px 50px rgba(54, 47, 37, .07); }
.today-icon { width: 54px; height: 58px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px 15px 15px 6px; color: #fff; background: #282624; font: 700 23px Georgia, serif; box-shadow: inset 0 5px #8b80c8; }
.today-card div { display: grid; gap: 5px; }
.today-card strong { font-size: 14px; }
.today-card small { color: #79736b; font-variant-numeric: tabular-nums; }

.date-workbench { padding: 26px; border: 1px solid rgba(110, 101, 90, .2); border-radius: 28px; background: rgba(255, 254, 250, .82); box-shadow: 0 28px 75px rgba(54, 47, 37, .1), inset 0 1px #fff; backdrop-filter: blur(14px); }
.date-workbench-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 4px 3px 22px; }
.date-workbench-title > div:first-child { display: grid; gap: 5px; }
.date-workbench-title > div:first-child > span { color: #786db4; font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.date-workbench-title h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.date-feature-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.date-feature-pills span { padding: 6px 9px; border-radius: 999px; color: #716b63; background: #f0ede7; font-size: 10px; font-weight: 750; }
.tool-card { border: 1px solid #e2ddd4; border-radius: 20px; background: #fffefa; }
.difference-card { padding: 24px; }
.card-heading { display: flex; align-items: center; gap: 14px; }
.card-number { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #342e26; background: #f1b97b; font: italic 700 13px Georgia, serif; transform: rotate(-2deg); }
.card-number.violet { background: #bbb3dc; }
.card-number.green { background: #9bcab5; }
.card-number.blue { background: #9bbfd6; }
.card-heading h3 { margin: 0 0 5px; font-size: 18px; letter-spacing: -.025em; }
.card-heading p { margin: 0; color: #878078; font-size: 11px; }
.difference-inputs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; margin-top: 24px; }
.difference-inputs label, .add-fields label, .timestamp-input { display: grid; gap: 8px; min-width: 0; }
.difference-inputs label > span, .add-fields label > span, .timestamp-input > span { color: #57524b; font-size: 11px; font-weight: 800; }
.difference-inputs input, .add-fields input, .add-fields select, .timestamp-input input { width: 100%; height: 48px; border: 1px solid #d9d3c9; border-radius: 11px; outline: 0; padding: 0 13px; color: var(--ink); background: #faf8f3; font-size: 14px; }
.difference-inputs input:focus, .add-fields input:focus, .add-fields select:focus, .timestamp-input input:focus { border-color: #796db5; box-shadow: 0 0 0 3px rgba(121, 109, 181, .1); }
.swap-button { width: 42px; height: 42px; margin-bottom: 3px; border: 1px solid #d8d2c8; border-radius: 50%; color: #756b9f; background: #fff; font-size: 18px; cursor: pointer; transition: transform .2s, background .2s; }
.swap-button:hover { transform: rotate(180deg); background: #f3effb; }
.difference-options { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; }
.range-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.range-presets button, .timestamp-actions button { border: 0; border-radius: 8px; padding: 7px 10px; color: #6e675f; background: #f0ede7; font-size: 10px; font-weight: 750; cursor: pointer; }
.range-presets button:hover, .timestamp-actions button:hover { color: #5c518e; background: #ebe7f5; }
.inclusive-option { display: inline-flex; align-items: center; gap: 7px; color: #686159; font-size: 11px; white-space: nowrap; cursor: pointer; }
.inclusive-option input { accent-color: #6c61a9; }
.date-error { min-height: 16px; margin: 7px 0 0; color: #c74d3b; font-size: 10px; }
.difference-results { display: grid; grid-template-columns: 1.05fr repeat(3, 1fr); margin-top: 5px; overflow: hidden; border: 1px solid #e3ded5; border-radius: 15px; background: #f7f4ee; }
.difference-results article { min-height: 116px; display: flex; flex-direction: column; justify-content: center; padding: 18px; border-left: 1px solid #e3ded5; }
.difference-results article:first-child { border-left: 0; }
.difference-results span { color: #8a837a; font-size: 10px; font-weight: 750; }
.difference-results strong { margin: 8px 0 6px; font-size: clamp(18px, 2vw, 25px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.difference-results small { color: #989189; font-size: 9px; }
.difference-results .primary-result { color: #fff; background: #292725; }
.difference-results .primary-result span, .difference-results .primary-result small { color: #aaa49b; }
.difference-results .primary-result strong { margin: 2px 0 0; color: #d4cbff; font: 700 clamp(43px, 5vw, 64px) Georgia, serif; line-height: .95; }

.secondary-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; margin-top: 14px; }
.add-card, .timestamp-card { padding: 22px; }
.compact-heading { align-items: flex-start; }
.add-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.add-fields .wide-field { grid-column: 1 / -1; }
.add-fields select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%); background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field-hint { margin: 8px 0 13px; color: #999189; font-size: 9px; }
.single-result { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border-radius: 14px; background: #f0ecf8; }
.single-result > div { display: grid; gap: 5px; }
.single-result span { color: #7e749f; font-size: 9px; font-weight: 800; }
.single-result strong { color: #40375f; font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.single-result small { color: #7b738e; font-size: 10px; }
.single-result button, .timestamp-results button { border: 1px solid rgba(88, 76, 136, .2); border-radius: 8px; padding: 7px 9px; color: #5e5483; background: rgba(255,255,255,.65); font-size: 9px; font-weight: 800; cursor: pointer; }
.timestamp-input { margin-top: 22px; }
.timestamp-input input { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.timestamp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.timestamp-results { display: grid; gap: 8px; margin-top: 5px; }
.timestamp-results > div:not(.timestamp-numbers) { min-height: 49px; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid #dce7df; border-radius: 11px; background: #f2f8f4; }
.timestamp-results > div > span { color: #78857c; font-size: 9px; font-weight: 800; }
.timestamp-results strong { min-width: 0; overflow: hidden; color: #31443a; font: 650 11px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.timestamp-results button { color: #47725f; border-color: rgba(48, 113, 83, .18); }
.timestamp-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.timestamp-numbers > span { min-width: 0; display: grid; gap: 5px; padding: 10px 11px; border-radius: 10px; background: #f2f0eb; }
.timestamp-numbers small { color: #8f8980; font-size: 9px; }
.timestamp-numbers b { overflow: hidden; color: #4c4842; font: 650 10px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; text-overflow: ellipsis; }

.timezone-card { margin-top: 14px; padding: 24px; }
.timezone-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.timezone-heading > button { border: 0; border-radius: 9px; padding: 9px 12px; color: #536f82; background: #edf4f7; font-size: 10px; font-weight: 800; cursor: pointer; }
.timezone-heading > button:hover { background: #e2eff4; }
.timezone-controls { display: grid; grid-template-columns: 1.15fr 1fr auto 1fr; align-items: end; gap: 11px; margin-top: 22px; }
.timezone-datetime-fields { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8px; }
.timezone-datetime-fields label, .timezone-select { display: grid; gap: 8px; min-width: 0; }
.timezone-datetime-fields label > span, .timezone-select > span { color: #57524b; font-size: 11px; font-weight: 800; }
.timezone-datetime-fields input, .timezone-select select { width: 100%; height: 48px; min-width: 0; border: 1px solid #d9d3c9; border-radius: 11px; outline: 0; padding: 0 12px; color: var(--ink); background: #faf8f3; font-size: 13px; }
.timezone-select select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%); background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.timezone-datetime-fields input:focus, .timezone-select select:focus { border-color: #5d8fab; box-shadow: 0 0 0 3px rgba(93, 143, 171, .1); }
.timezone-swap { width: 42px; height: 42px; margin-bottom: 3px; border: 1px solid #cbd9e0; border-radius: 50%; color: #4e819d; background: #f5fafc; font-size: 18px; cursor: pointer; transition: transform .2s, background .2s; }
.timezone-swap:hover { transform: rotate(180deg); background: #eaf4f8; }
.timezone-results { display: grid; grid-template-columns: 1fr 130px 1fr; align-items: stretch; margin-top: 5px; overflow: hidden; border: 1px solid #d9e2e7; border-radius: 16px; background: #f4f8fa; }
.timezone-results article { position: relative; min-width: 0; min-height: 166px; display: flex; flex-direction: column; justify-content: center; padding: 20px 22px; background: #fffefa; }
.zone-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.zone-result-heading span { min-width: 0; overflow: hidden; color: #55514a; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.zone-result-heading small { flex: 0 0 auto; padding: 4px 6px; border-radius: 6px; color: #56788b; background: #eaf3f7; font: 750 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.timezone-results article > strong { margin: 13px 0 8px; color: #282624; font: 700 clamp(35px, 4vw, 50px)/.95 Georgia, serif; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.timezone-results article > p { display: flex; align-items: center; gap: 9px; margin: 0; }
.timezone-results article > p b { color: #64605a; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.timezone-results article > p span { color: #989189; font-size: 10px; }
.timezone-difference { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border-left: 1px solid #d9e2e7; border-right: 1px solid #d9e2e7; color: #57778a; background: #edf5f8; text-align: center; }
.timezone-difference > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #5e8fa9; font-size: 18px; }
.timezone-difference strong { font-size: 10px; }
.timezone-difference small { color: #80939d; font-size: 9px; }
.target-zone-result { background: linear-gradient(135deg, #f7fbfd, #eef7fa) !important; }
.target-zone-result > button { position: absolute; right: 20px; bottom: 17px; border: 1px solid rgba(65, 119, 147, .2); border-radius: 8px; padding: 7px 9px; color: #48758c; background: rgba(255,255,255,.76); font-size: 9px; font-weight: 800; cursor: pointer; }
.timezone-note { display: flex; align-items: center; gap: 7px; margin: 11px 2px 0; color: #8a847b; font-size: 9px; line-height: 1.5; }
.timezone-note span { width: 15px; height: 15px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #5b8195; background: #e8f1f5; font: italic 800 9px Georgia, serif; }

.date-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.date-benefits article { min-height: 154px; padding: 21px; border: 1px solid rgba(111, 103, 92, .17); border-radius: 17px; background: rgba(255, 254, 250, .48); }
.date-benefits span { color: #8c81c1; font: italic 11px Georgia, serif; }
.date-benefits strong { display: block; margin: 23px 0 7px; font-size: 14px; }
.date-benefits p { margin: 0; color: #7f7970; font-size: 11px; line-height: 1.65; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 30; padding: 11px 15px; border-radius: 10px; color: #fff; background: #242220; box-shadow: 0 12px 36px rgba(0,0,0,.2); font-size: 11px; font-weight: 750; opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .date-hero { grid-template-columns: 1fr; align-items: start; }
  .today-card { width: max-content; }
  .secondary-grid { grid-template-columns: 1fr; }
  .difference-results { grid-template-columns: 1fr 1fr; }
  .difference-results article:nth-child(3) { border-left: 0; border-top: 1px solid #e3ded5; }
  .difference-results article:nth-child(4) { border-top: 1px solid #e3ded5; }
  .timezone-controls { grid-template-columns: 1fr auto 1fr; }
  .timezone-datetime-fields { grid-column: 1 / -1; }
  .timezone-results { grid-template-columns: 1fr 105px 1fr; }
  .date-benefits { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .date-main { width: calc(100% - 24px); padding: 48px 0 76px; }
  .date-hero { gap: 28px; margin-bottom: 30px; }
  .date-hero h1 { font-size: clamp(43px, 13vw, 61px); }
  .date-hero > div > p { font-size: 14px; }
  .today-card { width: 100%; min-width: 0; }
  .date-workbench { padding: 13px; border-radius: 21px; }
  .date-workbench-title { align-items: flex-start; padding: 8px 4px 17px; }
  .date-feature-pills { display: none; }
  .difference-card, .add-card, .timestamp-card, .timezone-card { padding: 17px; }
  .difference-inputs { grid-template-columns: 1fr auto; }
  .difference-inputs label:last-child { grid-column: 1 / -1; }
  .swap-button { grid-column: 2; grid-row: 1; }
  .difference-options { align-items: flex-start; flex-direction: column; }
  .difference-results { grid-template-columns: 1fr; }
  .difference-results article, .difference-results article:nth-child(3) { min-height: 95px; border-left: 0; border-top: 1px solid #e3ded5; }
  .difference-results article:first-child { border-top: 0; }
  .timezone-heading { align-items: flex-start; flex-direction: column; }
  .timezone-controls { grid-template-columns: 1fr auto; }
  .timezone-datetime-fields { grid-column: 1 / -1; }
  .timezone-select:last-child { grid-column: 1 / -1; }
  .timezone-swap { grid-column: 2; grid-row: 2; }
  .timezone-results { grid-template-columns: 1fr; }
  .timezone-results article { min-height: 146px; }
  .timezone-difference { min-height: 86px; border: 0; border-top: 1px solid #d9e2e7; border-bottom: 1px solid #d9e2e7; }
  .timezone-difference > span { transform: rotate(90deg); }
  .date-benefits { grid-template-columns: 1fr; }
  .date-benefits article { min-height: 130px; }
}

@media (max-width: 440px) {
  .back-home { font-size: 11px; }
  .add-fields { grid-template-columns: 1fr; }
  .add-fields .wide-field { grid-column: auto; }
  .timestamp-results > div:not(.timestamp-numbers) { grid-template-columns: 62px minmax(0, 1fr); }
  .timestamp-results > div:not(.timestamp-numbers) button { grid-column: 2; width: max-content; }
  .timestamp-numbers { grid-template-columns: 1fr; }
}
