diff --git a/app/assets/builds/tailwind.css b/app/assets/builds/tailwind.css index 64745739..d97c5a46 100644 --- a/app/assets/builds/tailwind.css +++ b/app/assets/builds/tailwind.css @@ -1,2 +1,2 @@ /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */ -@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-text-shadow-color:initial;--tw-text-shadow-alpha:100%;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-800:oklch(47% .157 37.304);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-teal-50:oklch(98.4% .014 180.72);--color-teal-100:oklch(95.3% .051 180.801);--color-teal-200:oklch(91% .096 180.426);--color-teal-300:oklch(85.5% .138 181.071);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-teal-600:oklch(60% .118 184.704);--color-teal-700:oklch(51.1% .096 186.391);--color-teal-800:oklch(43.7% .078 188.216);--color-teal-900:oklch(38.6% .063 188.416);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-800:oklch(39.8% .195 277.366);--color-indigo-900:oklch(35.9% .144 278.697);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-4xl:56rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25/1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--blur-lg:16px;--blur-3xl:64px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-primary-50:#e6f0ff;--color-primary-100:#cce0ff;--color-primary-200:#99c2ff;--color-primary-300:#66a3ff;--color-primary-400:#3385ff;--color-primary-500:#0052cc;--color-primary-600:#003d99;--color-primary-700:#002868;--color-primary-800:#001f4d;--color-primary-900:#001433;--color-accent:#f97316;--color-accent-dark:#ea580c;--color-gold-light:#fde047;--color-gold:#facc15;--spacing-72:18rem;--spacing-84:21rem;--spacing-96:24rem;--spacing-128:32rem;--font-display:Inter,system-ui,sans-serif;--font-body:Inter,system-ui,sans-serif;--shadow-glow:0 0 20px #00286880;--shadow-glow-lg:0 0 40px #00286899;--shadow-neumorphic:12px 12px 24px #0000001a,-12px -12px 24px #ffffff80;--animate-fade-in:fadeIn .5s ease-in-out;--animate-fade-in-up:fadeInUp .6s ease-out;--animate-slide-in:slideIn .4s ease-out;--animate-bounce-slow:bounce 3s infinite;--animate-wiggle:wiggle 1s ease-in-out infinite}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}body{font-family:var(--font-body);color:var(--color-gray-900);-webkit-font-smoothing:antialiased}.dark body{color:var(--color-gray-100)}h1,h2,h3,h4,h5,h6{font-family:var(--font-display);font-weight:700}html.transitioning,html.transitioning *,html.transitioning :before,html.transitioning :after{transition:background-color .3s,border-color .3s,color .3s!important}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:oklch(55.1% .027 264.364);border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:oklch(54.6% .245 262.881);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-date-and-time-value{text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{appearance:none;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:oklch(54.6% .245 262.881);--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:oklch(55.1% .027 264.364);flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components{button{cursor:pointer}.btn{cursor:pointer;border-radius:.5rem;padding:.5rem 1rem;font-weight:500;transition:all .3s}.btn:focus{box-shadow:0 0 0 2px var(--color-primary-500);outline:none}.btn-primary{background-color:var(--color-primary-600);color:#fff;box-shadow:var(--shadow-md);cursor:pointer;border-radius:.5rem;padding:.5rem 1rem;font-weight:500;transition:all .3s}.btn-primary:hover{background-color:var(--color-primary-700);box-shadow:var(--shadow-lg)}.btn-primary:focus{box-shadow:0 0 0 2px var(--color-primary-500);outline:none}.dark .btn-primary{background-color:var(--color-primary-500)}.dark .btn-primary:hover{background-color:var(--color-primary-600)}.btn-secondary{background-color:var(--color-gray-200);color:var(--color-gray-800);border-radius:.5rem;padding:.5rem 1rem;font-weight:500;transition:all .3s}.btn-secondary:hover{background-color:var(--color-gray-300)}.btn-secondary:focus{box-shadow:0 0 0 2px var(--color-gray-500);outline:none}.dark .btn-secondary{background-color:var(--color-gray-700);color:var(--color-gray-200)}.dark .btn-secondary:hover{background-color:var(--color-gray-600)}.btn-accent{background-color:var(--color-accent);color:#fff;box-shadow:var(--shadow-md);border-radius:.5rem;padding:.5rem 1rem;font-weight:500;transition:all .3s}.btn-accent:hover{background-color:var(--color-accent-dark);box-shadow:var(--shadow-lg)}.btn-accent:focus{box-shadow:0 0 0 2px var(--color-accent);outline:none}.btn-glow{background-color:var(--color-blue-600);color:#fff;box-shadow:var(--shadow-glow);border-radius:.5rem;padding:.5rem 1rem;font-weight:500;transition:all .3s}.btn-glow:hover{background-color:var(--color-blue-700);box-shadow:var(--shadow-glow-lg)}.dark .btn-glow{background-color:var(--color-blue-500)}.dark .btn-glow:hover{background-color:var(--color-blue-600)}.card{box-shadow:var(--shadow-lg);background-color:#fff;border-radius:.75rem;padding:1.5rem;transition:all .3s}.card:hover{box-shadow:var(--shadow-2xl)}.dark .card{background-color:var(--color-gray-800)}.card-neumorphic{background-color:var(--color-gray-100);box-shadow:var(--shadow-neumorphic);border-radius:1rem;padding:1.5rem}.dark .card-neumorphic{background-color:var(--color-gray-800)}.card-glass{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:var(--shadow-xl);background-color:#ffffff1a;border:1px solid #fff3;border-radius:1rem;padding:1.5rem}.dark .card-glass{background-color:#0003;border-color:#ffffff1a}.input{border:1px solid var(--color-gray-300);border-radius:.5rem;width:100%;padding:.5rem 1rem;transition:all .3s}.input:focus{box-shadow:0 0 0 2px var(--color-primary-500);border-color:#0000}.dark .input{background-color:var(--color-gray-800);border-color:var(--color-gray-600);color:#fff}.input-glow:focus{box-shadow:var(--shadow-glow)}.badge{border-radius:9999px;align-items:center;padding:.25rem .75rem;font-size:.875rem;font-weight:500;display:inline-flex}.badge-primary{background-color:var(--color-primary-100);color:var(--color-primary-800);border-radius:9999px;align-items:center;padding:.25rem .75rem;font-size:.875rem;font-weight:500;display:inline-flex}.dark .badge-primary{background-color:var(--color-primary-900);color:var(--color-primary-200)}.badge-success{background-color:var(--color-green-100);color:var(--color-green-800);border-radius:9999px;align-items:center;padding:.25rem .75rem;font-size:.875rem;font-weight:500;display:inline-flex}.dark .badge-success{background-color:var(--color-green-900);color:var(--color-green-200)}.badge-warning{background-color:var(--color-yellow-100);color:var(--color-yellow-800);border-radius:9999px;align-items:center;padding:.25rem .75rem;font-size:.875rem;font-weight:500;display:inline-flex}.dark .badge-warning{background-color:var(--color-yellow-900);color:var(--color-yellow-200)}.badge-danger{background-color:var(--color-red-100);color:var(--color-red-800);border-radius:9999px;align-items:center;padding:.25rem .75rem;font-size:.875rem;font-weight:500;display:inline-flex}.dark .badge-danger{background-color:var(--color-red-900);color:var(--color-red-200)}.container-custom{max-width:80rem;margin-left:auto;margin-right:auto;padding-left:1rem;padding-right:1rem}@media (min-width:640px){.container-custom{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:1024px){.container-custom{padding-left:2rem;padding-right:2rem}}.section{padding-top:4rem;padding-bottom:4rem}@media (min-width:768px){.section{padding-top:6rem;padding-bottom:6rem}}.gradient-text{background:linear-gradient(to right,var(--color-primary-700),var(--color-gold));color:#0000;-webkit-background-clip:text;background-clip:text}.dark .gradient-text{background:linear-gradient(to right,var(--color-primary-400),var(--color-gold-light));-webkit-background-clip:text;background-clip:text}.hover-lift{transition:transform .3s}.hover-lift:hover{box-shadow:var(--shadow-2xl);transform:translateY(-.5rem)}.hover-scale{transition:transform .3s}.hover-scale:hover{transform:scale(1.05)}.hover-rotate{transition:transform .3s}.hover-rotate:hover{transform:rotate(3deg)}.nav-link{color:var(--color-gray-700);font-weight:500;transition:color .3s}.nav-link:hover{color:var(--color-primary-600)}.dark .nav-link{color:var(--color-gray-300)}.dark .nav-link:hover{color:var(--color-primary-400)}.nav-link-mobile{color:var(--color-gray-700);border-radius:.5rem;padding:.75rem 1rem;font-weight:500;transition:all .3s;display:block}.nav-link-mobile:hover{background-color:var(--color-gray-100)}.dark .nav-link-mobile{color:var(--color-gray-300)}.dark .nav-link-mobile:hover{background-color:var(--color-gray-700)}}@layer utilities{.\@container{container-type:inline-size}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-px{inset:1px}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.inset-x-10{inset-inline:calc(var(--spacing)*10)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.-top-16{top:calc(var(--spacing)*-16)}.top-0{top:calc(var(--spacing)*0)}.top-1\.5{top:calc(var(--spacing)*1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-3{top:calc(var(--spacing)*3)}.top-4{top:calc(var(--spacing)*4)}.top-5{top:calc(var(--spacing)*5)}.top-8{top:calc(var(--spacing)*8)}.top-10{top:calc(var(--spacing)*10)}.top-12{top:calc(var(--spacing)*12)}.top-20{top:calc(var(--spacing)*20)}.top-\[calc\(5rem\+env\(safe-area-inset-top\)\)\]{top:calc(5rem + env(safe-area-inset-top))}.-right-1{right:calc(var(--spacing)*-1)}.-right-16{right:calc(var(--spacing)*-16)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.right-16{right:calc(var(--spacing)*16)}.-bottom-1{bottom:calc(var(--spacing)*-1)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-1{bottom:calc(var(--spacing)*1)}.bottom-3{bottom:calc(var(--spacing)*3)}.bottom-4{bottom:calc(var(--spacing)*4)}.bottom-8{bottom:calc(var(--spacing)*8)}.left-0{left:calc(var(--spacing)*0)}.left-1\.5{left:calc(var(--spacing)*1.5)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-3{left:calc(var(--spacing)*3)}.left-4{left:calc(var(--spacing)*4)}.left-5{left:calc(var(--spacing)*5)}.left-10{left:calc(var(--spacing)*10)}.isolate{isolation:isolate}.-z-10{z-index:calc(10*-1)}.-z-20{z-index:calc(20*-1)}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[60\]{z-index:60}.z-\[100\]{z-index:100}.z-\[1000\]{z-index:1000}.z-\[1001\]{z-index:1001}.order-first{order:-9999}.col-span-full{grid-column:1/-1}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-m-1\.5{margin:calc(var(--spacing)*-1.5)}.-m-2\.5{margin:calc(var(--spacing)*-2.5)}.m-0{margin:calc(var(--spacing)*0)}.-mx-2{margin-inline:calc(var(--spacing)*-2)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-1{margin-block:calc(var(--spacing)*1)}.my-6{margin-block:calc(var(--spacing)*6)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.888889em;margin-bottom:.888889em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.33333em;margin-bottom:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.8em;font-size:2.14286em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.8em;font-size:1.42857em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.444444em;font-size:1.28571em;line-height:1.55556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.42857em;margin-bottom:.571429em;line-height:1.42857}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.142857em;padding-inline-end:.357143em;padding-bottom:.142857em;border-radius:.3125rem;padding-inline-start:.357143em;font-size:.857143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;border-radius:.25rem;margin-top:1.66667em;margin-bottom:1.66667em;padding-inline-start:1em;font-size:.857143em;line-height:1.66667}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;margin-bottom:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.571429em;margin-bottom:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em;margin-bottom:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.85714em;margin-bottom:2.85714em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.666667em;padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.71429em;margin-bottom:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.666667em;font-size:.857143em;line-height:1.33333}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.-mt-0\.5{margin-top:calc(var(--spacing)*-.5)}.-mt-1{margin-top:calc(var(--spacing)*-1)}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-10{margin-top:calc(var(--spacing)*10)}.mt-12{margin-top:calc(var(--spacing)*12)}.mt-14{margin-top:calc(var(--spacing)*14)}.mt-16{margin-top:calc(var(--spacing)*16)}.mt-auto{margin-top:auto}.mr-0\.5{margin-right:calc(var(--spacing)*.5)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-1\.5{margin-right:calc(var(--spacing)*1.5)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-3{margin-right:calc(var(--spacing)*3)}.mr-4{margin-right:calc(var(--spacing)*4)}.mr-auto{margin-right:auto}.-mb-8{margin-bottom:calc(var(--spacing)*-8)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.mb-12{margin-bottom:calc(var(--spacing)*12)}.-ml-24{margin-left:calc(var(--spacing)*-24)}.-ml-\[22rem\]{margin-left:-22rem}.-ml-px{margin-left:-1px}.ml-0\.5{margin-left:calc(var(--spacing)*.5)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-9{margin-left:calc(var(--spacing)*9)}.ml-11{margin-left:calc(var(--spacing)*11)}.ml-\[max\(50\%\,38rem\)\]{margin-left:max(50%,38rem)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.block\!{display:block!important}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.aspect-2\/3{aspect-ratio:2/3}.aspect-4\/3{aspect-ratio:4/3}.aspect-7\/5{aspect-ratio:7/5}.aspect-\[2\/3\]{aspect-ratio:2/3}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[1313\/771\]{aspect-ratio:1313/771}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-11{width:calc(var(--spacing)*11);height:calc(var(--spacing)*11)}.size-16{width:calc(var(--spacing)*16);height:calc(var(--spacing)*16)}.size-full{width:100%;height:100%}.h-1{height:calc(var(--spacing)*1)}.h-1\/2{height:50%}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-3\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-14{height:calc(var(--spacing)*14)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-24{height:calc(var(--spacing)*24)}.h-32{height:calc(var(--spacing)*32)}.h-36{height:calc(var(--spacing)*36)}.h-40{height:calc(var(--spacing)*40)}.h-48{height:calc(var(--spacing)*48)}.h-64{height:calc(var(--spacing)*64)}.h-80{height:calc(var(--spacing)*80)}.h-96{height:var(--spacing-96)}.h-\[30rem\]{height:30rem}.h-\[64rem\]{height:64rem}.h-auto{height:auto}.h-full{height:100%}.max-h-48{max-height:calc(var(--spacing)*48)}.max-h-56{max-height:calc(var(--spacing)*56)}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-64{max-height:calc(var(--spacing)*64)}.max-h-\[85vh\]{max-height:85vh}.max-h-\[calc\(100dvh-11rem\)\]{max-height:calc(100dvh - 11rem)}.max-h-full{max-height:100%}.max-h-none{max-height:none}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-120{min-height:calc(var(--spacing)*120)}.min-h-\[60px\]{min-height:60px}.min-h-\[60vh\]{min-height:60vh}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-0{width:calc(var(--spacing)*0)}.w-0\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-2{width:calc(var(--spacing)*2)}.w-3{width:calc(var(--spacing)*3)}.w-3\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-24{width:calc(var(--spacing)*24)}.w-28{width:calc(var(--spacing)*28)}.w-32{width:calc(var(--spacing)*32)}.w-44{width:calc(var(--spacing)*44)}.w-48{width:calc(var(--spacing)*48)}.w-64{width:calc(var(--spacing)*64)}.w-72{width:var(--spacing-72)}.w-96{width:var(--spacing-96)}.w-148{width:calc(var(--spacing)*148)}.w-\[24rem\]{width:24rem}.w-\[50rem\]{width:50rem}.w-\[82\.0625rem\]{width:82.0625rem}.w-\[min\(100\%\,calc\(\(100dvh-10rem\)\*0\.62\)\)\]{width:min(100%,62dvh - 6.2rem)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\[92\%\]{max-width:92%}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-4{min-width:calc(var(--spacing)*4)}.min-w-\[150px\]{min-width:150px}.min-w-\[200px\]{min-width:200px}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-auto{flex:auto}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.origin-top-left{transform-origin:0 0}.origin-top-right{transform-origin:100% 0}.-translate-x-1\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing)*2);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-180{rotate:180deg}.rotate-\[30deg\]{rotate:30deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.transform-gpu{transform:translateZ(0)var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce-slow{animation:var(--animate-bounce-slow)}.animate-fade-in-up{animation:var(--animate-fade-in-up)}.animate-pulse{animation:var(--animate-pulse)}.animate-slide-in{animation:var(--animate-slide-in)}.animate-spin{animation:var(--animate-spin)}.animate-wiggle{animation:var(--animate-wiggle)}.cursor-grab{cursor:grab}.cursor-move{cursor:move}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-zoom-in{cursor:zoom-in}.touch-pan-y{--tw-pan-y:pan-y;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-start{scroll-snap-align:start}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-72>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing-72)*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing-72)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-84>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing-84)*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing-84)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-96>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing-96)*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing-96)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-128>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing-128)*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing-128)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1{column-gap:calc(var(--spacing)*1)}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-x-3{column-gap:calc(var(--spacing)*3)}.gap-x-4{column-gap:calc(var(--spacing)*4)}.gap-x-6{column-gap:calc(var(--spacing)*6)}.gap-x-12{column-gap:calc(var(--spacing)*12)}.gap-x-14{column-gap:calc(var(--spacing)*14)}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-1\.5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-6>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*6)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-1{row-gap:calc(var(--spacing)*1)}.gap-y-2{row-gap:calc(var(--spacing)*2)}.gap-y-3{row-gap:calc(var(--spacing)*3)}.gap-y-4{row-gap:calc(var(--spacing)*4)}.gap-y-16{row-gap:calc(var(--spacing)*16)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}:where(.divide-gray-200>:not(:last-child)){border-color:var(--color-gray-200)}.self-center{align-self:center}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-y-contain{overscroll-behavior-y:contain}.scroll-smooth{scroll-behavior:smooth}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[calc\(var\(--radius-lg\)\+1px\)\]{border-radius:calc(var(--radius-lg) + 1px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-2xl{border-top-left-radius:var(--radius-2xl);border-top-right-radius:var(--radius-2xl)}.rounded-t-\[12cqw\]{border-top-left-radius:12cqw;border-top-right-radius:12cqw}.rounded-t-xl{border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl)}.rounded-tl-xl{border-top-left-radius:var(--radius-xl)}.rounded-b-xl{border-bottom-right-radius:var(--radius-xl);border-bottom-left-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-x-\[3cqw\]{border-inline-style:var(--tw-border-style);border-inline-width:3cqw}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-\[3cqw\]{border-top-style:var(--tw-border-style);border-top-width:3cqw}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-400{border-color:var(--color-amber-400)}.border-amber-500{border-color:var(--color-amber-500)}.border-blue-200{border-color:var(--color-blue-200)}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-300{border-color:var(--color-emerald-300)}.border-emerald-500{border-color:var(--color-emerald-500)}.border-emerald-600{border-color:var(--color-emerald-600)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-700{border-color:var(--color-gray-700)}.border-green-200{border-color:var(--color-green-200)}.border-indigo-400{border-color:var(--color-indigo-400)}.border-primary-500{border-color:var(--color-primary-500)}.border-purple-300{border-color:var(--color-purple-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-500{border-color:var(--color-red-500)}.border-red-700{border-color:var(--color-red-700)}.border-teal-500{border-color:var(--color-teal-500)}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-white\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.border-white\/10{border-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.border-white\/20{border-color:#fff3}@supports (color:color-mix(in lab, red, red)){.border-white\/20{border-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.border-white\/30{border-color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.border-white\/30{border-color:color-mix(in oklab,var(--color-white)30%,transparent)}}.border-white\/40{border-color:#fff6}@supports (color:color-mix(in lab, red, red)){.border-white\/40{border-color:color-mix(in oklab,var(--color-white)40%,transparent)}}.border-white\/60{border-color:#fff9}@supports (color:color-mix(in lab, red, red)){.border-white\/60{border-color:color-mix(in oklab,var(--color-white)60%,transparent)}}.border-t-white{border-top-color:var(--color-white)}.btn-gold{color:#001433;background-color:#facc15}.btn-gold:hover{background-color:#eab308}.bg-accent{background-color:var(--color-accent)}.bg-accent-dark{background-color:var(--color-accent-dark)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-200{background-color:var(--color-amber-200)}.bg-amber-400\/90{background-color:#fcbb00e6}@supports (color:color-mix(in lab, red, red)){.bg-amber-400\/90{background-color:color-mix(in oklab,var(--color-amber-400)90%,transparent)}}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-600{background-color:var(--color-amber-600)}.bg-amber-900\/80{background-color:#7b3306cc}@supports (color:color-mix(in lab, red, red)){.bg-amber-900\/80{background-color:color-mix(in oklab,var(--color-amber-900)80%,transparent)}}.bg-black\/45{background-color:#00000073}@supports (color:color-mix(in lab, red, red)){.bg-black\/45{background-color:color-mix(in oklab,var(--color-black)45%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-black\/60{background-color:#0009}@supports (color:color-mix(in lab, red, red)){.bg-black\/60{background-color:color-mix(in oklab,var(--color-black)60%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab, red, red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black)70%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-100\/90{background-color:#d0fae5e6}@supports (color:color-mix(in lab, red, red)){.bg-emerald-100\/90{background-color:color-mix(in oklab,var(--color-emerald-100)90%,transparent)}}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\/20{background-color:#00bb7f33}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\/20{background-color:color-mix(in oklab,var(--color-emerald-500)20%,transparent)}}.bg-emerald-500\/90{background-color:#00bb7fe6}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\/90{background-color:color-mix(in oklab,var(--color-emerald-500)90%,transparent)}}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-emerald-600\/30{background-color:#0097674d}@supports (color:color-mix(in lab, red, red)){.bg-emerald-600\/30{background-color:color-mix(in oklab,var(--color-emerald-600)30%,transparent)}}.bg-emerald-700{background-color:var(--color-emerald-700)}.bg-emerald-800{background-color:var(--color-emerald-800)}.bg-emerald-900\/80{background-color:#004e3bcc}@supports (color:color-mix(in lab, red, red)){.bg-emerald-900\/80{background-color:color-mix(in oklab,var(--color-emerald-900)80%,transparent)}}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-700{background-color:var(--color-gray-700)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-gray-900\/5{background-color:#1018280d}@supports (color:color-mix(in lab, red, red)){.bg-gray-900\/5{background-color:color-mix(in oklab,var(--color-gray-900)5%,transparent)}}.bg-gray-900\/80{background-color:#101828cc}@supports (color:color-mix(in lab, red, red)){.bg-gray-900\/80{background-color:color-mix(in oklab,var(--color-gray-900)80%,transparent)}}.bg-gray-900\/90{background-color:#101828e6}@supports (color:color-mix(in lab, red, red)){.bg-gray-900\/90{background-color:color-mix(in oklab,var(--color-gray-900)90%,transparent)}}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-indigo-50{background-color:var(--color-indigo-50)}.bg-indigo-100{background-color:var(--color-indigo-100)}.bg-indigo-100\/90{background-color:#e0e7ffe6}@supports (color:color-mix(in lab, red, red)){.bg-indigo-100\/90{background-color:color-mix(in oklab,var(--color-indigo-100)90%,transparent)}}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-primary-50{background-color:var(--color-primary-50)}.bg-primary-100{background-color:var(--color-primary-100)}.bg-primary-500{background-color:var(--color-primary-500)}.bg-primary-600{background-color:var(--color-primary-600)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-purple-200{background-color:var(--color-purple-200)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-600{background-color:var(--color-purple-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-600{background-color:var(--color-red-600)}.bg-red-600\/60{background-color:#e4001499}@supports (color:color-mix(in lab, red, red)){.bg-red-600\/60{background-color:color-mix(in oklab,var(--color-red-600)60%,transparent)}}.bg-red-600\/90{background-color:#e40014e6}@supports (color:color-mix(in lab, red, red)){.bg-red-600\/90{background-color:color-mix(in oklab,var(--color-red-600)90%,transparent)}}.bg-red-700{background-color:var(--color-red-700)}.bg-red-800{background-color:var(--color-red-800)}.bg-slate-600{background-color:var(--color-slate-600)}.bg-teal-50{background-color:var(--color-teal-50)}.bg-teal-100{background-color:var(--color-teal-100)}.bg-teal-500{background-color:var(--color-teal-500)}.bg-white{background-color:var(--color-white)}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.bg-white\/15{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.bg-white\/15{background-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.bg-white\/20{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.bg-white\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-white\/50{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.bg-white\/50{background-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.bg-white\/80{background-color:#fffc}@supports (color:color-mix(in lab, red, red)){.bg-white\/80{background-color:color-mix(in oklab,var(--color-white)80%,transparent)}}.bg-white\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.bg-white\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.bg-white\/95{background-color:#fffffff2}@supports (color:color-mix(in lab, red, red)){.bg-white\/95{background-color:color-mix(in oklab,var(--color-white)95%,transparent)}}.bg-yellow-50{background-color:var(--color-yellow-50)}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-yellow-400{background-color:var(--color-yellow-400)}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-yellow-500\/20{background-color:#edb20033}@supports (color:color-mix(in lab, red, red)){.bg-yellow-500\/20{background-color:color-mix(in oklab,var(--color-yellow-500)20%,transparent)}}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-tr{--tw-gradient-position:to top right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-amber-400{--tw-gradient-from:var(--color-amber-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-amber-400\/30{--tw-gradient-from:#fcbb004d}@supports (color:color-mix(in lab, red, red)){.from-amber-400\/30{--tw-gradient-from:color-mix(in oklab,var(--color-amber-400)30%,transparent)}}.from-amber-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-amber-500{--tw-gradient-from:var(--color-amber-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-black\/50{--tw-gradient-from:#00000080}@supports (color:color-mix(in lab, red, red)){.from-black\/50{--tw-gradient-from:color-mix(in oklab,var(--color-black)50%,transparent)}}.from-black\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-black\/70{--tw-gradient-from:#000000b3}@supports (color:color-mix(in lab, red, red)){.from-black\/70{--tw-gradient-from:color-mix(in oklab,var(--color-black)70%,transparent)}}.from-black\/70{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-100{--tw-gradient-from:var(--color-blue-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-400{--tw-gradient-from:var(--color-blue-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-400\/30{--tw-gradient-from:#54a2ff4d}@supports (color:color-mix(in lab, red, red)){.from-blue-400\/30{--tw-gradient-from:color-mix(in oklab,var(--color-blue-400)30%,transparent)}}.from-blue-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-500{--tw-gradient-from:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-600{--tw-gradient-from:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-emerald-100{--tw-gradient-from:var(--color-emerald-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-emerald-400{--tw-gradient-from:var(--color-emerald-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-emerald-400\/30{--tw-gradient-from:#00d2944d}@supports (color:color-mix(in lab, red, red)){.from-emerald-400\/30{--tw-gradient-from:color-mix(in oklab,var(--color-emerald-400)30%,transparent)}}.from-emerald-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-emerald-500{--tw-gradient-from:var(--color-emerald-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-emerald-600{--tw-gradient-from:var(--color-emerald-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-200{--tw-gradient-from:var(--color-gray-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-900{--tw-gradient-from:var(--color-gray-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-950\/80{--tw-gradient-from:#030712cc}@supports (color:color-mix(in lab, red, red)){.from-gray-950\/80{--tw-gradient-from:color-mix(in oklab,var(--color-gray-950)80%,transparent)}}.from-gray-950\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-950\/90{--tw-gradient-from:#030712e6}@supports (color:color-mix(in lab, red, red)){.from-gray-950\/90{--tw-gradient-from:color-mix(in oklab,var(--color-gray-950)90%,transparent)}}.from-gray-950\/90{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-950\/95{--tw-gradient-from:#030712f2}@supports (color:color-mix(in lab, red, red)){.from-gray-950\/95{--tw-gradient-from:color-mix(in oklab,var(--color-gray-950)95%,transparent)}}.from-gray-950\/95{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-green-500{--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-100{--tw-gradient-from:var(--color-purple-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-400\/30{--tw-gradient-from:#c07eff4d}@supports (color:color-mix(in lab, red, red)){.from-purple-400\/30{--tw-gradient-from:color-mix(in oklab,var(--color-purple-400)30%,transparent)}}.from-purple-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-500{--tw-gradient-from:var(--color-purple-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-600{--tw-gradient-from:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-red-500{--tw-gradient-from:var(--color-red-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-teal-500{--tw-gradient-from:var(--color-teal-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-gray-800{--tw-gradient-via:var(--color-gray-800);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-gray-950\/70{--tw-gradient-via:#030712b3}@supports (color:color-mix(in lab, red, red)){.via-gray-950\/70{--tw-gradient-via:color-mix(in oklab,var(--color-gray-950)70%,transparent)}}.via-gray-950\/70{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-gray-950\/95{--tw-gradient-via:#030712f2}@supports (color:color-mix(in lab, red, red)){.via-gray-950\/95{--tw-gradient-via:color-mix(in oklab,var(--color-gray-950)95%,transparent)}}.via-gray-950\/95{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-transparent{--tw-gradient-via:transparent;--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-black\/70{--tw-gradient-to:#000000b3}@supports (color:color-mix(in lab, red, red)){.to-black\/70{--tw-gradient-to:color-mix(in oklab,var(--color-black)70%,transparent)}}.to-black\/70{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-200{--tw-gradient-to:var(--color-blue-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-400\/30{--tw-gradient-to:#54a2ff4d}@supports (color:color-mix(in lab, red, red)){.to-blue-400\/30{--tw-gradient-to:color-mix(in oklab,var(--color-blue-400)30%,transparent)}}.to-blue-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500{--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-600{--tw-gradient-to:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-700{--tw-gradient-to:var(--color-blue-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-950\/95{--tw-gradient-to:#162456f2}@supports (color:color-mix(in lab, red, red)){.to-blue-950\/95{--tw-gradient-to:color-mix(in oklab,var(--color-blue-950)95%,transparent)}}.to-blue-950\/95{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-emerald-200{--tw-gradient-to:var(--color-emerald-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-emerald-600{--tw-gradient-to:var(--color-emerald-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-emerald-800{--tw-gradient-to:var(--color-emerald-800);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-gray-300{--tw-gradient-to:var(--color-gray-300);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-gray-900{--tw-gradient-to:var(--color-gray-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-green-600{--tw-gradient-to:var(--color-green-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-100{--tw-gradient-to:var(--color-indigo-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-400\/30{--tw-gradient-to:#7d87ff4d}@supports (color:color-mix(in lab, red, red)){.to-indigo-400\/30{--tw-gradient-to:color-mix(in oklab,var(--color-indigo-400)30%,transparent)}}.to-indigo-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-600{--tw-gradient-to:var(--color-indigo-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-orange-400\/30{--tw-gradient-to:#ff8b1a4d}@supports (color:color-mix(in lab, red, red)){.to-orange-400\/30{--tw-gradient-to:color-mix(in oklab,var(--color-orange-400)30%,transparent)}}.to-orange-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-orange-500{--tw-gradient-to:var(--color-orange-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-orange-600{--tw-gradient-to:var(--color-orange-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-200{--tw-gradient-to:var(--color-purple-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-600{--tw-gradient-to:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-red-600{--tw-gradient-to:var(--color-red-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-teal-500{--tw-gradient-to:var(--color-teal-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-teal-600{--tw-gradient-to:var(--color-teal-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-yellow-400{--tw-gradient-to:var(--color-yellow-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-yellow-400\/30{--tw-gradient-to:#fac8004d}@supports (color:color-mix(in lab, red, red)){.to-yellow-400\/30{--tw-gradient-to:color-mix(in oklab,var(--color-yellow-400)30%,transparent)}}.to-yellow-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.\[mask-image\:radial-gradient\(32rem_32rem_at_center\,white\,transparent\)\]{-webkit-mask-image:radial-gradient(32rem 32rem,#fff,#0000);mask-image:radial-gradient(32rem 32rem,#fff,#0000)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.fill-gray-50{fill:var(--color-gray-50)}.stroke-gray-200{stroke:var(--color-gray-200)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-center{object-position:center}.object-left{object-position:left}.object-top{object-position:top}.p-1{padding:calc(var(--spacing)*1)}.p-1\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-10{padding:calc(var(--spacing)*10)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-3\.5{padding-inline:calc(var(--spacing)*3.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-3\.5{padding-block:calc(var(--spacing)*3.5)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-10{padding-block:calc(var(--spacing)*10)}.py-12{padding-block:calc(var(--spacing)*12)}.py-16{padding-block:calc(var(--spacing)*16)}.py-24{padding-block:calc(var(--spacing)*24)}.py-32{padding-block:calc(var(--spacing)*32)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-1\.5{padding-top:calc(var(--spacing)*1.5)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pt-8{padding-top:calc(var(--spacing)*8)}.pt-10{padding-top:calc(var(--spacing)*10)}.pt-14{padding-top:calc(var(--spacing)*14)}.pt-16{padding-top:calc(var(--spacing)*16)}.pt-24{padding-top:calc(var(--spacing)*24)}.pt-32{padding-top:calc(var(--spacing)*32)}.pt-36{padding-top:calc(var(--spacing)*36)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-8{padding-right:calc(var(--spacing)*8)}.pr-10{padding-right:calc(var(--spacing)*10)}.pr-16{padding-right:calc(var(--spacing)*16)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-1\.5{padding-bottom:calc(var(--spacing)*1.5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pb-8{padding-bottom:calc(var(--spacing)*8)}.pb-12{padding-bottom:calc(var(--spacing)*12)}.pb-24{padding-bottom:calc(var(--spacing)*24)}.pb-32{padding-bottom:calc(var(--spacing)*32)}.pb-\[env\(safe-area-inset-bottom\)\]{padding-bottom:env(safe-area-inset-bottom)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-5{padding-left:calc(var(--spacing)*5)}.pl-12{padding-left:calc(var(--spacing)*12)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-base\/7{font-size:var(--text-base);line-height:calc(var(--spacing)*7)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-lg\/8{font-size:var(--text-lg);line-height:calc(var(--spacing)*8)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\/4{font-size:var(--text-sm);line-height:calc(var(--spacing)*4)}.text-sm\/6{font-size:var(--text-sm);line-height:calc(var(--spacing)*6)}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xl\/8{font-size:var(--text-xl);line-height:calc(var(--spacing)*8)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-pretty{text-wrap:pretty}.\[overflow-wrap\:anywhere\]{overflow-wrap:anywhere}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-100{color:var(--color-amber-100)}.text-amber-400{color:var(--color-amber-400)}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-amber-900{color:var(--color-amber-900)}.text-blue-100{color:var(--color-blue-100)}.text-blue-200{color:var(--color-blue-200)}.text-blue-400{color:var(--color-blue-400)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-emerald-50{color:var(--color-emerald-50)}.text-emerald-100{color:var(--color-emerald-100)}.text-emerald-200{color:var(--color-emerald-200)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-700{color:var(--color-emerald-700)}.text-emerald-800{color:var(--color-emerald-800)}.text-emerald-900{color:var(--color-emerald-900)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-gray-950{color:var(--color-gray-950)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-green-800{color:var(--color-green-800)}.text-green-900{color:var(--color-green-900)}.text-indigo-500{color:var(--color-indigo-500)}.text-indigo-600{color:var(--color-indigo-600)}.text-indigo-800{color:var(--color-indigo-800)}.text-indigo-900{color:var(--color-indigo-900)}.text-orange-500{color:var(--color-orange-500)}.text-primary-600{color:var(--color-primary-600)}.text-primary-800{color:var(--color-primary-800)}.text-purple-400{color:var(--color-purple-400)}.text-purple-500{color:var(--color-purple-500)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-purple-800{color:var(--color-purple-800)}.text-purple-900{color:var(--color-purple-900)}.text-red-200{color:var(--color-red-200)}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-red-900{color:var(--color-red-900)}.text-teal-500{color:var(--color-teal-500)}.text-teal-600{color:var(--color-teal-600)}.text-teal-700{color:var(--color-teal-700)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.text-white\!{color:var(--color-white)!important}.text-white\/10{color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.text-white\/10{color:color-mix(in oklab,var(--color-white)10%,transparent)}}.text-white\/40{color:#fff6}@supports (color:color-mix(in lab, red, red)){.text-white\/40{color:color-mix(in oklab,var(--color-white)40%,transparent)}}.text-white\/50{color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.text-white\/50{color:color-mix(in oklab,var(--color-white)50%,transparent)}}.text-white\/60{color:#fff9}@supports (color:color-mix(in lab, red, red)){.text-white\/60{color:color-mix(in oklab,var(--color-white)60%,transparent)}}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.text-white\/70{color:color-mix(in oklab,var(--color-white)70%,transparent)}}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab, red, red)){.text-white\/80{color:color-mix(in oklab,var(--color-white)80%,transparent)}}.text-white\/90{color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.text-white\/90{color:color-mix(in oklab,var(--color-white)90%,transparent)}}.text-yellow-200{color:var(--color-yellow-200)}.text-yellow-300{color:var(--color-yellow-300)}.text-yellow-400{color:var(--color-yellow-400)}.text-yellow-500{color:var(--color-yellow-500)}.text-yellow-600{color:var(--color-yellow-600)}.text-yellow-700{color:var(--color-yellow-700)}.text-yellow-800{color:var(--color-yellow-800)}.text-yellow-900{color:var(--color-yellow-900)}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.accent-emerald-400{accent-color:var(--color-emerald-400)}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-glow{--tw-shadow:0 0 20px var(--tw-shadow-color,#00286880);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-glow-lg{--tw-shadow:0 0 40px var(--tw-shadow-color,#00286899);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner-glow{--tw-shadow:inset 0 0 20px var(--tw-shadow-color,#0028684d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-neumorphic{--tw-shadow:12px 12px 24px var(--tw-shadow-color,#0000001a),-12px -12px 24px var(--tw-shadow-color,#ffffff80);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-amber-400{--tw-ring-color:var(--color-amber-400)}.ring-amber-500{--tw-ring-color:var(--color-amber-500)}.ring-black{--tw-ring-color:var(--color-black)}.ring-black\/5{--tw-ring-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.ring-black\/5{--tw-ring-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.ring-emerald-500{--tw-ring-color:var(--color-emerald-500)}.ring-gray-200{--tw-ring-color:var(--color-gray-200)}.ring-gray-300{--tw-ring-color:var(--color-gray-300)}.ring-gray-900\/10{--tw-ring-color:#1018281a}@supports (color:color-mix(in lab, red, red)){.ring-gray-900\/10{--tw-ring-color:color-mix(in oklab,var(--color-gray-900)10%,transparent)}}.ring-purple-500{--tw-ring-color:var(--color-purple-500)}.ring-red-500{--tw-ring-color:var(--color-red-500)}.ring-teal-500{--tw-ring-color:var(--color-teal-500)}.ring-transparent{--tw-ring-color:transparent}.ring-white{--tw-ring-color:var(--color-white)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-black\/5{outline-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.outline-black\/5{outline-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.outline-black\/10{outline-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.outline-black\/10{outline-color:color-mix(in oklab,var(--color-black)10%,transparent)}}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.blur-3xl{--tw-blur:blur(var(--blur-3xl));filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a))drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a)drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-lg{--tw-backdrop-blur:blur(var(--blur-lg));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.\[scrollbar-width\:none\]{scrollbar-width:none}.ring-inset{--tw-ring-inset:inset}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media (hover:hover){.group-hover\:translate-x-0\.5:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\:scale-\[1\.02\]:is(:where(.group):hover *){scale:1.02}.group-hover\:bg-gray-100:is(:where(.group):hover *){background-color:var(--color-gray-100)}.group-hover\:text-amber-500:is(:where(.group):hover *){color:var(--color-amber-500)}.group-hover\:text-amber-600:is(:where(.group):hover *){color:var(--color-amber-600)}.group-hover\:text-blue-600:is(:where(.group):hover *){color:var(--color-blue-600)}.group-hover\:text-emerald-500:is(:where(.group):hover *){color:var(--color-emerald-500)}.group-hover\:text-emerald-600:is(:where(.group):hover *){color:var(--color-emerald-600)}.group-hover\:text-emerald-800:is(:where(.group):hover *){color:var(--color-emerald-800)}.group-hover\:text-purple-600:is(:where(.group):hover *){color:var(--color-purple-600)}.group-hover\:text-red-500:is(:where(.group):hover *){color:var(--color-red-500)}.group-hover\:text-teal-500:is(:where(.group):hover *){color:var(--color-teal-500)}.group-hover\:text-teal-600:is(:where(.group):hover *){color:var(--color-teal-600)}.group-hover\:text-yellow-500:is(:where(.group):hover *){color:var(--color-yellow-500)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.peer-checked\:bg-blue-600:is(:where(.peer):checked~*){background-color:var(--color-blue-600)}.peer-checked\:bg-purple-600:is(:where(.peer):checked~*){background-color:var(--color-purple-600)}.peer-checked\:bg-yellow-400:is(:where(.peer):checked~*){background-color:var(--color-yellow-400)}.peer-checked\:text-gray-900:is(:where(.peer):checked~*){color:var(--color-gray-900)}.peer-checked\:text-red-500:is(:where(.peer):checked~*){color:var(--color-red-500)}.peer-checked\:text-white:is(:where(.peer):checked~*){color:var(--color-white)}.peer-checked\:ring-0:is(:where(.peer):checked~*){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.file\:mr-4::file-selector-button{margin-right:calc(var(--spacing)*4)}.file\:rounded-md::file-selector-button{border-radius:var(--radius-md)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-emerald-50::file-selector-button{background-color:var(--color-emerald-50)}.file\:px-4::file-selector-button{padding-inline:calc(var(--spacing)*4)}.file\:py-2::file-selector-button{padding-block:calc(var(--spacing)*2)}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-semibold::file-selector-button{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.file\:text-emerald-700::file-selector-button{color:var(--color-emerald-700)}.placeholder\:text-gray-400::placeholder{color:var(--color-gray-400)}.placeholder\:text-white\/50::placeholder{color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.placeholder\:text-white\/50::placeholder{color:color-mix(in oklab,var(--color-white)50%,transparent)}}.backdrop\:bg-gray-950\/95::backdrop{background-color:#030712f2}@supports (color:color-mix(in lab, red, red)){.backdrop\:bg-gray-950\/95::backdrop{background-color:color-mix(in oklab,var(--color-gray-950)95%,transparent)}}.last\:mb-0:last-child{margin-bottom:calc(var(--spacing)*0)}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}.open\:flex:is([open],:popover-open,:open){display:flex}@media (hover:hover){.hover\:-translate-y-0\.5:hover{--tw-translate-y:calc(var(--spacing)*-.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:border-amber-500:hover{border-color:var(--color-amber-500)}.hover\:border-blue-500:hover{border-color:var(--color-blue-500)}.hover\:border-emerald-400:hover{border-color:var(--color-emerald-400)}.hover\:border-primary-500:hover{border-color:var(--color-primary-500)}.hover\:border-teal-200:hover{border-color:var(--color-teal-200)}.hover\:border-white:hover{border-color:var(--color-white)}.hover\:bg-amber-50:hover{background-color:var(--color-amber-50)}.hover\:bg-amber-200:hover{background-color:var(--color-amber-200)}.hover\:bg-amber-500:hover{background-color:var(--color-amber-500)}.hover\:bg-amber-600:hover{background-color:var(--color-amber-600)}.hover\:bg-amber-700:hover{background-color:var(--color-amber-700)}.hover\:bg-black\/65:hover{background-color:#000000a6}@supports (color:color-mix(in lab, red, red)){.hover\:bg-black\/65:hover{background-color:color-mix(in oklab,var(--color-black)65%,transparent)}}.hover\:bg-black\/70:hover{background-color:#000000b3}@supports (color:color-mix(in lab, red, red)){.hover\:bg-black\/70:hover{background-color:color-mix(in oklab,var(--color-black)70%,transparent)}}.hover\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-500:hover{background-color:var(--color-blue-500)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-emerald-50:hover{background-color:var(--color-emerald-50)}.hover\:bg-emerald-100:hover{background-color:var(--color-emerald-100)}.hover\:bg-emerald-200:hover{background-color:var(--color-emerald-200)}.hover\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}.hover\:bg-emerald-600:hover{background-color:var(--color-emerald-600)}.hover\:bg-emerald-700:hover{background-color:var(--color-emerald-700)}.hover\:bg-emerald-900:hover{background-color:var(--color-emerald-900)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-green-500:hover{background-color:var(--color-green-500)}.hover\:bg-indigo-500:hover{background-color:var(--color-indigo-500)}.hover\:bg-indigo-700:hover{background-color:var(--color-indigo-700)}.hover\:bg-primary-100:hover{background-color:var(--color-primary-100)}.hover\:bg-purple-700:hover{background-color:var(--color-purple-700)}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\:bg-red-200:hover{background-color:var(--color-red-200)}.hover\:bg-red-500:hover{background-color:var(--color-red-500)}.hover\:bg-red-500\/20:hover{background-color:#fb2c3633}@supports (color:color-mix(in lab, red, red)){.hover\:bg-red-500\/20:hover{background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)}}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\:bg-slate-500:hover{background-color:var(--color-slate-500)}.hover\:bg-teal-50:hover{background-color:var(--color-teal-50)}.hover\:bg-teal-100:hover{background-color:var(--color-teal-100)}.hover\:bg-teal-600:hover{background-color:var(--color-teal-600)}.hover\:bg-white:hover{background-color:var(--color-white)}.hover\:bg-white\/5:hover{background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/5:hover{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.hover\:bg-white\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/10:hover{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.hover\:bg-white\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\:bg-white\/30:hover{background-color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/30:hover{background-color:color-mix(in oklab,var(--color-white)30%,transparent)}}.hover\:bg-white\/80:hover{background-color:#fffc}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/80:hover{background-color:color-mix(in oklab,var(--color-white)80%,transparent)}}.hover\:bg-yellow-400:hover{background-color:var(--color-yellow-400)}.hover\:from-amber-500:hover{--tw-gradient-from:var(--color-amber-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:from-emerald-500:hover{--tw-gradient-from:var(--color-emerald-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:from-emerald-600:hover{--tw-gradient-from:var(--color-emerald-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-orange-600:hover{--tw-gradient-to:var(--color-orange-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-teal-600:hover{--tw-gradient-to:var(--color-teal-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-teal-700:hover{--tw-gradient-to:var(--color-teal-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:text-amber-400:hover{color:var(--color-amber-400)}.hover\:text-amber-500:hover{color:var(--color-amber-500)}.hover\:text-amber-600:hover{color:var(--color-amber-600)}.hover\:text-amber-700:hover{color:var(--color-amber-700)}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:text-blue-700:hover{color:var(--color-blue-700)}.hover\:text-blue-800:hover{color:var(--color-blue-800)}.hover\:text-emerald-500:hover{color:var(--color-emerald-500)}.hover\:text-emerald-600:hover{color:var(--color-emerald-600)}.hover\:text-emerald-700:hover{color:var(--color-emerald-700)}.hover\:text-emerald-800:hover{color:var(--color-emerald-800)}.hover\:text-emerald-900:hover{color:var(--color-emerald-900)}.hover\:text-gray-600:hover{color:var(--color-gray-600)}.hover\:text-gray-900:hover{color:var(--color-gray-900)}.hover\:text-green-900:hover{color:var(--color-green-900)}.hover\:text-indigo-900:hover{color:var(--color-indigo-900)}.hover\:text-primary-600:hover{color:var(--color-primary-600)}.hover\:text-primary-700:hover{color:var(--color-primary-700)}.hover\:text-purple-700:hover{color:var(--color-purple-700)}.hover\:text-red-500:hover{color:var(--color-red-500)}.hover\:text-red-600:hover{color:var(--color-red-600)}.hover\:text-red-700:hover{color:var(--color-red-700)}.hover\:text-red-900:hover{color:var(--color-red-900)}.hover\:text-white:hover{color:var(--color-white)}.hover\:text-yellow-500:hover{color:var(--color-yellow-500)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:ring-amber-400:hover{--tw-ring-color:var(--color-amber-400)}.hover\:ring-emerald-400:hover{--tw-ring-color:var(--color-emerald-400)}.hover\:ring-gray-300:hover{--tw-ring-color:var(--color-gray-300)}.hover\:ring-purple-400:hover{--tw-ring-color:var(--color-purple-400)}.hover\:file\:bg-emerald-100:hover::file-selector-button{background-color:var(--color-emerald-100)}}.focus\:border-amber-500:focus{border-color:var(--color-amber-500)}.focus\:border-emerald-500:focus{border-color:var(--color-emerald-500)}.focus\:border-indigo-500:focus{border-color:var(--color-indigo-500)}.focus\:border-transparent:focus{border-color:#0000}.focus\:border-white:focus{border-color:var(--color-white)}.focus\:border-yellow-500:focus{border-color:var(--color-yellow-500)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-amber-500:focus{--tw-ring-color:var(--color-amber-500)}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:ring-blue-600:focus{--tw-ring-color:var(--color-blue-600)}.focus\:ring-emerald-500:focus{--tw-ring-color:var(--color-emerald-500)}.focus\:ring-emerald-600:focus{--tw-ring-color:var(--color-emerald-600)}.focus\:ring-gray-500:focus{--tw-ring-color:var(--color-gray-500)}.focus\:ring-green-500:focus{--tw-ring-color:var(--color-green-500)}.focus\:ring-indigo-500:focus{--tw-ring-color:var(--color-indigo-500)}.focus\:ring-primary-500:focus{--tw-ring-color:var(--color-primary-500)}.focus\:ring-purple-500:focus{--tw-ring-color:var(--color-purple-500)}.focus\:ring-red-500:focus{--tw-ring-color:var(--color-red-500)}.focus\:ring-white:focus{--tw-ring-color:var(--color-white)}.focus\:ring-white\/50:focus{--tw-ring-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.focus\:ring-white\/50:focus{--tw-ring-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus\:ring-inset:focus{--tw-ring-inset:inset}.focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-blue-600:focus-visible{outline-color:var(--color-blue-600)}.focus-visible\:outline-white:focus-visible{outline-color:var(--color-white)}.active\:cursor-grabbing:active{cursor:grabbing}.active\:bg-amber-700:active{background-color:var(--color-amber-700)}.active\:bg-gray-200:active{background-color:var(--color-gray-200)}.disabled\:opacity-50:disabled{opacity:.5}@media not all and (min-width:64rem){.max-lg\:row-start-1{grid-row-start:1}.max-lg\:row-start-3{grid-row-start:3}.max-lg\:mx-auto{margin-inline:auto}.max-lg\:max-w-sm{max-width:var(--container-sm)}.max-lg\:max-w-xs{max-width:var(--container-xs)}.max-lg\:justify-center{justify-content:center}.max-lg\:rounded-t-4xl{border-top-left-radius:var(--radius-4xl);border-top-right-radius:var(--radius-4xl)}.max-lg\:rounded-t-\[calc\(2rem\+1px\)\]{border-top-left-radius:calc(2rem + 1px);border-top-right-radius:calc(2rem + 1px)}.max-lg\:rounded-b-4xl{border-bottom-right-radius:var(--radius-4xl);border-bottom-left-radius:var(--radius-4xl)}.max-lg\:rounded-b-\[calc\(2rem\+1px\)\]{border-bottom-right-radius:calc(2rem + 1px);border-bottom-left-radius:calc(2rem + 1px)}.max-lg\:py-6{padding-block:calc(var(--spacing)*6)}.max-lg\:pt-6{padding-top:calc(var(--spacing)*6)}.max-lg\:pb-8{padding-bottom:calc(var(--spacing)*8)}.max-lg\:text-center{text-align:center}}@media not all and (min-width:40rem){.max-sm\:w-40{width:calc(var(--spacing)*40)}.max-sm\:w-120{width:calc(var(--spacing)*120)}}@media (min-width:40rem){.sm\:relative{position:relative}.sm\:inset-y-0{inset-block:calc(var(--spacing)*0)}.sm\:top-auto{top:auto}.sm\:right-0{right:calc(var(--spacing)*0)}.sm\:right-auto{right:auto}.sm\:left-auto{left:auto}.sm\:col-span-2{grid-column:span 2/span 2}.sm\:mt-0{margin-top:calc(var(--spacing)*0)}.sm\:mt-3{margin-top:calc(var(--spacing)*3)}.sm\:mt-4{margin-top:calc(var(--spacing)*4)}.sm\:mt-8{margin-top:calc(var(--spacing)*8)}.sm\:mt-16{margin-top:calc(var(--spacing)*16)}.sm\:mt-20{margin-top:calc(var(--spacing)*20)}.sm\:mr-0{margin-right:calc(var(--spacing)*0)}.sm\:mr-1{margin-right:calc(var(--spacing)*1)}.sm\:mr-2{margin-right:calc(var(--spacing)*2)}.sm\:mb-8{margin-bottom:calc(var(--spacing)*8)}.sm\:ml-0{margin-left:calc(var(--spacing)*0)}.sm\:ml-2{margin-left:calc(var(--spacing)*2)}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:h-3\.5{height:calc(var(--spacing)*3.5)}.sm\:h-5{height:calc(var(--spacing)*5)}.sm\:h-6{height:calc(var(--spacing)*6)}.sm\:h-8{height:calc(var(--spacing)*8)}.sm\:h-10{height:calc(var(--spacing)*10)}.sm\:h-12{height:calc(var(--spacing)*12)}.sm\:h-20{height:calc(var(--spacing)*20)}.sm\:h-40{height:calc(var(--spacing)*40)}.sm\:h-96{height:var(--spacing-96)}.sm\:h-full{height:100%}.sm\:w-0{width:calc(var(--spacing)*0)}.sm\:w-3\.5{width:calc(var(--spacing)*3.5)}.sm\:w-5{width:calc(var(--spacing)*5)}.sm\:w-6{width:calc(var(--spacing)*6)}.sm\:w-8{width:calc(var(--spacing)*8)}.sm\:w-10{width:calc(var(--spacing)*10)}.sm\:w-12{width:calc(var(--spacing)*12)}.sm\:w-20{width:calc(var(--spacing)*20)}.sm\:w-56{width:calc(var(--spacing)*56)}.sm\:w-\[30\%\]{width:30%}.sm\:w-auto{width:auto}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:max-w-none{max-width:none}.sm\:max-w-xs{max-width:var(--container-xs)}.sm\:min-w-80{min-width:calc(var(--spacing)*80)}.sm\:flex-auto{flex:auto}.sm\:shrink{flex-shrink:1}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-center{align-items:center}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:justify-end{justify-content:flex-end}.sm\:justify-start{justify-content:flex-start}.sm\:gap-0{gap:calc(var(--spacing)*0)}.sm\:gap-3{gap:calc(var(--spacing)*3)}.sm\:gap-4{gap:calc(var(--spacing)*4)}.sm\:gap-5{gap:calc(var(--spacing)*5)}.sm\:gap-6{gap:calc(var(--spacing)*6)}.sm\:gap-8{gap:calc(var(--spacing)*8)}:where(.sm\:space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.sm\:space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.sm\:gap-y-6{row-gap:calc(var(--spacing)*6)}.sm\:overflow-visible{overflow:visible}.sm\:rounded-3xl{border-radius:var(--radius-3xl)}.sm\:rounded-lg{border-radius:var(--radius-lg)}.sm\:rounded-xl{border-radius:var(--radius-xl)}.sm\:p-4{padding:calc(var(--spacing)*4)}.sm\:p-5{padding:calc(var(--spacing)*5)}.sm\:p-6{padding:calc(var(--spacing)*6)}.sm\:p-8{padding:calc(var(--spacing)*8)}.sm\:px-4{padding-inline:calc(var(--spacing)*4)}.sm\:px-5{padding-inline:calc(var(--spacing)*5)}.sm\:px-6{padding-inline:calc(var(--spacing)*6)}.sm\:px-10{padding-inline:calc(var(--spacing)*10)}.sm\:px-12{padding-inline:calc(var(--spacing)*12)}.sm\:px-16{padding-inline:calc(var(--spacing)*16)}.sm\:py-3{padding-block:calc(var(--spacing)*3)}.sm\:py-5{padding-block:calc(var(--spacing)*5)}.sm\:py-14{padding-block:calc(var(--spacing)*14)}.sm\:py-24{padding-block:calc(var(--spacing)*24)}.sm\:py-32{padding-block:calc(var(--spacing)*32)}.sm\:pt-0{padding-top:calc(var(--spacing)*0)}.sm\:pt-3{padding-top:calc(var(--spacing)*3)}.sm\:pt-6{padding-top:calc(var(--spacing)*6)}.sm\:pt-10{padding-top:calc(var(--spacing)*10)}.sm\:pt-32{padding-top:calc(var(--spacing)*32)}.sm\:pt-40{padding-top:calc(var(--spacing)*40)}.sm\:pt-52{padding-top:calc(var(--spacing)*52)}.sm\:pt-60{padding-top:calc(var(--spacing)*60)}.sm\:pt-80{padding-top:calc(var(--spacing)*80)}.sm\:pr-20{padding-right:calc(var(--spacing)*20)}.sm\:pb-0{padding-bottom:calc(var(--spacing)*0)}.sm\:pb-6{padding-bottom:calc(var(--spacing)*6)}.sm\:pl-20{padding-left:calc(var(--spacing)*20)}.sm\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.sm\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.sm\:text-7xl{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.sm\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\:text-sm\/6{font-size:var(--text-sm);line-height:calc(var(--spacing)*6)}.sm\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.sm\:text-xl\/8{font-size:var(--text-xl);line-height:calc(var(--spacing)*8)}}@media (min-width:48rem){.md\:mt-0{margin-top:calc(var(--spacing)*0)}.md\:ml-10{margin-left:calc(var(--spacing)*10)}.md\:\!hidden{display:none!important}.md\:flex{display:flex}.md\:grid{display:grid}.md\:hidden{display:none}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-baseline{align-items:baseline}.md\:items-center{align-items:center}.md\:items-start{align-items:flex-start}.md\:justify-between{justify-content:space-between}.md\:gap-8{gap:calc(var(--spacing)*8)}:where(.md\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.md\:space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.md\:overflow-auto{overflow:auto}.md\:p-12{padding:calc(var(--spacing)*12)}.md\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media (min-width:64rem){.lg\:order-last{order:9999}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-start-2{grid-column-start:2}.lg\:col-end-1{grid-column-end:1}.lg\:col-end-2{grid-column-end:2}.lg\:row-span-2{grid-row:span 2/span 2}.lg\:row-start-2{grid-row-start:2}.lg\:mx-0{margin-inline:calc(var(--spacing)*0)}.lg\:prose-xl{font-size:1.25rem;line-height:1.8}.lg\:prose-xl :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em}.lg\:prose-xl :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1em;margin-bottom:1em;font-size:1.2em;line-height:1.5}.lg\:prose-xl :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1.06667em}.lg\:prose-xl :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.857143em;font-size:2.8em;line-height:1}.lg\:prose-xl :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.888889em;font-size:1.8em;line-height:1.11111}.lg\:prose-xl :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.666667em;font-size:1.5em;line-height:1.33333}.lg\:prose-xl :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.8em;margin-bottom:.6em;line-height:1.6}.lg\:prose-xl :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.lg\:prose-xl :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.lg\:prose-xl :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.lg\:prose-xl :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.lg\:prose-xl :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.25em;padding-inline-end:.4em;padding-bottom:.25em;border-radius:.3125rem;padding-inline-start:.4em;font-size:.9em}.lg\:prose-xl :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.lg\:prose-xl :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.861111em}.lg\:prose-xl :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.lg\:prose-xl :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:1.11111em;padding-inline-end:1.33333em;padding-bottom:1.11111em;border-radius:.5rem;margin-top:2em;margin-bottom:2em;padding-inline-start:1.33333em;font-size:.9em;line-height:1.77778}.lg\:prose-xl :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.lg\:prose-xl :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em;padding-inline-start:1.6em}.lg\:prose-xl :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.6em;margin-bottom:.6em}.lg\:prose-xl :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.lg\:prose-xl :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4em}.lg\:prose-xl :where(.lg\:prose-xl>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.8em;margin-bottom:.8em}.lg\:prose-xl :where(.lg\:prose-xl>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em}.lg\:prose-xl :where(.lg\:prose-xl>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.2em}.lg\:prose-xl :where(.lg\:prose-xl>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em}.lg\:prose-xl :where(.lg\:prose-xl>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.2em}.lg\:prose-xl :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.8em;margin-bottom:.8em}.lg\:prose-xl :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em}.lg\:prose-xl :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em}.lg\:prose-xl :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.6em;padding-inline-start:1.6em}.lg\:prose-xl :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8em;margin-bottom:2.8em}.lg\:prose-xl :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.lg\:prose-xl :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.lg\:prose-xl :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.lg\:prose-xl :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\:prose-xl :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em;line-height:1.55556}.lg\:prose-xl :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.666667em;padding-bottom:.888889em;padding-inline-start:.666667em}.lg\:prose-xl :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.lg\:prose-xl :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.lg\:prose-xl :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.888889em;padding-inline-end:.666667em;padding-bottom:.888889em;padding-inline-start:.666667em}.lg\:prose-xl :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.lg\:prose-xl :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.lg\:prose-xl :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.lg\:prose-xl :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.lg\:prose-xl :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1em;font-size:.9em;line-height:1.55556}.lg\:prose-xl :where(.lg\:prose-xl>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\:prose-xl :where(.lg\:prose-xl>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.lg\:mt-0{margin-top:calc(var(--spacing)*0)}.lg\:ml-24{margin-left:calc(var(--spacing)*24)}.lg\:ml-auto{margin-left:auto}.lg\:block{display:block}.lg\:contents{display:contents}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:w-148{width:calc(var(--spacing)*148)}.lg\:w-auto{width:auto}.lg\:w-full{width:100%}.lg\:max-w-7xl{max-width:var(--container-7xl)}.lg\:max-w-lg{max-width:var(--container-lg)}.lg\:max-w-none{max-width:none}.lg\:max-w-xl{max-width:var(--container-xl)}.lg\:min-w-full{min-width:100%}.lg\:flex-1{flex:1}.lg\:flex-none{flex:none}.lg\:shrink-0{flex-shrink:0}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.lg\:flex-col{flex-direction:column}.lg\:flex-row{flex-direction:row}.lg\:items-center{align-items:center}.lg\:items-start{align-items:flex-start}.lg\:justify-between{justify-content:space-between}.lg\:justify-end{justify-content:flex-end}.lg\:gap-10{gap:calc(var(--spacing)*10)}.lg\:gap-x-8{column-gap:calc(var(--spacing)*8)}.lg\:gap-y-8{row-gap:calc(var(--spacing)*8)}.lg\:self-end{align-self:flex-end}.lg\:rounded-l-4xl{border-top-left-radius:var(--radius-4xl);border-bottom-left-radius:var(--radius-4xl)}.lg\:rounded-l-\[calc\(2rem\+1px\)\]{border-top-left-radius:calc(2rem + 1px);border-bottom-left-radius:calc(2rem + 1px)}.lg\:rounded-tl-4xl{border-top-left-radius:var(--radius-4xl)}.lg\:rounded-tl-\[calc\(2rem\+1px\)\]{border-top-left-radius:calc(2rem + 1px)}.lg\:rounded-r-4xl{border-top-right-radius:var(--radius-4xl);border-bottom-right-radius:var(--radius-4xl)}.lg\:rounded-r-\[calc\(2rem\+1px\)\]{border-top-right-radius:calc(2rem + 1px);border-bottom-right-radius:calc(2rem + 1px)}.lg\:rounded-tr-4xl{border-top-right-radius:var(--radius-4xl)}.lg\:rounded-tr-\[calc\(2rem\+1px\)\]{border-top-right-radius:calc(2rem + 1px)}.lg\:rounded-br-4xl{border-bottom-right-radius:var(--radius-4xl)}.lg\:rounded-br-\[calc\(2rem\+1px\)\]{border-bottom-right-radius:calc(2rem + 1px)}.lg\:rounded-bl-4xl{border-bottom-left-radius:var(--radius-4xl)}.lg\:rounded-bl-\[calc\(2rem\+1px\)\]{border-bottom-left-radius:calc(2rem + 1px)}.lg\:object-right{object-position:right}.lg\:px-8{padding-inline:calc(var(--spacing)*8)}.lg\:py-4{padding-block:calc(var(--spacing)*4)}.lg\:py-32{padding-block:calc(var(--spacing)*32)}.lg\:pt-32{padding-top:calc(var(--spacing)*32)}.lg\:pt-36{padding-top:calc(var(--spacing)*36)}.lg\:pb-4{padding-bottom:calc(var(--spacing)*4)}.lg\:pb-8{padding-bottom:calc(var(--spacing)*8)}.lg\:pl-0{padding-left:calc(var(--spacing)*0)}.lg\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}@media (min-width:80rem){.xl\:order-0{order:0}.xl\:col-span-2{grid-column:span 2/span 2}.xl\:mt-0{margin-top:calc(var(--spacing)*0)}.xl\:mr-\[calc\(50\%-12rem\)\]{margin-right:calc(50% - 12rem)}.xl\:ml-0{margin-left:calc(var(--spacing)*0)}.xl\:ml-48{margin-left:calc(var(--spacing)*48)}.xl\:grid{display:grid}.xl\:max-w-2xl{max-width:var(--container-2xl)}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:justify-end{justify-content:flex-end}.xl\:gap-8{gap:calc(var(--spacing)*8)}.xl\:pt-80{padding-top:calc(var(--spacing)*80)}.xl\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}:where(.dark\:divide-gray-600:where(.dark,.dark *)>:not(:last-child)){border-color:var(--color-gray-600)}:where(.dark\:divide-gray-700:where(.dark,.dark *)>:not(:last-child)){border-color:var(--color-gray-700)}.dark\:border-b:where(.dark,.dark *){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.dark\:border-amber-500:where(.dark,.dark *){border-color:var(--color-amber-500)}.dark\:border-amber-800:where(.dark,.dark *){border-color:var(--color-amber-800)}.dark\:border-amber-900\/50:where(.dark,.dark *){border-color:#7b330680}@supports (color:color-mix(in lab, red, red)){.dark\:border-amber-900\/50:where(.dark,.dark *){border-color:color-mix(in oklab,var(--color-amber-900)50%,transparent)}}.dark\:border-blue-800:where(.dark,.dark *){border-color:var(--color-blue-800)}.dark\:border-emerald-700:where(.dark,.dark *){border-color:var(--color-emerald-700)}.dark\:border-emerald-800:where(.dark,.dark *){border-color:var(--color-emerald-800)}.dark\:border-gray-600:where(.dark,.dark *){border-color:var(--color-gray-600)}.dark\:border-gray-700:where(.dark,.dark *){border-color:var(--color-gray-700)}.dark\:border-gray-800:where(.dark,.dark *){border-color:var(--color-gray-800)}.dark\:border-green-800:where(.dark,.dark *){border-color:var(--color-green-800)}.dark\:border-indigo-500:where(.dark,.dark *){border-color:var(--color-indigo-500)}.dark\:border-purple-700:where(.dark,.dark *){border-color:var(--color-purple-700)}.dark\:border-red-800:where(.dark,.dark *){border-color:var(--color-red-800)}.dark\:bg-amber-800:where(.dark,.dark *){background-color:var(--color-amber-800)}.dark\:bg-amber-900\/20:where(.dark,.dark *){background-color:#7b330633}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-amber-900)20%,transparent)}}.dark\:bg-amber-900\/30:where(.dark,.dark *){background-color:#7b33064d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-amber-900)30%,transparent)}}.dark\:bg-amber-900\/40:where(.dark,.dark *){background-color:#7b330666}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-amber-900)40%,transparent)}}.dark\:bg-amber-900\/50:where(.dark,.dark *){background-color:#7b330680}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-900\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-amber-900)50%,transparent)}}.dark\:bg-black:where(.dark,.dark *){background-color:var(--color-black)}.dark\:bg-blue-900:where(.dark,.dark *){background-color:var(--color-blue-900)}.dark\:bg-blue-900\/20:where(.dark,.dark *){background-color:#1c398e33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-900)20%,transparent)}}.dark\:bg-blue-900\/30:where(.dark,.dark *){background-color:#1c398e4d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\:bg-blue-900\/40:where(.dark,.dark *){background-color:#1c398e66}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-900)40%,transparent)}}.dark\:bg-emerald-900\/20:where(.dark,.dark *){background-color:#004e3b33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-emerald-900)20%,transparent)}}.dark\:bg-emerald-900\/30:where(.dark,.dark *){background-color:#004e3b4d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-emerald-900)30%,transparent)}}.dark\:bg-emerald-900\/40:where(.dark,.dark *){background-color:#004e3b66}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-emerald-900)40%,transparent)}}.dark\:bg-emerald-900\/80:where(.dark,.dark *){background-color:#004e3bcc}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/80:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-emerald-900)80%,transparent)}}.dark\:bg-gray-600:where(.dark,.dark *){background-color:var(--color-gray-600)}.dark\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\:bg-gray-700\/5:where(.dark,.dark *){background-color:#3641530d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-gray-700\/5:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-700)5%,transparent)}}.dark\:bg-gray-700\/50:where(.dark,.dark *){background-color:#36415380}@supports (color:color-mix(in lab, red, red)){.dark\:bg-gray-700\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-700)50%,transparent)}}.dark\:bg-gray-800:where(.dark,.dark *){background-color:var(--color-gray-800)}.dark\:bg-gray-800\/50:where(.dark,.dark *){background-color:#1e293980}@supports (color:color-mix(in lab, red, red)){.dark\:bg-gray-800\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-800)50%,transparent)}}.dark\:bg-gray-800\/90:where(.dark,.dark *){background-color:#1e2939e6}@supports (color:color-mix(in lab, red, red)){.dark\:bg-gray-800\/90:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-800)90%,transparent)}}.dark\:bg-gray-900:where(.dark,.dark *){background-color:var(--color-gray-900)}.dark\:bg-gray-900\/80:where(.dark,.dark *){background-color:#101828cc}@supports (color:color-mix(in lab, red, red)){.dark\:bg-gray-900\/80:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-900)80%,transparent)}}.dark\:bg-gray-900\/90:where(.dark,.dark *){background-color:#101828e6}@supports (color:color-mix(in lab, red, red)){.dark\:bg-gray-900\/90:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-900)90%,transparent)}}.dark\:bg-green-400:where(.dark,.dark *){background-color:var(--color-green-400)}.dark\:bg-green-600:where(.dark,.dark *){background-color:var(--color-green-600)}.dark\:bg-green-900\/20:where(.dark,.dark *){background-color:#0d542b33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-green-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-green-900)20%,transparent)}}.dark\:bg-green-900\/30:where(.dark,.dark *){background-color:#0d542b4d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-green-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-green-900)30%,transparent)}}.dark\:bg-green-900\/40:where(.dark,.dark *){background-color:#0d542b66}@supports (color:color-mix(in lab, red, red)){.dark\:bg-green-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-green-900)40%,transparent)}}.dark\:bg-green-900\/50:where(.dark,.dark *){background-color:#0d542b80}@supports (color:color-mix(in lab, red, red)){.dark\:bg-green-900\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-green-900)50%,transparent)}}.dark\:bg-indigo-900\/20:where(.dark,.dark *){background-color:#312c8533}@supports (color:color-mix(in lab, red, red)){.dark\:bg-indigo-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-indigo-900)20%,transparent)}}.dark\:bg-indigo-900\/30:where(.dark,.dark *){background-color:#312c854d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-indigo-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-indigo-900)30%,transparent)}}.dark\:bg-indigo-900\/40:where(.dark,.dark *){background-color:#312c8566}@supports (color:color-mix(in lab, red, red)){.dark\:bg-indigo-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-indigo-900)40%,transparent)}}.dark\:bg-indigo-900\/80:where(.dark,.dark *){background-color:#312c85cc}@supports (color:color-mix(in lab, red, red)){.dark\:bg-indigo-900\/80:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-indigo-900)80%,transparent)}}.dark\:bg-primary-500:where(.dark,.dark *){background-color:var(--color-primary-500)}.dark\:bg-primary-900\/30:where(.dark,.dark *){background-color:#0014334d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-primary-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-primary-900)30%,transparent)}}.dark\:bg-purple-600:where(.dark,.dark *){background-color:var(--color-purple-600)}.dark\:bg-purple-800:where(.dark,.dark *){background-color:var(--color-purple-800)}.dark\:bg-purple-900\/30:where(.dark,.dark *){background-color:#59168b4d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-purple-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-purple-900)30%,transparent)}}.dark\:bg-red-900:where(.dark,.dark *){background-color:var(--color-red-900)}.dark\:bg-red-900\/20:where(.dark,.dark *){background-color:#82181a33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900)20%,transparent)}}.dark\:bg-red-900\/30:where(.dark,.dark *){background-color:#82181a4d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900)30%,transparent)}}.dark\:bg-red-900\/40:where(.dark,.dark *){background-color:#82181a66}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900)40%,transparent)}}.dark\:bg-red-900\/50:where(.dark,.dark *){background-color:#82181a80}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-900\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900)50%,transparent)}}.dark\:bg-teal-900\/30:where(.dark,.dark *){background-color:#0b4f4a4d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-teal-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-teal-900)30%,transparent)}}.dark\:bg-white:where(.dark,.dark *){background-color:var(--color-white)}.dark\:bg-white\/5:where(.dark,.dark *){background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/5:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.dark\:bg-white\/10:where(.dark,.dark *){background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\:bg-white\/90:where(.dark,.dark *){background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/90:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.dark\:bg-yellow-500:where(.dark,.dark *){background-color:var(--color-yellow-500)}.dark\:bg-yellow-900\/30:where(.dark,.dark *){background-color:#733e0a4d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-yellow-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-yellow-900)30%,transparent)}}.dark\:bg-yellow-900\/40:where(.dark,.dark *){background-color:#733e0a66}@supports (color:color-mix(in lab, red, red)){.dark\:bg-yellow-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-yellow-900)40%,transparent)}}.dark\:from-amber-600:where(.dark,.dark *){--tw-gradient-from:var(--color-amber-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-amber-600\/20:where(.dark,.dark *){--tw-gradient-from:#dd740033}@supports (color:color-mix(in lab, red, red)){.dark\:from-amber-600\/20:where(.dark,.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-amber-600)20%,transparent)}}.dark\:from-amber-600\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-amber-700:where(.dark,.dark *){--tw-gradient-from:var(--color-amber-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-blue-600:where(.dark,.dark *){--tw-gradient-from:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-blue-600\/20:where(.dark,.dark *){--tw-gradient-from:#155dfc33}@supports (color:color-mix(in lab, red, red)){.dark\:from-blue-600\/20:where(.dark,.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-blue-600)20%,transparent)}}.dark\:from-blue-600\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-blue-700:where(.dark,.dark *){--tw-gradient-from:var(--color-blue-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-blue-900\/30:where(.dark,.dark *){--tw-gradient-from:#1c398e4d}@supports (color:color-mix(in lab, red, red)){.dark\:from-blue-900\/30:where(.dark,.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\:from-blue-900\/30:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-emerald-600\/20:where(.dark,.dark *){--tw-gradient-from:#00976733}@supports (color:color-mix(in lab, red, red)){.dark\:from-emerald-600\/20:where(.dark,.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-emerald-600)20%,transparent)}}.dark\:from-emerald-600\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-emerald-700:where(.dark,.dark *){--tw-gradient-from:var(--color-emerald-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-emerald-900\/30:where(.dark,.dark *){--tw-gradient-from:#004e3b4d}@supports (color:color-mix(in lab, red, red)){.dark\:from-emerald-900\/30:where(.dark,.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-emerald-900)30%,transparent)}}.dark\:from-emerald-900\/30:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-gray-700:where(.dark,.dark *){--tw-gradient-from:var(--color-gray-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-purple-600\/20:where(.dark,.dark *){--tw-gradient-from:#9810fa33}@supports (color:color-mix(in lab, red, red)){.dark\:from-purple-600\/20:where(.dark,.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-purple-600)20%,transparent)}}.dark\:from-purple-600\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-purple-900\/30:where(.dark,.dark *){--tw-gradient-from:#59168b4d}@supports (color:color-mix(in lab, red, red)){.dark\:from-purple-900\/30:where(.dark,.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-purple-900)30%,transparent)}}.dark\:from-purple-900\/30:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-yellow-400:where(.dark,.dark *){--tw-gradient-from:var(--color-yellow-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-yellow-500:where(.dark,.dark *){--tw-gradient-from:var(--color-yellow-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-blue-500\/20:where(.dark,.dark *){--tw-gradient-to:#3080ff33}@supports (color:color-mix(in lab, red, red)){.dark\:to-blue-500\/20:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.dark\:to-blue-500\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-blue-800:where(.dark,.dark *){--tw-gradient-to:var(--color-blue-800);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-blue-800\/30:where(.dark,.dark *){--tw-gradient-to:#193cb84d}@supports (color:color-mix(in lab, red, red)){.dark\:to-blue-800\/30:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-blue-800)30%,transparent)}}.dark\:to-blue-800\/30:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-emerald-800\/30:where(.dark,.dark *){--tw-gradient-to:#005f464d}@supports (color:color-mix(in lab, red, red)){.dark\:to-emerald-800\/30:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-emerald-800)30%,transparent)}}.dark\:to-emerald-800\/30:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-emerald-900:where(.dark,.dark *){--tw-gradient-to:var(--color-emerald-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-gray-600:where(.dark,.dark *){--tw-gradient-to:var(--color-gray-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-indigo-500\/20:where(.dark,.dark *){--tw-gradient-to:#625fff33}@supports (color:color-mix(in lab, red, red)){.dark\:to-indigo-500\/20:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-indigo-500)20%,transparent)}}.dark\:to-indigo-500\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-indigo-900\/30:where(.dark,.dark *){--tw-gradient-to:#312c854d}@supports (color:color-mix(in lab, red, red)){.dark\:to-indigo-900\/30:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-indigo-900)30%,transparent)}}.dark\:to-indigo-900\/30:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-orange-500\/20:where(.dark,.dark *){--tw-gradient-to:#fe6e0033}@supports (color:color-mix(in lab, red, red)){.dark\:to-orange-500\/20:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-orange-500)20%,transparent)}}.dark\:to-orange-500\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-orange-600:where(.dark,.dark *){--tw-gradient-to:var(--color-orange-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-orange-800:where(.dark,.dark *){--tw-gradient-to:var(--color-orange-800);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-purple-800\/30:where(.dark,.dark *){--tw-gradient-to:#6e11b04d}@supports (color:color-mix(in lab, red, red)){.dark\:to-purple-800\/30:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-purple-800)30%,transparent)}}.dark\:to-purple-800\/30:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-yellow-500:where(.dark,.dark *){--tw-gradient-to:var(--color-yellow-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-yellow-500\/20:where(.dark,.dark *){--tw-gradient-to:#edb20033}@supports (color:color-mix(in lab, red, red)){.dark\:to-yellow-500\/20:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-yellow-500)20%,transparent)}}.dark\:to-yellow-500\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-yellow-600:where(.dark,.dark *){--tw-gradient-to:var(--color-yellow-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:fill-gray-800:where(.dark,.dark *){fill:var(--color-gray-800)}.dark\:stroke-white\/10:where(.dark,.dark *){stroke:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:stroke-white\/10:where(.dark,.dark *){stroke:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\:text-amber-100:where(.dark,.dark *){color:var(--color-amber-100)}.dark\:text-amber-200:where(.dark,.dark *){color:var(--color-amber-200)}.dark\:text-amber-300:where(.dark,.dark *){color:var(--color-amber-300)}.dark\:text-amber-400:where(.dark,.dark *){color:var(--color-amber-400)}.dark\:text-blue-300:where(.dark,.dark *){color:var(--color-blue-300)}.dark\:text-blue-400:where(.dark,.dark *){color:var(--color-blue-400)}.dark\:text-blue-500:where(.dark,.dark *){color:var(--color-blue-500)}.dark\:text-emerald-100:where(.dark,.dark *){color:var(--color-emerald-100)}.dark\:text-emerald-200:where(.dark,.dark *){color:var(--color-emerald-200)}.dark\:text-emerald-300:where(.dark,.dark *){color:var(--color-emerald-300)}.dark\:text-emerald-400:where(.dark,.dark *){color:var(--color-emerald-400)}.dark\:text-gray-100:where(.dark,.dark *){color:var(--color-gray-100)}.dark\:text-gray-200:where(.dark,.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:where(.dark,.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\:text-gray-500:where(.dark,.dark *){color:var(--color-gray-500)}.dark\:text-gray-600:where(.dark,.dark *){color:var(--color-gray-600)}.dark\:text-gray-900:where(.dark,.dark *){color:var(--color-gray-900)}.dark\:text-green-100:where(.dark,.dark *){color:var(--color-green-100)}.dark\:text-green-200:where(.dark,.dark *){color:var(--color-green-200)}.dark\:text-green-300:where(.dark,.dark *){color:var(--color-green-300)}.dark\:text-green-400:where(.dark,.dark *){color:var(--color-green-400)}.dark\:text-indigo-100:where(.dark,.dark *){color:var(--color-indigo-100)}.dark\:text-indigo-200:where(.dark,.dark *){color:var(--color-indigo-200)}.dark\:text-indigo-300:where(.dark,.dark *){color:var(--color-indigo-300)}.dark\:text-indigo-400:where(.dark,.dark *){color:var(--color-indigo-400)}.dark\:text-primary-400:where(.dark,.dark *){color:var(--color-primary-400)}.dark\:text-purple-100:where(.dark,.dark *){color:var(--color-purple-100)}.dark\:text-purple-300:where(.dark,.dark *){color:var(--color-purple-300)}.dark\:text-purple-400:where(.dark,.dark *){color:var(--color-purple-400)}.dark\:text-purple-500:where(.dark,.dark *){color:var(--color-purple-500)}.dark\:text-red-100:where(.dark,.dark *){color:var(--color-red-100)}.dark\:text-red-200:where(.dark,.dark *){color:var(--color-red-200)}.dark\:text-red-300:where(.dark,.dark *){color:var(--color-red-300)}.dark\:text-red-400:where(.dark,.dark *){color:var(--color-red-400)}.dark\:text-teal-300:where(.dark,.dark *){color:var(--color-teal-300)}.dark\:text-teal-400:where(.dark,.dark *){color:var(--color-teal-400)}.dark\:text-white:where(.dark,.dark *){color:var(--color-white)}.dark\:text-yellow-100:where(.dark,.dark *){color:var(--color-yellow-100)}.dark\:text-yellow-300:where(.dark,.dark *){color:var(--color-yellow-300)}.dark\:text-yellow-400:where(.dark,.dark *){color:var(--color-yellow-400)}.dark\:text-yellow-500:where(.dark,.dark *){color:var(--color-yellow-500)}.dark\:shadow-none:where(.dark,.dark *){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.dark\:ring-gray-600:where(.dark,.dark *){--tw-ring-color:var(--color-gray-600)}.dark\:ring-gray-700:where(.dark,.dark *){--tw-ring-color:var(--color-gray-700)}.dark\:ring-gray-800:where(.dark,.dark *){--tw-ring-color:var(--color-gray-800)}.dark\:ring-white\/10:where(.dark,.dark *){--tw-ring-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:ring-white\/10:where(.dark,.dark *){--tw-ring-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\:outline:where(.dark,.dark *){outline-style:var(--tw-outline-style);outline-width:1px}.dark\:outline-white\/10:where(.dark,.dark *){outline-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:outline-white\/10:where(.dark,.dark *){outline-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\:outline-white\/15:where(.dark,.dark *){outline-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.dark\:outline-white\/15:where(.dark,.dark *){outline-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.dark\:outline-white\/20:where(.dark,.dark *){outline-color:#fff3}@supports (color:color-mix(in lab, red, red)){.dark\:outline-white\/20:where(.dark,.dark *){outline-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.dark\:prose-invert:where(.dark,.dark *){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}@media (hover:hover){.dark\:group-hover\:bg-gray-700:where(.dark,.dark *):is(:where(.group):hover *){background-color:var(--color-gray-700)}.dark\:group-hover\:text-amber-400:where(.dark,.dark *):is(:where(.group):hover *){color:var(--color-amber-400)}.dark\:group-hover\:text-emerald-400:where(.dark,.dark *):is(:where(.group):hover *){color:var(--color-emerald-400)}.dark\:group-hover\:text-purple-400:where(.dark,.dark *):is(:where(.group):hover *){color:var(--color-purple-400)}.dark\:group-hover\:text-teal-400:where(.dark,.dark *):is(:where(.group):hover *){color:var(--color-teal-400)}.dark\:group-hover\:text-yellow-400:where(.dark,.dark *):is(:where(.group):hover *){color:var(--color-yellow-400)}}.peer-checked\:dark\:bg-blue-500:is(:where(.peer):checked~*):where(.dark,.dark *){background-color:var(--color-blue-500)}.peer-checked\:dark\:bg-purple-500:is(:where(.peer):checked~*):where(.dark,.dark *){background-color:var(--color-purple-500)}.peer-checked\:dark\:bg-yellow-500:is(:where(.peer):checked~*):where(.dark,.dark *){background-color:var(--color-yellow-500)}.peer-checked\:dark\:text-gray-900:is(:where(.peer):checked~*):where(.dark,.dark *){color:var(--color-gray-900)}.dark\:placeholder\:text-gray-500:where(.dark,.dark *)::placeholder{color:var(--color-gray-500)}@media (hover:hover){.dark\:hover\:border-amber-400:where(.dark,.dark *):hover{border-color:var(--color-amber-400)}.dark\:hover\:border-teal-800:where(.dark,.dark *):hover{border-color:var(--color-teal-800)}.dark\:hover\:bg-amber-900\/20:where(.dark,.dark *):hover{background-color:#7b330633}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-amber-900\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-amber-900)20%,transparent)}}.dark\:hover\:bg-amber-900\/50:where(.dark,.dark *):hover{background-color:#7b330680}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-amber-900\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-amber-900)50%,transparent)}}.dark\:hover\:bg-blue-900\/20:where(.dark,.dark *):hover{background-color:#1c398e33}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-blue-900\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-blue-900)20%,transparent)}}.dark\:hover\:bg-emerald-900\/20:where(.dark,.dark *):hover{background-color:#004e3b33}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-emerald-900\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-emerald-900)20%,transparent)}}.dark\:hover\:bg-emerald-900\/30:where(.dark,.dark *):hover{background-color:#004e3b4d}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-emerald-900\/30:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-emerald-900)30%,transparent)}}.dark\:hover\:bg-emerald-900\/50:where(.dark,.dark *):hover{background-color:#004e3b80}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-emerald-900\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-emerald-900)50%,transparent)}}.dark\:hover\:bg-gray-600:where(.dark,.dark *):hover{background-color:var(--color-gray-600)}.dark\:hover\:bg-gray-700:where(.dark,.dark *):hover{background-color:var(--color-gray-700)}.dark\:hover\:bg-gray-700\/40:where(.dark,.dark *):hover{background-color:#36415366}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-gray-700\/40:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-gray-700)40%,transparent)}}.dark\:hover\:bg-gray-800:where(.dark,.dark *):hover{background-color:var(--color-gray-800)}.dark\:hover\:bg-gray-900:where(.dark,.dark *):hover{background-color:var(--color-gray-900)}.dark\:hover\:bg-primary-900\/30:where(.dark,.dark *):hover{background-color:#0014334d}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-primary-900\/30:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-primary-900)30%,transparent)}}.dark\:hover\:bg-red-800:where(.dark,.dark *):hover{background-color:var(--color-red-800)}.dark\:hover\:bg-red-900\/20:where(.dark,.dark *):hover{background-color:#82181a33}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-red-900\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-red-900)20%,transparent)}}.dark\:hover\:bg-red-900\/30:where(.dark,.dark *):hover{background-color:#82181a4d}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-red-900\/30:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-red-900)30%,transparent)}}.dark\:hover\:bg-red-900\/50:where(.dark,.dark *):hover{background-color:#82181a80}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-red-900\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-red-900)50%,transparent)}}.dark\:hover\:bg-teal-900\/20:where(.dark,.dark *):hover{background-color:#0b4f4a33}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-teal-900\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-teal-900)20%,transparent)}}.dark\:hover\:bg-teal-900\/50:where(.dark,.dark *):hover{background-color:#0b4f4a80}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-teal-900\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-teal-900)50%,transparent)}}.dark\:hover\:bg-white\/5:where(.dark,.dark *):hover{background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-white\/5:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.dark\:hover\:bg-yellow-400:where(.dark,.dark *):hover{background-color:var(--color-yellow-400)}.dark\:hover\:bg-yellow-500\/20:where(.dark,.dark *):hover{background-color:#edb20033}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-yellow-500\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-yellow-500)20%,transparent)}}.dark\:hover\:bg-yellow-600:where(.dark,.dark *):hover{background-color:var(--color-yellow-600)}.dark\:hover\:text-amber-300:where(.dark,.dark *):hover{color:var(--color-amber-300)}.dark\:hover\:text-amber-400:where(.dark,.dark *):hover{color:var(--color-amber-400)}.dark\:hover\:text-blue-300:where(.dark,.dark *):hover{color:var(--color-blue-300)}.dark\:hover\:text-emerald-300:where(.dark,.dark *):hover{color:var(--color-emerald-300)}.dark\:hover\:text-emerald-400:where(.dark,.dark *):hover{color:var(--color-emerald-400)}.dark\:hover\:text-emerald-700:where(.dark,.dark *):hover{color:var(--color-emerald-700)}.dark\:hover\:text-gray-200:where(.dark,.dark *):hover{color:var(--color-gray-200)}.dark\:hover\:text-gray-300:where(.dark,.dark *):hover{color:var(--color-gray-300)}.dark\:hover\:text-green-300:where(.dark,.dark *):hover{color:var(--color-green-300)}.dark\:hover\:text-indigo-300:where(.dark,.dark *):hover{color:var(--color-indigo-300)}.dark\:hover\:text-primary-300:where(.dark,.dark *):hover{color:var(--color-primary-300)}.dark\:hover\:text-primary-400:where(.dark,.dark *):hover{color:var(--color-primary-400)}.dark\:hover\:text-purple-300:where(.dark,.dark *):hover{color:var(--color-purple-300)}.dark\:hover\:text-red-300:where(.dark,.dark *):hover{color:var(--color-red-300)}.dark\:hover\:text-red-400:where(.dark,.dark *):hover{color:var(--color-red-400)}.dark\:hover\:text-white:where(.dark,.dark *):hover{color:var(--color-white)}.dark\:hover\:text-yellow-400:where(.dark,.dark *):hover{color:var(--color-yellow-400)}.dark\:hover\:text-yellow-500:where(.dark,.dark *):hover{color:var(--color-yellow-500)}.dark\:hover\:ring-gray-600:where(.dark,.dark *):hover{--tw-ring-color:var(--color-gray-600)}}.dark\:focus\:ring-yellow-500:where(.dark,.dark *):focus{--tw-ring-color:var(--color-yellow-500)}.dark\:focus-visible\:outline-yellow-500:where(.dark,.dark *):focus-visible{outline-color:var(--color-yellow-500)}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.text-balance{text-wrap:balance}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.scrollbar-hide::-webkit-scrollbar{display:none}.glass{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background-color:#ffffff1a;border:1px solid #fff3}.glass-dark{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background-color:#0000001a;border:1px solid #0003}.dark .glass-dark{background-color:#ffffff0d;border-color:#ffffff1a}.border-gradient{border-image:linear-gradient(to right,var(--color-primary-700),var(--color-gold))1}.text-shadow{text-shadow:2px 2px 4px #0000001a}.text-shadow-lg{text-shadow:4px 4px 8px #0003}.dark .text-shadow-dark{filter:drop-shadow(0 2px 4px #ffffff1a)}.animate-gradient{background-size:200% 200%;animation:3s infinite gradient}@keyframes gradient{0%,to{background-position:0%}50%{background-position:100%}}.animate-fade-in{animation:.2s ease-out forwards fadeIn}.theme-transition{transition:color .3s,background-color .3s}.drop-indicator{border-top:2px solid var(--color-amber-500);margin-top:-2px}}.story-open [data-pwa-install-target]{display:none!important}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-text-shadow-color{syntax:"*";inherits:false}@property --tw-text-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideIn{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes wiggle{0%,to{transform:rotate(-3deg)}50%{transform:rotate(3deg)}} \ No newline at end of file +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-pan-x:initial;--tw-pan-y:initial;--tw-pinch-zoom:initial;--tw-scroll-snap-strictness:proximity;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-text-shadow-color:initial;--tw-text-shadow-alpha:100%;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-800:oklch(47% .157 37.304);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-teal-50:oklch(98.4% .014 180.72);--color-teal-100:oklch(95.3% .051 180.801);--color-teal-200:oklch(91% .096 180.426);--color-teal-300:oklch(85.5% .138 181.071);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-teal-600:oklch(60% .118 184.704);--color-teal-700:oklch(51.1% .096 186.391);--color-teal-800:oklch(43.7% .078 188.216);--color-teal-900:oklch(38.6% .063 188.416);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-800:oklch(39.8% .195 277.366);--color-indigo-900:oklch(35.9% .144 278.697);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-4xl:56rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25/1.875);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--blur-lg:16px;--blur-3xl:64px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-primary-50:#e6f0ff;--color-primary-100:#cce0ff;--color-primary-200:#99c2ff;--color-primary-300:#66a3ff;--color-primary-400:#3385ff;--color-primary-500:#0052cc;--color-primary-600:#003d99;--color-primary-700:#002868;--color-primary-800:#001f4d;--color-primary-900:#001433;--color-accent:#f97316;--color-accent-dark:#ea580c;--color-gold-light:#fde047;--color-gold:#facc15;--spacing-72:18rem;--spacing-84:21rem;--spacing-96:24rem;--spacing-128:32rem;--font-display:Inter,system-ui,sans-serif;--font-body:Inter,system-ui,sans-serif;--shadow-glow:0 0 20px #00286880;--shadow-glow-lg:0 0 40px #00286899;--shadow-neumorphic:12px 12px 24px #0000001a,-12px -12px 24px #ffffff80;--animate-fade-in:fadeIn .5s ease-in-out;--animate-fade-in-up:fadeInUp .6s ease-out;--animate-slide-in:slideIn .4s ease-out;--animate-bounce-slow:bounce 3s infinite;--animate-wiggle:wiggle 1s ease-in-out infinite}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}body{font-family:var(--font-body);color:var(--color-gray-900);-webkit-font-smoothing:antialiased}.dark body{color:var(--color-gray-100)}h1,h2,h3,h4,h5,h6{font-family:var(--font-display);font-weight:700}html.transitioning,html.transitioning *,html.transitioning :before,html.transitioning :after{transition:background-color .3s,border-color .3s,color .3s!important}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{appearance:none;--tw-shadow:0 0 #0000;background-color:#fff;border-width:1px;border-color:oklch(55.1% .027 264.364);border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}:is([type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select):focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:oklch(54.6% .245 262.881);outline:2px solid #0000}input::placeholder,textarea::placeholder{color:oklch(55.1% .027 264.364);opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-date-and-time-value{text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-year-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-month-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-day-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-hour-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-minute-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-second-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-millisecond-field{padding-top:0;padding-bottom:0}::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{print-color-adjust:exact;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='oklch(55.1%25 0.027 264.364)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;print-color-adjust:unset;padding-right:.75rem}[type=checkbox],[type=radio]{appearance:none;print-color-adjust:exact;vertical-align:middle;-webkit-user-select:none;user-select:none;color:oklch(54.6% .245 262.881);--tw-shadow:0 0 #0000;background-color:#fff;background-origin:border-box;border-width:1px;border-color:oklch(55.1% .027 264.364);flex-shrink:0;width:1rem;height:1rem;padding:0;display:inline-block}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline-offset:2px;--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:oklch(54.6% .245 262.881);--tw-ring-offset-shadow:var(--tw-ring-inset)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid #0000}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=checkbox]:checked{appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors:active){[type=radio]:checked{appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{background-color:currentColor;border-color:#0000}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:#0000}@media (forced-colors:active){[type=checkbox]:indeterminate{appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{background-color:currentColor;border-color:#0000}[type=file]{background:unset;border-color:inherit;font-size:unset;line-height:inherit;border-width:0;border-radius:0;padding:0}[type=file]:focus{outline:1px solid buttontext;outline:1px auto -webkit-focus-ring-color}}@layer components{button{cursor:pointer}.btn{cursor:pointer;border-radius:.5rem;padding:.5rem 1rem;font-weight:500;transition:all .3s}.btn:focus{box-shadow:0 0 0 2px var(--color-primary-500);outline:none}.btn-primary{background-color:var(--color-primary-600);color:#fff;box-shadow:var(--shadow-md);cursor:pointer;border-radius:.5rem;padding:.5rem 1rem;font-weight:500;transition:all .3s}.btn-primary:hover{background-color:var(--color-primary-700);box-shadow:var(--shadow-lg)}.btn-primary:focus{box-shadow:0 0 0 2px var(--color-primary-500);outline:none}.dark .btn-primary{background-color:var(--color-primary-500)}.dark .btn-primary:hover{background-color:var(--color-primary-600)}.btn-secondary{background-color:var(--color-gray-200);color:var(--color-gray-800);border-radius:.5rem;padding:.5rem 1rem;font-weight:500;transition:all .3s}.btn-secondary:hover{background-color:var(--color-gray-300)}.btn-secondary:focus{box-shadow:0 0 0 2px var(--color-gray-500);outline:none}.dark .btn-secondary{background-color:var(--color-gray-700);color:var(--color-gray-200)}.dark .btn-secondary:hover{background-color:var(--color-gray-600)}.btn-accent{background-color:var(--color-accent);color:#fff;box-shadow:var(--shadow-md);border-radius:.5rem;padding:.5rem 1rem;font-weight:500;transition:all .3s}.btn-accent:hover{background-color:var(--color-accent-dark);box-shadow:var(--shadow-lg)}.btn-accent:focus{box-shadow:0 0 0 2px var(--color-accent);outline:none}.btn-glow{background-color:var(--color-blue-600);color:#fff;box-shadow:var(--shadow-glow);border-radius:.5rem;padding:.5rem 1rem;font-weight:500;transition:all .3s}.btn-glow:hover{background-color:var(--color-blue-700);box-shadow:var(--shadow-glow-lg)}.dark .btn-glow{background-color:var(--color-blue-500)}.dark .btn-glow:hover{background-color:var(--color-blue-600)}.card{box-shadow:var(--shadow-lg);background-color:#fff;border-radius:.75rem;padding:1.5rem;transition:all .3s}.card:hover{box-shadow:var(--shadow-2xl)}.dark .card{background-color:var(--color-gray-800)}.card-neumorphic{background-color:var(--color-gray-100);box-shadow:var(--shadow-neumorphic);border-radius:1rem;padding:1.5rem}.dark .card-neumorphic{background-color:var(--color-gray-800)}.card-glass{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:var(--shadow-xl);background-color:#ffffff1a;border:1px solid #fff3;border-radius:1rem;padding:1.5rem}.dark .card-glass{background-color:#0003;border-color:#ffffff1a}.input{border:1px solid var(--color-gray-300);border-radius:.5rem;width:100%;padding:.5rem 1rem;transition:all .3s}.input:focus{box-shadow:0 0 0 2px var(--color-primary-500);border-color:#0000}.dark .input{background-color:var(--color-gray-800);border-color:var(--color-gray-600);color:#fff}.input-glow:focus{box-shadow:var(--shadow-glow)}.badge{border-radius:9999px;align-items:center;padding:.25rem .75rem;font-size:.875rem;font-weight:500;display:inline-flex}.badge-primary{background-color:var(--color-primary-100);color:var(--color-primary-800);border-radius:9999px;align-items:center;padding:.25rem .75rem;font-size:.875rem;font-weight:500;display:inline-flex}.dark .badge-primary{background-color:var(--color-primary-900);color:var(--color-primary-200)}.badge-success{background-color:var(--color-green-100);color:var(--color-green-800);border-radius:9999px;align-items:center;padding:.25rem .75rem;font-size:.875rem;font-weight:500;display:inline-flex}.dark .badge-success{background-color:var(--color-green-900);color:var(--color-green-200)}.badge-warning{background-color:var(--color-yellow-100);color:var(--color-yellow-800);border-radius:9999px;align-items:center;padding:.25rem .75rem;font-size:.875rem;font-weight:500;display:inline-flex}.dark .badge-warning{background-color:var(--color-yellow-900);color:var(--color-yellow-200)}.badge-danger{background-color:var(--color-red-100);color:var(--color-red-800);border-radius:9999px;align-items:center;padding:.25rem .75rem;font-size:.875rem;font-weight:500;display:inline-flex}.dark .badge-danger{background-color:var(--color-red-900);color:var(--color-red-200)}.container-custom{max-width:80rem;margin-left:auto;margin-right:auto;padding-left:1rem;padding-right:1rem}@media (min-width:640px){.container-custom{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:1024px){.container-custom{padding-left:2rem;padding-right:2rem}}.section{padding-top:4rem;padding-bottom:4rem}@media (min-width:768px){.section{padding-top:6rem;padding-bottom:6rem}}.gradient-text{background:linear-gradient(to right,var(--color-primary-700),var(--color-gold));color:#0000;-webkit-background-clip:text;background-clip:text}.dark .gradient-text{background:linear-gradient(to right,var(--color-primary-400),var(--color-gold-light));-webkit-background-clip:text;background-clip:text}.hover-lift{transition:transform .3s}.hover-lift:hover{box-shadow:var(--shadow-2xl);transform:translateY(-.5rem)}.hover-scale{transition:transform .3s}.hover-scale:hover{transform:scale(1.05)}.hover-rotate{transition:transform .3s}.hover-rotate:hover{transform:rotate(3deg)}.nav-link{color:var(--color-gray-700);font-weight:500;transition:color .3s}.nav-link:hover{color:var(--color-primary-600)}.dark .nav-link{color:var(--color-gray-300)}.dark .nav-link:hover{color:var(--color-primary-400)}.nav-link-mobile{color:var(--color-gray-700);border-radius:.5rem;padding:.75rem 1rem;font-weight:500;transition:all .3s;display:block}.nav-link-mobile:hover{background-color:var(--color-gray-100)}.dark .nav-link-mobile{color:var(--color-gray-300)}.dark .nav-link-mobile:hover{background-color:var(--color-gray-700)}}@layer utilities{.\@container{container-type:inline-size}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.inset-px{inset:1px}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.inset-x-10{inset-inline:calc(var(--spacing)*10)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.-top-16{top:calc(var(--spacing)*-16)}.top-0{top:calc(var(--spacing)*0)}.top-1\.5{top:calc(var(--spacing)*1.5)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing)*2)}.top-3{top:calc(var(--spacing)*3)}.top-4{top:calc(var(--spacing)*4)}.top-5{top:calc(var(--spacing)*5)}.top-8{top:calc(var(--spacing)*8)}.top-10{top:calc(var(--spacing)*10)}.top-12{top:calc(var(--spacing)*12)}.top-20{top:calc(var(--spacing)*20)}.top-\[calc\(5rem\+env\(safe-area-inset-top\)\)\]{top:calc(5rem + env(safe-area-inset-top))}.-right-1{right:calc(var(--spacing)*-1)}.-right-16{right:calc(var(--spacing)*-16)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.right-16{right:calc(var(--spacing)*16)}.-bottom-1{bottom:calc(var(--spacing)*-1)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-1{bottom:calc(var(--spacing)*1)}.bottom-3{bottom:calc(var(--spacing)*3)}.bottom-4{bottom:calc(var(--spacing)*4)}.bottom-8{bottom:calc(var(--spacing)*8)}.left-0{left:calc(var(--spacing)*0)}.left-1\.5{left:calc(var(--spacing)*1.5)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-3{left:calc(var(--spacing)*3)}.left-4{left:calc(var(--spacing)*4)}.left-5{left:calc(var(--spacing)*5)}.left-10{left:calc(var(--spacing)*10)}.isolate{isolation:isolate}.-z-10{z-index:calc(10*-1)}.-z-20{z-index:calc(20*-1)}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[60\]{z-index:60}.z-\[100\]{z-index:100}.z-\[1000\]{z-index:1000}.z-\[1001\]{z-index:1001}.order-first{order:-9999}.col-span-full{grid-column:1/-1}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-m-1\.5{margin:calc(var(--spacing)*-1.5)}.-m-2\.5{margin:calc(var(--spacing)*-2.5)}.m-0{margin:calc(var(--spacing)*0)}.-mx-2{margin-inline:calc(var(--spacing)*-2)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.my-6{margin-block:calc(var(--spacing)*6)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);margin-top:1.2em;margin-bottom:1.2em;font-size:1.25em;line-height:1.6}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:decimal}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em;list-style-type:disc}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.25em;font-weight:600}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em;font-style:italic;font-weight:500}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:0;margin-bottom:.888889em;font-size:2.25em;font-weight:800;line-height:1.11111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:2em;margin-bottom:1em;font-size:1.5em;font-weight:700;line-height:1.33333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.6em;margin-bottom:.6em;font-size:1.25em;font-weight:600;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);margin-top:1.5em;margin-bottom:.5em;font-weight:600;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em;display:block}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;border-radius:.3125rem;padding-inline-start:.375em;font-family:inherit;font-size:.875em;font-weight:500}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);padding-top:.857143em;padding-inline-end:1.14286em;padding-bottom:.857143em;border-radius:.375rem;margin-top:1.71429em;margin-bottom:1.71429em;padding-inline-start:1.14286em;font-size:.875em;font-weight:400;line-height:1.71429;overflow-x:auto}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;background-color:#0000;border-width:0;border-radius:0;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){table-layout:auto;width:100%;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.71429}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);vertical-align:bottom;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;font-weight:600}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);margin-top:.857143em;font-size:.875em;line-height:1.42857}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.571429em;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.-mt-0\.5{margin-top:calc(var(--spacing)*-.5)}.-mt-1{margin-top:calc(var(--spacing)*-1)}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mt-8{margin-top:calc(var(--spacing)*8)}.mt-10{margin-top:calc(var(--spacing)*10)}.mt-12{margin-top:calc(var(--spacing)*12)}.mt-14{margin-top:calc(var(--spacing)*14)}.mt-16{margin-top:calc(var(--spacing)*16)}.mt-auto{margin-top:auto}.mr-0\.5{margin-right:calc(var(--spacing)*.5)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-1\.5{margin-right:calc(var(--spacing)*1.5)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-3{margin-right:calc(var(--spacing)*3)}.mr-4{margin-right:calc(var(--spacing)*4)}.mr-auto{margin-right:auto}.-mb-8{margin-bottom:calc(var(--spacing)*-8)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-10{margin-bottom:calc(var(--spacing)*10)}.mb-12{margin-bottom:calc(var(--spacing)*12)}.-ml-24{margin-left:calc(var(--spacing)*-24)}.-ml-\[22rem\]{margin-left:-22rem}.-ml-px{margin-left:-1px}.ml-0\.5{margin-left:calc(var(--spacing)*.5)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-9{margin-left:calc(var(--spacing)*9)}.ml-\[max\(50\%\,38rem\)\]{margin-left:max(50%,38rem)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.block\!{display:block!important}.contents{display:contents}.flex{display:flex}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.aspect-2\/3{aspect-ratio:2/3}.aspect-4\/3{aspect-ratio:4/3}.aspect-7\/5{aspect-ratio:7/5}.aspect-\[2\/3\]{aspect-ratio:2/3}.aspect-\[4\/3\]{aspect-ratio:4/3}.aspect-\[1313\/771\]{aspect-ratio:1313/771}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5{width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6{width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.size-11{width:calc(var(--spacing)*11);height:calc(var(--spacing)*11)}.size-16{width:calc(var(--spacing)*16);height:calc(var(--spacing)*16)}.size-full{width:100%;height:100%}.h-1{height:calc(var(--spacing)*1)}.h-1\/2{height:50%}.h-2{height:calc(var(--spacing)*2)}.h-3{height:calc(var(--spacing)*3)}.h-3\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-14{height:calc(var(--spacing)*14)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-24{height:calc(var(--spacing)*24)}.h-32{height:calc(var(--spacing)*32)}.h-36{height:calc(var(--spacing)*36)}.h-48{height:calc(var(--spacing)*48)}.h-64{height:calc(var(--spacing)*64)}.h-80{height:calc(var(--spacing)*80)}.h-96{height:var(--spacing-96)}.h-\[30rem\]{height:30rem}.h-\[64rem\]{height:64rem}.h-full{height:100%}.max-h-48{max-height:calc(var(--spacing)*48)}.max-h-56{max-height:calc(var(--spacing)*56)}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-64{max-height:calc(var(--spacing)*64)}.max-h-\[85vh\]{max-height:85vh}.max-h-\[calc\(100dvh-11rem\)\]{max-height:calc(100dvh - 11rem)}.max-h-full{max-height:100%}.max-h-none{max-height:none}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-120{min-height:calc(var(--spacing)*120)}.min-h-\[60vh\]{min-height:60vh}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-0{width:calc(var(--spacing)*0)}.w-0\.5{width:calc(var(--spacing)*.5)}.w-1{width:calc(var(--spacing)*1)}.w-2{width:calc(var(--spacing)*2)}.w-3{width:calc(var(--spacing)*3)}.w-3\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-7{width:calc(var(--spacing)*7)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-24{width:calc(var(--spacing)*24)}.w-28{width:calc(var(--spacing)*28)}.w-44{width:calc(var(--spacing)*44)}.w-48{width:calc(var(--spacing)*48)}.w-64{width:calc(var(--spacing)*64)}.w-72{width:var(--spacing-72)}.w-96{width:var(--spacing-96)}.w-148{width:calc(var(--spacing)*148)}.w-\[24rem\]{width:24rem}.w-\[50rem\]{width:50rem}.w-\[82\.0625rem\]{width:82.0625rem}.w-\[min\(100\%\,calc\(\(100dvh-10rem\)\*0\.62\)\)\]{width:min(100%,62dvh - 6.2rem)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-2xl{max-width:var(--container-2xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-\[92\%\]{max-width:92%}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-4{min-width:calc(var(--spacing)*4)}.min-w-full{min-width:100%}.flex-1{flex:1}.flex-auto{flex:auto}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.origin-top-left{transform-origin:0 0}.origin-top-right{transform-origin:100% 0}.-translate-x-1\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-2{--tw-translate-y:calc(var(--spacing)*2);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full{--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-180{rotate:180deg}.rotate-\[30deg\]{rotate:30deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.transform-gpu{transform:translateZ(0)var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce-slow{animation:var(--animate-bounce-slow)}.animate-fade-in-up{animation:var(--animate-fade-in-up)}.animate-pulse{animation:var(--animate-pulse)}.animate-slide-in{animation:var(--animate-slide-in)}.animate-spin{animation:var(--animate-spin)}.animate-wiggle{animation:var(--animate-wiggle)}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-zoom-in{cursor:zoom-in}.touch-pan-y{--tw-pan-y:pan-y;touch-action:var(--tw-pan-x,)var(--tw-pan-y,)var(--tw-pinch-zoom,)}.resize{resize:both}.resize-none{resize:none}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-y{scroll-snap-type:y var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness:mandatory}.snap-start{scroll-snap-align:start}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-8{gap:calc(var(--spacing)*8)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-72>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing-72)*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing-72)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-84>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing-84)*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing-84)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-96>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing-96)*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing-96)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-128>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(var(--spacing-128)*var(--tw-space-y-reverse));margin-block-end:calc(var(--spacing-128)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1{column-gap:calc(var(--spacing)*1)}.gap-x-2{column-gap:calc(var(--spacing)*2)}.gap-x-3{column-gap:calc(var(--spacing)*3)}.gap-x-4{column-gap:calc(var(--spacing)*4)}.gap-x-6{column-gap:calc(var(--spacing)*6)}.gap-x-12{column-gap:calc(var(--spacing)*12)}.gap-x-14{column-gap:calc(var(--spacing)*14)}:where(.space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-1\.5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-6>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*6)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-1{row-gap:calc(var(--spacing)*1)}.gap-y-2{row-gap:calc(var(--spacing)*2)}.gap-y-3{row-gap:calc(var(--spacing)*3)}.gap-y-4{row-gap:calc(var(--spacing)*4)}.gap-y-16{row-gap:calc(var(--spacing)*16)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-gray-100>:not(:last-child)){border-color:var(--color-gray-100)}:where(.divide-gray-200>:not(:last-child)){border-color:var(--color-gray-200)}.self-center{align-self:center}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.overscroll-y-contain{overscroll-behavior-y:contain}.scroll-smooth{scroll-behavior:smooth}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-\[calc\(var\(--radius-lg\)\+1px\)\]{border-radius:calc(var(--radius-lg) + 1px)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-2xl{border-top-left-radius:var(--radius-2xl);border-top-right-radius:var(--radius-2xl)}.rounded-t-\[12cqw\]{border-top-left-radius:12cqw;border-top-right-radius:12cqw}.rounded-t-xl{border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl)}.rounded-tl-xl{border-top-left-radius:var(--radius-xl)}.rounded-b-xl{border-bottom-right-radius:var(--radius-xl);border-bottom-left-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-x-\[3cqw\]{border-inline-style:var(--tw-border-style);border-inline-width:3cqw}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-\[3cqw\]{border-top-style:var(--tw-border-style);border-top-width:3cqw}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-amber-200{border-color:var(--color-amber-200)}.border-amber-400{border-color:var(--color-amber-400)}.border-amber-500{border-color:var(--color-amber-500)}.border-blue-200{border-color:var(--color-blue-200)}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-300{border-color:var(--color-emerald-300)}.border-emerald-500{border-color:var(--color-emerald-500)}.border-emerald-600{border-color:var(--color-emerald-600)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-400{border-color:var(--color-gray-400)}.border-gray-700{border-color:var(--color-gray-700)}.border-green-200{border-color:var(--color-green-200)}.border-primary-500{border-color:var(--color-primary-500)}.border-purple-300{border-color:var(--color-purple-300)}.border-red-200{border-color:var(--color-red-200)}.border-red-500{border-color:var(--color-red-500)}.border-red-700{border-color:var(--color-red-700)}.border-teal-500{border-color:var(--color-teal-500)}.border-transparent{border-color:#0000}.border-white{border-color:var(--color-white)}.border-white\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.border-white\/10{border-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.border-white\/20{border-color:#fff3}@supports (color:color-mix(in lab, red, red)){.border-white\/20{border-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.border-white\/30{border-color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.border-white\/30{border-color:color-mix(in oklab,var(--color-white)30%,transparent)}}.border-white\/40{border-color:#fff6}@supports (color:color-mix(in lab, red, red)){.border-white\/40{border-color:color-mix(in oklab,var(--color-white)40%,transparent)}}.border-white\/60{border-color:#fff9}@supports (color:color-mix(in lab, red, red)){.border-white\/60{border-color:color-mix(in oklab,var(--color-white)60%,transparent)}}.border-t-white{border-top-color:var(--color-white)}.btn-gold{color:#001433;background-color:#facc15}.btn-gold:hover{background-color:#eab308}.bg-accent{background-color:var(--color-accent)}.bg-accent-dark{background-color:var(--color-accent-dark)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-amber-100{background-color:var(--color-amber-100)}.bg-amber-400\/90{background-color:#fcbb00e6}@supports (color:color-mix(in lab, red, red)){.bg-amber-400\/90{background-color:color-mix(in oklab,var(--color-amber-400)90%,transparent)}}.bg-amber-500{background-color:var(--color-amber-500)}.bg-amber-600{background-color:var(--color-amber-600)}.bg-amber-900\/80{background-color:#7b3306cc}@supports (color:color-mix(in lab, red, red)){.bg-amber-900\/80{background-color:color-mix(in oklab,var(--color-amber-900)80%,transparent)}}.bg-black\/45{background-color:#00000073}@supports (color:color-mix(in lab, red, red)){.bg-black\/45{background-color:color-mix(in oklab,var(--color-black)45%,transparent)}}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-black\/60{background-color:#0009}@supports (color:color-mix(in lab, red, red)){.bg-black\/60{background-color:color-mix(in oklab,var(--color-black)60%,transparent)}}.bg-black\/70{background-color:#000000b3}@supports (color:color-mix(in lab, red, red)){.bg-black\/70{background-color:color-mix(in oklab,var(--color-black)70%,transparent)}}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-100{background-color:var(--color-emerald-100)}.bg-emerald-100\/90{background-color:#d0fae5e6}@supports (color:color-mix(in lab, red, red)){.bg-emerald-100\/90{background-color:color-mix(in oklab,var(--color-emerald-100)90%,transparent)}}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-emerald-500\/20{background-color:#00bb7f33}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\/20{background-color:color-mix(in oklab,var(--color-emerald-500)20%,transparent)}}.bg-emerald-500\/90{background-color:#00bb7fe6}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\/90{background-color:color-mix(in oklab,var(--color-emerald-500)90%,transparent)}}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-emerald-600\/30{background-color:#0097674d}@supports (color:color-mix(in lab, red, red)){.bg-emerald-600\/30{background-color:color-mix(in oklab,var(--color-emerald-600)30%,transparent)}}.bg-emerald-700{background-color:var(--color-emerald-700)}.bg-emerald-800{background-color:var(--color-emerald-800)}.bg-emerald-900\/80{background-color:#004e3bcc}@supports (color:color-mix(in lab, red, red)){.bg-emerald-900\/80{background-color:color-mix(in oklab,var(--color-emerald-900)80%,transparent)}}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-700{background-color:var(--color-gray-700)}.bg-gray-800{background-color:var(--color-gray-800)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-gray-900\/5{background-color:#1018280d}@supports (color:color-mix(in lab, red, red)){.bg-gray-900\/5{background-color:color-mix(in oklab,var(--color-gray-900)5%,transparent)}}.bg-gray-900\/80{background-color:#101828cc}@supports (color:color-mix(in lab, red, red)){.bg-gray-900\/80{background-color:color-mix(in oklab,var(--color-gray-900)80%,transparent)}}.bg-gray-900\/90{background-color:#101828e6}@supports (color:color-mix(in lab, red, red)){.bg-gray-900\/90{background-color:color-mix(in oklab,var(--color-gray-900)90%,transparent)}}.bg-green-50{background-color:var(--color-green-50)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-green-600{background-color:var(--color-green-600)}.bg-indigo-50{background-color:var(--color-indigo-50)}.bg-indigo-100{background-color:var(--color-indigo-100)}.bg-indigo-100\/90{background-color:#e0e7ffe6}@supports (color:color-mix(in lab, red, red)){.bg-indigo-100\/90{background-color:color-mix(in oklab,var(--color-indigo-100)90%,transparent)}}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-primary-50{background-color:var(--color-primary-50)}.bg-primary-100{background-color:var(--color-primary-100)}.bg-primary-500{background-color:var(--color-primary-500)}.bg-primary-600{background-color:var(--color-primary-600)}.bg-purple-100{background-color:var(--color-purple-100)}.bg-purple-200{background-color:var(--color-purple-200)}.bg-purple-500{background-color:var(--color-purple-500)}.bg-purple-600{background-color:var(--color-purple-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-100{background-color:var(--color-red-100)}.bg-red-500{background-color:var(--color-red-500)}.bg-red-600{background-color:var(--color-red-600)}.bg-red-600\/60{background-color:#e4001499}@supports (color:color-mix(in lab, red, red)){.bg-red-600\/60{background-color:color-mix(in oklab,var(--color-red-600)60%,transparent)}}.bg-red-600\/90{background-color:#e40014e6}@supports (color:color-mix(in lab, red, red)){.bg-red-600\/90{background-color:color-mix(in oklab,var(--color-red-600)90%,transparent)}}.bg-red-700{background-color:var(--color-red-700)}.bg-red-800{background-color:var(--color-red-800)}.bg-teal-50{background-color:var(--color-teal-50)}.bg-teal-100{background-color:var(--color-teal-100)}.bg-teal-500{background-color:var(--color-teal-500)}.bg-white{background-color:var(--color-white)}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.bg-white\/15{background-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.bg-white\/15{background-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.bg-white\/20{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.bg-white\/20{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-white\/50{background-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.bg-white\/50{background-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.bg-white\/80{background-color:#fffc}@supports (color:color-mix(in lab, red, red)){.bg-white\/80{background-color:color-mix(in oklab,var(--color-white)80%,transparent)}}.bg-white\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.bg-white\/90{background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.bg-white\/95{background-color:#fffffff2}@supports (color:color-mix(in lab, red, red)){.bg-white\/95{background-color:color-mix(in oklab,var(--color-white)95%,transparent)}}.bg-yellow-100{background-color:var(--color-yellow-100)}.bg-yellow-400{background-color:var(--color-yellow-400)}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-yellow-500\/20{background-color:#edb20033}@supports (color:color-mix(in lab, red, red)){.bg-yellow-500\/20{background-color:color-mix(in oklab,var(--color-yellow-500)20%,transparent)}}.bg-gradient-to-b{--tw-gradient-position:to bottom in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-tr{--tw-gradient-position:to top right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-amber-400{--tw-gradient-from:var(--color-amber-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-amber-400\/30{--tw-gradient-from:#fcbb004d}@supports (color:color-mix(in lab, red, red)){.from-amber-400\/30{--tw-gradient-from:color-mix(in oklab,var(--color-amber-400)30%,transparent)}}.from-amber-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-amber-500{--tw-gradient-from:var(--color-amber-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-black\/50{--tw-gradient-from:#00000080}@supports (color:color-mix(in lab, red, red)){.from-black\/50{--tw-gradient-from:color-mix(in oklab,var(--color-black)50%,transparent)}}.from-black\/50{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-black\/70{--tw-gradient-from:#000000b3}@supports (color:color-mix(in lab, red, red)){.from-black\/70{--tw-gradient-from:color-mix(in oklab,var(--color-black)70%,transparent)}}.from-black\/70{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-100{--tw-gradient-from:var(--color-blue-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-400{--tw-gradient-from:var(--color-blue-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-400\/30{--tw-gradient-from:#54a2ff4d}@supports (color:color-mix(in lab, red, red)){.from-blue-400\/30{--tw-gradient-from:color-mix(in oklab,var(--color-blue-400)30%,transparent)}}.from-blue-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-500{--tw-gradient-from:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-blue-600{--tw-gradient-from:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-emerald-100{--tw-gradient-from:var(--color-emerald-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-emerald-400{--tw-gradient-from:var(--color-emerald-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-emerald-400\/30{--tw-gradient-from:#00d2944d}@supports (color:color-mix(in lab, red, red)){.from-emerald-400\/30{--tw-gradient-from:color-mix(in oklab,var(--color-emerald-400)30%,transparent)}}.from-emerald-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-emerald-500{--tw-gradient-from:var(--color-emerald-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-emerald-600{--tw-gradient-from:var(--color-emerald-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-200{--tw-gradient-from:var(--color-gray-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-900{--tw-gradient-from:var(--color-gray-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-950\/80{--tw-gradient-from:#030712cc}@supports (color:color-mix(in lab, red, red)){.from-gray-950\/80{--tw-gradient-from:color-mix(in oklab,var(--color-gray-950)80%,transparent)}}.from-gray-950\/80{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-950\/90{--tw-gradient-from:#030712e6}@supports (color:color-mix(in lab, red, red)){.from-gray-950\/90{--tw-gradient-from:color-mix(in oklab,var(--color-gray-950)90%,transparent)}}.from-gray-950\/90{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-gray-950\/95{--tw-gradient-from:#030712f2}@supports (color:color-mix(in lab, red, red)){.from-gray-950\/95{--tw-gradient-from:color-mix(in oklab,var(--color-gray-950)95%,transparent)}}.from-gray-950\/95{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-green-500{--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-100{--tw-gradient-from:var(--color-purple-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-400\/30{--tw-gradient-from:#c07eff4d}@supports (color:color-mix(in lab, red, red)){.from-purple-400\/30{--tw-gradient-from:color-mix(in oklab,var(--color-purple-400)30%,transparent)}}.from-purple-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-500{--tw-gradient-from:var(--color-purple-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-purple-600{--tw-gradient-from:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-red-500{--tw-gradient-from:var(--color-red-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-teal-500{--tw-gradient-from:var(--color-teal-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-gray-800{--tw-gradient-via:var(--color-gray-800);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-gray-950\/70{--tw-gradient-via:#030712b3}@supports (color:color-mix(in lab, red, red)){.via-gray-950\/70{--tw-gradient-via:color-mix(in oklab,var(--color-gray-950)70%,transparent)}}.via-gray-950\/70{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-gray-950\/95{--tw-gradient-via:#030712f2}@supports (color:color-mix(in lab, red, red)){.via-gray-950\/95{--tw-gradient-via:color-mix(in oklab,var(--color-gray-950)95%,transparent)}}.via-gray-950\/95{--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-transparent{--tw-gradient-via:transparent;--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-black\/70{--tw-gradient-to:#000000b3}@supports (color:color-mix(in lab, red, red)){.to-black\/70{--tw-gradient-to:color-mix(in oklab,var(--color-black)70%,transparent)}}.to-black\/70{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-200{--tw-gradient-to:var(--color-blue-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-400\/30{--tw-gradient-to:#54a2ff4d}@supports (color:color-mix(in lab, red, red)){.to-blue-400\/30{--tw-gradient-to:color-mix(in oklab,var(--color-blue-400)30%,transparent)}}.to-blue-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500{--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-600{--tw-gradient-to:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-700{--tw-gradient-to:var(--color-blue-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-950\/95{--tw-gradient-to:#162456f2}@supports (color:color-mix(in lab, red, red)){.to-blue-950\/95{--tw-gradient-to:color-mix(in oklab,var(--color-blue-950)95%,transparent)}}.to-blue-950\/95{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-emerald-200{--tw-gradient-to:var(--color-emerald-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-emerald-600{--tw-gradient-to:var(--color-emerald-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-emerald-800{--tw-gradient-to:var(--color-emerald-800);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-gray-300{--tw-gradient-to:var(--color-gray-300);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-gray-900{--tw-gradient-to:var(--color-gray-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-green-600{--tw-gradient-to:var(--color-green-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-100{--tw-gradient-to:var(--color-indigo-100);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-400\/30{--tw-gradient-to:#7d87ff4d}@supports (color:color-mix(in lab, red, red)){.to-indigo-400\/30{--tw-gradient-to:color-mix(in oklab,var(--color-indigo-400)30%,transparent)}}.to-indigo-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-indigo-600{--tw-gradient-to:var(--color-indigo-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-orange-400\/30{--tw-gradient-to:#ff8b1a4d}@supports (color:color-mix(in lab, red, red)){.to-orange-400\/30{--tw-gradient-to:color-mix(in oklab,var(--color-orange-400)30%,transparent)}}.to-orange-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-orange-500{--tw-gradient-to:var(--color-orange-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-orange-600{--tw-gradient-to:var(--color-orange-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-200{--tw-gradient-to:var(--color-purple-200);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-600{--tw-gradient-to:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-red-600{--tw-gradient-to:var(--color-red-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-teal-500{--tw-gradient-to:var(--color-teal-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-teal-600{--tw-gradient-to:var(--color-teal-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-transparent{--tw-gradient-to:transparent;--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-yellow-400{--tw-gradient-to:var(--color-yellow-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-yellow-400\/30{--tw-gradient-to:#fac8004d}@supports (color:color-mix(in lab, red, red)){.to-yellow-400\/30{--tw-gradient-to:color-mix(in oklab,var(--color-yellow-400)30%,transparent)}}.to-yellow-400\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.\[mask-image\:radial-gradient\(32rem_32rem_at_center\,white\,transparent\)\]{-webkit-mask-image:radial-gradient(32rem 32rem,#fff,#0000);mask-image:radial-gradient(32rem 32rem,#fff,#0000)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.fill-gray-50{fill:var(--color-gray-50)}.stroke-gray-200{stroke:var(--color-gray-200)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.object-center{object-position:center}.object-left{object-position:left}.object-top{object-position:top}.p-1{padding:calc(var(--spacing)*1)}.p-1\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.p-10{padding:calc(var(--spacing)*10)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-3\.5{padding-inline:calc(var(--spacing)*3.5)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-5{padding-inline:calc(var(--spacing)*5)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-3\.5{padding-block:calc(var(--spacing)*3.5)}.py-4{padding-block:calc(var(--spacing)*4)}.py-5{padding-block:calc(var(--spacing)*5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-10{padding-block:calc(var(--spacing)*10)}.py-12{padding-block:calc(var(--spacing)*12)}.py-16{padding-block:calc(var(--spacing)*16)}.py-24{padding-block:calc(var(--spacing)*24)}.py-32{padding-block:calc(var(--spacing)*32)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-1\.5{padding-top:calc(var(--spacing)*1.5)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pt-6{padding-top:calc(var(--spacing)*6)}.pt-8{padding-top:calc(var(--spacing)*8)}.pt-10{padding-top:calc(var(--spacing)*10)}.pt-14{padding-top:calc(var(--spacing)*14)}.pt-16{padding-top:calc(var(--spacing)*16)}.pt-24{padding-top:calc(var(--spacing)*24)}.pt-32{padding-top:calc(var(--spacing)*32)}.pt-36{padding-top:calc(var(--spacing)*36)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-8{padding-right:calc(var(--spacing)*8)}.pr-16{padding-right:calc(var(--spacing)*16)}.pb-1{padding-bottom:calc(var(--spacing)*1)}.pb-1\.5{padding-bottom:calc(var(--spacing)*1.5)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pb-8{padding-bottom:calc(var(--spacing)*8)}.pb-12{padding-bottom:calc(var(--spacing)*12)}.pb-24{padding-bottom:calc(var(--spacing)*24)}.pb-32{padding-bottom:calc(var(--spacing)*32)}.pb-\[env\(safe-area-inset-bottom\)\]{padding-bottom:env(safe-area-inset-bottom)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-5{padding-left:calc(var(--spacing)*5)}.pl-12{padding-left:calc(var(--spacing)*12)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl{font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-base\/7{font-size:var(--text-base);line-height:calc(var(--spacing)*7)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-lg\/8{font-size:var(--text-lg);line-height:calc(var(--spacing)*8)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\/4{font-size:var(--text-sm);line-height:calc(var(--spacing)*4)}.text-sm\/6{font-size:var(--text-sm);line-height:calc(var(--spacing)*6)}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xl\/8{font-size:var(--text-xl);line-height:calc(var(--spacing)*8)}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.text-pretty{text-wrap:pretty}.\[overflow-wrap\:anywhere\]{overflow-wrap:anywhere}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-100{color:var(--color-amber-100)}.text-amber-400{color:var(--color-amber-400)}.text-amber-500{color:var(--color-amber-500)}.text-amber-600{color:var(--color-amber-600)}.text-amber-700{color:var(--color-amber-700)}.text-amber-800{color:var(--color-amber-800)}.text-amber-900{color:var(--color-amber-900)}.text-blue-100{color:var(--color-blue-100)}.text-blue-200{color:var(--color-blue-200)}.text-blue-400{color:var(--color-blue-400)}.text-blue-500{color:var(--color-blue-500)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-emerald-50{color:var(--color-emerald-50)}.text-emerald-100{color:var(--color-emerald-100)}.text-emerald-200{color:var(--color-emerald-200)}.text-emerald-300{color:var(--color-emerald-300)}.text-emerald-400{color:var(--color-emerald-400)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-emerald-700{color:var(--color-emerald-700)}.text-emerald-800{color:var(--color-emerald-800)}.text-emerald-900{color:var(--color-emerald-900)}.text-gray-300{color:var(--color-gray-300)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-gray-800{color:var(--color-gray-800)}.text-gray-900{color:var(--color-gray-900)}.text-gray-950{color:var(--color-gray-950)}.text-green-500{color:var(--color-green-500)}.text-green-600{color:var(--color-green-600)}.text-green-700{color:var(--color-green-700)}.text-green-800{color:var(--color-green-800)}.text-indigo-500{color:var(--color-indigo-500)}.text-indigo-600{color:var(--color-indigo-600)}.text-indigo-800{color:var(--color-indigo-800)}.text-indigo-900{color:var(--color-indigo-900)}.text-orange-500{color:var(--color-orange-500)}.text-primary-600{color:var(--color-primary-600)}.text-primary-800{color:var(--color-primary-800)}.text-purple-400{color:var(--color-purple-400)}.text-purple-500{color:var(--color-purple-500)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-purple-800{color:var(--color-purple-800)}.text-purple-900{color:var(--color-purple-900)}.text-red-200{color:var(--color-red-200)}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-red-900{color:var(--color-red-900)}.text-teal-500{color:var(--color-teal-500)}.text-teal-600{color:var(--color-teal-600)}.text-teal-700{color:var(--color-teal-700)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.text-white\!{color:var(--color-white)!important}.text-white\/10{color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.text-white\/10{color:color-mix(in oklab,var(--color-white)10%,transparent)}}.text-white\/40{color:#fff6}@supports (color:color-mix(in lab, red, red)){.text-white\/40{color:color-mix(in oklab,var(--color-white)40%,transparent)}}.text-white\/50{color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.text-white\/50{color:color-mix(in oklab,var(--color-white)50%,transparent)}}.text-white\/60{color:#fff9}@supports (color:color-mix(in lab, red, red)){.text-white\/60{color:color-mix(in oklab,var(--color-white)60%,transparent)}}.text-white\/70{color:#ffffffb3}@supports (color:color-mix(in lab, red, red)){.text-white\/70{color:color-mix(in oklab,var(--color-white)70%,transparent)}}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab, red, red)){.text-white\/80{color:color-mix(in oklab,var(--color-white)80%,transparent)}}.text-white\/90{color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.text-white\/90{color:color-mix(in oklab,var(--color-white)90%,transparent)}}.text-yellow-200{color:var(--color-yellow-200)}.text-yellow-300{color:var(--color-yellow-300)}.text-yellow-400{color:var(--color-yellow-400)}.text-yellow-500{color:var(--color-yellow-500)}.text-yellow-600{color:var(--color-yellow-600)}.text-yellow-700{color:var(--color-yellow-700)}.text-yellow-800{color:var(--color-yellow-800)}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.accent-emerald-400{accent-color:var(--color-emerald-400)}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-90{opacity:.9}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-glow{--tw-shadow:0 0 20px var(--tw-shadow-color,#00286880);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-glow-lg{--tw-shadow:0 0 40px var(--tw-shadow-color,#00286899);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner-glow{--tw-shadow:inset 0 0 20px var(--tw-shadow-color,#0028684d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-neumorphic{--tw-shadow:12px 12px 24px var(--tw-shadow-color,#0000001a),-12px -12px 24px var(--tw-shadow-color,#ffffff80);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-amber-400{--tw-ring-color:var(--color-amber-400)}.ring-amber-500{--tw-ring-color:var(--color-amber-500)}.ring-black{--tw-ring-color:var(--color-black)}.ring-black\/5{--tw-ring-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.ring-black\/5{--tw-ring-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.ring-emerald-500{--tw-ring-color:var(--color-emerald-500)}.ring-gray-200{--tw-ring-color:var(--color-gray-200)}.ring-gray-300{--tw-ring-color:var(--color-gray-300)}.ring-gray-900\/10{--tw-ring-color:#1018281a}@supports (color:color-mix(in lab, red, red)){.ring-gray-900\/10{--tw-ring-color:color-mix(in oklab,var(--color-gray-900)10%,transparent)}}.ring-purple-500{--tw-ring-color:var(--color-purple-500)}.ring-red-500{--tw-ring-color:var(--color-red-500)}.ring-teal-500{--tw-ring-color:var(--color-teal-500)}.ring-transparent{--tw-ring-color:transparent}.ring-white{--tw-ring-color:var(--color-white)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-black\/5{outline-color:#0000000d}@supports (color:color-mix(in lab, red, red)){.outline-black\/5{outline-color:color-mix(in oklab,var(--color-black)5%,transparent)}}.outline-black\/10{outline-color:#0000001a}@supports (color:color-mix(in lab, red, red)){.outline-black\/10{outline-color:color-mix(in oklab,var(--color-black)10%,transparent)}}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.blur-3xl{--tw-blur:blur(var(--blur-3xl));filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a))drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a)drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-lg{--tw-backdrop-blur:blur(var(--blur-lg));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.\[scrollbar-width\:none\]{scrollbar-width:none}.ring-inset{--tw-ring-inset:inset}.group-open\:rotate-180:is(:where(.group):is([open],:popover-open,:open) *){rotate:180deg}@media (hover:hover){.group-hover\:translate-x-0\.5:is(:where(.group):hover *){--tw-translate-x:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-hover\:scale-105:is(:where(.group):hover *){--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\:scale-110:is(:where(.group):hover *){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.group-hover\:scale-\[1\.02\]:is(:where(.group):hover *){scale:1.02}.group-hover\:bg-gray-100:is(:where(.group):hover *){background-color:var(--color-gray-100)}.group-hover\:text-amber-500:is(:where(.group):hover *){color:var(--color-amber-500)}.group-hover\:text-amber-600:is(:where(.group):hover *){color:var(--color-amber-600)}.group-hover\:text-blue-600:is(:where(.group):hover *){color:var(--color-blue-600)}.group-hover\:text-emerald-500:is(:where(.group):hover *){color:var(--color-emerald-500)}.group-hover\:text-emerald-600:is(:where(.group):hover *){color:var(--color-emerald-600)}.group-hover\:text-purple-600:is(:where(.group):hover *){color:var(--color-purple-600)}.group-hover\:text-red-500:is(:where(.group):hover *){color:var(--color-red-500)}.group-hover\:text-teal-500:is(:where(.group):hover *){color:var(--color-teal-500)}.group-hover\:text-teal-600:is(:where(.group):hover *){color:var(--color-teal-600)}.group-hover\:text-yellow-500:is(:where(.group):hover *){color:var(--color-yellow-500)}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.peer-checked\:bg-blue-600:is(:where(.peer):checked~*){background-color:var(--color-blue-600)}.peer-checked\:bg-purple-600:is(:where(.peer):checked~*){background-color:var(--color-purple-600)}.peer-checked\:bg-yellow-400:is(:where(.peer):checked~*){background-color:var(--color-yellow-400)}.peer-checked\:text-gray-900:is(:where(.peer):checked~*){color:var(--color-gray-900)}.peer-checked\:text-white:is(:where(.peer):checked~*){color:var(--color-white)}.peer-checked\:ring-0:is(:where(.peer):checked~*){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.placeholder\:text-gray-400::placeholder{color:var(--color-gray-400)}.placeholder\:text-white\/50::placeholder{color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.placeholder\:text-white\/50::placeholder{color:color-mix(in oklab,var(--color-white)50%,transparent)}}.backdrop\:bg-gray-950\/95::backdrop{background-color:#030712f2}@supports (color:color-mix(in lab, red, red)){.backdrop\:bg-gray-950\/95::backdrop{background-color:color-mix(in oklab,var(--color-gray-950)95%,transparent)}}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}.open\:flex:is([open],:popover-open,:open){display:flex}@media (hover:hover){.hover\:-translate-y-0\.5:hover{--tw-translate-y:calc(var(--spacing)*-.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.hover\:scale-105:hover{--tw-scale-x:105%;--tw-scale-y:105%;--tw-scale-z:105%;scale:var(--tw-scale-x)var(--tw-scale-y)}.hover\:border-amber-500:hover{border-color:var(--color-amber-500)}.hover\:border-blue-500:hover{border-color:var(--color-blue-500)}.hover\:border-emerald-400:hover{border-color:var(--color-emerald-400)}.hover\:border-primary-500:hover{border-color:var(--color-primary-500)}.hover\:border-teal-200:hover{border-color:var(--color-teal-200)}.hover\:border-white:hover{border-color:var(--color-white)}.hover\:bg-amber-50:hover{background-color:var(--color-amber-50)}.hover\:bg-amber-600:hover{background-color:var(--color-amber-600)}.hover\:bg-amber-700:hover{background-color:var(--color-amber-700)}.hover\:bg-black\/65:hover{background-color:#000000a6}@supports (color:color-mix(in lab, red, red)){.hover\:bg-black\/65:hover{background-color:color-mix(in oklab,var(--color-black)65%,transparent)}}.hover\:bg-black\/70:hover{background-color:#000000b3}@supports (color:color-mix(in lab, red, red)){.hover\:bg-black\/70:hover{background-color:color-mix(in oklab,var(--color-black)70%,transparent)}}.hover\:bg-blue-50:hover{background-color:var(--color-blue-50)}.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-500:hover{background-color:var(--color-blue-500)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-emerald-50:hover{background-color:var(--color-emerald-50)}.hover\:bg-emerald-100:hover{background-color:var(--color-emerald-100)}.hover\:bg-emerald-200:hover{background-color:var(--color-emerald-200)}.hover\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}.hover\:bg-emerald-600:hover{background-color:var(--color-emerald-600)}.hover\:bg-emerald-700:hover{background-color:var(--color-emerald-700)}.hover\:bg-emerald-900:hover{background-color:var(--color-emerald-900)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-300:hover{background-color:var(--color-gray-300)}.hover\:bg-green-500:hover{background-color:var(--color-green-500)}.hover\:bg-indigo-500:hover{background-color:var(--color-indigo-500)}.hover\:bg-indigo-700:hover{background-color:var(--color-indigo-700)}.hover\:bg-primary-100:hover{background-color:var(--color-primary-100)}.hover\:bg-purple-700:hover{background-color:var(--color-purple-700)}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\:bg-red-200:hover{background-color:var(--color-red-200)}.hover\:bg-red-500:hover{background-color:var(--color-red-500)}.hover\:bg-red-500\/20:hover{background-color:#fb2c3633}@supports (color:color-mix(in lab, red, red)){.hover\:bg-red-500\/20:hover{background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)}}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\:bg-teal-50:hover{background-color:var(--color-teal-50)}.hover\:bg-teal-100:hover{background-color:var(--color-teal-100)}.hover\:bg-teal-600:hover{background-color:var(--color-teal-600)}.hover\:bg-white:hover{background-color:var(--color-white)}.hover\:bg-white\/5:hover{background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/5:hover{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.hover\:bg-white\/10:hover{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/10:hover{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.hover\:bg-white\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\:bg-white\/30:hover{background-color:#ffffff4d}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/30:hover{background-color:color-mix(in oklab,var(--color-white)30%,transparent)}}.hover\:bg-white\/80:hover{background-color:#fffc}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/80:hover{background-color:color-mix(in oklab,var(--color-white)80%,transparent)}}.hover\:bg-yellow-400:hover{background-color:var(--color-yellow-400)}.hover\:from-amber-500:hover{--tw-gradient-from:var(--color-amber-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:from-emerald-500:hover{--tw-gradient-from:var(--color-emerald-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:from-emerald-600:hover{--tw-gradient-from:var(--color-emerald-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-orange-600:hover{--tw-gradient-to:var(--color-orange-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-teal-600:hover{--tw-gradient-to:var(--color-teal-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-teal-700:hover{--tw-gradient-to:var(--color-teal-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:text-amber-400:hover{color:var(--color-amber-400)}.hover\:text-amber-500:hover{color:var(--color-amber-500)}.hover\:text-amber-600:hover{color:var(--color-amber-600)}.hover\:text-amber-700:hover{color:var(--color-amber-700)}.hover\:text-blue-600:hover{color:var(--color-blue-600)}.hover\:text-blue-700:hover{color:var(--color-blue-700)}.hover\:text-emerald-500:hover{color:var(--color-emerald-500)}.hover\:text-emerald-600:hover{color:var(--color-emerald-600)}.hover\:text-emerald-700:hover{color:var(--color-emerald-700)}.hover\:text-emerald-900:hover{color:var(--color-emerald-900)}.hover\:text-gray-600:hover{color:var(--color-gray-600)}.hover\:text-gray-900:hover{color:var(--color-gray-900)}.hover\:text-indigo-900:hover{color:var(--color-indigo-900)}.hover\:text-primary-600:hover{color:var(--color-primary-600)}.hover\:text-primary-700:hover{color:var(--color-primary-700)}.hover\:text-purple-700:hover{color:var(--color-purple-700)}.hover\:text-red-500:hover{color:var(--color-red-500)}.hover\:text-red-600:hover{color:var(--color-red-600)}.hover\:text-red-700:hover{color:var(--color-red-700)}.hover\:text-red-900:hover{color:var(--color-red-900)}.hover\:text-white:hover{color:var(--color-white)}.hover\:text-yellow-500:hover{color:var(--color-yellow-500)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-80:hover{opacity:.8}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:ring-amber-400:hover{--tw-ring-color:var(--color-amber-400)}.hover\:ring-emerald-400:hover{--tw-ring-color:var(--color-emerald-400)}.hover\:ring-gray-300:hover{--tw-ring-color:var(--color-gray-300)}.hover\:ring-purple-400:hover{--tw-ring-color:var(--color-purple-400)}}.focus\:border-amber-500:focus{border-color:var(--color-amber-500)}.focus\:border-emerald-500:focus{border-color:var(--color-emerald-500)}.focus\:border-indigo-500:focus{border-color:var(--color-indigo-500)}.focus\:border-transparent:focus{border-color:#0000}.focus\:border-white:focus{border-color:var(--color-white)}.focus\:border-yellow-500:focus{border-color:var(--color-yellow-500)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-amber-500:focus{--tw-ring-color:var(--color-amber-500)}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:ring-blue-600:focus{--tw-ring-color:var(--color-blue-600)}.focus\:ring-emerald-500:focus{--tw-ring-color:var(--color-emerald-500)}.focus\:ring-green-500:focus{--tw-ring-color:var(--color-green-500)}.focus\:ring-indigo-500:focus{--tw-ring-color:var(--color-indigo-500)}.focus\:ring-primary-500:focus{--tw-ring-color:var(--color-primary-500)}.focus\:ring-purple-500:focus{--tw-ring-color:var(--color-purple-500)}.focus\:ring-white:focus{--tw-ring-color:var(--color-white)}.focus\:ring-white\/50:focus{--tw-ring-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.focus\:ring-white\/50:focus{--tw-ring-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus\:ring-inset:focus{--tw-ring-inset:inset}.focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-blue-600:focus-visible{outline-color:var(--color-blue-600)}.focus-visible\:outline-white:focus-visible{outline-color:var(--color-white)}.active\:cursor-grabbing:active{cursor:grabbing}.active\:bg-amber-700:active{background-color:var(--color-amber-700)}.active\:bg-gray-200:active{background-color:var(--color-gray-200)}.disabled\:opacity-50:disabled{opacity:.5}@media not all and (min-width:64rem){.max-lg\:row-start-1{grid-row-start:1}.max-lg\:row-start-3{grid-row-start:3}.max-lg\:mx-auto{margin-inline:auto}.max-lg\:max-w-sm{max-width:var(--container-sm)}.max-lg\:max-w-xs{max-width:var(--container-xs)}.max-lg\:justify-center{justify-content:center}.max-lg\:rounded-t-4xl{border-top-left-radius:var(--radius-4xl);border-top-right-radius:var(--radius-4xl)}.max-lg\:rounded-t-\[calc\(2rem\+1px\)\]{border-top-left-radius:calc(2rem + 1px);border-top-right-radius:calc(2rem + 1px)}.max-lg\:rounded-b-4xl{border-bottom-right-radius:var(--radius-4xl);border-bottom-left-radius:var(--radius-4xl)}.max-lg\:rounded-b-\[calc\(2rem\+1px\)\]{border-bottom-right-radius:calc(2rem + 1px);border-bottom-left-radius:calc(2rem + 1px)}.max-lg\:py-6{padding-block:calc(var(--spacing)*6)}.max-lg\:pt-6{padding-top:calc(var(--spacing)*6)}.max-lg\:pb-8{padding-bottom:calc(var(--spacing)*8)}.max-lg\:text-center{text-align:center}}@media not all and (min-width:40rem){.max-sm\:w-40{width:calc(var(--spacing)*40)}.max-sm\:w-120{width:calc(var(--spacing)*120)}}@media (min-width:40rem){.sm\:relative{position:relative}.sm\:inset-y-0{inset-block:calc(var(--spacing)*0)}.sm\:top-auto{top:auto}.sm\:right-0{right:calc(var(--spacing)*0)}.sm\:right-auto{right:auto}.sm\:left-auto{left:auto}.sm\:col-span-2{grid-column:span 2/span 2}.sm\:mt-0{margin-top:calc(var(--spacing)*0)}.sm\:mt-3{margin-top:calc(var(--spacing)*3)}.sm\:mt-4{margin-top:calc(var(--spacing)*4)}.sm\:mt-8{margin-top:calc(var(--spacing)*8)}.sm\:mt-16{margin-top:calc(var(--spacing)*16)}.sm\:mt-20{margin-top:calc(var(--spacing)*20)}.sm\:mr-0{margin-right:calc(var(--spacing)*0)}.sm\:mr-1{margin-right:calc(var(--spacing)*1)}.sm\:mr-2{margin-right:calc(var(--spacing)*2)}.sm\:mb-8{margin-bottom:calc(var(--spacing)*8)}.sm\:ml-0{margin-left:calc(var(--spacing)*0)}.sm\:ml-2{margin-left:calc(var(--spacing)*2)}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:inline{display:inline}.sm\:h-3\.5{height:calc(var(--spacing)*3.5)}.sm\:h-5{height:calc(var(--spacing)*5)}.sm\:h-6{height:calc(var(--spacing)*6)}.sm\:h-8{height:calc(var(--spacing)*8)}.sm\:h-10{height:calc(var(--spacing)*10)}.sm\:h-12{height:calc(var(--spacing)*12)}.sm\:h-20{height:calc(var(--spacing)*20)}.sm\:h-40{height:calc(var(--spacing)*40)}.sm\:h-96{height:var(--spacing-96)}.sm\:h-full{height:100%}.sm\:w-0{width:calc(var(--spacing)*0)}.sm\:w-3\.5{width:calc(var(--spacing)*3.5)}.sm\:w-5{width:calc(var(--spacing)*5)}.sm\:w-6{width:calc(var(--spacing)*6)}.sm\:w-8{width:calc(var(--spacing)*8)}.sm\:w-10{width:calc(var(--spacing)*10)}.sm\:w-12{width:calc(var(--spacing)*12)}.sm\:w-20{width:calc(var(--spacing)*20)}.sm\:w-56{width:calc(var(--spacing)*56)}.sm\:w-\[30\%\]{width:30%}.sm\:w-auto{width:auto}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-md{max-width:var(--container-md)}.sm\:max-w-none{max-width:none}.sm\:max-w-xs{max-width:var(--container-xs)}.sm\:min-w-80{min-width:calc(var(--spacing)*80)}.sm\:flex-auto{flex:auto}.sm\:shrink{flex-shrink:1}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-wrap{flex-wrap:wrap}.sm\:items-center{align-items:center}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:justify-end{justify-content:flex-end}.sm\:justify-start{justify-content:flex-start}.sm\:gap-0{gap:calc(var(--spacing)*0)}.sm\:gap-3{gap:calc(var(--spacing)*3)}.sm\:gap-4{gap:calc(var(--spacing)*4)}.sm\:gap-5{gap:calc(var(--spacing)*5)}.sm\:gap-6{gap:calc(var(--spacing)*6)}.sm\:gap-8{gap:calc(var(--spacing)*8)}:where(.sm\:space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.sm\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}:where(.sm\:space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.sm\:gap-y-6{row-gap:calc(var(--spacing)*6)}.sm\:overflow-visible{overflow:visible}.sm\:rounded-3xl{border-radius:var(--radius-3xl)}.sm\:rounded-xl{border-radius:var(--radius-xl)}.sm\:p-4{padding:calc(var(--spacing)*4)}.sm\:p-5{padding:calc(var(--spacing)*5)}.sm\:p-6{padding:calc(var(--spacing)*6)}.sm\:p-8{padding:calc(var(--spacing)*8)}.sm\:px-4{padding-inline:calc(var(--spacing)*4)}.sm\:px-5{padding-inline:calc(var(--spacing)*5)}.sm\:px-6{padding-inline:calc(var(--spacing)*6)}.sm\:px-10{padding-inline:calc(var(--spacing)*10)}.sm\:px-12{padding-inline:calc(var(--spacing)*12)}.sm\:px-16{padding-inline:calc(var(--spacing)*16)}.sm\:py-3{padding-block:calc(var(--spacing)*3)}.sm\:py-5{padding-block:calc(var(--spacing)*5)}.sm\:py-14{padding-block:calc(var(--spacing)*14)}.sm\:py-24{padding-block:calc(var(--spacing)*24)}.sm\:py-32{padding-block:calc(var(--spacing)*32)}.sm\:pt-0{padding-top:calc(var(--spacing)*0)}.sm\:pt-3{padding-top:calc(var(--spacing)*3)}.sm\:pt-6{padding-top:calc(var(--spacing)*6)}.sm\:pt-10{padding-top:calc(var(--spacing)*10)}.sm\:pt-32{padding-top:calc(var(--spacing)*32)}.sm\:pt-40{padding-top:calc(var(--spacing)*40)}.sm\:pt-52{padding-top:calc(var(--spacing)*52)}.sm\:pt-60{padding-top:calc(var(--spacing)*60)}.sm\:pt-80{padding-top:calc(var(--spacing)*80)}.sm\:pr-20{padding-right:calc(var(--spacing)*20)}.sm\:pb-0{padding-bottom:calc(var(--spacing)*0)}.sm\:pb-6{padding-bottom:calc(var(--spacing)*6)}.sm\:pl-20{padding-left:calc(var(--spacing)*20)}.sm\:text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.sm\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.sm\:text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.sm\:text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.sm\:text-7xl{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.sm\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.sm\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.sm\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.sm\:text-sm\/6{font-size:var(--text-sm);line-height:calc(var(--spacing)*6)}.sm\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.sm\:text-xl\/8{font-size:var(--text-xl);line-height:calc(var(--spacing)*8)}}@media (min-width:48rem){.md\:mt-0{margin-top:calc(var(--spacing)*0)}.md\:ml-10{margin-left:calc(var(--spacing)*10)}.md\:\!hidden{display:none!important}.md\:flex{display:flex}.md\:grid{display:grid}.md\:hidden{display:none}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-baseline{align-items:baseline}.md\:items-center{align-items:center}.md\:items-start{align-items:flex-start}.md\:justify-between{justify-content:space-between}.md\:gap-8{gap:calc(var(--spacing)*8)}:where(.md\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}:where(.md\:space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.md\:overflow-auto{overflow:auto}.md\:p-12{padding:calc(var(--spacing)*12)}.md\:text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}@media (min-width:64rem){.lg\:order-last{order:9999}.lg\:col-span-2{grid-column:span 2/span 2}.lg\:col-span-3{grid-column:span 3/span 3}.lg\:col-start-2{grid-column-start:2}.lg\:col-end-1{grid-column-end:1}.lg\:col-end-2{grid-column-end:2}.lg\:row-span-2{grid-row:span 2/span 2}.lg\:row-start-2{grid-row-start:2}.lg\:mx-0{margin-inline:calc(var(--spacing)*0)}.lg\:prose-xl{font-size:1.25rem;line-height:1.8}.lg\:prose-xl :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em}.lg\:prose-xl :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1em;margin-bottom:1em;font-size:1.2em;line-height:1.5}.lg\:prose-xl :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1.06667em}.lg\:prose-xl :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:.857143em;font-size:2.8em;line-height:1}.lg\:prose-xl :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.55556em;margin-bottom:.888889em;font-size:1.8em;line-height:1.11111}.lg\:prose-xl :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.6em;margin-bottom:.666667em;font-size:1.5em;line-height:1.33333}.lg\:prose-xl :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.8em;margin-bottom:.6em;line-height:1.6}.lg\:prose-xl :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.lg\:prose-xl :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.lg\:prose-xl :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.lg\:prose-xl :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.lg\:prose-xl :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.25em;padding-inline-end:.4em;padding-bottom:.25em;border-radius:.3125rem;padding-inline-start:.4em;font-size:.9em}.lg\:prose-xl :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.lg\:prose-xl :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.861111em}.lg\:prose-xl :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.lg\:prose-xl :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:1.11111em;padding-inline-end:1.33333em;padding-bottom:1.11111em;border-radius:.5rem;margin-top:2em;margin-bottom:2em;padding-inline-start:1.33333em;font-size:.9em;line-height:1.77778}.lg\:prose-xl :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.lg\:prose-xl :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em;padding-inline-start:1.6em}.lg\:prose-xl :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.6em;margin-bottom:.6em}.lg\:prose-xl :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.lg\:prose-xl :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4em}.lg\:prose-xl :where(.lg\:prose-xl>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.8em;margin-bottom:.8em}.lg\:prose-xl :where(.lg\:prose-xl>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em}.lg\:prose-xl :where(.lg\:prose-xl>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.2em}.lg\:prose-xl :where(.lg\:prose-xl>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em}.lg\:prose-xl :where(.lg\:prose-xl>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.2em}.lg\:prose-xl :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.8em;margin-bottom:.8em}.lg\:prose-xl :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em;margin-bottom:1.2em}.lg\:prose-xl :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.2em}.lg\:prose-xl :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.6em;padding-inline-start:1.6em}.lg\:prose-xl :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8em;margin-bottom:2.8em}.lg\:prose-xl :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)),.lg\:prose-xl :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.lg\:prose-xl :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.lg\:prose-xl :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\:prose-xl :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em;line-height:1.55556}.lg\:prose-xl :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.666667em;padding-bottom:.888889em;padding-inline-start:.666667em}.lg\:prose-xl :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.lg\:prose-xl :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.lg\:prose-xl :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.888889em;padding-inline-end:.666667em;padding-bottom:.888889em;padding-inline-start:.666667em}.lg\:prose-xl :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.lg\:prose-xl :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.lg\:prose-xl :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.lg\:prose-xl :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.lg\:prose-xl :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1em;font-size:.9em;line-height:1.55556}.lg\:prose-xl :where(.lg\:prose-xl>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.lg\:prose-xl :where(.lg\:prose-xl>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.lg\:mt-0{margin-top:calc(var(--spacing)*0)}.lg\:ml-24{margin-left:calc(var(--spacing)*24)}.lg\:ml-auto{margin-left:auto}.lg\:block{display:block}.lg\:contents{display:contents}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:w-148{width:calc(var(--spacing)*148)}.lg\:w-auto{width:auto}.lg\:w-full{width:100%}.lg\:max-w-7xl{max-width:var(--container-7xl)}.lg\:max-w-lg{max-width:var(--container-lg)}.lg\:max-w-none{max-width:none}.lg\:max-w-xl{max-width:var(--container-xl)}.lg\:min-w-full{min-width:100%}.lg\:flex-1{flex:1}.lg\:flex-none{flex:none}.lg\:shrink-0{flex-shrink:0}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.lg\:grid-rows-2{grid-template-rows:repeat(2,minmax(0,1fr))}.lg\:flex-col{flex-direction:column}.lg\:flex-row{flex-direction:row}.lg\:items-center{align-items:center}.lg\:items-start{align-items:flex-start}.lg\:justify-between{justify-content:space-between}.lg\:justify-end{justify-content:flex-end}.lg\:gap-10{gap:calc(var(--spacing)*10)}.lg\:gap-x-8{column-gap:calc(var(--spacing)*8)}.lg\:gap-y-8{row-gap:calc(var(--spacing)*8)}.lg\:self-end{align-self:flex-end}.lg\:rounded-l-4xl{border-top-left-radius:var(--radius-4xl);border-bottom-left-radius:var(--radius-4xl)}.lg\:rounded-l-\[calc\(2rem\+1px\)\]{border-top-left-radius:calc(2rem + 1px);border-bottom-left-radius:calc(2rem + 1px)}.lg\:rounded-tl-4xl{border-top-left-radius:var(--radius-4xl)}.lg\:rounded-tl-\[calc\(2rem\+1px\)\]{border-top-left-radius:calc(2rem + 1px)}.lg\:rounded-r-4xl{border-top-right-radius:var(--radius-4xl);border-bottom-right-radius:var(--radius-4xl)}.lg\:rounded-r-\[calc\(2rem\+1px\)\]{border-top-right-radius:calc(2rem + 1px);border-bottom-right-radius:calc(2rem + 1px)}.lg\:rounded-tr-4xl{border-top-right-radius:var(--radius-4xl)}.lg\:rounded-tr-\[calc\(2rem\+1px\)\]{border-top-right-radius:calc(2rem + 1px)}.lg\:rounded-br-4xl{border-bottom-right-radius:var(--radius-4xl)}.lg\:rounded-br-\[calc\(2rem\+1px\)\]{border-bottom-right-radius:calc(2rem + 1px)}.lg\:rounded-bl-4xl{border-bottom-left-radius:var(--radius-4xl)}.lg\:rounded-bl-\[calc\(2rem\+1px\)\]{border-bottom-left-radius:calc(2rem + 1px)}.lg\:object-right{object-position:right}.lg\:px-8{padding-inline:calc(var(--spacing)*8)}.lg\:py-4{padding-block:calc(var(--spacing)*4)}.lg\:py-32{padding-block:calc(var(--spacing)*32)}.lg\:pt-32{padding-top:calc(var(--spacing)*32)}.lg\:pt-36{padding-top:calc(var(--spacing)*36)}.lg\:pb-4{padding-bottom:calc(var(--spacing)*4)}.lg\:pb-8{padding-bottom:calc(var(--spacing)*8)}.lg\:pl-0{padding-left:calc(var(--spacing)*0)}.lg\:text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}}@media (min-width:80rem){.xl\:order-0{order:0}.xl\:col-span-2{grid-column:span 2/span 2}.xl\:mt-0{margin-top:calc(var(--spacing)*0)}.xl\:mr-\[calc\(50\%-12rem\)\]{margin-right:calc(50% - 12rem)}.xl\:ml-0{margin-left:calc(var(--spacing)*0)}.xl\:ml-48{margin-left:calc(var(--spacing)*48)}.xl\:grid{display:grid}.xl\:max-w-2xl{max-width:var(--container-2xl)}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:justify-end{justify-content:flex-end}.xl\:gap-8{gap:calc(var(--spacing)*8)}.xl\:pt-80{padding-top:calc(var(--spacing)*80)}.xl\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}:where(.dark\:divide-gray-600:where(.dark,.dark *)>:not(:last-child)){border-color:var(--color-gray-600)}:where(.dark\:divide-gray-700:where(.dark,.dark *)>:not(:last-child)){border-color:var(--color-gray-700)}.dark\:border-b:where(.dark,.dark *){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.dark\:border-amber-500:where(.dark,.dark *){border-color:var(--color-amber-500)}.dark\:border-amber-800:where(.dark,.dark *){border-color:var(--color-amber-800)}.dark\:border-blue-800:where(.dark,.dark *){border-color:var(--color-blue-800)}.dark\:border-emerald-700:where(.dark,.dark *){border-color:var(--color-emerald-700)}.dark\:border-emerald-800:where(.dark,.dark *){border-color:var(--color-emerald-800)}.dark\:border-gray-600:where(.dark,.dark *){border-color:var(--color-gray-600)}.dark\:border-gray-700:where(.dark,.dark *){border-color:var(--color-gray-700)}.dark\:border-gray-800:where(.dark,.dark *){border-color:var(--color-gray-800)}.dark\:border-green-800:where(.dark,.dark *){border-color:var(--color-green-800)}.dark\:border-purple-700:where(.dark,.dark *){border-color:var(--color-purple-700)}.dark\:border-red-800:where(.dark,.dark *){border-color:var(--color-red-800)}.dark\:bg-amber-900\/20:where(.dark,.dark *){background-color:#7b330633}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-amber-900)20%,transparent)}}.dark\:bg-amber-900\/30:where(.dark,.dark *){background-color:#7b33064d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-amber-900)30%,transparent)}}.dark\:bg-amber-900\/40:where(.dark,.dark *){background-color:#7b330666}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-amber-900)40%,transparent)}}.dark\:bg-amber-900\/50:where(.dark,.dark *){background-color:#7b330680}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-900\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-amber-900)50%,transparent)}}.dark\:bg-black:where(.dark,.dark *){background-color:var(--color-black)}.dark\:bg-blue-900:where(.dark,.dark *){background-color:var(--color-blue-900)}.dark\:bg-blue-900\/20:where(.dark,.dark *){background-color:#1c398e33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-900)20%,transparent)}}.dark\:bg-blue-900\/30:where(.dark,.dark *){background-color:#1c398e4d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\:bg-emerald-900\/20:where(.dark,.dark *){background-color:#004e3b33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-emerald-900)20%,transparent)}}.dark\:bg-emerald-900\/30:where(.dark,.dark *){background-color:#004e3b4d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-emerald-900)30%,transparent)}}.dark\:bg-emerald-900\/40:where(.dark,.dark *){background-color:#004e3b66}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-emerald-900)40%,transparent)}}.dark\:bg-emerald-900\/80:where(.dark,.dark *){background-color:#004e3bcc}@supports (color:color-mix(in lab, red, red)){.dark\:bg-emerald-900\/80:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-emerald-900)80%,transparent)}}.dark\:bg-gray-600:where(.dark,.dark *){background-color:var(--color-gray-600)}.dark\:bg-gray-700:where(.dark,.dark *){background-color:var(--color-gray-700)}.dark\:bg-gray-700\/5:where(.dark,.dark *){background-color:#3641530d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-gray-700\/5:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-700)5%,transparent)}}.dark\:bg-gray-700\/50:where(.dark,.dark *){background-color:#36415380}@supports (color:color-mix(in lab, red, red)){.dark\:bg-gray-700\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-700)50%,transparent)}}.dark\:bg-gray-800:where(.dark,.dark *){background-color:var(--color-gray-800)}.dark\:bg-gray-800\/50:where(.dark,.dark *){background-color:#1e293980}@supports (color:color-mix(in lab, red, red)){.dark\:bg-gray-800\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-800)50%,transparent)}}.dark\:bg-gray-800\/90:where(.dark,.dark *){background-color:#1e2939e6}@supports (color:color-mix(in lab, red, red)){.dark\:bg-gray-800\/90:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-800)90%,transparent)}}.dark\:bg-gray-900:where(.dark,.dark *){background-color:var(--color-gray-900)}.dark\:bg-gray-900\/80:where(.dark,.dark *){background-color:#101828cc}@supports (color:color-mix(in lab, red, red)){.dark\:bg-gray-900\/80:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-900)80%,transparent)}}.dark\:bg-gray-900\/90:where(.dark,.dark *){background-color:#101828e6}@supports (color:color-mix(in lab, red, red)){.dark\:bg-gray-900\/90:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-gray-900)90%,transparent)}}.dark\:bg-green-400:where(.dark,.dark *){background-color:var(--color-green-400)}.dark\:bg-green-600:where(.dark,.dark *){background-color:var(--color-green-600)}.dark\:bg-green-900\/20:where(.dark,.dark *){background-color:#0d542b33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-green-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-green-900)20%,transparent)}}.dark\:bg-green-900\/30:where(.dark,.dark *){background-color:#0d542b4d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-green-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-green-900)30%,transparent)}}.dark\:bg-green-900\/40:where(.dark,.dark *){background-color:#0d542b66}@supports (color:color-mix(in lab, red, red)){.dark\:bg-green-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-green-900)40%,transparent)}}.dark\:bg-green-900\/50:where(.dark,.dark *){background-color:#0d542b80}@supports (color:color-mix(in lab, red, red)){.dark\:bg-green-900\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-green-900)50%,transparent)}}.dark\:bg-indigo-900\/20:where(.dark,.dark *){background-color:#312c8533}@supports (color:color-mix(in lab, red, red)){.dark\:bg-indigo-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-indigo-900)20%,transparent)}}.dark\:bg-indigo-900\/30:where(.dark,.dark *){background-color:#312c854d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-indigo-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-indigo-900)30%,transparent)}}.dark\:bg-indigo-900\/40:where(.dark,.dark *){background-color:#312c8566}@supports (color:color-mix(in lab, red, red)){.dark\:bg-indigo-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-indigo-900)40%,transparent)}}.dark\:bg-indigo-900\/80:where(.dark,.dark *){background-color:#312c85cc}@supports (color:color-mix(in lab, red, red)){.dark\:bg-indigo-900\/80:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-indigo-900)80%,transparent)}}.dark\:bg-primary-500:where(.dark,.dark *){background-color:var(--color-primary-500)}.dark\:bg-primary-900\/30:where(.dark,.dark *){background-color:#0014334d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-primary-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-primary-900)30%,transparent)}}.dark\:bg-purple-600:where(.dark,.dark *){background-color:var(--color-purple-600)}.dark\:bg-purple-800:where(.dark,.dark *){background-color:var(--color-purple-800)}.dark\:bg-purple-900\/30:where(.dark,.dark *){background-color:#59168b4d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-purple-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-purple-900)30%,transparent)}}.dark\:bg-red-900:where(.dark,.dark *){background-color:var(--color-red-900)}.dark\:bg-red-900\/20:where(.dark,.dark *){background-color:#82181a33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-900\/20:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900)20%,transparent)}}.dark\:bg-red-900\/30:where(.dark,.dark *){background-color:#82181a4d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900)30%,transparent)}}.dark\:bg-red-900\/40:where(.dark,.dark *){background-color:#82181a66}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-900\/40:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900)40%,transparent)}}.dark\:bg-red-900\/50:where(.dark,.dark *){background-color:#82181a80}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-900\/50:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-red-900)50%,transparent)}}.dark\:bg-teal-900\/30:where(.dark,.dark *){background-color:#0b4f4a4d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-teal-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-teal-900)30%,transparent)}}.dark\:bg-white:where(.dark,.dark *){background-color:var(--color-white)}.dark\:bg-white\/5:where(.dark,.dark *){background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/5:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.dark\:bg-white\/10:where(.dark,.dark *){background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/10:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\:bg-white\/90:where(.dark,.dark *){background-color:#ffffffe6}@supports (color:color-mix(in lab, red, red)){.dark\:bg-white\/90:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-white)90%,transparent)}}.dark\:bg-yellow-500:where(.dark,.dark *){background-color:var(--color-yellow-500)}.dark\:bg-yellow-900\/30:where(.dark,.dark *){background-color:#733e0a4d}@supports (color:color-mix(in lab, red, red)){.dark\:bg-yellow-900\/30:where(.dark,.dark *){background-color:color-mix(in oklab,var(--color-yellow-900)30%,transparent)}}.dark\:from-amber-600:where(.dark,.dark *){--tw-gradient-from:var(--color-amber-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-amber-600\/20:where(.dark,.dark *){--tw-gradient-from:#dd740033}@supports (color:color-mix(in lab, red, red)){.dark\:from-amber-600\/20:where(.dark,.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-amber-600)20%,transparent)}}.dark\:from-amber-600\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-amber-700:where(.dark,.dark *){--tw-gradient-from:var(--color-amber-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-blue-600:where(.dark,.dark *){--tw-gradient-from:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-blue-600\/20:where(.dark,.dark *){--tw-gradient-from:#155dfc33}@supports (color:color-mix(in lab, red, red)){.dark\:from-blue-600\/20:where(.dark,.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-blue-600)20%,transparent)}}.dark\:from-blue-600\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-blue-700:where(.dark,.dark *){--tw-gradient-from:var(--color-blue-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-blue-900\/30:where(.dark,.dark *){--tw-gradient-from:#1c398e4d}@supports (color:color-mix(in lab, red, red)){.dark\:from-blue-900\/30:where(.dark,.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-blue-900)30%,transparent)}}.dark\:from-blue-900\/30:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-emerald-600\/20:where(.dark,.dark *){--tw-gradient-from:#00976733}@supports (color:color-mix(in lab, red, red)){.dark\:from-emerald-600\/20:where(.dark,.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-emerald-600)20%,transparent)}}.dark\:from-emerald-600\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-emerald-700:where(.dark,.dark *){--tw-gradient-from:var(--color-emerald-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-emerald-900\/30:where(.dark,.dark *){--tw-gradient-from:#004e3b4d}@supports (color:color-mix(in lab, red, red)){.dark\:from-emerald-900\/30:where(.dark,.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-emerald-900)30%,transparent)}}.dark\:from-emerald-900\/30:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-gray-700:where(.dark,.dark *){--tw-gradient-from:var(--color-gray-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-purple-600\/20:where(.dark,.dark *){--tw-gradient-from:#9810fa33}@supports (color:color-mix(in lab, red, red)){.dark\:from-purple-600\/20:where(.dark,.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-purple-600)20%,transparent)}}.dark\:from-purple-600\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-purple-900\/30:where(.dark,.dark *){--tw-gradient-from:#59168b4d}@supports (color:color-mix(in lab, red, red)){.dark\:from-purple-900\/30:where(.dark,.dark *){--tw-gradient-from:color-mix(in oklab,var(--color-purple-900)30%,transparent)}}.dark\:from-purple-900\/30:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-yellow-400:where(.dark,.dark *){--tw-gradient-from:var(--color-yellow-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:from-yellow-500:where(.dark,.dark *){--tw-gradient-from:var(--color-yellow-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-blue-500\/20:where(.dark,.dark *){--tw-gradient-to:#3080ff33}@supports (color:color-mix(in lab, red, red)){.dark\:to-blue-500\/20:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.dark\:to-blue-500\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-blue-800:where(.dark,.dark *){--tw-gradient-to:var(--color-blue-800);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-blue-800\/30:where(.dark,.dark *){--tw-gradient-to:#193cb84d}@supports (color:color-mix(in lab, red, red)){.dark\:to-blue-800\/30:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-blue-800)30%,transparent)}}.dark\:to-blue-800\/30:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-emerald-800\/30:where(.dark,.dark *){--tw-gradient-to:#005f464d}@supports (color:color-mix(in lab, red, red)){.dark\:to-emerald-800\/30:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-emerald-800)30%,transparent)}}.dark\:to-emerald-800\/30:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-emerald-900:where(.dark,.dark *){--tw-gradient-to:var(--color-emerald-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-gray-600:where(.dark,.dark *){--tw-gradient-to:var(--color-gray-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-indigo-500\/20:where(.dark,.dark *){--tw-gradient-to:#625fff33}@supports (color:color-mix(in lab, red, red)){.dark\:to-indigo-500\/20:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-indigo-500)20%,transparent)}}.dark\:to-indigo-500\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-indigo-900\/30:where(.dark,.dark *){--tw-gradient-to:#312c854d}@supports (color:color-mix(in lab, red, red)){.dark\:to-indigo-900\/30:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-indigo-900)30%,transparent)}}.dark\:to-indigo-900\/30:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-orange-500\/20:where(.dark,.dark *){--tw-gradient-to:#fe6e0033}@supports (color:color-mix(in lab, red, red)){.dark\:to-orange-500\/20:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-orange-500)20%,transparent)}}.dark\:to-orange-500\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-orange-600:where(.dark,.dark *){--tw-gradient-to:var(--color-orange-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-orange-800:where(.dark,.dark *){--tw-gradient-to:var(--color-orange-800);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-purple-800\/30:where(.dark,.dark *){--tw-gradient-to:#6e11b04d}@supports (color:color-mix(in lab, red, red)){.dark\:to-purple-800\/30:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-purple-800)30%,transparent)}}.dark\:to-purple-800\/30:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-yellow-500:where(.dark,.dark *){--tw-gradient-to:var(--color-yellow-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-yellow-500\/20:where(.dark,.dark *){--tw-gradient-to:#edb20033}@supports (color:color-mix(in lab, red, red)){.dark\:to-yellow-500\/20:where(.dark,.dark *){--tw-gradient-to:color-mix(in oklab,var(--color-yellow-500)20%,transparent)}}.dark\:to-yellow-500\/20:where(.dark,.dark *){--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:to-yellow-600:where(.dark,.dark *){--tw-gradient-to:var(--color-yellow-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.dark\:fill-gray-800:where(.dark,.dark *){fill:var(--color-gray-800)}.dark\:stroke-white\/10:where(.dark,.dark *){stroke:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:stroke-white\/10:where(.dark,.dark *){stroke:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\:text-amber-100:where(.dark,.dark *){color:var(--color-amber-100)}.dark\:text-amber-200:where(.dark,.dark *){color:var(--color-amber-200)}.dark\:text-amber-300:where(.dark,.dark *){color:var(--color-amber-300)}.dark\:text-amber-400:where(.dark,.dark *){color:var(--color-amber-400)}.dark\:text-blue-300:where(.dark,.dark *){color:var(--color-blue-300)}.dark\:text-blue-400:where(.dark,.dark *){color:var(--color-blue-400)}.dark\:text-blue-500:where(.dark,.dark *){color:var(--color-blue-500)}.dark\:text-emerald-100:where(.dark,.dark *){color:var(--color-emerald-100)}.dark\:text-emerald-200:where(.dark,.dark *){color:var(--color-emerald-200)}.dark\:text-emerald-300:where(.dark,.dark *){color:var(--color-emerald-300)}.dark\:text-emerald-400:where(.dark,.dark *){color:var(--color-emerald-400)}.dark\:text-gray-100:where(.dark,.dark *){color:var(--color-gray-100)}.dark\:text-gray-200:where(.dark,.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:where(.dark,.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\:text-gray-500:where(.dark,.dark *){color:var(--color-gray-500)}.dark\:text-gray-600:where(.dark,.dark *){color:var(--color-gray-600)}.dark\:text-gray-900:where(.dark,.dark *){color:var(--color-gray-900)}.dark\:text-green-200:where(.dark,.dark *){color:var(--color-green-200)}.dark\:text-green-300:where(.dark,.dark *){color:var(--color-green-300)}.dark\:text-green-400:where(.dark,.dark *){color:var(--color-green-400)}.dark\:text-indigo-100:where(.dark,.dark *){color:var(--color-indigo-100)}.dark\:text-indigo-200:where(.dark,.dark *){color:var(--color-indigo-200)}.dark\:text-indigo-300:where(.dark,.dark *){color:var(--color-indigo-300)}.dark\:text-indigo-400:where(.dark,.dark *){color:var(--color-indigo-400)}.dark\:text-primary-400:where(.dark,.dark *){color:var(--color-primary-400)}.dark\:text-purple-100:where(.dark,.dark *){color:var(--color-purple-100)}.dark\:text-purple-300:where(.dark,.dark *){color:var(--color-purple-300)}.dark\:text-purple-400:where(.dark,.dark *){color:var(--color-purple-400)}.dark\:text-purple-500:where(.dark,.dark *){color:var(--color-purple-500)}.dark\:text-red-100:where(.dark,.dark *){color:var(--color-red-100)}.dark\:text-red-200:where(.dark,.dark *){color:var(--color-red-200)}.dark\:text-red-300:where(.dark,.dark *){color:var(--color-red-300)}.dark\:text-red-400:where(.dark,.dark *){color:var(--color-red-400)}.dark\:text-teal-300:where(.dark,.dark *){color:var(--color-teal-300)}.dark\:text-teal-400:where(.dark,.dark *){color:var(--color-teal-400)}.dark\:text-white:where(.dark,.dark *){color:var(--color-white)}.dark\:text-yellow-300:where(.dark,.dark *){color:var(--color-yellow-300)}.dark\:text-yellow-400:where(.dark,.dark *){color:var(--color-yellow-400)}.dark\:text-yellow-500:where(.dark,.dark *){color:var(--color-yellow-500)}.dark\:shadow-none:where(.dark,.dark *){--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.dark\:ring-gray-600:where(.dark,.dark *){--tw-ring-color:var(--color-gray-600)}.dark\:ring-gray-700:where(.dark,.dark *){--tw-ring-color:var(--color-gray-700)}.dark\:ring-gray-800:where(.dark,.dark *){--tw-ring-color:var(--color-gray-800)}.dark\:ring-white\/10:where(.dark,.dark *){--tw-ring-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:ring-white\/10:where(.dark,.dark *){--tw-ring-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\:outline:where(.dark,.dark *){outline-style:var(--tw-outline-style);outline-width:1px}.dark\:outline-white\/10:where(.dark,.dark *){outline-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.dark\:outline-white\/10:where(.dark,.dark *){outline-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.dark\:outline-white\/15:where(.dark,.dark *){outline-color:#ffffff26}@supports (color:color-mix(in lab, red, red)){.dark\:outline-white\/15:where(.dark,.dark *){outline-color:color-mix(in oklab,var(--color-white)15%,transparent)}}.dark\:outline-white\/20:where(.dark,.dark *){outline-color:#fff3}@supports (color:color-mix(in lab, red, red)){.dark\:outline-white\/20:where(.dark,.dark *){outline-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.dark\:prose-invert:where(.dark,.dark *){--tw-prose-body:var(--tw-prose-invert-body);--tw-prose-headings:var(--tw-prose-invert-headings);--tw-prose-lead:var(--tw-prose-invert-lead);--tw-prose-links:var(--tw-prose-invert-links);--tw-prose-bold:var(--tw-prose-invert-bold);--tw-prose-counters:var(--tw-prose-invert-counters);--tw-prose-bullets:var(--tw-prose-invert-bullets);--tw-prose-hr:var(--tw-prose-invert-hr);--tw-prose-quotes:var(--tw-prose-invert-quotes);--tw-prose-quote-borders:var(--tw-prose-invert-quote-borders);--tw-prose-captions:var(--tw-prose-invert-captions);--tw-prose-kbd:var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows:var(--tw-prose-invert-kbd-shadows);--tw-prose-code:var(--tw-prose-invert-code);--tw-prose-pre-code:var(--tw-prose-invert-pre-code);--tw-prose-pre-bg:var(--tw-prose-invert-pre-bg);--tw-prose-th-borders:var(--tw-prose-invert-th-borders);--tw-prose-td-borders:var(--tw-prose-invert-td-borders)}@media (hover:hover){.dark\:group-hover\:bg-gray-700:where(.dark,.dark *):is(:where(.group):hover *){background-color:var(--color-gray-700)}.dark\:group-hover\:text-amber-400:where(.dark,.dark *):is(:where(.group):hover *){color:var(--color-amber-400)}.dark\:group-hover\:text-emerald-400:where(.dark,.dark *):is(:where(.group):hover *){color:var(--color-emerald-400)}.dark\:group-hover\:text-purple-400:where(.dark,.dark *):is(:where(.group):hover *){color:var(--color-purple-400)}.dark\:group-hover\:text-teal-400:where(.dark,.dark *):is(:where(.group):hover *){color:var(--color-teal-400)}.dark\:group-hover\:text-yellow-400:where(.dark,.dark *):is(:where(.group):hover *){color:var(--color-yellow-400)}}.peer-checked\:dark\:bg-blue-500:is(:where(.peer):checked~*):where(.dark,.dark *){background-color:var(--color-blue-500)}.peer-checked\:dark\:bg-purple-500:is(:where(.peer):checked~*):where(.dark,.dark *){background-color:var(--color-purple-500)}.peer-checked\:dark\:bg-yellow-500:is(:where(.peer):checked~*):where(.dark,.dark *){background-color:var(--color-yellow-500)}.peer-checked\:dark\:text-gray-900:is(:where(.peer):checked~*):where(.dark,.dark *){color:var(--color-gray-900)}.dark\:placeholder\:text-gray-500:where(.dark,.dark *)::placeholder{color:var(--color-gray-500)}@media (hover:hover){.dark\:hover\:border-amber-400:where(.dark,.dark *):hover{border-color:var(--color-amber-400)}.dark\:hover\:border-teal-800:where(.dark,.dark *):hover{border-color:var(--color-teal-800)}.dark\:hover\:bg-amber-900\/20:where(.dark,.dark *):hover{background-color:#7b330633}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-amber-900\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-amber-900)20%,transparent)}}.dark\:hover\:bg-blue-900\/20:where(.dark,.dark *):hover{background-color:#1c398e33}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-blue-900\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-blue-900)20%,transparent)}}.dark\:hover\:bg-emerald-900\/20:where(.dark,.dark *):hover{background-color:#004e3b33}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-emerald-900\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-emerald-900)20%,transparent)}}.dark\:hover\:bg-emerald-900\/30:where(.dark,.dark *):hover{background-color:#004e3b4d}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-emerald-900\/30:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-emerald-900)30%,transparent)}}.dark\:hover\:bg-emerald-900\/50:where(.dark,.dark *):hover{background-color:#004e3b80}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-emerald-900\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-emerald-900)50%,transparent)}}.dark\:hover\:bg-gray-600:where(.dark,.dark *):hover{background-color:var(--color-gray-600)}.dark\:hover\:bg-gray-700:where(.dark,.dark *):hover{background-color:var(--color-gray-700)}.dark\:hover\:bg-gray-700\/40:where(.dark,.dark *):hover{background-color:#36415366}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-gray-700\/40:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-gray-700)40%,transparent)}}.dark\:hover\:bg-gray-800:where(.dark,.dark *):hover{background-color:var(--color-gray-800)}.dark\:hover\:bg-gray-900:where(.dark,.dark *):hover{background-color:var(--color-gray-900)}.dark\:hover\:bg-primary-900\/30:where(.dark,.dark *):hover{background-color:#0014334d}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-primary-900\/30:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-primary-900)30%,transparent)}}.dark\:hover\:bg-red-800:where(.dark,.dark *):hover{background-color:var(--color-red-800)}.dark\:hover\:bg-red-900\/20:where(.dark,.dark *):hover{background-color:#82181a33}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-red-900\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-red-900)20%,transparent)}}.dark\:hover\:bg-red-900\/30:where(.dark,.dark *):hover{background-color:#82181a4d}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-red-900\/30:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-red-900)30%,transparent)}}.dark\:hover\:bg-red-900\/50:where(.dark,.dark *):hover{background-color:#82181a80}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-red-900\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-red-900)50%,transparent)}}.dark\:hover\:bg-teal-900\/20:where(.dark,.dark *):hover{background-color:#0b4f4a33}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-teal-900\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-teal-900)20%,transparent)}}.dark\:hover\:bg-teal-900\/50:where(.dark,.dark *):hover{background-color:#0b4f4a80}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-teal-900\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-teal-900)50%,transparent)}}.dark\:hover\:bg-white\/5:where(.dark,.dark *):hover{background-color:#ffffff0d}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-white\/5:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-white)5%,transparent)}}.dark\:hover\:bg-yellow-400:where(.dark,.dark *):hover{background-color:var(--color-yellow-400)}.dark\:hover\:bg-yellow-500\/20:where(.dark,.dark *):hover{background-color:#edb20033}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-yellow-500\/20:where(.dark,.dark *):hover{background-color:color-mix(in oklab,var(--color-yellow-500)20%,transparent)}}.dark\:hover\:bg-yellow-600:where(.dark,.dark *):hover{background-color:var(--color-yellow-600)}.dark\:hover\:text-amber-300:where(.dark,.dark *):hover{color:var(--color-amber-300)}.dark\:hover\:text-amber-400:where(.dark,.dark *):hover{color:var(--color-amber-400)}.dark\:hover\:text-emerald-300:where(.dark,.dark *):hover{color:var(--color-emerald-300)}.dark\:hover\:text-emerald-400:where(.dark,.dark *):hover{color:var(--color-emerald-400)}.dark\:hover\:text-emerald-700:where(.dark,.dark *):hover{color:var(--color-emerald-700)}.dark\:hover\:text-gray-200:where(.dark,.dark *):hover{color:var(--color-gray-200)}.dark\:hover\:text-gray-300:where(.dark,.dark *):hover{color:var(--color-gray-300)}.dark\:hover\:text-indigo-300:where(.dark,.dark *):hover{color:var(--color-indigo-300)}.dark\:hover\:text-primary-300:where(.dark,.dark *):hover{color:var(--color-primary-300)}.dark\:hover\:text-primary-400:where(.dark,.dark *):hover{color:var(--color-primary-400)}.dark\:hover\:text-purple-300:where(.dark,.dark *):hover{color:var(--color-purple-300)}.dark\:hover\:text-red-300:where(.dark,.dark *):hover{color:var(--color-red-300)}.dark\:hover\:text-red-400:where(.dark,.dark *):hover{color:var(--color-red-400)}.dark\:hover\:text-white:where(.dark,.dark *):hover{color:var(--color-white)}.dark\:hover\:text-yellow-400:where(.dark,.dark *):hover{color:var(--color-yellow-400)}.dark\:hover\:text-yellow-500:where(.dark,.dark *):hover{color:var(--color-yellow-500)}.dark\:hover\:ring-gray-600:where(.dark,.dark *):hover{--tw-ring-color:var(--color-gray-600)}}.dark\:focus\:ring-yellow-500:where(.dark,.dark *):focus{--tw-ring-color:var(--color-yellow-500)}.dark\:focus-visible\:outline-yellow-500:where(.dark,.dark *):focus-visible{outline-color:var(--color-yellow-500)}.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar{display:none}.text-balance{text-wrap:balance}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.scrollbar-hide::-webkit-scrollbar{display:none}.glass{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background-color:#ffffff1a;border:1px solid #fff3}.glass-dark{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background-color:#0000001a;border:1px solid #0003}.dark .glass-dark{background-color:#ffffff0d;border-color:#ffffff1a}.border-gradient{border-image:linear-gradient(to right,var(--color-primary-700),var(--color-gold))1}.text-shadow{text-shadow:2px 2px 4px #0000001a}.text-shadow-lg{text-shadow:4px 4px 8px #0003}.dark .text-shadow-dark{filter:drop-shadow(0 2px 4px #ffffff1a)}.animate-gradient{background-size:200% 200%;animation:3s infinite gradient}@keyframes gradient{0%,to{background-position:0%}50%{background-position:100%}}.animate-fade-in{animation:.2s ease-out forwards fadeIn}.theme-transition{transition:color .3s,background-color .3s}.drop-indicator{border-top:2px solid var(--color-amber-500);margin-top:-2px}}.story-open [data-pwa-install-target]{display:none!important}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-pan-x{syntax:"*";inherits:false}@property --tw-pan-y{syntax:"*";inherits:false}@property --tw-pinch-zoom{syntax:"*";inherits:false}@property --tw-scroll-snap-strictness{syntax:"*";inherits:false;initial-value:proximity}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-text-shadow-color{syntax:"*";inherits:false}@property --tw-text-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideIn{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes wiggle{0%,to{transform:rotate(-3deg)}50%{transform:rotate(3deg)}} \ No newline at end of file diff --git a/app/avo/resources/audio_tour.rb b/app/avo/resources/audio_tour.rb new file mode 100644 index 00000000..9f01b30d --- /dev/null +++ b/app/avo/resources/audio_tour.rb @@ -0,0 +1,21 @@ +class Avo::Resources::AudioTour < Avo::BaseResource + self.icon = "tabler/outline/headphones" + self.title = :display_title + self.includes = [ :location ] + self.find_record_method = -> { id.is_a?(Array) ? query.where(uuid: id) : query.find_by!(uuid: id) } + self.search = { + query: -> { query.joins(:location).where("locations.name ILIKE :q", q: "%#{params[:q]}%") } + } + + def fields + field :location, as: :belongs_to, name: I18n.t("admin.audio_tours.place"), searchable: false + field :locale, as: :select, name: I18n.t("admin.audio_tours.language"), + options: -> { ::AudioTour::SUPPORTED_LOCALES.to_h { |code, name| [ name, code.to_s ] } } + field :audio_file, as: :file, name: I18n.t("admin.audio_tours.audio"), accept: "audio/*" + field :script, as: :textarea, name: I18n.t("admin.audio_tours.script"), rows: 16, hide_on: :index + field :duration, as: :text, hide_on: :index + field :voice_id, as: :text, hide_on: :index + field :tts_provider, as: :text, hide_on: :index + field :word_count, as: :number, readonly: true, hide_on: :forms + end +end diff --git a/app/controllers/avo/audio_tours_controller.rb b/app/controllers/avo/audio_tours_controller.rb new file mode 100644 index 00000000..b77e8c5d --- /dev/null +++ b/app/controllers/avo/audio_tours_controller.rb @@ -0,0 +1,3 @@ +class Avo::AudioToursController < Avo::ResourcesController + include AdminResource +end diff --git a/app/controllers/curator/admin/content_changes_controller.rb b/app/controllers/curator/admin/content_changes_controller.rb deleted file mode 100644 index fd4da21f..00000000 --- a/app/controllers/curator/admin/content_changes_controller.rb +++ /dev/null @@ -1,72 +0,0 @@ -# frozen_string_literal: true - -module Curator - module Admin - # Content changes approval controller for admin users. - # Allows admins to approve or reject content change proposals from curators. - class ContentChangesController < BaseController - before_action :set_content_change, only: [ :show, :approve, :reject ] - - def index - @content_changes = ContentChange.includes(:user, :changeable, :reviewed_by).order(created_at: :desc) - @content_changes = @content_changes.where(status: params[:status]) if params[:status].present? - @content_changes = @content_changes.where(change_type: params[:type]) if params[:type].present? - @content_changes = filter_by_content_type(@content_changes) if params[:content_type].present? - - @stats = { - pending: ContentChange.pending.count, - approved: ContentChange.approved.count, - rejected: ContentChange.rejected.count - } - end - - def show - end - - def approve - if @content_change.pending? - if @content_change.approve!(current_user, notes: params[:admin_notes]) - record_activity(:approve_content_change, recordable: @content_change) - redirect_to curator_admin_content_changes_path, - notice: t("curator.admin.content_changes.approved") - else - redirect_to curator_admin_content_change_path(@content_change), - alert: [ t("curator.admin.content_changes.approval_failed"), - @content_change.errors.full_messages.to_sentence.presence ].compact.join(" ") - end - else - redirect_to curator_admin_content_changes_path, - alert: t("curator.admin.content_changes.already_reviewed") - end - end - - def reject - if @content_change.pending? - if @content_change.reject!(current_user, notes: params[:admin_notes]) - record_activity(:reject_content_change, recordable: @content_change) - redirect_to curator_admin_content_changes_path, - notice: t("curator.admin.content_changes.rejected") - else - redirect_to curator_admin_content_change_path(@content_change), - alert: t("curator.admin.content_changes.rejection_failed") - end - else - redirect_to curator_admin_content_changes_path, - alert: t("curator.admin.content_changes.already_reviewed") - end - end - - private - - def set_content_change - @content_change = ContentChange.find(params[:id]) - end - - def filter_by_content_type(scope) - content_type = params[:content_type] - scope.where(changeable_type: content_type) - .or(scope.where(changeable_class: content_type)) - end - end - end -end diff --git a/app/controllers/curator/audio_tours_controller.rb b/app/controllers/curator/audio_tours_controller.rb deleted file mode 100644 index b135b67b..00000000 --- a/app/controllers/curator/audio_tours_controller.rb +++ /dev/null @@ -1,128 +0,0 @@ -module Curator - class AudioToursController < BaseController - before_action :set_audio_tour, only: [ :show, :edit, :update, :destroy ] - before_action :load_form_options, only: [ :new, :create, :edit, :update ] - - def index - @audio_tours = AudioTour.includes(:location).order(created_at: :desc) - @audio_tours = @audio_tours.by_locale(params[:locale]) if params[:locale].present? - - if params[:location_id].present? - @audio_tours = @audio_tours.where(location_id: params[:location_id]) - end - - if params[:search].present? - @audio_tours = @audio_tours.joins(:location).where("locations.name ILIKE ?", "%#{params[:search]}%") - end - - @audio_tours = @audio_tours.page(params[:page]).per(20) - - @stats = { - total: AudioTour.count, - with_audio: AudioTour.with_audio.count, - by_locale: AudioTour.group(:locale).count, - locations_with_tours: AudioTour.distinct.count(:location_id), - locations_total: Location.count - } - - # Show pending proposals for this curator - @pending_proposals = current_user.content_changes - .where(changeable_type: "AudioTour") - .or(current_user.content_changes.where(changeable_class: "AudioTour")) - .pending - .order(created_at: :desc) - end - - def show - @pending_proposal = pending_proposal_for(@audio_tour) - end - - def new - @audio_tour = AudioTour.new - @audio_tour.location_id = params[:location_id] if params[:location_id].present? - end - - def create - # Instead of creating directly, create a proposal for admin review - # Note: Audio file attachments cannot be included in proposals - proposal = current_user.content_changes.build( - change_type: :create_content, - changeable_class: "AudioTour", - proposed_data: proposal_data_from_params - ) - - if proposal.save - location = Location.find_by(id: proposal_data_from_params["location_id"]) - record_activity("proposal_created", recordable: proposal, metadata: { type: "AudioTour", location_name: location&.name }) - redirect_to curator_audio_tours_path, notice: t("curator.proposals.submitted_for_review"), status: :see_other - else - @audio_tour = AudioTour.new(audio_tour_params) - flash.now[:alert] = t("curator.proposals.failed_to_submit") - render :new, status: :unprocessable_entity - end - end - - def edit - @pending_proposal = pending_proposal_for(@audio_tour) - end - - def update - # Use find_or_create to ensure only one pending proposal per resource - # Note: Audio file changes cannot be included in proposals - proposal = ContentChange.find_or_create_for_update( - changeable: @audio_tour, - user: current_user, - original_data: @audio_tour.attributes.slice(*editable_attributes), - proposed_data: proposal_data_from_params - ) - - if proposal.persisted? - action = proposal.contributions.exists?(user: current_user) ? "proposal_contributed" : "proposal_updated" - record_activity(action, recordable: @audio_tour, metadata: { type: "AudioTour", location_name: @audio_tour.location&.name }) - redirect_to curator_audio_tour_path(@audio_tour), notice: t("curator.proposals.submitted_for_review"), status: :see_other - else - flash.now[:alert] = t("curator.proposals.failed_to_submit") - render :edit, status: :unprocessable_entity - end - end - - def destroy - # Use find_or_create to ensure only one pending proposal per resource - proposal = ContentChange.find_or_create_for_delete( - changeable: @audio_tour, - user: current_user, - original_data: @audio_tour.attributes.slice(*editable_attributes) - ) - - if proposal.persisted? - record_activity("proposal_deleted", recordable: @audio_tour, metadata: { type: "AudioTour", location_name: @audio_tour.location&.name }) - redirect_to curator_audio_tours_path, notice: t("curator.proposals.delete_submitted_for_review"), status: :see_other - else - redirect_to curator_audio_tours_path, alert: t("curator.proposals.failed_to_submit"), status: :see_other - end - end - - private - - def set_audio_tour - @audio_tour = AudioTour.find_by_public_id!(params[:id]) - end - - def editable_attributes - %w[location_id locale script word_count duration] - end - - def proposal_data_from_params - audio_tour_params.to_h - end - - def audio_tour_params - params.require(:audio_tour).permit(:location_id, :locale, :script, :word_count, :duration) - end - - def load_form_options - @locations = Location.order(:name) - @locales = AudioTour.locale_options - end - end -end diff --git a/app/controllers/curator/base_controller.rb b/app/controllers/curator/base_controller.rb index fa2a5439..efe2a941 100644 --- a/app/controllers/curator/base_controller.rb +++ b/app/controllers/curator/base_controller.rb @@ -37,16 +37,5 @@ def record_activity(action, recordable: nil, metadata: {}) current_user.increment_activity_count! current_user.check_spam_activity! end - - # Find pending proposal for a resource (for display on show/edit pages) - def pending_proposal_for(resource) - return nil unless resource.present? - - ContentChange.pending.find_by( - changeable_type: resource.class.name, - changeable_id: resource.id - ) - end - helper_method :pending_proposal_for end end diff --git a/app/controllers/curator/dashboard_controller.rb b/app/controllers/curator/dashboard_controller.rb index cf3f2144..723127ad 100644 --- a/app/controllers/curator/dashboard_controller.rb +++ b/app/controllers/curator/dashboard_controller.rb @@ -30,9 +30,6 @@ def index @recent_activities = CuratorActivity.includes(:user, :recordable) .recent .limit(10) - - # Pending proposals count for the badge - @pending_proposals_count = ContentChange.pending.count end private diff --git a/app/controllers/curator/experiences_controller.rb b/app/controllers/curator/experiences_controller.rb deleted file mode 100644 index ab65ddef..00000000 --- a/app/controllers/curator/experiences_controller.rb +++ /dev/null @@ -1,141 +0,0 @@ -# frozen_string_literal: true - -module Curator - class ExperiencesController < BaseController - before_action :set_experience, only: [ :show, :edit, :update, :destroy ] - before_action :load_form_options, only: [ :new, :create, :edit, :update ] - - def index - @experiences = Experience.includes(:experience_category, :locations).order(created_at: :desc) - @experiences = @experiences.by_city_name(params[:city_name]) if params[:city_name].present? - @experiences = @experiences.by_category(params[:category_id]) if params[:category_id].present? - @experiences = @experiences.where("experiences.title ILIKE ?", "%#{params[:search]}%") if params[:search].present? - - page = params[:items_page] || params[:page] || 1 - @experiences = @experiences.page(page).per(3) - - if params[:partial] == "items" && request.xhr? - return render partial: "curator/experiences/experience_items", locals: { experiences: @experiences }, layout: false - end - - @city_names = Location.joins(:experiences).where.not(city: [ nil, "" ]).distinct.pluck(:city).sort - @experience_categories = ExperienceCategory.all - - # Show pending proposals for this curator - @pending_proposals = current_user.content_changes - .where(changeable_type: "Experience") - .or(current_user.content_changes.where(changeable_class: "Experience")) - .pending - .order(created_at: :desc) - end - - def show - @pending_proposal = pending_proposal_for(@experience) - end - - def new - @experience = Experience.new - end - - def create - # Instead of creating directly, create a proposal for admin review - proposal = current_user.content_changes.build( - change_type: :create_content, - changeable_class: "Experience", - proposed_data: proposal_data_from_params - ) - - if proposal.save - record_activity("proposal_created", recordable: proposal, metadata: { type: "Experience", title: proposal_data_from_params["title"] }) - redirect_to curator_experiences_path, notice: t("curator.proposals.submitted_for_review"), status: :see_other - else - @experience = Experience.new(experience_params) - flash.now[:alert] = t("curator.proposals.failed_to_submit") - render :new, status: :unprocessable_entity - end - end - - def edit - @pending_proposal = pending_proposal_for(@experience) - end - - def update - # Use find_or_create to ensure only one pending proposal per resource - proposal = ContentChange.find_or_create_for_update( - changeable: @experience, - user: current_user, - original_data: build_original_data, - proposed_data: proposal_data_from_params - ) - - if proposal.persisted? - action = proposal.contributions.exists?(user: current_user) ? "proposal_contributed" : "proposal_updated" - record_activity(action, recordable: @experience, metadata: { type: "Experience", title: @experience.title }) - redirect_to curator_experience_path(@experience), notice: t("curator.proposals.submitted_for_review"), status: :see_other - else - flash.now[:alert] = t("curator.proposals.failed_to_submit") - render :edit, status: :unprocessable_entity - end - end - - def destroy - # Use find_or_create to ensure only one pending proposal per resource - proposal = ContentChange.find_or_create_for_delete( - changeable: @experience, - user: current_user, - original_data: build_original_data - ) - - if proposal.persisted? - record_activity("proposal_deleted", recordable: @experience, metadata: { type: "Experience", title: @experience.title }) - redirect_to curator_experiences_path, notice: t("curator.proposals.delete_submitted_for_review"), status: :see_other - else - redirect_to curator_experiences_path, alert: t("curator.proposals.failed_to_submit"), status: :see_other - end - end - - private - - def set_experience - @experience = Experience.find_by_public_id!(params[:id]) - end - - def editable_attributes - %w[title description experience_category_id estimated_duration contact_name contact_email contact_phone contact_website seasons] - end - - def build_original_data - data = @experience.attributes.slice(*editable_attributes) - # Include association data that isn't in attributes - data["location_uuids"] = @experience.location_uuids - data - end - - def proposal_data_from_params - data = experience_params.to_h - - # Include location UUIDs for association - if params[:experience][:location_uuids].present? - data["location_uuids"] = params[:experience][:location_uuids].reject(&:blank?) - end - - # Note: Cover photo is not included in proposals - # It would need to be added after approval - - data - end - - def experience_params - params.require(:experience).permit( - :title, :description, :experience_category_id, :estimated_duration, - :contact_name, :contact_email, :contact_phone, :contact_website, - seasons: [] - ) - end - - def load_form_options - @experience_categories = ExperienceCategory.all - @locations = Location.order(:name) - end - end -end diff --git a/app/controllers/curator/locations_controller.rb b/app/controllers/curator/locations_controller.rb deleted file mode 100644 index 0cafe905..00000000 --- a/app/controllers/curator/locations_controller.rb +++ /dev/null @@ -1,236 +0,0 @@ -# frozen_string_literal: true - -module Curator - class LocationsController < BaseController - before_action :set_location, only: [ :show, :edit, :update, :destroy, :archive, :restore ] - before_action :load_form_options, only: [ :new, :create, :edit, :update ] - - def index - # A retired place nobody can list is a place nobody can bring back, so the - # curator sees live ones by default and retired ones on request. - @locations = params[:archived] == "1" ? Location.archived : Location.not_archived - @locations = @locations.order(created_at: :desc) - @locations = @locations.by_city(params[:city_name]) if params[:city_name].present? - @locations = @locations.by_category(params[:category]) if params[:category].present? - @locations = @locations.where("locations.name ILIKE ?", "%#{params[:search]}%") if params[:search].present? - - page = params[:items_page] || params[:page] || 1 - @locations = @locations.page(page).per(3) - - if params[:partial] == "items" && request.xhr? - return render partial: "curator/locations/location_items", locals: { locations: @locations }, layout: false - end - - @city_names = Location.where.not(city: [ nil, "" ]).distinct.pluck(:city).sort - @location_categories = LocationCategory.active.ordered - - # Show pending proposals for this curator - @pending_proposals = current_user.content_changes - .where(changeable_type: "Location") - .or(current_user.content_changes.where(changeable_class: "Location")) - .pending - .order(created_at: :desc) - end - - def needs_photos - # Get locations sorted by photo count (ascending) - @locations = Location - .left_joins(:photos_attachments) - .group("locations.id") - .select("locations.*, COUNT(active_storage_attachments.id) AS photos_count") - .order("photos_count ASC, locations.name ASC") - - # Filter by city if provided - @locations = @locations.where(city: params[:city]) if params[:city].present? - - # Filter by max photos count - if params[:max_photos].present? - @locations = @locations.having("COUNT(active_storage_attachments.id) <= ?", params[:max_photos].to_i) - end - - page = params[:items_page] || params[:page] || 1 - @locations = @locations.page(page).per(12) - - # Handle partial loading for load-more - if params[:partial] == "items" && request.xhr? - return render partial: "curator/locations/needs_photo_items", locals: { locations: @locations }, layout: false - end - - @city_names = Location.where.not(city: [ nil, "" ]).distinct.pluck(:city).sort - end - - def show - @pending_proposal = pending_proposal_for(@location) - end - - def new - @location = Location.new - end - - def create - # Instead of creating directly, create a proposal for admin review - proposal = current_user.content_changes.build( - change_type: :create_content, - changeable_class: "Location", - proposed_data: proposal_data_from_params - ) - - if proposal.save - record_activity("proposal_created", recordable: proposal, metadata: { type: "Location", name: proposal_data_from_params["name"] }) - redirect_to curator_locations_path, notice: t("curator.proposals.submitted_for_review"), status: :see_other - else - @location = Location.new(location_params) - flash.now[:alert] = t("curator.proposals.failed_to_submit") - render :new, status: :unprocessable_entity - end - end - - def edit - @pending_proposal = pending_proposal_for(@location) - end - - def update - Rails.logger.info "[Curator::Locations] Update called for location #{@location.id} by user #{current_user.id}" - Rails.logger.info "[Curator::Locations] Params: #{params.inspect}" - Rails.logger.info "[Curator::Locations] Proposal data: #{proposal_data_from_params.inspect}" - - # Use find_or_create to ensure only one pending proposal per resource - # This allows multiple curators to contribute to the same proposal - proposal = ContentChange.find_or_create_for_update( - changeable: @location, - user: current_user, - original_data: build_original_data, - proposed_data: proposal_data_from_params - ) - - Rails.logger.info "[Curator::Locations] Proposal created: persisted=#{proposal.persisted?}, errors=#{proposal.errors.full_messages}" - - if proposal.persisted? - action = proposal.contributions.exists?(user: current_user) ? "proposal_contributed" : "proposal_updated" - record_activity(action, recordable: @location, metadata: { type: "Location", name: @location.name }) - redirect_to curator_location_path(@location), notice: t("curator.proposals.submitted_for_review"), status: :see_other - else - error_message = proposal.errors.full_messages.any? ? proposal.errors.full_messages.join(", ") : t("curator.proposals.failed_to_submit") - flash.now[:alert] = error_message - render :edit, status: :unprocessable_entity - end - rescue ActiveRecord::RecordInvalid => e - flash.now[:alert] = e.record.errors.full_messages.join(", ") - render :edit, status: :unprocessable_entity - end - - def destroy - # Use find_or_create to ensure only one pending proposal per resource - proposal = ContentChange.find_or_create_for_delete( - changeable: @location, - user: current_user, - original_data: build_original_data - ) - - if proposal.persisted? - record_activity("proposal_deleted", recordable: @location, metadata: { type: "Location", name: @location.name }) - redirect_to curator_locations_path, notice: t("curator.proposals.delete_submitted_for_review"), status: :see_other - else - redirect_to curator_locations_path, alert: t("curator.proposals.failed_to_submit"), status: :see_other - end - end - - # Retiring is reversible, so it lands directly instead of going through the - # proposal flow — that flow guards against irreversibility, and restore is - # one click away. - def archive - @location.archive! - record_activity("archive_location", recordable: @location, metadata: { type: "Location", name: @location.name }) - redirect_to curator_location_path(@location), notice: t("curator.locations.archived"), status: :see_other - end - - def restore - @location.restore! - record_activity("restore_location", recordable: @location, metadata: { type: "Location", name: @location.name }) - redirect_to curator_location_path(@location), notice: t("curator.locations.restored"), status: :see_other - end - - private - - def set_location - @location = Location.find_by_public_id!(params[:id]) - end - - def editable_attributes - %w[name description historical_context city lat lng budget phone email website video_url tags suitable_experiences social_links accessibility] - end - - def build_original_data - data = @location.attributes.slice(*editable_attributes) - # Include association IDs that aren't in attributes - data["location_category_ids"] = @location.location_category_ids - data - end - - def proposal_data_from_params - data = location_params.to_h - - # Include category IDs - if params[:location][:location_category_ids].present? - data["location_category_ids"] = params[:location][:location_category_ids].reject(&:blank?).map(&:to_i) - end - - # Include experience type keys (for proposal system compatibility) - # Note: The actual sync happens via set_experience_types when proposal is applied - if params[:location][:suitable_experiences].present? - data["suitable_experiences"] = params[:location][:suitable_experiences].reject(&:blank?) - end - - # Note: File attachments (photos, audio) are not included in proposals - # They would need to be added after approval or handled separately - - data - end - - def location_params - permitted = params.require(:location).permit( - :name, :description, :historical_context, :city, - :lat, :lng, :budget, - :phone, :email, :website, :video_url, - :tags_input, - suitable_experiences: [], - social_links: Location.supported_social_platforms, - location_category_ids: [], - accessibility: [ :wheelchair_access, :wheelchair_parking, :wheelchair_toilet, - :flat_terrain, :elevator, :ramp, :notes ] - ) - - # Process tags from comma-separated input - if permitted[:tags_input].present? - permitted[:tags] = permitted[:tags_input].split(",").map(&:strip).map(&:downcase).reject(&:blank?).uniq - end - permitted.delete(:tags_input) - - # Clean empty social links - if permitted[:social_links].present? - permitted[:social_links] = permitted[:social_links].reject { |_, v| v.blank? } - end - - # Process accessibility: convert string "true" to boolean for feature checkboxes - # Initialize all features to false so unchecked checkboxes are properly cleared - if permitted[:accessibility].present? - acc = permitted[:accessibility].to_h - base = Location::ACCESSIBILITY_FEATURES.each_with_object({}) { |f, h| h[f] = false } - acc = base.merge(acc) - Location::ACCESSIBILITY_FEATURES.each do |feature| - acc[feature] = acc[feature] == "true" if acc[feature].is_a?(String) - end - acc["notes"] = acc["notes"].presence - permitted[:accessibility] = acc - end - - permitted - end - - def load_form_options - @city_names = Location.where.not(city: [ nil, "" ]).distinct.pluck(:city).sort - @experience_types = ExperienceType.where(active: true).order(:position) - @location_categories = LocationCategory.active.ordered - end - end -end diff --git a/app/controllers/curator/plans_controller.rb b/app/controllers/curator/plans_controller.rb deleted file mode 100644 index 9bc6e320..00000000 --- a/app/controllers/curator/plans_controller.rb +++ /dev/null @@ -1,181 +0,0 @@ -module Curator - class PlansController < BaseController - before_action :set_plan, only: [ :show, :edit, :update, :destroy ] - before_action :load_form_options, only: [ :new, :create, :edit, :update ] - - def index - @plans = Plan.includes(:user, :experiences).order(created_at: :desc) - @plans = @plans.public_plans if params[:visibility] == "public" - @plans = @plans.private_plans if params[:visibility] == "private" - @plans = @plans.for_city(params[:city_name]) if params[:city_name].present? - - if params[:search].present? - @plans = @plans.where("title ILIKE ?", "%#{params[:search]}%") - end - - page = params[:items_page] || params[:page] || 1 - @plans = @plans.page(page).per(3) - - if params[:partial] == "items" && request.xhr? - return render partial: "curator/plans/plan_items", locals: { plans: @plans }, layout: false - end - - @city_names = Plan.where.not(city_name: [ nil, "" ]).distinct.pluck(:city_name).sort - - @stats = { - total: Plan.count, - public_plans: Plan.public_plans.count, - private_plans: Plan.private_plans.count, - with_experiences: Plan.joins(:plan_experiences).distinct.count - } - - # Show pending proposals for this curator - @pending_proposals = current_user.content_changes - .where(changeable_type: "Plan") - .or(current_user.content_changes.where(changeable_class: "Plan")) - .pending - .order(created_at: :desc) - end - - def show - @pending_proposal = pending_proposal_for(@plan) - end - - def new - @plan = Plan.new(visibility: :public_plan) - end - - def create - # Instead of creating directly, create a proposal for admin review - proposal = current_user.content_changes.build( - change_type: :create_content, - changeable_class: "Plan", - proposed_data: proposal_data_from_params - ) - - if proposal.save - record_activity("proposal_created", recordable: proposal, metadata: { type: "Plan", title: proposal_data_from_params["title"] }) - redirect_to curator_plans_path, notice: t("curator.proposals.submitted_for_review"), status: :see_other - else - @plan = Plan.new(plan_params) - flash.now[:alert] = t("curator.proposals.failed_to_submit") - render :new, status: :unprocessable_entity - end - end - - def edit - @pending_proposal = pending_proposal_for(@plan) - end - - def update - # Use find_or_create to ensure only one pending proposal per resource - proposal = ContentChange.find_or_create_for_update( - changeable: @plan, - user: current_user, - original_data: build_original_data, - proposed_data: proposal_data_from_params - ) - - if proposal.persisted? - action = proposal.contributions.exists?(user: current_user) ? "proposal_contributed" : "proposal_updated" - record_activity(action, recordable: @plan, metadata: { type: "Plan", title: @plan.title }) - redirect_to curator_plan_path(@plan), notice: t("curator.proposals.submitted_for_review"), status: :see_other - else - flash.now[:alert] = t("curator.proposals.failed_to_submit") - render :edit, status: :unprocessable_entity - end - end - - def destroy - # Use find_or_create to ensure only one pending proposal per resource - proposal = ContentChange.find_or_create_for_delete( - changeable: @plan, - user: current_user, - original_data: build_original_data - ) - - if proposal.persisted? - record_activity("proposal_deleted", recordable: @plan, metadata: { type: "Plan", title: @plan.title }) - redirect_to curator_plans_path, notice: t("curator.proposals.delete_submitted_for_review"), status: :see_other - else - redirect_to curator_plans_path, alert: t("curator.proposals.failed_to_submit"), status: :see_other - end - end - - private - - def set_plan - @plan = Plan.find_by_public_id!(params[:id]) - end - - def editable_attributes - %w[title notes city_name visibility start_date end_date preferences] - end - - def build_original_data - data = @plan.attributes.slice(*editable_attributes) - # Include current experience and standalone-location structure - data["experience_days"] = build_current_experience_days - data["location_days"] = build_current_location_days - data - end - - def build_current_experience_days - days = {} - @plan.plan_experiences.includes(:experience).group_by(&:day_number).each do |day_num, plan_exps| - days[day_num.to_s] = plan_exps.sort_by(&:position).map { |pe| pe.experience.uuid } - end - days - end - - def build_current_location_days - days = {} - @plan.plan_locations.includes(:location).group_by(&:day_number).each do |day_num, plan_locs| - days[day_num.to_s] = plan_locs.sort_by(&:position).map { |pl| pl.location.uuid } - end - days - end - - def proposal_data_from_params - data = plan_params.to_h - - # Build preferences from form fields - data["preferences"] = build_preferences_from_params - - # Include experience_uuids for managing plan experiences - if params[:plan][:experience_days].present? - data["experience_days"] = params[:plan][:experience_days].to_unsafe_h - end - - # Include location_uuids for managing standalone plan locations - if params[:plan][:location_days].present? - data["location_days"] = params[:plan][:location_days].to_unsafe_h - end - - # Include the user_id for new plans (will be the curator who proposed) - data["user_id"] = current_user.id if action_name == "create" - data - end - - def build_preferences_from_params - prefs = {} - prefs["budget"] = params[:plan][:budget] if params[:plan][:budget].present? - prefs["daily_hours"] = params[:plan][:daily_hours].to_i if params[:plan][:daily_hours].present? - prefs["interests"] = params[:plan][:interests]&.reject(&:blank?) || [] - prefs["custom_title"] = params[:plan][:custom_title] if params[:plan][:custom_title].present? - prefs - end - - def plan_params - params.require(:plan).permit(:title, :notes, :city_name, :visibility, :start_date, :end_date, - :budget, :daily_hours, :custom_title, interests: []) - end - - def load_form_options - @city_names = Location.where.not(city: [ nil, "" ]).distinct.pluck(:city).sort - @experiences = Experience.includes(:locations).order(:title) - @locations = Location.order(:name) - @experience_types = ExperienceType.active.order(:position) - end - end -end diff --git a/app/controllers/curator/proposals_controller.rb b/app/controllers/curator/proposals_controller.rb deleted file mode 100644 index a31cf5f3..00000000 --- a/app/controllers/curator/proposals_controller.rb +++ /dev/null @@ -1,56 +0,0 @@ -# frozen_string_literal: true - -module Curator - class ProposalsController < BaseController - before_action :set_proposal, only: [ :show, :add_review ] - - def index - @proposals = ContentChange.pending_review - .includes(:user, :changeable, :contributions, :curator_reviews) - .page(params[:page]).per(20) - - # Filter by type if specified - if params[:change_type].present? - @proposals = @proposals.where(change_type: params[:change_type]) - end - - # Filter by content type if specified - if params[:content_type].present? - @proposals = @proposals.where(changeable_type: params[:content_type]) - .or(@proposals.where(changeable_class: params[:content_type])) - end - end - - def show - @review = CuratorReview.new - @existing_review = @proposal.curator_reviews.find_by(user: current_user) - end - - def add_review - @review = @proposal.curator_reviews.build(review_params) - @review.user = current_user - - if @review.save - record_activity("review_added", recordable: @proposal, metadata: { - recommendation: @review.recommendation, - proposal_type: @proposal.change_type - }) - redirect_to curator_proposal_path(@proposal), notice: t("curator.proposals.review_added"), status: :see_other - else - @existing_review = @proposal.curator_reviews.find_by(user: current_user) - flash.now[:alert] = @review.errors.full_messages.join(", ") - render :show, status: :unprocessable_entity - end - end - - private - - def set_proposal - @proposal = ContentChange.find(params[:id]) - end - - def review_params - params.require(:curator_review).permit(:comment, :recommendation) - end - end -end diff --git a/app/controllers/curator/reviews_controller.rb b/app/controllers/curator/reviews_controller.rb index d91b82d2..e1dde8cc 100644 --- a/app/controllers/curator/reviews_controller.rb +++ b/app/controllers/curator/reviews_controller.rb @@ -1,6 +1,7 @@ module Curator class ReviewsController < BaseController before_action :set_review, only: [ :show, :destroy ] + before_action :require_admin, only: :destroy rescue_from ActiveRecord::RecordNotFound, with: :review_not_found def index @@ -21,30 +22,14 @@ def index by_type: Review.group(:reviewable_type).count, by_rating: Review.group(:rating).count } - - # Show pending proposals for this curator - @pending_proposals = current_user.content_changes - .where(changeable_type: "Review") - .pending - .order(created_at: :desc) end def show end def destroy - # Use find_or_create to ensure only one pending proposal per resource - proposal = ContentChange.find_or_create_for_delete( - changeable: @review, - user: current_user, - original_data: @review.attributes.slice(*editable_attributes) - ) - - if proposal.persisted? - redirect_to curator_reviews_path, notice: t("curator.proposals.delete_submitted_for_review"), status: :see_other - else - redirect_to curator_reviews_path, alert: t("curator.proposals.failed_to_submit"), status: :see_other - end + @review.destroy! + redirect_to curator_reviews_path, notice: t("curator.reviews.removed"), status: :see_other end private @@ -58,9 +43,5 @@ def set_review def review_not_found redirect_to curator_reviews_path, alert: "Review not found. It may have been deleted." end - - def editable_attributes - %w[rating comment author_name reviewable_type reviewable_id user_id] - end end end diff --git a/app/helpers/curator_helper.rb b/app/helpers/curator_helper.rb index 0dad8ee4..f7bc4e4e 100644 --- a/app/helpers/curator_helper.rb +++ b/app/helpers/curator_helper.rb @@ -6,16 +6,10 @@ def activity_link_path(activity) return nil unless activity.recordable.present? case activity.recordable - when Location - curator_location_path(activity.recordable) - when Experience - curator_experience_path(activity.recordable) - when Plan - curator_plan_path(activity.recordable) - when AudioTour - curator_audio_tour_path(activity.recordable) - when ContentChange - curator_proposal_path(activity.recordable) + when Location then avo.resources_location_path(activity.recordable) + when Experience then avo.resources_experience_path(activity.recordable) + when Plan then avo.resources_plan_path(activity.recordable) + when AudioTour then avo.resources_audio_tour_path(activity.recordable) end rescue ActionController::UrlGenerationError nil diff --git a/app/javascript/controllers/curator_filters_controller.js b/app/javascript/controllers/curator_filters_controller.js deleted file mode 100644 index 495272b9..00000000 --- a/app/javascript/controllers/curator_filters_controller.js +++ /dev/null @@ -1,33 +0,0 @@ -import { Controller } from "@hotwired/stimulus" - -// Connects to data-controller="curator-filters" -export default class extends Controller { - static targets = ["content", "icon"] - static values = { - expanded: { type: Boolean, default: false } - } - - toggle() { - this.expandedValue = !this.expandedValue - } - - expandedValueChanged() { - if (this.hasContentTarget) { - if (this.expandedValue) { - this.contentTarget.classList.remove("hidden") - this.contentTarget.classList.add("block") - } else { - this.contentTarget.classList.add("hidden") - this.contentTarget.classList.remove("block") - } - } - - if (this.hasIconTarget) { - if (this.expandedValue) { - this.iconTarget.classList.add("rotate-180") - } else { - this.iconTarget.classList.remove("rotate-180") - } - } - } -} diff --git a/app/models/audio_tour.rb b/app/models/audio_tour.rb index 4d790dc9..ef88453c 100644 --- a/app/models/audio_tour.rb +++ b/app/models/audio_tour.rb @@ -37,6 +37,10 @@ class AudioTour < ApplicationRecord scope :by_locale, ->(locale) { where(locale: locale) } scope :with_audio, -> { joins(:audio_file_attachment) } + def display_title + "#{location.name} (#{language_name})" + end + # Get the language name for the current locale def language_name SUPPORTED_LOCALES[locale.to_sym] || locale.upcase diff --git a/app/models/content_change.rb b/app/models/content_change.rb deleted file mode 100644 index af346039..00000000 --- a/app/models/content_change.rb +++ /dev/null @@ -1,305 +0,0 @@ -# frozen_string_literal: true - -# Stores proposed content changes from curators that require admin approval. -# This implements an approval workflow where curators can propose: -# - Creating new content (locations, experiences, plans, audio tours) -# - Updating existing content -# - Deleting content -# -# Only ONE pending proposal can exist per resource. Multiple curators can -# contribute to the same proposal through ContentChangeContribution. -# Admins review and approve or reject these proposals. -class ContentChange < ApplicationRecord - belongs_to :changeable, polymorphic: true, optional: true - belongs_to :user # Original proposer - belongs_to :reviewed_by, class_name: "User", optional: true - has_many :contributions, class_name: "ContentChangeContribution", dependent: :destroy - has_many :contributors, through: :contributions, source: :user - has_many :curator_reviews, dependent: :destroy - - enum :change_type, { create_content: 0, update_content: 1, delete_content: 2 } - enum :status, { pending: 0, approved: 1, rejected: 2 } - - # Supported content types - CHANGEABLE_CLASSES = %w[Location Experience Plan AudioTour Review].freeze - - validates :change_type, presence: true - validates :status, presence: true - validates :changeable_class, inclusion: { in: CHANGEABLE_CLASSES }, if: :create_content? - validates :changeable, presence: true, unless: :create_content? - validates :proposed_data, presence: true, unless: :delete_content? - - # Sanitize proposed data - before_save :sanitize_proposed_data - - scope :for_user, ->(user) { where(user: user) } - scope :pending_review, -> { pending.order(created_at: :asc) } - scope :recently_reviewed, -> { where.not(status: :pending).order(reviewed_at: :desc) } - - # Find existing pending proposal for a resource, or create a new one - # Ensures only one pending proposal exists per resource - # Returns the proposal (persisted or not) - caller should check .persisted? - def self.find_or_create_for_update(changeable:, user:, original_data:, proposed_data:) - # Look for existing pending proposal for this resource - existing = pending.find_by(changeable: changeable) - - if existing - # Add contribution to existing proposal - existing.add_contribution(user: user, proposed_data: proposed_data) - existing - else - # Create new proposal (use create without bang to return unpersisted on failure) - create( - user: user, - change_type: :update_content, - changeable: changeable, - original_data: original_data, - proposed_data: proposed_data - ) - end - end - - def self.find_or_create_for_delete(changeable:, user:, original_data:) - # Look for existing pending proposal for this resource - existing = pending.find_by(changeable: changeable) - - if existing - # If there's already a pending update, convert it to delete - if existing.update_content? - existing.update(change_type: :delete_content, original_data: original_data, proposed_data: {}) - end - existing.add_contribution(user: user, proposed_data: {}, notes: "Requested deletion") - existing - else - # Create new proposal (use create without bang to return unpersisted on failure) - create( - user: user, - change_type: :delete_content, - changeable: changeable, - original_data: original_data - ) - end - end - - # Add a contribution from a curator - def add_contribution(user:, proposed_data:, notes: nil) - contribution = contributions.find_or_initialize_by(user: user) - contribution.proposed_data = proposed_data - contribution.notes = notes - contribution.save! - - # Merge the contribution into main proposed_data - merge_contributions! - contribution - end - - # Merge all contributions into the main proposed_data - def merge_contributions! - return if contributions.empty? - - merged = original_data.dup || {} - contributions.order(:created_at).each do |contrib| - merged.merge!(contrib.proposed_data.compact_blank) - end - update!(proposed_data: merged) - end - - # Approve the proposal and apply the changes - def approve!(admin, notes: nil) - return false unless pending? - - transaction do - case change_type.to_sym - when :create_content - apply_create! - when :update_content - apply_update! - when :delete_content - apply_delete! - end - - update!( - status: :approved, - reviewed_by: admin, - reviewed_at: Time.current, - admin_notes: notes - ) - end - - true - rescue StandardError => e - Rails.logger.error "Failed to approve content change #{id}: #{e.message}" - # A refused destroy explains itself on the record; the admin needs that - # reason, not just "approval failed". - errors.add(:base, changeable.errors.full_messages.to_sentence) if changeable&.errors&.any? - false - end - - # Reject the proposal - def reject!(admin, notes:) - return false unless pending? - - update!( - status: :rejected, - reviewed_by: admin, - reviewed_at: Time.current, - admin_notes: notes - ) - end - - # Human-readable description of the change - def description - target = changeable&.respond_to?(:name) ? changeable.name : (changeable&.respond_to?(:title) ? changeable.title : changeable_class) - - case change_type.to_sym - when :create_content - "Create new #{changeable_class}: #{proposed_data['name'] || proposed_data['title']}" - when :update_content - "Update #{changeable_type}: #{target}" - when :delete_content - "Delete #{changeable_type}: #{target}" - end - end - - # Get a diff of changes for display - def changes_diff - return {} unless update_content? - return {} if original_data.blank? || proposed_data.blank? - - diff = {} - proposed_data.each do |key, new_value| - old_value = original_data[key] - if old_value != new_value - diff[key] = { from: old_value, to: new_value } - end - end - diff - end - - # Count of curator recommendations - def recommendation_summary - { - approve: curator_reviews.recommend_approve.count, - reject: curator_reviews.recommend_reject.count, - neutral: curator_reviews.neutral.count - } - end - - # All users involved (proposer + contributors) - def all_contributors - ([ user ] + contributors).uniq - end - - private - - def sanitize_proposed_data - return if proposed_data.blank? - - self.proposed_data = proposed_data.transform_values do |value| - case value - when String - ActionController::Base.helpers.sanitize(value, tags: %w[b i em strong br p], attributes: []) - when Array - value.map { |v| v.is_a?(String) ? ActionController::Base.helpers.sanitize(v, tags: [], attributes: []) : v } - else - value - end - end - end - - def apply_create! - klass = changeable_class.constantize - # Filter to only allowed attributes - prevent mass assignment - allowed_attrs = safe_attributes_for(klass) - safe_data = proposed_data.slice(*allowed_attrs) - - # Use service object for Location to handle experience types explicitly - if klass.name == "Location" - record = apply_create_location!(safe_data) - else - record = klass.create!(safe_data) - end - - update!(changeable: record) - - # Mark as needing AI regeneration for translations/audio - mark_for_ai_regeneration!(record) - end - - def apply_update! - # Filter to only allowed attributes - prevent mass assignment - allowed_attrs = safe_attributes_for(changeable.class) - safe_data = proposed_data.slice(*allowed_attrs) - - # Use service object for Location to handle experience types explicitly - if changeable.is_a?(Location) - apply_update_location!(safe_data) - else - changeable.update!(safe_data) - end - - # Mark as needing AI regeneration for translations/audio - mark_for_ai_regeneration!(changeable) - end - - # Approving a location deletion is the one place that takes travellers' - # records with it. The curator saw the count before filing the proposal and - # the admin saw it before approving; everywhere else a held location still - # refuses to be destroyed. - def apply_delete! - if changeable.respond_to?(:destroy_with_traveller_records!) - changeable.destroy_with_traveller_records! - else - changeable.destroy! - end - end - - # Mark resource for AI regeneration (translations, audio tours) - # Only applies to Location, Experience, and Plan models - def mark_for_ai_regeneration!(resource) - return unless resource.respond_to?(:needs_ai_regeneration=) - return unless %w[Location Experience Plan].include?(resource.class.name) - - resource.update_column(:needs_ai_regeneration, true) - end - - # Use LocationCreator service to handle experience types explicitly - def apply_create_location!(safe_data) - creator = LocationCreator.new(safe_data) - creator.call - - unless creator.success? - raise ActiveRecord::RecordInvalid.new(creator.location) - end - - creator.location - end - - # Use LocationUpdater service to handle experience types explicitly - def apply_update_location!(safe_data) - updater = LocationUpdater.new(changeable, safe_data) - updater.call - - unless updater.success? - raise ActiveRecord::RecordInvalid.new(changeable) - end - end - - # Define safe attributes for each model to prevent unauthorized changes - def safe_attributes_for(klass) - case klass.name - when "Location" - %w[name description historical_context city lat lng budget phone email website video_url tags suitable_experiences social_links location_category_ids accessibility] - when "Experience" - %w[title description experience_category_id estimated_duration contact_name contact_email contact_phone contact_website seasons location_uuids] - when "Plan" - %w[title notes city_name visibility start_date end_date user_id preferences experience_days location_days] - when "AudioTour" - %w[location_id locale script word_count duration] - when "Review" - %w[rating comment] - else - [] - end - end -end diff --git a/app/models/content_change_contribution.rb b/app/models/content_change_contribution.rb deleted file mode 100644 index 0b3ad36a..00000000 --- a/app/models/content_change_contribution.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true - -# Tracks individual curator contributions to a content change proposal. -# Multiple curators can contribute to the same proposal. -class ContentChangeContribution < ApplicationRecord - belongs_to :content_change - belongs_to :user - - validates :proposed_data, presence: true, unless: -> { proposed_data == {} } - validates :user_id, uniqueness: { scope: :content_change_id, message: "already contributed to this proposal" } - - # Sanitize the proposed data to prevent XSS - before_save :sanitize_proposed_data - - private - - def sanitize_proposed_data - return if proposed_data.blank? - - self.proposed_data = proposed_data.transform_values do |value| - case value - when String - ActionController::Base.helpers.sanitize(value, tags: %w[b i em strong br p], attributes: []) - when Array - value.map { |v| v.is_a?(String) ? ActionController::Base.helpers.sanitize(v, tags: [], attributes: []) : v } - else - value - end - end - end -end diff --git a/app/models/curator_activity.rb b/app/models/curator_activity.rb index 564caf88..4ea31571 100644 --- a/app/models/curator_activity.rb +++ b/app/models/curator_activity.rb @@ -117,8 +117,6 @@ def recordable_description "Plan: #{recordable.title}" when AudioTour "Audio Tour: #{recordable.location&.name} (#{recordable.locale})" - when ContentChange - recordable.description else recordable.class.name end diff --git a/app/models/curator_review.rb b/app/models/curator_review.rb deleted file mode 100644 index ff976614..00000000 --- a/app/models/curator_review.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -# Curator reviews/comments on content change proposals. -# Curators can recommend approval or rejection, but only admins can make final decision. -class CuratorReview < ApplicationRecord - belongs_to :content_change - belongs_to :user - - enum :recommendation, { neutral: 0, recommend_approve: 1, recommend_reject: 2 } - - validates :comment, presence: true, length: { minimum: 10, maximum: 2000 } - validates :content_change, presence: true - validates :user, presence: true - - # Sanitize comment to prevent XSS - before_save :sanitize_comment - - scope :recent, -> { order(created_at: :desc) } - - private - - def sanitize_comment - return if comment.blank? - self.comment = ActionController::Base.helpers.sanitize(comment, tags: %w[b i em strong br], attributes: []) - end -end diff --git a/app/models/experience.rb b/app/models/experience.rb index b911d381..736e5a36 100644 --- a/app/models/experience.rb +++ b/app/models/experience.rb @@ -118,19 +118,6 @@ def locations_count experience_locations.count end - # Setter for location UUIDs (used by content change proposals) - def location_uuids=(uuids) - return if uuids.blank? - - new_location_ids = Location.where(uuid: uuids).pluck(:id) - self.location_ids = new_location_ids - end - - # Getter for location UUIDs - def location_uuids - locations.pluck(:uuid) - end - # Formatirano trajanje def formatted_duration return nil unless estimated_duration diff --git a/app/models/plan.rb b/app/models/plan.rb index 2110823b..532e49a3 100644 --- a/app/models/plan.rb +++ b/app/models/plan.rb @@ -43,82 +43,6 @@ def display_title # explore plan before the plan goes. before_destroy :rehome_traveller_records, prepend: true - # Setter for experience_days (used by content change proposals) - # Format: { "1" => ["uuid1", "uuid2"], "2" => ["uuid3"] } - def experience_days=(days_hash) - return if days_hash.blank? - - transaction do - # Clear existing experiences - plan_experiences.destroy_all - - # Add new experiences for each day - days_hash.each do |day_number, experience_uuids| - next if experience_uuids.blank? - - experience_uuids.each_with_index do |uuid, position| - next if uuid.blank? - experience = Experience.find_by(uuid: uuid) - next unless experience - - plan_experiences.create!( - experience: experience, - day_number: day_number.to_i, - position: position - ) - end - end - end - end - - # Getter for experience_days - def experience_days - days = {} - plan_experiences.includes(:experience).group_by(&:day_number).each do |day_num, plan_exps| - days[day_num.to_s] = plan_exps.sort_by(&:position).map { |pe| pe.experience.uuid } - end - days - end - - # Setter for location_days (used by content change proposals / curator editing) - # Format: { "1" => ["uuid1", "uuid2"], "2" => ["uuid3"] } - def location_days=(days_hash) - return if days_hash.blank? - - by_uuid = Location.where(uuid: days_hash.values.flatten.compact_blank).index_by(&:uuid) - - transaction do - # Clear existing standalone locations - plan_locations.destroy_all - - # Add new locations for each day - days_hash.each do |day_number, location_uuids| - next if location_uuids.blank? - - location_uuids.each_with_index do |uuid, position| - next if uuid.blank? - location = by_uuid[uuid] - next unless location - - plan_locations.create!( - location: location, - day_number: day_number.to_i, - position: position - ) - end - end - end - end - - # Getter for location_days - def location_days - days = {} - plan_locations.includes(:location).group_by(&:day_number).each do |day_num, plan_locs| - days[day_num.to_s] = plan_locs.sort_by(&:position).map { |pl| pl.location.uuid } - end - days - end - # Validacije validates :title, presence: true # start_date and end_date are optional - users pick their own dates diff --git a/app/models/user.rb b/app/models/user.rb index fa21beb5..6e499c8e 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -9,9 +9,6 @@ class User < ApplicationRecord attachable.variant :medium, resize_to_limit: [ 256, 256 ] end has_many :plans, dependent: :nullify - has_many :content_changes, dependent: :destroy - has_many :content_change_contributions, dependent: :destroy - has_many :curator_reviews, dependent: :destroy has_many :curator_activities, dependent: :destroy has_many :moments, dependent: :destroy has_many :plan_visits, dependent: :destroy diff --git a/app/views/curator/admin/content_changes/index.html.erb b/app/views/curator/admin/content_changes/index.html.erb deleted file mode 100644 index 6e46e0fe..00000000 --- a/app/views/curator/admin/content_changes/index.html.erb +++ /dev/null @@ -1,74 +0,0 @@ -
-
-

<%= t("curator.admin.content_changes.title") %>

-
- - -
-
-
Pending
-
<%= @stats[:pending] %>
-
-
-
Approved
-
<%= @stats[:approved] %>
-
-
-
Rejected
-
<%= @stats[:rejected] %>
-
-
- - -
- <%= link_to t("common.all"), curator_admin_content_changes_path, - class: "px-3 py-1 rounded-full text-xs sm:text-sm #{params[:status].blank? ? 'bg-indigo-600 text-white' : 'bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-600'}" %> - <%= link_to "Pending", curator_admin_content_changes_path(status: :pending), - class: "px-3 py-1 rounded-full text-xs sm:text-sm #{params[:status] == 'pending' ? 'bg-yellow-500 text-white' : 'bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-600'}" %> - <%= link_to "Approved", curator_admin_content_changes_path(status: :approved), - class: "px-3 py-1 rounded-full text-xs sm:text-sm #{params[:status] == 'approved' ? 'bg-green-500 text-white' : 'bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-600'}" %> - <%= link_to "Rejected", curator_admin_content_changes_path(status: :rejected), - class: "px-3 py-1 rounded-full text-xs sm:text-sm #{params[:status] == 'rejected' ? 'bg-red-500 text-white' : 'bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-300 dark:hover:bg-gray-600'}" %> -
- - -
-
    - <% @content_changes.each do |change| %> -
  • -
    -
    - <%= change.description %> - - <% case change.status %> - <% when "pending" %> - Pending - <% when "approved" %> - Approved - <% when "rejected" %> - Rejected - <% end %> - -

    - By <%= change.user.username %> - <%= change.created_at.strftime("%d.%m.%Y %H:%M") %> -

    -
    -
    - <%= link_to "View", curator_admin_content_change_path(change), class: "text-indigo-600 dark:text-indigo-400 hover:text-indigo-900 dark:hover:text-indigo-300 text-sm" %> - <% if change.pending? %> - <%= button_to "Approve", approve_curator_admin_content_change_path(change), method: :post, class: "text-green-600 dark:text-green-400 hover:text-green-900 dark:hover:text-green-300 text-sm" %> - <%= button_to "Reject", reject_curator_admin_content_change_path(change), method: :post, class: "text-red-600 dark:text-red-400 hover:text-red-900 dark:hover:text-red-300 text-sm" %> - <% end %> -
    -
    -
  • - <% end %> - - <% if @content_changes.empty? %> -
  • - No content changes found -
  • - <% end %> -
-
-
diff --git a/app/views/curator/admin/content_changes/show.html.erb b/app/views/curator/admin/content_changes/show.html.erb deleted file mode 100644 index ab6cab1e..00000000 --- a/app/views/curator/admin/content_changes/show.html.erb +++ /dev/null @@ -1,107 +0,0 @@ -
-
-

- Content Change Details -

-
- <%= link_to "Back to list", curator_admin_content_changes_path, - class: "inline-flex items-center rounded-md bg-white dark:bg-gray-800 px-3 py-2 text-sm font-semibold text-gray-900 dark:text-white shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700" %> -
-
- - -
-
-
-
-
- Status: - <% case @content_change.status %> - <% when "pending" %> - Pending - <% when "approved" %> - Approved - <% when "rejected" %> - Rejected - <% end %> -
-

Proposed by: <%= @content_change.user.username %>

-

Submitted: <%= @content_change.created_at.strftime("%d.%m.%Y %H:%M") %>

-

Type: <%= @content_change.change_type.humanize %>

-
- - <% if @content_change.pending? %> -
- <%= form_with url: approve_curator_admin_content_change_path(@content_change), method: :post, class: "flex flex-col gap-2" do |f| %> - <%= f.text_field :admin_notes, - placeholder: "Admin notes (optional)", - class: "rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white text-sm w-full" %> - <%= f.submit "Approve", - class: "inline-flex items-center justify-center rounded-md bg-green-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-green-500 cursor-pointer" %> - <% end %> - - <%= form_with url: reject_curator_admin_content_change_path(@content_change), method: :post, class: "flex flex-col gap-2" do |f| %> - <%= f.text_field :admin_notes, - placeholder: "Rejection reason", - class: "rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white text-sm w-full" %> - <%= f.submit "Reject", - class: "inline-flex items-center justify-center rounded-md bg-red-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500 cursor-pointer" %> - <% end %> -
- <% end %> -
- - <% if @content_change.reviewed_by.present? %> -
- Reviewed by <%= @content_change.reviewed_by.username %> on <%= @content_change.reviewed_at.strftime("%d.%m.%Y %H:%M") %> -
- <% end %> -
-
- - -
-
-

Proposed Changes

- - <% if @content_change.update_content? %> -
- <% @content_change.changes_diff.each do |key, values| %> -
-

<%= key.humanize %>

-
-
-

From:

-

<%= values[:from].presence || "(empty)" %>

-
-
-

To:

-

<%= values[:to].presence || "(empty)" %>

-
-
-
- <% end %> -
- <% elsif @content_change.create_content? %> -
-
<%= JSON.pretty_generate(@content_change.proposed_data) rescue @content_change.proposed_data.to_s %>
-
- <% elsif @content_change.delete_content? %> -
-

This proposal requests the deletion of <%= @content_change.changeable_type %>: <%= @content_change.changeable&.respond_to?(:name) ? @content_change.changeable.name : @content_change.changeable&.id %>

-
- <% end %> -
-
- - <% if @content_change.admin_notes.present? %> -
-
-

Admin Notes

-
- <%= @content_change.admin_notes %> -
-
-
- <% end %> -
diff --git a/app/views/curator/audio_tours/_form.html.erb b/app/views/curator/audio_tours/_form.html.erb deleted file mode 100644 index c2c09ac5..00000000 --- a/app/views/curator/audio_tours/_form.html.erb +++ /dev/null @@ -1,92 +0,0 @@ -<%= form_with model: [:curator, audio_tour], class: "space-y-6" do |f| %> - <% if audio_tour.errors.any? %> -
-
-
-

<%= t("errors.messages.form_errors", count: audio_tour.errors.count) %>

-
-
    - <% audio_tour.errors.full_messages.each do |message| %> -
  • <%= message %>
  • - <% end %> -
-
-
-
-
- <% end %> - -
-
-

<%= t("curator.audio_tours.sections.basic_info") %>

- -
-
- <%= f.label :location_id, t("curator.audio_tours.location"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.select :location_id, - options_from_collection_for_select(@locations, :id, :name, audio_tour.location_id), - { include_blank: t("curator.audio_tours.select_location") }, - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
- -
- <%= f.label :locale, t("curator.audio_tours.locale"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.select :locale, - options_for_select(@locales, audio_tour.locale), - { include_blank: t("curator.audio_tours.select_locale") }, - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
- -
- <%= f.label :word_count, t("curator.audio_tours.word_count"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.number_field :word_count, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
- -
- <%= f.label :duration, t("curator.audio_tours.duration"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_field :duration, placeholder: "e.g. 5 min", class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
- -
- <%= f.label :script, t("curator.audio_tours.script"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_area :script, rows: 8, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -

<%= t("curator.audio_tours.script_hint") %>

-
-
-
-
- - -
-
-
-
- - - -
-
-

<%= t("curator.audio_tours.ai_generation_title") %>

-
-

<%= t("curator.audio_tours.ai_generation_hint") %>

-
-
-
- - <% if audio_tour.audio_file.attached? %> -
-

<%= t("curator.audio_tours.current_audio") %>

- -
- <% end %> -
-
- -
- <%= link_to t("common.cancel"), curator_audio_tours_path, class: "rounded-md bg-white dark:bg-gray-800 px-3 py-2 text-sm font-semibold text-gray-900 dark:text-white shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700" %> - <%= f.submit t("common.save"), class: "rounded-md bg-emerald-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500 cursor-pointer" %> -
-<% end %> diff --git a/app/views/curator/audio_tours/edit.html.erb b/app/views/curator/audio_tours/edit.html.erb deleted file mode 100644 index a3cd9c96..00000000 --- a/app/views/curator/audio_tours/edit.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -
-
-

<%= t("curator.audio_tours.edit_title", location: @audio_tour.location.name) %>

- <%= link_to t("curator.audio_tours.back_to_list"), curator_audio_tours_path, class: "text-sm text-emerald-600 hover:text-emerald-900" %> -
- - <%= render "form", audio_tour: @audio_tour %> -
diff --git a/app/views/curator/audio_tours/index.html.erb b/app/views/curator/audio_tours/index.html.erb deleted file mode 100644 index 16f44d2c..00000000 --- a/app/views/curator/audio_tours/index.html.erb +++ /dev/null @@ -1,189 +0,0 @@ -
-
-

<%= t("curator.audio_tours.title") %>

- <% if Flipper.enabled?(:curator_edit_delete) %> - <%= link_to t("curator.audio_tours.new"), new_curator_audio_tour_path, - class: "inline-flex items-center justify-center rounded-md bg-emerald-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500 w-full sm:w-auto" %> - <% end %> -
- - - <%= render "curator/shared/pending_proposals", pending_proposals: @pending_proposals %> - - -
-
-
<%= t("curator.audio_tours.total") %>
-
<%= @stats[:total] %>
-
-
-
<%= t("curator.audio_tours.with_audio") %>
-
<%= @stats[:with_audio] %>
-
-
-
<%= t("curator.audio_tours.locations_with_tours") %>
-
<%= @stats[:locations_with_tours] %>/<%= @stats[:locations_total] %>
-
-
-
<%= t("curator.audio_tours.by_locale") %>
-
- <% @stats[:by_locale].first(3).each do |locale, count| %> - <%= locale.upcase %>: <%= count %> - <% end %> -
-
-
- - -
- <%= form_with url: curator_audio_tours_path, method: :get, class: "flex flex-col sm:flex-row flex-wrap gap-3" do |f| %> -
- <%= f.text_field :search, - value: params[:search], - placeholder: t("curator.audio_tours.search_placeholder"), - class: "block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white text-sm shadow-sm focus:border-emerald-500 focus:ring-emerald-500" %> -
-
- <%= f.select :locale, - options_for_select([[t("curator.audio_tours.all_locales"), ""]] + AudioTour.locale_options, params[:locale]), - {}, - class: "block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white text-sm shadow-sm focus:border-emerald-500 focus:ring-emerald-500" %> -
-
- <%= f.submit t("common.search"), class: "w-full sm:w-auto inline-flex justify-center items-center rounded-md bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500 cursor-pointer" %> -
- <% end %> -
- - - - - -
- <% @audio_tours.each do |audio_tour| %> -
-
-
-

<%= audio_tour.location.name %>

-

<%= audio_tour.location.city %>

-
- - <%= audio_tour.language_name %> - -
- -
- <% if audio_tour.audio_ready? %> - - - - - <%= t("curator.audio_tours.ready") %> - - <% else %> - - - - - <%= t("curator.audio_tours.pending") %> - - <% end %> - <% if audio_tour.estimated_duration %> - <%= audio_tour.estimated_duration %> - <% end %> -
- -
- <%= link_to curator_audio_tour_path(audio_tour), class: "flex-1 text-center py-2 text-sm font-medium text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" do %> - <%= t("curator.audio_tours.view") %> - <% end %> - <% if Flipper.enabled?(:curator_edit_delete) %> - <%= link_to edit_curator_audio_tour_path(audio_tour), class: "flex-1 text-center py-2 text-sm font-medium text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" do %> - <%= t("curator.audio_tours.edit") %> - <% end %> - <%= button_to curator_audio_tour_path(audio_tour), - method: :delete, - class: "flex-1 text-center py-2 text-sm font-medium text-red-600 dark:text-red-400 hover:text-red-900 dark:hover:text-red-300", - data: { turbo_confirm: t("curator.audio_tours.confirm_delete") } do %> - <%= t("curator.audio_tours.delete") %> - <% end %> - <% end %> -
-
- <% end %> - - <% if @audio_tours.empty? %> -
- <%= t("curator.audio_tours.no_audio_tours") %> -
- <% end %> -
- - - <% if @audio_tours.total_pages > 1 %> -
- <%= paginate @audio_tours %> -
- <% end %> -
diff --git a/app/views/curator/audio_tours/new.html.erb b/app/views/curator/audio_tours/new.html.erb deleted file mode 100644 index c31eb81a..00000000 --- a/app/views/curator/audio_tours/new.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -
-
-

<%= t("curator.audio_tours.new") %>

- <%= link_to t("curator.audio_tours.back_to_list"), curator_audio_tours_path, class: "text-sm text-emerald-600 hover:text-emerald-900" %> -
- - <%= render "form", audio_tour: @audio_tour %> -
diff --git a/app/views/curator/audio_tours/show.html.erb b/app/views/curator/audio_tours/show.html.erb deleted file mode 100644 index 88f42a30..00000000 --- a/app/views/curator/audio_tours/show.html.erb +++ /dev/null @@ -1,101 +0,0 @@ -
- <%= render "curator/shared/pending_proposal_banner", pending_proposal: @pending_proposal %> - -
-

<%= t("curator.audio_tours.show_title") %>

-
- <% if Flipper.enabled?(:curator_edit_delete) %> - <%= link_to edit_curator_audio_tour_path(@audio_tour), - class: "inline-flex items-center justify-center rounded-md bg-emerald-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500" do %> - - - - <%= t("curator.audio_tours.edit") %> - <% end %> - <%= button_to curator_audio_tour_path(@audio_tour), - method: :delete, - class: "inline-flex items-center justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500", - data: { turbo_confirm: t("curator.audio_tours.confirm_delete") } do %> - - - - <%= t("curator.audio_tours.delete") %> - <% end %> - <% end %> - <%= link_to curator_audio_tours_path, - class: "inline-flex items-center justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 dark:bg-gray-800 dark:text-white dark:ring-gray-600 dark:hover:bg-gray-700" do %> - - - - <%= t("curator.audio_tours.back_to_list") %> - <% end %> -
-
- -
-
-
-
-
<%= t("curator.audio_tours.location") %>
-
- <%= link_to @audio_tour.location.name, curator_location_path(@audio_tour.location), class: "text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" %> -
-
-
-
<%= t("curator.audio_tours.locale") %>
-
- - <%= @audio_tour.language_name %> - -
-
-
-
<%= t("curator.audio_tours.audio_status") %>
-
- <% if @audio_tour.audio_ready? %> - - <%= t("curator.audio_tours.ready") %> - - <% else %> - - <%= t("curator.audio_tours.pending") %> - - <% end %> -
-
-
-
<%= t("curator.audio_tours.duration") %>
-
<%= @audio_tour.estimated_duration || "-" %>
-
-
-
<%= t("curator.audio_tours.word_count") %>
-
<%= @audio_tour.word_count || "-" %>
-
-
-
<%= t("curator.audio_tours.created_at") %>
-
<%= @audio_tour.created_at.strftime("%d.%m.%Y %H:%M") %>
-
- - <% if @audio_tour.audio_ready? %> -
-
<%= t("curator.audio_tours.audio_player") %>
-
- -
-
- <% end %> - - <% if @audio_tour.script.present? %> -
-
<%= t("curator.audio_tours.script") %>
-
<%= @audio_tour.script %>
-
- <% end %> -
- -
-
-
diff --git a/app/views/curator/dashboard/index.html.erb b/app/views/curator/dashboard/index.html.erb index dcd25062..d0cb8e19 100644 --- a/app/views/curator/dashboard/index.html.erb +++ b/app/views/curator/dashboard/index.html.erb @@ -35,53 +35,28 @@ - - <% if @pending_proposals_count > 0 %> -
-
-
- - - -
-
-

- <%= t("curator.dashboard.pending_proposals_alert", count: @pending_proposals_count) %> -

-
-
- <%= link_to curator_proposals_path, class: "text-sm font-medium text-amber-700 dark:text-amber-400 hover:text-amber-600 dark:hover:text-amber-300" do %> - <%= t("curator.dashboard.review_proposals") %> → - <% end %> -
-
-
- <% end %> -

<%= t("curator.dashboard.quick_actions") %>

- <% if Flipper.enabled?(:curator_edit_delete) %> - <%= link_to new_curator_location_path, - class: "inline-flex items-center justify-center rounded-md bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500" do %> - <%= t("curator.dashboard.new_location") %> - <% end %> - <%= link_to new_curator_experience_path, - class: "inline-flex items-center justify-center rounded-md bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500" do %> - <%= t("curator.dashboard.new_experience") %> - <% end %> - <%= link_to new_curator_plan_path, - class: "inline-flex items-center justify-center rounded-md bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500" do %> - <%= t("curator.dashboard.new_plan") %> - <% end %> - <%= link_to new_curator_audio_tour_path, - class: "inline-flex items-center justify-center rounded-md bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-500" do %> - <%= t("curator.dashboard.new_audio_tour") %> - <% end %> + <%= link_to avo.new_resources_location_path, + class: "inline-flex items-center justify-center rounded-md bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500" do %> + <%= t("curator.dashboard.new_location") %> + <% end %> + <%= link_to avo.new_resources_experience_path, + class: "inline-flex items-center justify-center rounded-md bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500" do %> + <%= t("curator.dashboard.new_experience") %> + <% end %> + <%= link_to avo.new_resources_plan_path, + class: "inline-flex items-center justify-center rounded-md bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500" do %> + <%= t("curator.dashboard.new_plan") %> + <% end %> + <%= link_to avo.new_resources_audio_tour_path, + class: "inline-flex items-center justify-center rounded-md bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-500" do %> + <%= t("curator.dashboard.new_audio_tour") %> <% end %> - <%= link_to needs_photos_curator_locations_path, + <%= link_to avo.resources_locations_path(filters: Avo::Filters::BaseFilter.encode_filters("Avo::Filters::LocationPhotos" => "none")), class: "inline-flex items-center justify-center rounded-md bg-white dark:bg-gray-800 px-4 py-2 text-sm font-semibold text-gray-700 dark:text-gray-300 shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700" do %> @@ -99,14 +74,14 @@

<%= t("curator.dashboard.recent_locations") %>

- <%= link_to curator_locations_path, class: "text-sm text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" do %> + <%= link_to avo.resources_locations_path, class: "text-sm text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" do %> <%= t("common.view_all") %> <% end %>
    <% @stats[:recent_locations].each do |location| %>
  • - <%= link_to curator_location_path(location), class: "block hover:bg-gray-50 dark:hover:bg-gray-700 -mx-2 px-2 py-1 rounded-md" do %> + <%= link_to avo.resources_location_path(location), class: "block hover:bg-gray-50 dark:hover:bg-gray-700 -mx-2 px-2 py-1 rounded-md" do %>
    <%= location.name %>
    @@ -131,14 +106,14 @@

    <%= t("curator.dashboard.recent_experiences") %>

    - <%= link_to curator_experiences_path, class: "text-sm text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" do %> + <%= link_to avo.resources_experiences_path, class: "text-sm text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" do %> <%= t("common.view_all") %> <% end %>
      <% @stats[:recent_experiences].each do |experience| %>
    • - <%= link_to curator_experience_path(experience), class: "block hover:bg-gray-50 dark:hover:bg-gray-700 -mx-2 px-2 py-1 rounded-md" do %> + <%= link_to avo.resources_experience_path(experience), class: "block hover:bg-gray-50 dark:hover:bg-gray-700 -mx-2 px-2 py-1 rounded-md" do %>
      <%= experience.title %>
      @@ -163,14 +138,14 @@

      <%= t("curator.dashboard.recent_plans") %>

      - <%= link_to curator_plans_path, class: "text-sm text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" do %> + <%= link_to avo.resources_plans_path, class: "text-sm text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" do %> <%= t("common.view_all") %> <% end %>
        <% @stats[:recent_plans].each do |plan| %>
      • - <%= link_to curator_plan_path(plan), class: "block hover:bg-gray-50 dark:hover:bg-gray-700 -mx-2 px-2 py-1 rounded-md" do %> + <%= link_to avo.resources_plan_path(plan), class: "block hover:bg-gray-50 dark:hover:bg-gray-700 -mx-2 px-2 py-1 rounded-md" do %>
        <%= plan.title %>
        diff --git a/app/views/curator/experiences/_experience_item.html.erb b/app/views/curator/experiences/_experience_item.html.erb deleted file mode 100644 index 64a02771..00000000 --- a/app/views/curator/experiences/_experience_item.html.erb +++ /dev/null @@ -1,84 +0,0 @@ -<%= link_to curator_experience_path(experience), class: "block bg-white dark:bg-gray-800 rounded-2xl shadow-sm hover:shadow-lg transition-all overflow-hidden group" do %> - <%# Image %> -
        - <% photo = experience.display_cover_photo %> - <% if photo %> - <% if photo.variable? %> - <%= image_tag photo.variant(resize_to_fill: [400, 300]), - alt: experience.title, - loading: "lazy", - class: "w-full h-full object-cover group-hover:scale-105 transition-transform duration-300" %> - <% else %> - <%= image_tag photo, - alt: experience.title, - loading: "lazy", - class: "w-full h-full object-cover group-hover:scale-105 transition-transform duration-300" %> - <% end %> - <% else %> -
        - - - -
        - <% end %> - <%# Category badge %> - <% if experience.experience_category.present? %> -
        - - <%= experience.experience_category.name %> - -
        - <% end %> -
        - - <%# Content %> -
        -

        <%= experience.title %>

        - - <% if experience.city.present? %> -

        - - - - <%= experience.city %> -

        - <% end %> - - <% if experience.description.present? %> -

        <%= truncate(strip_tags(experience.description), length: 100) %>

        - <% end %> - - <%# Rating & duration %> -
        - <% if experience.average_rating.to_f > 0 %> -
        - - - - <%= number_with_precision(experience.average_rating, precision: 1) %> - (<%= experience.reviews_count %>) -
        - <% else %> - <%= t("explore.no_reviews", default: "Bez recenzija") %> - <% end %> - <% if experience.formatted_duration.present? %> - - - - - <%= experience.formatted_duration %> - - <% end %> -
        - - <%# Suggest changes %> -
        - - - - - <%= t("curator.suggest_changes", default: "Predloži izmjene") %> - -
        -
        -<% end %> diff --git a/app/views/curator/experiences/_experience_items.html.erb b/app/views/curator/experiences/_experience_items.html.erb deleted file mode 100644 index 2ffa7aa6..00000000 --- a/app/views/curator/experiences/_experience_items.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -<% experiences.each do |experience| %> - <%= render "curator/experiences/experience_item", experience: experience %> -<% end %> diff --git a/app/views/curator/experiences/_form.html.erb b/app/views/curator/experiences/_form.html.erb deleted file mode 100644 index 2605fc59..00000000 --- a/app/views/curator/experiences/_form.html.erb +++ /dev/null @@ -1,252 +0,0 @@ -<%= form_with model: [:curator, experience], class: "space-y-6", local: true, html: { multipart: true } do |f| %> - <% if experience.errors.any? %> -
        -
        -
          - <% experience.errors.full_messages.each do |message| %> -
        • <%= message %>
        • - <% end %> -
        -
        -
        - <% end %> - - <%# Basic Information Section %> -
        -

        <%= t("curator.experiences.sections.basic_info", default: "Basic Information") %>

        -
        -
        - <%= f.label :title, t("curator.experiences.name"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_field :title, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
        - -
        - <%= f.label :experience_category_id, t("curator.experiences.category"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.select :experience_category_id, - options_for_select(experience_categories.map { |c| [c.name, c.id] }, experience.experience_category_id), - { prompt: t("curator.experiences.select_category") }, - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
        - -
        - <%= f.label :estimated_duration, t("curator.experiences.duration"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> -
        - <%= f.number_field :estimated_duration, min: 0, class: "block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", placeholder: t("curator.experiences.duration_placeholder", default: "Duration in minutes") %> -
        -

        <%= t("curator.experiences.duration_hint", default: "Enter duration in minutes") %>

        -
        - -
        - <%= t("curator.experiences.best_seasons") %> -
        - <% Experience::SEASONS.each do |season| %> - - <% end %> -
        -

        <%= t("curator.experiences.seasons_hint") %>

        - <%# Hidden field to ensure empty array is sent when no seasons selected %> - <%= hidden_field_tag "experience[seasons][]", "" %> -
        - -
        - <%= f.label :description, t("curator.experiences.description"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_area :description, rows: 5, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
        -
        -
        - - <%# Cover Photo Section %> -
        -

        <%= t("curator.experiences.sections.cover_photo", default: "Cover Photo") %>

        - - <% if experience.persisted? && experience.cover_photo.attached? %> -
        -

        <%= t("curator.experiences.current_cover", default: "Current cover photo") %>:

        -
        - <%= image_tag rails_blob_path(experience.cover_photo, disposition: "inline"), class: "max-w-xs h-auto rounded-lg" %> - -
        -

        <%= t("curator.experiences.remove_cover_hint", default: "Click the trash icon to remove the current cover photo") %>

        -
        - <% end %> - -
        - <%= f.label :cover_photo, t("curator.experiences.upload_cover", default: "Upload Cover Photo"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.file_field :cover_photo, accept: "image/*", class: "mt-1 block w-full text-sm text-gray-500 dark:text-gray-400 file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-sm file:font-semibold file:bg-emerald-50 file:text-emerald-700 hover:file:bg-emerald-100" %> -

        <%= t("curator.experiences.cover_photo_hint", default: "Recommended size: 1200x800px. Supported formats: JPG, PNG, WebP") %>

        -
        -
        - - <%# Contact Information Section %> -
        -

        <%= t("curator.experiences.sections.contact", default: "Contact Information") %>

        -

        <%= t("curator.experiences.contact_hint", default: "Contact details for booking or inquiries about this experience") %>

        -
        -
        - <%= f.label :contact_name, t("curator.experiences.contact_name", default: "Contact Name"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_field :contact_name, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", placeholder: t("curator.experiences.contact_name_placeholder", default: "e.g. John Doe") %> -
        - -
        - <%= f.label :contact_email, t("curator.experiences.contact_email", default: "Contact Email"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.email_field :contact_email, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", placeholder: "contact@example.com" %> -
        - -
        - <%= f.label :contact_phone, t("curator.experiences.contact_phone", default: "Contact Phone"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_field :contact_phone, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", placeholder: "+387 33 123 456" %> -
        - -
        - <%= f.label :contact_website, t("curator.experiences.contact_website", default: "Contact Website"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.url_field :contact_website, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", placeholder: "https://example.com" %> -
        -
        -
        - - <%# Locations Section %> -
        -

        <%= t("curator.experiences.sections.locations", default: "Locations") %>

        -

        <%= t("curator.experiences.locations_hint", default: "Select locations that are part of this experience. The order matters - drag to reorder.") %>

        - - <% current_location_ids = experience.experience_locations.order(:position).pluck(:location_id) %> - - <%# Selected Locations (sortable) %> -
        - -
        - <% if current_location_ids.any? %> - <% experience.locations.each_with_index do |loc, idx| %> -
        -
        - - - - - - <%= loc.name %> - (<%= loc.city %>) -
        - - -
        - <% end %> - <% else %> -

        <%= t("curator.experiences.no_locations_selected", default: "No locations selected yet") %>

        - <% end %> -
        -
        - - <%# Location Search/Add %> -
        - - -
        -
        - -
        - <%= link_to t("common.cancel"), curator_experiences_path, - class: "rounded-md bg-white dark:bg-gray-800 px-3 py-2 text-sm font-semibold text-gray-900 dark:text-white shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700" %> - <%= f.submit t("common.save"), class: "rounded-md bg-emerald-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500 cursor-pointer" %> -
        -<% end %> - - diff --git a/app/views/curator/experiences/edit.html.erb b/app/views/curator/experiences/edit.html.erb deleted file mode 100644 index 9b8fc87c..00000000 --- a/app/views/curator/experiences/edit.html.erb +++ /dev/null @@ -1,15 +0,0 @@ -
        -
        -

        <%= t("curator.experiences.edit_title", name: @experience.title) %>

        -
        - <%= link_to t("curator.experiences.back_to_view", default: "Back to View"), curator_experience_path(@experience), - class: "inline-flex items-center rounded-md bg-white dark:bg-gray-800 px-3 py-2 text-sm font-semibold text-gray-900 dark:text-white shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700" %> -
        -
        - -
        -
        - <%= render "form", experience: @experience, experience_categories: @experience_categories, locations: @locations %> -
        -
        -
        diff --git a/app/views/curator/experiences/index.html.erb b/app/views/curator/experiences/index.html.erb deleted file mode 100644 index 885a17b7..00000000 --- a/app/views/curator/experiences/index.html.erb +++ /dev/null @@ -1,135 +0,0 @@ -
        -
        -

        <%= t("curator.experiences.title") %>

        - <% if Flipper.enabled?(:curator_edit_delete) %> - <%= link_to t("curator.experiences.new"), new_curator_experience_path, - class: "inline-flex items-center justify-center rounded-md bg-emerald-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500 w-full sm:w-auto" %> - <% end %> -
        - - - <%= render "curator/shared/pending_proposals", pending_proposals: @pending_proposals %> - - -
        - -
        - -
        - - - -
        - - -
        - <%= t("curator.experiences.count", count: @experiences.total_count, default: "#{@experiences.total_count} experiences") %> -
        - - -
        - -
        - <%= render "curator/experiences/experience_items", experiences: @experiences %> -
        - - <% if @experiences.empty? %> -
        - <%= t("curator.experiences.no_experiences") %> -
        - <% end %> - - - <% if @experiences.total_pages > 1 %> -
        - - - -
        - <% end %> -
        -
        diff --git a/app/views/curator/experiences/new.html.erb b/app/views/curator/experiences/new.html.erb deleted file mode 100644 index a56d14aa..00000000 --- a/app/views/curator/experiences/new.html.erb +++ /dev/null @@ -1,15 +0,0 @@ -
        -
        -

        <%= t("curator.experiences.new") %>

        -
        - <%= link_to t("curator.experiences.back_to_list"), curator_experiences_path, - class: "inline-flex items-center rounded-md bg-white dark:bg-gray-800 px-3 py-2 text-sm font-semibold text-gray-900 dark:text-white shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700" %> -
        -
        - -
        -
        - <%= render "form", experience: @experience, experience_categories: @experience_categories, locations: @locations %> -
        -
        -
        diff --git a/app/views/curator/experiences/show.html.erb b/app/views/curator/experiences/show.html.erb deleted file mode 100644 index f5566cd8..00000000 --- a/app/views/curator/experiences/show.html.erb +++ /dev/null @@ -1,213 +0,0 @@ -
        - <%= render "curator/shared/pending_proposal_banner", pending_proposal: @pending_proposal %> - -
        -

        <%= @experience.title %>

        -
        - <%= link_to experience_path(@experience), - class: "inline-flex items-center justify-center rounded-md bg-blue-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-500" do %> - - - - - <%= t("curator.experiences.view_in_app", default: "View in App") %> - <% end %> - <% if Flipper.enabled?(:curator_edit_delete) %> - <%= link_to edit_curator_experience_path(@experience), - class: "inline-flex items-center justify-center rounded-md bg-emerald-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500" do %> - - - - <%= t("curator.experiences.edit") %> - <% end %> - <%# Files a deletion proposal for admin review — mirrors curator/plans/show %> - <%= button_to curator_experience_path(@experience), - method: :delete, - class: "inline-flex items-center justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500", - data: { turbo_confirm: t("curator.experiences.confirm_delete", name: @experience.title) } do %> - - - - <%= t("curator.experiences.delete") %> - <% end %> - <% end %> - <%= link_to curator_experiences_path, - class: "inline-flex items-center justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 dark:bg-gray-800 dark:text-white dark:ring-gray-600 dark:hover:bg-gray-700" do %> - - - - <%= t("curator.experiences.back_to_list") %> - <% end %> -
        -
        - - <%# Cover Photo %> - <% if @experience.cover_photo.attached? %> -
        -
        -

        <%= t("curator.experiences.sections.cover_photo", default: "Cover Photo") %>

        - <%= image_tag rails_blob_path(@experience.cover_photo, disposition: "inline"), class: "w-full max-w-2xl h-auto rounded-lg" %> -
        -
        - <% end %> - - <%# Basic Information %> -
        -
        -

        <%= t("curator.experiences.sections.basic_info", default: "Basic Information") %>

        -
        -
        -
        <%= t("curator.experiences.name") %>
        -
        <%= @experience.title %>
        -
        -
        -
        <%= t("curator.experiences.city") %>
        -
        <%= @experience.city.presence || "-" %>
        -
        -
        -
        <%= t("curator.experiences.category") %>
        -
        - <% if @experience.experience_category %> - - <%= @experience.experience_category.name %> - - <% else %> - - - <% end %> -
        -
        -
        -
        <%= t("curator.experiences.duration") %>
        -
        <%= @experience.formatted_duration || "-" %>
        -
        -
        -
        <%= t("curator.experiences.best_seasons") %>
        -
        - <% if @experience.year_round? %> - - <%= experience_season_label(nil) %> - - <% else %> -
        - <% @experience.seasons.each do |season| %> - - <%= experience_season_label(season) %> - - <% end %> -
        - <% end %> -
        -
        -
        -
        <%= t("curator.experiences.description") %>
        -
        <%= simple_format(@experience.description) if @experience.description.present? %>
        -
        -
        -
        -
        - - <%# Locations %> - <% if @experience.locations.any? %> -
        -
        -

        <%= t("curator.experiences.sections.locations", default: "Locations") %> (<%= @experience.locations.count %>)

        -
        - <% @experience.experience_locations.includes(:location).order(:position).each_with_index do |exp_loc, idx| %> - <% loc = exp_loc.location %> -
        -
        - <%= idx + 1 %> -
        -
        -
        - <%= link_to loc.name, curator_location_path(loc), class: "text-sm font-medium text-gray-900 dark:text-white hover:text-emerald-600 dark:hover:text-emerald-400" %> - - <%= t("locations.types.#{loc.category_key}", default: loc.category_key&.humanize) %> - -
        -

        <%= loc.city %>

        -
        - <% if loc.photos.attached? %> - <%= image_tag rails_blob_path(loc.photos.first, disposition: "inline"), class: "w-16 h-12 object-cover rounded" %> - <% end %> -
        - <% end %> -
        -
        -
        - <% end %> - - <%# Contact Information %> - <% if @experience.has_contact_info? %> -
        -
        -

        <%= t("curator.experiences.sections.contact", default: "Contact Information") %>

        -
        - <% if @experience.contact_name.present? %> -
        -
        <%= t("curator.experiences.contact_name", default: "Contact Name") %>
        -
        <%= @experience.contact_name %>
        -
        - <% end %> - <% if @experience.contact_email.present? %> -
        -
        <%= t("curator.experiences.contact_email", default: "Contact Email") %>
        -
        - <%= link_to @experience.contact_email, "mailto:#{@experience.contact_email}", class: "text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" %> -
        -
        - <% end %> - <% if @experience.contact_phone.present? %> -
        -
        <%= t("curator.experiences.contact_phone", default: "Contact Phone") %>
        -
        - <%= link_to @experience.contact_phone, "tel:#{@experience.contact_phone}", class: "text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" %> -
        -
        - <% end %> - <% if @experience.contact_website.present? %> -
        -
        <%= t("curator.experiences.contact_website", default: "Contact Website") %>
        -
        - <% if (href = safe_external_url(@experience.contact_website)) %> - <%= link_to @experience.contact_website, href, target: "_blank", rel: "noopener", class: "text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" %> - <% else %> - <%= @experience.contact_website %> - <% end %> -
        -
        - <% end %> -
        -
        -
        - <% end %> - - <%# Metadata %> -
        -
        -

        <%= t("curator.experiences.sections.metadata", default: "Metadata") %>

        -
        -
        -
        <%= t("curator.experiences.created_at") %>
        -
        <%= @experience.created_at.strftime("%d.%m.%Y %H:%M") %>
        -
        -
        -
        <%= t("curator.experiences.updated_at", default: "Updated") %>
        -
        <%= @experience.updated_at.strftime("%d.%m.%Y %H:%M") %>
        -
        -
        -
        <%= t("curator.experiences.average_rating", default: "Average Rating") %>
        -
        <%= @experience.average_rating.present? && @experience.average_rating > 0 ? "#{@experience.average_rating} / 5" : "-" %>
        -
        -
        -
        <%= t("curator.experiences.reviews_count", default: "Reviews") %>
        -
        <%= @experience.reviews_count %>
        -
        -
        -
        <%= t("curator.experiences.locations_count", default: "Locations") %>
        -
        <%= @experience.locations.count %>
        -
        -
        -
        -
        -
        diff --git a/app/views/curator/locations/_form.html.erb b/app/views/curator/locations/_form.html.erb deleted file mode 100644 index c5d7cc2c..00000000 --- a/app/views/curator/locations/_form.html.erb +++ /dev/null @@ -1,297 +0,0 @@ -<%= form_with model: [:curator, location], class: "space-y-6", local: true, html: { multipart: true } do |f| %> - <% if location.errors.any? %> -
        -
        -
          - <% location.errors.full_messages.each do |message| %> -
        • <%= message %>
        • - <% end %> -
        -
        -
        - <% end %> - - <%# Basic Information Section %> -
        -

        <%= t("curator.locations.sections.basic_info", default: "Basic Information") %>

        -
        -
        - <%= f.label :name, t("curator.locations.name"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_field :name, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
        - -
        - <%= f.label :city, t("curator.locations.city"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_field :city, - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", - placeholder: t("curator.locations.city_placeholder", default: "e.g. Sarajevo"), - list: "city_suggestions" %> - - <% city_names.each do |name| %> - -
        - -
        - <%= f.label :budget, t("curator.locations.budget"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.select :budget, - options_for_select(Location.budgets.keys.map { |b| [t("locations.budget.#{b}", default: b.humanize), b] }, location.budget), - {}, - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
        - -
        - <%= f.label :description, t("curator.locations.description"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_area :description, rows: 5, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
        - -
        - <%= f.label :historical_context, t("curator.locations.historical_context", default: "Historical Context"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_area :historical_context, rows: 4, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -

        <%= t("curator.locations.historical_context_hint", default: "Historical background and significance of this location") %>

        -
        -
        -
        - - <%# Location & Coordinates Section %> -
        -

        <%= t("curator.locations.sections.location", default: "Location & Coordinates") %>

        -
        -
        - <%= f.label :lat, t("curator.locations.latitude", default: "Latitude"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.number_field :lat, step: "any", class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", placeholder: "e.g. 43.8563" %> -
        - -
        - <%= f.label :lng, t("curator.locations.longitude", default: "Longitude"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.number_field :lng, step: "any", class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", placeholder: "e.g. 18.4131" %> -
        -
        -
        - - <%# Contact Information Section %> -
        -

        <%= t("curator.locations.sections.contact", default: "Contact Information") %>

        -
        -
        - <%= f.label :phone, t("curator.locations.phone"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_field :phone, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", placeholder: "+387 33 123 456" %> -
        - -
        - <%= f.label :email, t("curator.locations.email"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.email_field :email, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", placeholder: "contact@example.com" %> -
        - -
        - <%= f.label :website, t("curator.locations.website"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.url_field :website, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", placeholder: "https://example.com" %> -
        - -
        - <%= f.label :video_url, t("curator.locations.video_url", default: "Video URL"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.url_field :video_url, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", placeholder: "https://youtube.com/watch?v=..." %> -

        <%= t("curator.locations.video_url_hint", default: "YouTube or other video link about this location") %>

        -
        -
        -
        - - <%# Social Links Section %> -
        -

        <%= t("curator.locations.sections.social", default: "Social Media") %>

        -
        - <% Location.supported_social_platforms.each do |platform| %> -
        - <%= f.label "social_links_#{platform}", t("locations.social.#{platform}", default: platform.humanize), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_field "social_links[#{platform}]", - value: location.social_links[platform], - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", - placeholder: "https://#{platform}.com/..." %> -
        - <% end %> -
        -
        - - <%# Location Categories Section %> - <% if defined?(location_categories) && location_categories.any? %> -
        -

        <%= t("curator.locations.sections.categories", default: "Categories") %>

        -

        <%= t("curator.locations.categories_hint", default: "Select all categories that apply to this location") %>

        -
        - <% location_categories.each do |category| %> - - <% end %> -
        -
        - <% end %> - - <%# Experience Types Section %> -
        -

        <%= t("curator.locations.sections.experiences", default: "Suitable Experience Types") %>

        -

        <%= t("curator.locations.experiences_hint", default: "Select what types of experiences this location is suitable for") %>

        -
        - <% experience_types.each do |exp_type| %> - - <% end %> -
        -
        - - <%# Tags Section %> -
        -

        <%= t("curator.locations.sections.tags", default: "Tags") %>

        -
        - <%= f.label :tags_input, t("curator.locations.tags", default: "Tags"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_field :tags_input, - value: location.tags.join(", "), - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", - placeholder: t("curator.locations.tags_placeholder", default: "e.g. nature, historic, family-friendly") %> -

        <%= t("curator.locations.tags_hint", default: "Separate tags with commas") %>

        -
        -
        - - <%# Accessibility Section %> -
        -

        - - - - - <%= t("curator.locations.sections.accessibility", default: "Accessibility") %> - -

        -

        <%= t("curator.locations.accessibility_hint", default: "Wheelchair and disability access information for this location") %>

        - -
        - <%# Wheelchair Access Level %> -
        - <%= f.label "accessibility[wheelchair_access]", t("accessibility.wheelchair_access", default: "Wheelchair Access"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.select "accessibility[wheelchair_access]", - options_for_select([ - [t("accessibility.levels.unknown", default: "Unknown"), "unknown"], - [t("accessibility.levels.full", default: "Full access"), "full"], - [t("accessibility.levels.partial", default: "Partial access"), "partial"], - [t("accessibility.levels.none", default: "Not accessible"), "none"] - ], location.wheelchair_access), - {}, - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
        - - <%# Spacer for grid alignment %> -
        - - <%# Accessibility Features - Checkboxes %> -
        - <%= t("accessibility.features_label", default: "Available Features") %> -
        - <% [ - ["ramp", t("accessibility.features.ramp", default: "Ramp")], - ["elevator", t("accessibility.features.elevator", default: "Elevator")], - ["flat_terrain", t("accessibility.features.flat_terrain", default: "Flat terrain")], - ["wheelchair_parking", t("accessibility.features.wheelchair_parking", default: "Parking")], - ["wheelchair_toilet", t("accessibility.features.wheelchair_toilet", default: "Accessible WC")] - ].each do |feature, label| %> - - <% end %> -
        -
        - - <%# Accessibility Notes %> -
        - <%= f.label "accessibility[notes]", t("accessibility.notes_label", default: "Accessibility Notes"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_area "accessibility[notes]", - value: location.accessibility_notes, - rows: 3, - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", - placeholder: t("accessibility.notes_placeholder", default: "e.g. Ramp at main entrance. Restroom on 2nd floor, no elevator.") %> -
        -
        -
        - - <%# Photos Section %> -
        -

        <%= t("curator.locations.sections.photos", default: "Photos") %>

        - - <% if location.persisted? && location.photos.attached? %> -
        -

        <%= t("curator.locations.current_photos", default: "Current photos") %> (<%= location.photos.count %>):

        -
        - <% location.photos.each do |photo| %> -
        - <%= image_tag rails_blob_path(photo, disposition: "inline"), class: "w-full h-32 object-cover rounded-lg" %> - -
        - <% end %> -
        -

        <%= t("curator.locations.remove_photos_hint", default: "Click the trash icon to mark photos for removal") %>

        -
        - <% end %> - -
        - <%= f.label :photos, t("curator.locations.add_photos", default: "Add Photos"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.file_field :photos, multiple: true, accept: "image/*", class: "mt-1 block w-full text-sm text-gray-500 dark:text-gray-400 file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-sm file:font-semibold file:bg-emerald-50 file:text-emerald-700 hover:file:bg-emerald-100" %> -

        <%= t("curator.locations.photos_hint", default: "You can select multiple photos. Supported formats: JPG, PNG, WebP") %>

        -
        -
        - - <%# Audio Info Section %> - <% default_audio_tour = location.persisted? ? location.audio_tour_for("bs") : nil %> - <% has_audio = default_audio_tour&.audio_file&.attached? %> -
        -
        -
        - - - -
        -
        -

        <%= t("curator.locations.audio_generation_title", default: "Audio Tour Generation") %>

        -
        -

        <%= t("curator.locations.audio_generation_hint", default: "Audio tours are automatically generated by AI based on the script text. Use the Audio Tours section to create or edit tour scripts.") %>

        -
        -
        -
        - - <% if has_audio %> -
        -

        <%= t("curator.locations.current_audio", default: "Current audio recording") %>:

        - -
        - <% end %> - - <% if location.persisted? %> -
        -

        - <%= t("curator.locations.manage_audio_tours", default: "For multilingual audio tours, use the") %> - <%= link_to t("curator.audio_tours.title", default: "Audio Tours"), curator_audio_tours_path(location_id: location.to_param), class: "text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 font-medium underline" %> - <%= t("curator.locations.section", default: "section") %>. -

        -
        - <% end %> -
        - -
        - <%= link_to t("common.cancel"), curator_locations_path, - class: "rounded-md bg-white dark:bg-gray-800 px-3 py-2 text-sm font-semibold text-gray-900 dark:text-white shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700" %> - <%= f.submit t("common.save"), class: "rounded-md bg-emerald-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500 cursor-pointer" %> -
        -<% end %> diff --git a/app/views/curator/locations/_location_item.html.erb b/app/views/curator/locations/_location_item.html.erb deleted file mode 100644 index 3bef8c12..00000000 --- a/app/views/curator/locations/_location_item.html.erb +++ /dev/null @@ -1,75 +0,0 @@ -<%= link_to curator_location_path(location), class: "block bg-white dark:bg-gray-800 rounded-2xl shadow-sm hover:shadow-lg transition-all overflow-hidden group" do %> - <%# Image %> -
        - <% if location.photos.attached? && location.photos.first.present? %> - <% photo = location.photos.first %> - <% if photo.variable? %> - <%= image_tag photo.variant(resize_to_fill: [400, 300]), - alt: location.name, - loading: "lazy", - class: "w-full h-full object-cover group-hover:scale-105 transition-transform duration-300" %> - <% else %> - <%= image_tag photo, - alt: location.name, - loading: "lazy", - class: "w-full h-full object-cover group-hover:scale-105 transition-transform duration-300" %> - <% end %> - <% else %> -
        - - - -
        - <% end %> - <%# Type badge %> -
        - - <%= location_type_label(location.category_key) %> - -
        -
        - - <%# Content %> -
        -

        <%= location.name %>

        - - <% if location.city.present? %> -

        - - - - <%= location.city %> -

        - <% end %> - - <% if location.description.present? %> -

        <%= truncate(strip_tags(location.description), length: 100) %>

        - <% end %> - - <%# Rating & date %> -
        - <% if location.average_rating.to_f > 0 %> -
        - - - - <%= number_with_precision(location.average_rating, precision: 1) %> - (<%= location.reviews_count %>) -
        - <% else %> - <%= t("explore.no_reviews", default: "Bez recenzija") %> - <% end %> - <%= location.created_at.strftime("%d.%m.%Y") %> -
        - - <%# Suggest changes %> -
        - - - - - <%= t("curator.suggest_changes", default: "Predloži izmjene") %> - -
        -
        -<% end %> diff --git a/app/views/curator/locations/_location_items.html.erb b/app/views/curator/locations/_location_items.html.erb deleted file mode 100644 index c0a6039a..00000000 --- a/app/views/curator/locations/_location_items.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -<% locations.each do |location| %> - <%= render "curator/locations/location_item", location: location %> -<% end %> diff --git a/app/views/curator/locations/_needs_photo_item.html.erb b/app/views/curator/locations/_needs_photo_item.html.erb deleted file mode 100644 index 6ebd92a9..00000000 --- a/app/views/curator/locations/_needs_photo_item.html.erb +++ /dev/null @@ -1,18 +0,0 @@ -
        -
        - <%= link_to location.name, curator_location_path(location), - class: "font-medium text-gray-900 dark:text-white hover:text-emerald-600 dark:hover:text-emerald-400 truncate block" %> -

        <%= location.city %>

        -
        - - <% photos_count = location.photos_count.to_i %> - - <%= photos_count %> - - - <%= link_to avo.edit_resources_location_path(location), - class: "flex-shrink-0 rounded-md bg-emerald-600 px-3 py-1.5 text-xs font-medium text-white hover:bg-emerald-500" do %> - + <%= t("curator.locations.needs_photos.add_photo") %> - <% end %> -
        diff --git a/app/views/curator/locations/_needs_photo_items.html.erb b/app/views/curator/locations/_needs_photo_items.html.erb deleted file mode 100644 index c57847e9..00000000 --- a/app/views/curator/locations/_needs_photo_items.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -<% locations.each do |location| %> - <%= render "curator/locations/needs_photo_item", location: location %> -<% end %> diff --git a/app/views/curator/locations/edit.html.erb b/app/views/curator/locations/edit.html.erb deleted file mode 100644 index fe18bf28..00000000 --- a/app/views/curator/locations/edit.html.erb +++ /dev/null @@ -1,15 +0,0 @@ -
        -
        -

        <%= t("curator.locations.edit_title", name: @location.name) %>

        -
        - <%= link_to t("curator.locations.back_to_view", default: "Back to View"), curator_location_path(@location), - class: "inline-flex items-center rounded-md bg-white dark:bg-gray-800 px-3 py-2 text-sm font-semibold text-gray-900 dark:text-white shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700" %> -
        -
        - -
        -
        - <%= render "form", location: @location, city_names: @city_names, experience_types: @experience_types %> -
        -
        -
        diff --git a/app/views/curator/locations/index.html.erb b/app/views/curator/locations/index.html.erb deleted file mode 100644 index 434c2021..00000000 --- a/app/views/curator/locations/index.html.erb +++ /dev/null @@ -1,143 +0,0 @@ -
        -
        -

        <%= t("curator.locations.title") %>

        - <% if Flipper.enabled?(:curator_edit_delete) %> - <%= link_to t("curator.locations.new"), new_curator_location_path, - class: "inline-flex items-center justify-center rounded-md bg-emerald-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500 w-full sm:w-auto" %> - <% end %> -
        - - - <%= render "curator/shared/pending_proposals", pending_proposals: @pending_proposals %> - - -
        - -
        - -
        - - - -
        - - -
        - <%= t("curator.locations.count", count: @locations.total_count, default: "#{@locations.total_count} locations") %> -
        - - -
        - -
        - <%= render "curator/locations/location_items", locations: @locations %> -
        - - <% if @locations.empty? %> -
        - <%= t("curator.locations.no_locations") %> -
        - <% end %> - - - <% if @locations.total_pages > 1 %> -
        - - - -
        - <% end %> -
        -
        diff --git a/app/views/curator/locations/needs_photos.html.erb b/app/views/curator/locations/needs_photos.html.erb deleted file mode 100644 index a2fa7853..00000000 --- a/app/views/curator/locations/needs_photos.html.erb +++ /dev/null @@ -1,71 +0,0 @@ -
        -
        -
        -

        <%= t("curator.locations.needs_photos.title") %>

        -

        <%= t("curator.locations.needs_photos.description") %>

        -
        - <%= link_to curator_locations_path, class: "text-sm text-emerald-600 dark:text-emerald-400 hover:text-emerald-800 dark:hover:text-emerald-300" do %> - ← <%= t("curator.locations.back_to_list") %> - <% end %> -
        - - <%# Filters %> -
        - <%= form_with url: needs_photos_curator_locations_path, method: :get, local: true, class: "flex flex-wrap gap-4 items-end" do %> -
        - - <%= select_tag :city, - options_for_select([["-- #{t('common.all')} --", ""]] + @city_names.map { |c| [c, c] }, params[:city]), - class: "block w-full rounded-md border-0 py-2 px-3 text-gray-900 dark:text-white dark:bg-gray-700 shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-600 focus:ring-2 focus:ring-emerald-600 sm:text-sm" %> -
        -
        - - <%= select_tag :max_photos, - options_for_select([[t("common.all"), ""], ["0", 0], ["1", 1], ["2", 2], ["3", 3], ["5", 5]], params[:max_photos]), - class: "block w-full rounded-md border-0 py-2 px-3 text-gray-900 dark:text-white dark:bg-gray-700 shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-600 focus:ring-2 focus:ring-emerald-600 sm:text-sm" %> -
        -
        - <%= submit_tag t("common.filter"), class: "rounded-md bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500 cursor-pointer" %> -
        - <% end %> -
        - - <%# Results %> - <% if @locations.any? %> -
        - -
        - <%= render "curator/locations/needs_photo_items", locations: @locations %> -
        - - <%# Load More %> -
        - - -
        -
        - <% else %> -
        - - - -

        <%= t("curator.locations.needs_photos.no_results") %>

        -

        <%= t("curator.locations.needs_photos.no_results_hint") %>

        -
        - <% end %> -
        diff --git a/app/views/curator/locations/new.html.erb b/app/views/curator/locations/new.html.erb deleted file mode 100644 index e670fa2a..00000000 --- a/app/views/curator/locations/new.html.erb +++ /dev/null @@ -1,15 +0,0 @@ -
        -
        -

        <%= t("curator.locations.new") %>

        -
        - <%= link_to t("curator.locations.back_to_list"), curator_locations_path, - class: "inline-flex items-center rounded-md bg-white dark:bg-gray-800 px-3 py-2 text-sm font-semibold text-gray-900 dark:text-white shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700" %> -
        -
        - -
        -
        - <%= render "form", location: @location, city_names: @city_names, experience_types: @experience_types %> -
        -
        -
        diff --git a/app/views/curator/locations/show.html.erb b/app/views/curator/locations/show.html.erb deleted file mode 100644 index c73b4fc1..00000000 --- a/app/views/curator/locations/show.html.erb +++ /dev/null @@ -1,360 +0,0 @@ -
        - <%= render "curator/shared/pending_proposal_banner", pending_proposal: @pending_proposal %> - -
        -

        <%= @location.name %>

        -
        - <%= link_to location_path(@location), - class: "inline-flex items-center justify-center rounded-md bg-blue-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-500" do %> - - - - - <%= t("curator.locations.view_in_app", default: "View in App") %> - <% end %> - <% if Flipper.enabled?(:curator_edit_delete) %> - <% held = @location.held_records_count %> - <%= link_to edit_curator_location_path(@location), - class: "inline-flex items-center justify-center rounded-md bg-emerald-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500" do %> - - - - <%= t("curator.locations.edit") %> - <% end %> - <%# Retiring keeps every moment and visit; it lands directly because it is reversible %> - <% if @location.archived? %> - <%= button_to restore_curator_location_path(@location), - method: :patch, - class: "inline-flex items-center justify-center rounded-md bg-slate-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-slate-500" do %> - - - - <%= t("curator.locations.restore") %> - <% end %> - <% else %> - <%= button_to archive_curator_location_path(@location), - method: :patch, - class: "inline-flex items-center justify-center rounded-md bg-slate-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-slate-500", - data: { turbo_confirm: t("curator.locations.confirm_archive", name: @location.name) } do %> - - - - <%= t("curator.locations.archive") %> - <% end %> - <% end %> - <%# Files a deletion proposal for admin review — this one takes the memories %> - <%= button_to curator_location_path(@location), - method: :delete, - class: "inline-flex items-center justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500", - data: { turbo_confirm: held.zero? ? t("curator.locations.confirm_delete", name: @location.name) : t("curator.locations.confirm_delete_with_memories", name: @location.name, count: held) } do %> - - - - <%= t("curator.locations.delete") %> - <% end %> - <% end %> - <%= link_to avo.edit_resources_location_path(@location), - class: "inline-flex items-center justify-center rounded-md bg-amber-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-amber-500" do %> - - - - <%= t("curator.locations.needs_photos.add_photo") %> - <% end %> - <%= link_to curator_locations_path, - class: "inline-flex items-center justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 dark:bg-gray-800 dark:text-white dark:ring-gray-600 dark:hover:bg-gray-700" do %> - - - - <%= t("curator.locations.back_to_list") %> - <% end %> -
        -
        - - <%# Photos Section %> - <% if @location.photos.attached? %> -
        -
        -

        <%= t("curator.locations.sections.photos", default: "Photos") %> (<%= @location.photos.count %>)

        -
        - <% @location.photos.each do |photo| %> - <%= image_tag rails_blob_path(photo, disposition: "inline"), class: "w-full h-40 object-cover rounded-lg" %> - <% end %> -
        -
        -
        - <% end %> - - <%# Basic Information %> -
        -
        -

        <%= t("curator.locations.sections.basic_info", default: "Basic Information") %>

        -
        -
        -
        <%= t("curator.locations.name") %>
        -
        <%= @location.name %>
        -
        -
        -
        <%= t("curator.locations.city") %>
        -
        <%= @location.city.presence || "-" %>
        -
        -
        -
        <%= t("curator.locations.type") %>
        -
        - - <%= location_type_label(@location.category_key) %> - -
        -
        -
        -
        <%= t("curator.locations.budget") %>
        -
        - - <%= t("locations.budget.#{@location.budget}", default: @location.budget&.humanize) %> - -
        -
        -
        -
        <%= t("curator.locations.description") %>
        -
        <%= simple_format(@location.description) if @location.description.present? %>
        -
        - <% if @location.historical_context.present? %> -
        -
        <%= t("curator.locations.historical_context", default: "Historical Context") %>
        -
        <%= simple_format(@location.historical_context) %>
        -
        - <% end %> -
        -
        -
        - - <%# Location & Coordinates %> -
        -
        -

        <%= t("curator.locations.sections.location", default: "Location & Coordinates") %>

        -
        -
        -
        <%= t("curator.locations.address") %>
        -
        <%= @location.address || "-" %>
        -
        -
        -
        <%= t("curator.locations.coordinates") %>
        -
        - <% if @location.lat.present? && @location.lng.present? %> - <%= @location.lat %>, <%= @location.lng %> - - (<%= t("curator.locations.view_on_map", default: "View on map") %>) - - <% else %> - - - <% end %> -
        -
        -
        -
        -
        - - <%# Contact Information %> - <% if @location.has_contact_info? || @location.video_url.present? %> -
        -
        -

        <%= t("curator.locations.sections.contact", default: "Contact Information") %>

        -
        - <% if @location.phone.present? %> -
        -
        <%= t("curator.locations.phone") %>
        -
        - <%= link_to @location.phone, "tel:#{@location.phone}", class: "text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" %> -
        -
        - <% end %> - <% if @location.email.present? %> -
        -
        <%= t("curator.locations.email") %>
        -
        - <%= link_to @location.email, "mailto:#{@location.email}", class: "text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" %> -
        -
        - <% end %> - <% if @location.website.present? %> -
        -
        <%= t("curator.locations.website") %>
        -
        - <% if (href = safe_external_url(@location.website)) %> - <%= link_to @location.website, href, target: "_blank", rel: "noopener", class: "text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" %> - <% else %> - <%= @location.website %> - <% end %> -
        -
        - <% end %> - <% if @location.video_url.present? %> -
        -
        <%= t("curator.locations.video_url", default: "Video URL") %>
        -
        - <% if (href = safe_external_url(@location.video_url)) %> - <%= link_to @location.video_url, href, target: "_blank", rel: "noopener", class: "text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" %> - <% else %> - <%= @location.video_url %> - <% end %> -
        -
        - <% end %> -
        -
        -
        - <% end %> - - <%# Social Links %> - <% if @location.social_links.present? && @location.social_links.any? %> -
        -
        -

        <%= t("curator.locations.sections.social", default: "Social Media") %>

        -
        - <% @location.social_links.each do |platform, url| %> - <% next if url.blank? %> -
        -
        <%= t("locations.social.#{platform}", default: platform.humanize) %>
        -
        - <%= link_to url, url, target: "_blank", rel: "noopener", class: "text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" %> -
        -
        - <% end %> -
        -
        -
        - <% end %> - - <%# Experience Types %> - <% if @location.suitable_experiences.present? && @location.suitable_experiences.any? %> -
        -
        -

        <%= t("curator.locations.sections.experiences", default: "Suitable Experience Types") %>

        -
        - <% @location.experience_types.each do |exp_type| %> - - <%= exp_type.name %> - - <% end %> -
        -
        -
        - <% end %> - - <%# Tags %> - <% if @location.tags.present? && @location.tags.any? %> -
        -
        -

        <%= t("curator.locations.sections.tags", default: "Tags") %>

        -
        - <% @location.tags.each do |tag| %> - - <%= tag %> - - <% end %> -
        -
        -
        - <% end %> - - <%# Accessibility %> -
        -
        -

        - - - - <%= t("curator.locations.sections.accessibility", default: "Accessibility") %> -

        -
        -
        -
        <%= t("accessibility.wheelchair_access", default: "Wheelchair Access") %>
        -
        - <% level = @location.wheelchair_access %> - - <%= t("accessibility.levels.#{level}", default: level.humanize) %> - -
        -
        -
        -
        <%= t("accessibility.features_label", default: "Features") %>
        -
        - <% features = Location::ACCESSIBILITY_FEATURES.select { |f| @location.accessibility_feature?(f) } %> - <% if features.any? %> -
        - <% features.each do |feature| %> - - <%= t("accessibility.features.#{feature}", default: feature.humanize) %> - - <% end %> -
        - <% else %> - - - <% end %> -
        -
        - <% if @location.accessibility_notes.present? %> -
        -
        <%= t("accessibility.notes_label", default: "Notes") %>
        -
        <%= @location.accessibility_notes %>
        -
        - <% end %> -
        -
        -
        - - <%# Audio Tours %> - <% if @location.has_audio_tours? %> -
        -
        -
        -

        <%= t("curator.locations.sections.audio", default: "Audio Tours") %>

        - <%= link_to curator_audio_tours_path(location_id: @location.to_param), class: "text-sm text-emerald-600 dark:text-emerald-400 hover:text-emerald-700 dark:hover:text-emerald-300" do %> - <%= t("curator.locations.manage_all", default: "Manage all") %> → - <% end %> -
        -
        - <% @location.audio_tours.with_audio.each do |audio_tour| %> -
        - <%= audio_tour.language_name %> - -
        - <% end %> -
        -
        -
        - <% end %> - - <%# Metadata %> -
        -
        -

        <%= t("curator.locations.sections.metadata", default: "Metadata") %>

        -
        -
        -
        <%= t("curator.locations.created_at") %>
        -
        <%= @location.created_at.strftime("%d.%m.%Y %H:%M") %>
        -
        -
        -
        <%= t("curator.locations.updated_at", default: "Updated") %>
        -
        <%= @location.updated_at.strftime("%d.%m.%Y %H:%M") %>
        -
        -
        -
        <%= t("curator.locations.average_rating", default: "Average Rating") %>
        -
        <%= @location.average_rating.present? ? "#{@location.average_rating} / 5" : "-" %>
        -
        -
        -
        <%= t("curator.locations.reviews_count", default: "Reviews") %>
        -
        <%= @location.reviews_count %>
        -
        -
        -
        -
        -
        diff --git a/app/views/curator/plans/_form.html.erb b/app/views/curator/plans/_form.html.erb deleted file mode 100644 index 6c533297..00000000 --- a/app/views/curator/plans/_form.html.erb +++ /dev/null @@ -1,211 +0,0 @@ -<%= form_with model: [:curator, plan], class: "space-y-6", local: true do |f| %> - <% if plan.errors.any? %> -
        -
        -
        -

        <%= t("errors.messages.form_errors", count: plan.errors.count) %>

        -
        -
          - <% plan.errors.full_messages.each do |message| %> -
        • <%= message %>
        • - <% end %> -
        -
        -
        -
        -
        - <% end %> - - <%# Basic Information Section %> -
        -
        -

        <%= t("curator.plans.sections.basic_info") %>

        - -
        -
        - <%= f.label :title, t("curator.plans.plan_title"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_field :title, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
        - -
        - <%= f.label :city_name, t("curator.plans.city"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.select :city_name, - options_for_select([[t("curator.plans.select_city"), ""]] + city_names.map { |c| [c, c] }, plan.city_name), - {}, - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
        - -
        - <%= f.label :visibility, t("curator.plans.visibility"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.select :visibility, - options_for_select([ - [t("curator.plans.public"), "public_plan"], - [t("curator.plans.private"), "private_plan"] - ], plan.visibility), - {}, - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -

        <%= t("curator.plans.visibility_hint") %>

        -
        - -
        - <%= f.label :start_date, t("curator.plans.start_date"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.date_field :start_date, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
        - -
        - <%= f.label :end_date, t("curator.plans.end_date"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.date_field :end_date, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
        - -
        - <%= f.label :notes, t("curator.plans.notes"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_area :notes, rows: 4, class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -

        <%= t("curator.plans.notes_hint") %>

        -
        -
        -
        -
        - - <%# Preferences Section %> -
        -
        -

        <%= t("curator.plans.sections.preferences", default: "Preferences") %>

        -

        <%= t("curator.plans.preferences_hint", default: "Set default preferences for this plan") %>

        - -
        -
        - <%= f.label :budget, t("curator.plans.budget", default: "Budget"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.select :budget, - options_for_select([ - [t("curator.plans.select_budget", default: "Select budget..."), ""], - [t("curator.plans.budget_low", default: "Low"), "low"], - [t("curator.plans.budget_medium", default: "Medium"), "medium"], - [t("curator.plans.budget_high", default: "High"), "high"] - ], plan.preferences&.dig("budget")), - {}, - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
        - -
        - <%= f.label :daily_hours, t("curator.plans.daily_hours", default: "Hours per day"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.select :daily_hours, - options_for_select([ - [t("curator.plans.select_hours", default: "Select hours..."), ""], - ["4 #{t('curator.plans.hours', default: 'hours')}", 4], - ["6 #{t('curator.plans.hours', default: 'hours')}", 6], - ["8 #{t('curator.plans.hours', default: 'hours')}", 8], - ["10 #{t('curator.plans.hours', default: 'hours')}", 10], - ["12 #{t('curator.plans.hours', default: 'hours')}", 12] - ], plan.preferences&.dig("daily_hours")), - {}, - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -
        - -
        - <%= f.label :custom_title, t("curator.plans.custom_title", default: "Custom Title"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_field :custom_title, - value: plan.preferences&.dig("custom_title"), - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", - placeholder: t("curator.plans.custom_title_placeholder", default: "Optional custom display title") %> -

        <%= t("curator.plans.custom_title_hint", default: "If set, this will be shown instead of the auto-generated title") %>

        -
        -
        -
        -
        - - <%# Interests Section %> - <% if defined?(experience_types) && experience_types.any? %> -
        -
        -

        <%= t("curator.plans.sections.interests", default: "Interests") %>

        -

        <%= t("curator.plans.interests_hint", default: "Select interests that this plan focuses on") %>

        - -
        - <% current_interests = plan.preferences&.dig("interests") || [] %> - <% experience_types.each do |exp_type| %> - - <% end %> -
        -
        -
        - <% end %> - - <%# Experiences Section %> - <% if defined?(experiences) && experiences.any? %> -
        -
        -

        <%= t("curator.plans.sections.experiences") %>

        -

        <%= t("curator.plans.experiences_management_hint", default: "Select experiences for each day of the plan. The order in each select determines the order of experiences.") %>

        - - <% max_days = [plan.plan_experiences.maximum(:day_number) || 1, 7].max %> -
        - <% (1..max_days).each do |day_num| %> - <% current_experience_uuids = plan.persisted? ? plan.plan_experiences_for_day(day_num).includes(:experience).map { |pe| pe.experience.uuid } : [] %> -
        - - <%= select_tag "plan[experience_days][#{day_num}][]", - options_from_collection_for_select(experiences, :uuid, :title, current_experience_uuids), - multiple: true, - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", - data: { placeholder: t("curator.plans.select_experiences", default: "Select experiences for this day...") } %> -

        <%= t("curator.plans.day_hint", default: "Hold Ctrl/Cmd to select multiple. Leave empty if no activities for this day.") %>

        -
        - <% end %> -
        - -
        -
        -
        - - - -
        -
        -

        - <%= t("curator.plans.experiences_warning", default: "Changes to experiences will replace the current plan structure when the proposal is approved.") %> -

        -
        -
        -
        -
        -
        - <% end %> - - <%# Standalone locations per day (optional extras alongside experiences) %> - <% if defined?(locations) && locations.any? %> -
        -
        -

        <%= t("curator.plans.sections.locations", default: "Locations") %>

        -

        <%= t("curator.plans.locations_management_hint", default: "Optionally add standalone locations to visit on each day, alongside the experiences.") %>

        - - <% max_location_days = [ plan.plan_experiences.maximum(:day_number) || 1, plan.plan_locations.maximum(:day_number) || 1, 7 ].max %> -
        - <% (1..max_location_days).each do |day_num| %> - <% current_location_uuids = plan.persisted? ? plan.plan_locations.where(day_number: day_num).order(:position).includes(:location).map { |pl| pl.location.uuid } : [] %> -
        - - <%= select_tag "plan[location_days][#{day_num}][]", - options_from_collection_for_select(locations, :uuid, :name, current_location_uuids), - multiple: true, - class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm", - data: { placeholder: t("curator.plans.select_locations", default: "Select locations for this day...") } %> -

        <%= t("curator.plans.day_hint", default: "Hold Ctrl/Cmd to select multiple. Leave empty if no activities for this day.") %>

        -
        - <% end %> -
        -
        -
        - <% end %> - -
        - <%= link_to t("common.cancel"), curator_plans_path, class: "rounded-md bg-white dark:bg-gray-800 px-3 py-2 text-sm font-semibold text-gray-900 dark:text-white shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700" %> - <%= f.submit t("common.save"), class: "rounded-md bg-emerald-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500 cursor-pointer" %> -
        -<% end %> diff --git a/app/views/curator/plans/_plan_item.html.erb b/app/views/curator/plans/_plan_item.html.erb deleted file mode 100644 index 0942612d..00000000 --- a/app/views/curator/plans/_plan_item.html.erb +++ /dev/null @@ -1,70 +0,0 @@ -<%= link_to curator_plan_path(plan), class: "block bg-white dark:bg-gray-800 rounded-2xl shadow-sm hover:shadow-lg transition-all overflow-hidden group" do %> - <%# Header %> -
        -
        - - - -

        <%= plan.calculated_duration_days %> <%= plan.calculated_duration_days == 1 ? 'dan' : 'dana' %>

        -
        - <%# Visibility badge %> -
        - <% if plan.visibility_public_plan? %> - - <%= t("curator.plans.public") %> - - <% else %> - - <%= t("curator.plans.private") %> - - <% end %> -
        -
        - - <%# Content %> -
        -

        <%= plan.title %>

        - - <% if plan.city_name.present? %> -

        - - - - <%= plan.city_name %> -

        - <% end %> - -

        - <%= plan.experiences.count %> <%= t("curator.plans.experiences").downcase %> - <% if plan.user.present? %> - · <%= plan.user.username %> - <% end %> -

        - - <%# Rating & date %> -
        - <% if plan.average_rating.to_f > 0 %> -
        - - - - <%= number_with_precision(plan.average_rating, precision: 1) %> - (<%= plan.reviews_count %>) -
        - <% else %> - <%= t("explore.no_reviews", default: "Bez recenzija") %> - <% end %> - <%= plan.created_at.strftime("%d.%m.%Y") %> -
        - - <%# Suggest changes %> -
        - - - - - <%= t("curator.suggest_changes", default: "Predloži izmjene") %> - -
        -
        -<% end %> diff --git a/app/views/curator/plans/_plan_items.html.erb b/app/views/curator/plans/_plan_items.html.erb deleted file mode 100644 index 3895b867..00000000 --- a/app/views/curator/plans/_plan_items.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -<% plans.each do |plan| %> - <%= render "curator/plans/plan_item", plan: plan %> -<% end %> diff --git a/app/views/curator/plans/edit.html.erb b/app/views/curator/plans/edit.html.erb deleted file mode 100644 index 503d3b5c..00000000 --- a/app/views/curator/plans/edit.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -
        -
        -

        <%= t("curator.plans.edit_title", title: @plan.title) %>

        - <%= link_to t("curator.plans.back_to_view", default: "Back to View"), curator_plan_path(@plan), class: "text-sm text-emerald-600 hover:text-emerald-900 dark:hover:text-emerald-700" %> -
        - - <%= render "form", plan: @plan, city_names: @city_names, experience_types: @experience_types, experiences: @experiences, locations: @locations %> -
        diff --git a/app/views/curator/plans/index.html.erb b/app/views/curator/plans/index.html.erb deleted file mode 100644 index bbed2ea3..00000000 --- a/app/views/curator/plans/index.html.erb +++ /dev/null @@ -1,112 +0,0 @@ -
        -
        -

        <%= t("curator.plans.title") %>

        - <% if Flipper.enabled?(:curator_edit_delete) %> - <%= link_to t("curator.plans.new"), new_curator_plan_path, - class: "inline-flex items-center justify-center rounded-md bg-emerald-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500 w-full sm:w-auto" %> - <% end %> -
        - - - <%= render "curator/shared/pending_proposals", pending_proposals: @pending_proposals %> - - -
        -
        -
        <%= t("curator.plans.total") %>
        -
        <%= @stats[:total] %>
        -
        -
        -
        <%= t("curator.plans.public") %>
        -
        <%= @stats[:public_plans] %>
        -
        -
        -
        <%= t("curator.plans.private") %>
        -
        <%= @stats[:private_plans] %>
        -
        -
        -
        <%= t("curator.plans.with_experiences") %>
        -
        <%= @stats[:with_experiences] %>
        -
        -
        - - -
        - <%= form_with url: curator_plans_path, method: :get, class: "flex flex-col sm:flex-row flex-wrap gap-3" do |f| %> -
        - <%= f.text_field :search, - value: params[:search], - placeholder: t("curator.plans.search_placeholder"), - class: "block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white text-sm shadow-sm focus:border-emerald-500 focus:ring-emerald-500" %> -
        -
        - <%= f.select :city_name, - options_for_select([[t("curator.plans.all_cities"), ""]] + @city_names.map { |c| [c, c] }, params[:city_name]), - {}, - class: "block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white text-sm shadow-sm focus:border-emerald-500 focus:ring-emerald-500" %> -
        -
        - <%= f.select :visibility, - options_for_select([ - [t("curator.plans.all_visibility"), ""], - [t("curator.plans.public"), "public"], - [t("curator.plans.private"), "private"] - ], params[:visibility]), - {}, - class: "block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white text-sm shadow-sm focus:border-emerald-500 focus:ring-emerald-500" %> -
        -
        - <%= f.submit t("common.search"), class: "w-full sm:w-auto inline-flex justify-center items-center rounded-md bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500 cursor-pointer" %> -
        - <% end %> -
        - - -
        - <%= t("curator.plans.count", count: @plans.total_count, default: "#{@plans.total_count} plans") %> -
        - - -
        - -
        - <%= render "curator/plans/plan_items", plans: @plans %> -
        - - <% if @plans.empty? %> -
        - <%= t("curator.plans.no_plans") %> -
        - <% end %> - - - <% if @plans.total_pages > 1 %> -
        - - - -
        - <% end %> -
        -
        diff --git a/app/views/curator/plans/new.html.erb b/app/views/curator/plans/new.html.erb deleted file mode 100644 index 323ccded..00000000 --- a/app/views/curator/plans/new.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -
        -
        -

        <%= t("curator.plans.new") %>

        - <%= link_to t("curator.plans.back_to_list"), curator_plans_path, class: "text-sm text-emerald-600 hover:text-emerald-900 dark:hover:text-emerald-700" %> -
        - - <%= render "form", plan: @plan, city_names: @city_names, experience_types: @experience_types, experiences: @experiences, locations: @locations %> -
        diff --git a/app/views/curator/plans/show.html.erb b/app/views/curator/plans/show.html.erb deleted file mode 100644 index 7e59892c..00000000 --- a/app/views/curator/plans/show.html.erb +++ /dev/null @@ -1,159 +0,0 @@ -
        - <%= render "curator/shared/pending_proposal_banner", pending_proposal: @pending_proposal %> - -
        -

        <%= @plan.title %>

        -
        - <%= link_to curator_plans_path, - class: "inline-flex items-center justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 dark:bg-gray-800 dark:text-white dark:ring-gray-600 dark:hover:bg-gray-700" do %> - - - - <%= t("curator.plans.back_to_list") %> - <% end %> - <%= link_to plan_path(@plan), - class: "inline-flex items-center justify-center rounded-md bg-blue-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-500" do %> - - - - - <%= t("curator.plans.view_in_app", default: "View in App") %> - <% end %> - <% if Flipper.enabled?(:curator_edit_delete) %> - <%= link_to edit_curator_plan_path(@plan), - class: "inline-flex items-center justify-center rounded-md bg-emerald-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500" do %> - - - - <%= t("curator.plans.edit", default: "Edit") %> - <% end %> - <%# Files a deletion proposal for admin review %> - <%= button_to curator_plan_path(@plan), - method: :delete, - class: "inline-flex items-center justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500", - data: { turbo_confirm: t("curator.plans.confirm_delete", title: @plan.title) } do %> - - - - <%= t("curator.plans.delete") %> - <% end %> - <% end %> -
        -
        - -
        -
        -
        - <% if @plan.visibility_public_plan? %> - - <%= t("curator.plans.public") %> - - <% else %> - - <%= t("curator.plans.private") %> - - <% end %> - <% if @plan.reviews_count.to_i > 0 %> - - - - - <%= @plan.average_rating&.round(1) || 0 %> (<%= @plan.reviews_count %>) - - <% end %> -
        - -
        -
        -
        <%= t("curator.plans.city") %>
        -
        <%= @plan.city_name %>
        -
        -
        -
        <%= t("curator.plans.author") %>
        -
        <%= @plan.user&.username || t("curator.plans.no_author") %>
        -
        -
        -
        <%= t("curator.plans.duration") %>
        -
        <%= @plan.duration_in_days %> <%= t("plans.day_plural") %>
        -
        -
        -
        <%= t("curator.plans.created_at") %>
        -
        <%= @plan.created_at.strftime("%d.%m.%Y %H:%M") %>
        -
        - <% if @plan.start_date.present? && @plan.end_date.present? %> -
        -
        <%= t("curator.plans.dates") %>
        -
        <%= @plan.start_date.strftime("%d.%m.%Y") %> - <%= @plan.end_date.strftime("%d.%m.%Y") %>
        -
        - <% end %> - <% if @plan.notes.present? %> -
        -
        <%= t("curator.plans.notes") %>
        -
        <%= @plan.notes %>
        -
        - <% end %> -
        -
        -
        - - - <% if @plan.plan_experiences.any? %> -
        -
        -

        <%= t("curator.plans.experiences") %>

        - - <% (1..@plan.duration_in_days).each do |day_num| %> - <% day_experiences = @plan.plan_experiences_for_day(day_num) %> - <% if day_experiences.any? %> -
        -

        <%= t("plans.show.day", number: day_num) %>

        -
          - <% day_experiences.each do |pe| %> -
        • - - <%= pe.position %> - - <%= link_to pe.experience.title, curator_experience_path(pe.experience), class: "text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" %> - (<%= pe.experience.locations.count %> <%= t("curator.plans.locations") %>) -
        • - <% end %> -
        -
        - <% end %> - <% end %> -
        -
        - <% end %> - - - <% if @plan.plan_locations.any? %> -
        -
        -

        <%= t("curator.plans.sections.locations", default: "Locations") %>

        - - <% (1..@plan.duration_in_days).each do |day_num| %> - <% day_locations = @plan.plan_locations.where(day_number: day_num).order(:position).includes(:location) %> - <% if day_locations.any? %> -
        -

        <%= t("plans.show.day", number: day_num) %>

        -
          - <% day_locations.each do |pl| %> -
        • - - <%= pl.position %> - - <%= link_to pl.location.name, curator_location_path(pl.location), class: "text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300" %> - <% if pl.location.city.present? %> - <%= pl.location.city %> - <% end %> -
        • - <% end %> -
        -
        - <% end %> - <% end %> -
        -
        - <% end %> - -
        diff --git a/app/views/curator/proposals/index.html.erb b/app/views/curator/proposals/index.html.erb deleted file mode 100644 index dd0096cc..00000000 --- a/app/views/curator/proposals/index.html.erb +++ /dev/null @@ -1,136 +0,0 @@ -
        -
        -
        -

        <%= t("curator.proposals.title") %>

        -

        <%= t("curator.proposals.subtitle") %>

        -
        -
        - - -
        - <%= form_with url: curator_proposals_path, method: :get, local: true, class: "flex flex-wrap gap-4" do |f| %> -
        - <%= f.select :change_type, - options_for_select([ - [t("curator.proposals.filter.all_types"), ""], - [t("curator.proposals.types.create_content"), "create_content"], - [t("curator.proposals.types.update_content"), "update_content"], - [t("curator.proposals.types.delete_content"), "delete_content"] - ], params[:change_type]), - {}, - class: "block w-full rounded-md border-0 py-2 pl-3 pr-10 text-gray-900 dark:text-gray-200 dark:bg-gray-700 ring-1 ring-inset ring-gray-300 dark:ring-gray-600 focus:ring-2 focus:ring-emerald-600 sm:text-sm" %> -
        -
        - <%= f.select :content_type, - options_for_select([ - [t("curator.proposals.filter.all_content_types"), ""], - ["Location", "Location"], - ["Experience", "Experience"], - ["Plan", "Plan"], - ["AudioTour", "AudioTour"], - ["Review", "Review"] - ], params[:content_type]), - {}, - class: "block w-full rounded-md border-0 py-2 pl-3 pr-10 text-gray-900 dark:text-gray-200 dark:bg-gray-700 ring-1 ring-inset ring-gray-300 dark:ring-gray-600 focus:ring-2 focus:ring-emerald-600 sm:text-sm" %> -
        -
        - <%= f.submit t("common.search"), class: "inline-flex items-center rounded-md bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500 cursor-pointer" %> -
        - <% end %> -
        - - -
        - <% if @proposals.any? %> -
          - <% @proposals.each do |proposal| %> -
        • - <%= link_to curator_proposal_path(proposal), class: "block hover:bg-gray-50 dark:hover:bg-gray-700" do %> -
          -
          -
          - <% case proposal.change_type %> - <% when "create_content" %> - - <%= t("curator.proposals.types.create_content") %> - - <% when "update_content" %> - - <%= t("curator.proposals.types.update_content") %> - - <% when "delete_content" %> - - <%= t("curator.proposals.types.delete_content") %> - - <% end %> -

          - <%= proposal.description %> -

          -
          -
          - <% summary = proposal.recommendation_summary %> - <% if summary[:approve] > 0 || summary[:reject] > 0 %> -
          - <% if summary[:approve] > 0 %> - - - - - <%= summary[:approve] %> - - <% end %> - <% if summary[:reject] > 0 %> - - - - - <%= summary[:reject] %> - - <% end %> -
          - <% end %> - - - -
          -
          -
          -
          - - - - - <%= proposal.user.username %> - - <% if proposal.contributions.count > 1 %> - - +<%= proposal.contributions.count - 1 %> <%= t("curator.proposals.contributors") %> - - <% end %> - <%= proposal.created_at.strftime("%d.%m.%Y %H:%M") %> -
          - - <%= proposal.changeable_type || proposal.changeable_class %> - -
          -
          - <% end %> -
        • - <% end %> -
        - - -
        - <%= paginate @proposals %> -
        - <% else %> -
        - - - -

        <%= t("curator.proposals.no_proposals") %>

        -

        <%= t("curator.proposals.no_proposals_hint") %>

        -
        - <% end %> -
        -
        diff --git a/app/views/curator/proposals/show.html.erb b/app/views/curator/proposals/show.html.erb deleted file mode 100644 index de604a7c..00000000 --- a/app/views/curator/proposals/show.html.erb +++ /dev/null @@ -1,311 +0,0 @@ -
        - -
        -
        -
        - <%= link_to curator_proposals_path, class: "text-gray-400 dark:text-gray-500 hover:text-gray-600 dark:hover:text-gray-300" do %> - - - - <% end %> -

        <%= t("curator.proposals.proposal_details") %>

        - <% case @proposal.change_type %> - <% when "create_content" %> - - <%= t("curator.proposals.types.create_content") %> - - <% when "update_content" %> - - <%= t("curator.proposals.types.update_content") %> - - <% when "delete_content" %> - - <%= t("curator.proposals.types.delete_content") %> - - <% end %> -
        -

        <%= @proposal.description %>

        -
        -
        - -
        - -
        - -
        -
        -

        <%= t("curator.proposals.proposed_changes") %>

        -
        -
        - <% if @proposal.update_content? && @proposal.original_data.present? %> -

        <%= t("curator.proposals.changes_diff") %>

        -
        - <% @proposal.changes_diff.each do |key, diff| %> -
        -
        - <%= key.humanize %> -
        -
        -
        - - - <%= diff[:from].presence || t("curator.proposals.empty_value") %> -
        -
        - + - <%= diff[:to].presence || t("curator.proposals.empty_value") %> -
        -
        -
        - <% end %> -
        - <% elsif @proposal.create_content? %> -

        <%= t("curator.proposals.new_content") %>

        -
        - <% @proposal.proposed_data.each do |key, value| %> -
        -
        <%= key.humanize %>
        -
        - <% if value.is_a?(Array) %> - <%= value.join(", ") %> - <% elsif value.is_a?(Hash) %> -
        <%= JSON.pretty_generate(value) %>
        - <% else %> - <%= value.presence || "-" %> - <% end %> -
        -
        - <% end %> -
        - <% elsif @proposal.delete_content? %> -
        -
        -
        - - - -
        -
        -

        <%= t("curator.proposals.deletion_request") %>

        -

        <%= t("curator.proposals.deletion_warning") %>

        -
        -
        -
        - <% end %> -
        -
        - - - <% if @proposal.contributions.any? %> -
        -
        -

        <%= t("curator.proposals.contributors_title") %>

        -
        -
        -
          - <% @proposal.contributions.includes(:user).order(:created_at).each do |contribution| %> -
        • -
          -
          -
          - <%= contribution.user.username[0].upcase %> -
          -
          -

          <%= contribution.user.username %>

          -

          <%= contribution.created_at.strftime("%d.%m.%Y %H:%M") %>

          -
          -
          - <% if contribution.notes.present? %> - "<%= contribution.notes %>" - <% end %> -
          - <% if contribution.proposed_data.present? %> -
          -
          - <%= t("curator.proposals.view_contribution") %> -
          - <% contribution.proposed_data.each do |key, value| %> -

          <%= key %>: <%= value.is_a?(Array) ? value.join(", ") : value %>

          - <% end %> -
          -
          -
          - <% end %> -
        • - <% end %> -
        -
        -
        - <% end %> - - -
        -
        -

        <%= t("curator.proposals.reviews_title") %>

        - <% summary = @proposal.recommendation_summary %> -
        - - - - - <%= summary[:approve] %> <%= t("curator.proposals.recommend_approve") %> - - - - - - <%= summary[:reject] %> <%= t("curator.proposals.recommend_reject") %> - - - <%= summary[:neutral] %> <%= t("curator.proposals.neutral") %> - -
        -
        -
        - <% if @proposal.curator_reviews.any? %> -
          - <% @proposal.curator_reviews.recent.includes(:user).each do |review| %> -
        • -
          -
          -
          - <%= review.user.username[0].upcase %> -
          -
          -

          <%= review.user.username %>

          -

          <%= review.created_at.strftime("%d.%m.%Y %H:%M") %>

          -
          -
          - <% case review.recommendation %> - <% when "recommend_approve" %> - - <%= t("curator.proposals.recommend_approve") %> - - <% when "recommend_reject" %> - - <%= t("curator.proposals.recommend_reject") %> - - <% else %> - - <%= t("curator.proposals.neutral") %> - - <% end %> -
          -

          <%= review.comment %>

          -
        • - <% end %> -
        - <% else %> -

        <%= t("curator.proposals.no_reviews_yet") %>

        - <% end %> - - - <% if @existing_review.blank? %> -
        -

        <%= t("curator.proposals.add_your_review") %>

        - <%= form_with model: @review, url: add_review_curator_proposal_path(@proposal), method: :post, local: true, class: "space-y-4" do |f| %> -
        - <%= f.label :recommendation, t("curator.proposals.your_recommendation"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> -
        - - - -
        -
        -
        - <%= f.label :comment, t("curator.proposals.your_comment"), class: "block text-sm font-medium text-gray-700 dark:text-gray-300" %> - <%= f.text_area :comment, rows: 4, placeholder: t("curator.proposals.comment_placeholder"), class: "mt-1 block w-full rounded-md border-gray-300 dark:border-gray-600 dark:bg-gray-700 dark:text-white shadow-sm focus:border-emerald-500 focus:ring-emerald-500 sm:text-sm" %> -

        <%= t("curator.proposals.comment_hint") %>

        -
        -
        - <%= f.submit t("curator.proposals.submit_review"), class: "inline-flex items-center rounded-md bg-emerald-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-emerald-500 cursor-pointer" %> -
        - <% end %> -
        - <% else %> -
        -
        -
        -
        - - - -
        -
        -

        <%= t("curator.proposals.already_reviewed") %>

        -
        -
        -
        -
        - <% end %> -
        -
        -
        - - -
        - -
        -
        -

        <%= t("curator.proposals.info") %>

        -
        -
        -
        -
        -
        <%= t("curator.proposals.proposed_by") %>
        -
        <%= @proposal.user.username %>
        -
        -
        -
        <%= t("curator.proposals.content_type") %>
        -
        <%= @proposal.changeable_type || @proposal.changeable_class %>
        -
        -
        -
        <%= t("curator.proposals.submitted_at") %>
        -
        <%= @proposal.created_at.strftime("%d.%m.%Y %H:%M") %>
        -
        - <% if @proposal.changeable.present? %> -
        -
        <%= t("curator.proposals.target_resource") %>
        -
        - <% case @proposal.changeable_type %> - <% when "Location" %> - <%= link_to @proposal.changeable.name, curator_location_path(@proposal.changeable), class: "text-sm text-emerald-600 dark:text-emerald-400 hover:text-emerald-800 dark:hover:text-emerald-300" %> - <% when "Experience" %> - <%= link_to @proposal.changeable.title, curator_experience_path(@proposal.changeable), class: "text-sm text-emerald-600 dark:text-emerald-400 hover:text-emerald-800 dark:hover:text-emerald-300" %> - <% when "Plan" %> - <%= link_to @proposal.changeable.title, curator_plan_path(@proposal.changeable), class: "text-sm text-emerald-600 dark:text-emerald-400 hover:text-emerald-800 dark:hover:text-emerald-300" %> - <% when "AudioTour" %> - <%= link_to "#{@proposal.changeable.location&.name} (#{@proposal.changeable.locale})", curator_audio_tour_path(@proposal.changeable), class: "text-sm text-emerald-600 dark:text-emerald-400 hover:text-emerald-800 dark:hover:text-emerald-300" %> - <% end %> -
        -
        - <% end %> -
        -
        -
        - - -
        -
        -
        - - - -
        -
        -

        <%= t("curator.proposals.status.pending") %>

        -

        <%= t("curator.proposals.pending_note") %>

        -
        -
        -
        -
        -
        -
        diff --git a/app/views/curator/reviews/index.html.erb b/app/views/curator/reviews/index.html.erb index 4b2b8920..53cc1f1e 100644 --- a/app/views/curator/reviews/index.html.erb +++ b/app/views/curator/reviews/index.html.erb @@ -3,9 +3,6 @@

        <%= t("curator.reviews.title") %>

        - - <%= render "curator/shared/pending_proposals", pending_proposals: @pending_proposals %> -
        @@ -109,11 +106,13 @@ <%= link_to curator_review_path(review), class: "text-emerald-600 dark:text-emerald-400 hover:text-emerald-900 dark:hover:text-emerald-300 text-sm" do %> <%= t("common.view_all") %> <% end %> - <%= button_to curator_review_path(review), - method: :delete, - class: "text-red-600 dark:text-red-400 hover:text-red-900 dark:hover:text-red-300 text-sm", - data: { turbo_confirm: t("curator.reviews.confirm_delete") } do %> - <%= t("common.delete") %> + <% if current_user.admin? %> + <%= button_to curator_review_path(review), + method: :delete, + class: "text-red-600 dark:text-red-400 hover:text-red-900 dark:hover:text-red-300 text-sm", + data: { turbo_confirm: t("curator.reviews.confirm_delete") } do %> + <%= t("common.delete") %> + <% end %> <% end %>
        diff --git a/app/views/curator/reviews/show.html.erb b/app/views/curator/reviews/show.html.erb index 5da2dc50..c07b1d69 100644 --- a/app/views/curator/reviews/show.html.erb +++ b/app/views/curator/reviews/show.html.erb @@ -2,16 +2,17 @@

        <%= t("curator.reviews.show_title") %>

        - <%# Not gated on :curator_edit_delete — removing a review is moderation, %> - <%# not content editing, and has always been available to curators. %> - <%= button_to curator_review_path(@review), - method: :delete, - class: "inline-flex items-center justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500", - data: { turbo_confirm: t("curator.reviews.confirm_delete") } do %> - - - - <%= t("curator.reviews.delete") %> + <%# Removing a review is an admin decision until the review queue moves to the admin. %> + <% if current_user.admin? %> + <%= button_to curator_review_path(@review), + method: :delete, + class: "inline-flex items-center justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500", + data: { turbo_confirm: t("curator.reviews.confirm_delete") } do %> + + + + <%= t("curator.reviews.delete") %> + <% end %> <% end %> <%= link_to curator_reviews_path, class: "inline-flex items-center justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 dark:bg-gray-800 dark:text-white dark:ring-gray-600 dark:hover:bg-gray-700" do %> diff --git a/app/views/curator/shared/_pending_proposal_banner.html.erb b/app/views/curator/shared/_pending_proposal_banner.html.erb deleted file mode 100644 index 8004b37a..00000000 --- a/app/views/curator/shared/_pending_proposal_banner.html.erb +++ /dev/null @@ -1,42 +0,0 @@ -<%# Banner to display when there's a pending proposal for a resource %> -<%# Expects: pending_proposal (ContentChange or nil) %> - -<% if pending_proposal.present? %> -
        -
        -
        - - - -
        -
        -

        - <%= t("curator.proposals.pending_for_resource") %> -

        -
        -

        - <%= t("curator.proposals.pending_proposal_info", - type: pending_proposal.change_type.humanize, - user: pending_proposal.user.username, - date: pending_proposal.created_at.strftime("%d.%m.%Y %H:%M")) %> -

        - <% if pending_proposal.contributions.any? %> -

        - <%= t("curator.proposals.contributors_count", count: pending_proposal.contributions.count) %> -

        - <% end %> -
        -
        - <%= link_to curator_proposal_path(pending_proposal), - class: "inline-flex items-center rounded-md bg-amber-100 dark:bg-amber-900/30 px-3 py-2 text-sm font-medium text-amber-800 dark:text-amber-300 hover:bg-amber-200 dark:hover:bg-amber-900/50" do %> - - - - - <%= t("curator.proposals.view_proposal") %> - <% end %> -
        -
        -
        -
        -<% end %> diff --git a/app/views/curator/shared/_pending_proposals.html.erb b/app/views/curator/shared/_pending_proposals.html.erb deleted file mode 100644 index 830cf95d..00000000 --- a/app/views/curator/shared/_pending_proposals.html.erb +++ /dev/null @@ -1,44 +0,0 @@ -<% if pending_proposals.present? %> -
        -
        -

        - - - - <%= t("curator.proposals.pending_title") %> - - <%= pending_proposals.size %> - -

        - -
        - <% pending_proposals.each do |proposal| %> -
        -
        - <% case proposal.change_type %> - <% when "create_content" %> - - <%= t("curator.proposals.types.create_content") %> - - <% when "update_content" %> - - <%= t("curator.proposals.types.update_content") %> - - <% when "delete_content" %> - - <%= t("curator.proposals.types.delete_content") %> - - <% end %> - - <%= proposal.description %> - -
        -
        - <%= proposal.created_at.strftime("%d.%m.%Y") %> -
        -
        - <% end %> -
        -
        -
        -<% end %> diff --git a/app/views/experiences/show.html.erb b/app/views/experiences/show.html.erb index 2f7c0398..be951e6f 100644 --- a/app/views/experiences/show.html.erb +++ b/app/views/experiences/show.html.erb @@ -97,13 +97,13 @@
        <%# Curator Edit Button %> <% if current_user_can_curate? %> - <%= link_to curator_experience_path(@experience), + <%= link_to avo.edit_resources_experience_path(@experience), class: "inline-flex items-center space-x-2 px-4 py-2.5 bg-indigo-600 hover:bg-indigo-700 rounded-xl transition-colors shadow-sm", - title: t('curator.edit_resource', default: 'Otvori u curator panelu') do %> + title: t("admin.open_in_admin") do %> - <%= t('curator.edit', default: 'Curator') %> + <%= t("admin.edit_label") %> <% end %> <% end %> diff --git a/app/views/layouts/curator.html.erb b/app/views/layouts/curator.html.erb index 23018116..228110f4 100644 --- a/app/views/layouts/curator.html.erb +++ b/app/views/layouts/curator.html.erb @@ -39,40 +39,12 @@ <%= link_to t("curator.nav.dashboard"), curator_root_path, class: "rounded-md px-3 py-2 text-sm font-medium #{request.path == curator_root_path ? 'bg-emerald-800 dark:bg-gray-900 text-white' : 'text-emerald-100 dark:text-gray-300 hover:bg-emerald-600 dark:hover:bg-gray-700'}" %> - <%# Content dropdown: Locations, Experiences, Plans %> - <% content_active = [curator_locations_path, curator_experiences_path, curator_plans_path].any? { |p| request.path.start_with?(p) } %> -
        - - -
        - - <%# Media dropdown: Audio Tours, Photos %> - <% media_active = request.path.start_with?(curator_audio_tours_path) %> -
        - - -
        + <%# Places, experiences, plans and audio tours are edited in the admin. %> + <%= link_to t("curator.nav.content"), avo.root_path, + class: "rounded-md px-3 py-2 text-sm font-medium text-emerald-100 dark:text-gray-300 hover:bg-emerald-600 dark:hover:bg-gray-700" %> - <%# Workflow dropdown: Reviews, Proposals, Moments %> - <% workflow_active = [curator_reviews_path, curator_proposals_path, curator_moments_path].any? { |p| request.path.start_with?(p) } %> + <%# Workflow dropdown: Reviews, Moments %> + <% workflow_active = [curator_reviews_path, curator_moments_path].any? { |p| request.path.start_with?(p) } %>
        @@ -161,28 +128,13 @@ <%= link_to t("curator.nav.dashboard"), curator_root_path, class: "block rounded-md px-3 py-2 text-base font-medium #{request.path == curator_root_path ? 'bg-emerald-800 dark:bg-gray-900 text-white' : 'text-emerald-100 dark:text-gray-300 hover:bg-emerald-600 dark:hover:bg-gray-700'}" %> -
        -

        <%= t("curator.nav.content") %>

        - <%= link_to t("curator.nav.locations"), curator_locations_path, - class: "block rounded-md px-3 py-2 text-base font-medium #{request.path.start_with?(curator_locations_path) ? 'bg-emerald-800 dark:bg-gray-900 text-white' : 'text-emerald-100 dark:text-gray-300 hover:bg-emerald-600 dark:hover:bg-gray-700'}" %> - <%= link_to t("curator.nav.experiences"), curator_experiences_path, - class: "block rounded-md px-3 py-2 text-base font-medium #{request.path.start_with?(curator_experiences_path) ? 'bg-emerald-800 dark:bg-gray-900 text-white' : 'text-emerald-100 dark:text-gray-300 hover:bg-emerald-600 dark:hover:bg-gray-700'}" %> - <%= link_to t("curator.nav.plans"), curator_plans_path, - class: "block rounded-md px-3 py-2 text-base font-medium #{request.path.start_with?(curator_plans_path) ? 'bg-emerald-800 dark:bg-gray-900 text-white' : 'text-emerald-100 dark:text-gray-300 hover:bg-emerald-600 dark:hover:bg-gray-700'}" %> -
        - -
        -

        <%= t("curator.nav.media") %>

        - <%= link_to t("curator.nav.audio_tours"), curator_audio_tours_path, - class: "block rounded-md px-3 py-2 text-base font-medium #{request.path.start_with?(curator_audio_tours_path) ? 'bg-emerald-800 dark:bg-gray-900 text-white' : 'text-emerald-100 dark:text-gray-300 hover:bg-emerald-600 dark:hover:bg-gray-700'}" %> -
        + <%= link_to t("curator.nav.content"), avo.root_path, + class: "block rounded-md px-3 py-2 text-base font-medium text-emerald-100 dark:text-gray-300 hover:bg-emerald-600 dark:hover:bg-gray-700" %>

        <%= t("curator.nav.workflow") %>

        <%= link_to t("curator.nav.reviews"), curator_reviews_path, class: "block rounded-md px-3 py-2 text-base font-medium #{request.path.start_with?(curator_reviews_path) ? 'bg-emerald-800 dark:bg-gray-900 text-white' : 'text-emerald-100 dark:text-gray-300 hover:bg-emerald-600 dark:hover:bg-gray-700'}" %> - <%= link_to t("curator.nav.proposals"), curator_proposals_path, - class: "block rounded-md px-3 py-2 text-base font-medium #{request.path.start_with?(curator_proposals_path) ? 'bg-emerald-800 dark:bg-gray-900 text-white' : 'text-emerald-100 dark:text-gray-300 hover:bg-emerald-600 dark:hover:bg-gray-700'}" %> <%= link_to t("curator.nav.moments"), curator_moments_path, class: "block rounded-md px-3 py-2 text-base font-medium #{request.path.start_with?(curator_moments_path) ? 'bg-emerald-800 dark:bg-gray-900 text-white' : 'text-emerald-100 dark:text-gray-300 hover:bg-emerald-600 dark:hover:bg-gray-700'}" %>
        @@ -191,8 +143,6 @@ <% if current_user.admin? %>

        <%= t("curator.nav.admin", default: "Admin") %>

        - <%= link_to t("curator.nav.admin_content_changes", default: "Sadržaj"), curator_admin_content_changes_path, - class: "block rounded-md px-3 py-2 text-base font-medium #{request.path.start_with?(curator_admin_content_changes_path) ? 'bg-red-800 dark:bg-red-900 text-white' : 'text-red-200 dark:text-red-300 hover:bg-red-600 dark:hover:bg-red-800'}" %> <%= link_to t("curator.nav.admin_users", default: "Korisnici"), curator_admin_users_path, class: "block rounded-md px-3 py-2 text-base font-medium #{request.path.start_with?(curator_admin_users_path) ? 'bg-red-800 dark:bg-red-900 text-white' : 'text-red-200 dark:text-red-300 hover:bg-red-600 dark:hover:bg-red-800'}" %>
        diff --git a/app/views/locations/show.html.erb b/app/views/locations/show.html.erb index 0f32e68b..ef7839fa 100644 --- a/app/views/locations/show.html.erb +++ b/app/views/locations/show.html.erb @@ -92,13 +92,13 @@
        <%# Curator Edit Button %> <% if current_user_can_curate? %> - <%= link_to curator_location_path(@location), + <%= link_to avo.edit_resources_location_path(@location), class: "inline-flex items-center space-x-2 px-4 py-2.5 bg-indigo-600 hover:bg-indigo-700 rounded-xl transition-colors shadow-sm", - title: t('curator.edit_resource', default: 'Otvori u curator panelu') do %> + title: t("admin.open_in_admin") do %> - <%= t('curator.edit', default: 'Curator') %> + <%= t("admin.edit_label") %> <% end %> <% end %> diff --git a/app/views/plans/show.html.erb b/app/views/plans/show.html.erb index bd9da6e2..0622aee6 100644 --- a/app/views/plans/show.html.erb +++ b/app/views/plans/show.html.erb @@ -123,14 +123,14 @@ <% end %> <%# Curator Edit Button %> - <% if current_user_can_curate? %> - <%= link_to curator_plan_path(@plan), + <% if current_user_can_curate? && PlanPolicy.new(current_user, @plan).show? %> + <%= link_to avo.resources_plan_path(@plan), class: "inline-flex items-center space-x-2 px-4 py-2.5 bg-indigo-600 hover:bg-indigo-700 rounded-xl transition-colors shadow-sm", - title: t('curator.edit_resource', default: 'Otvori u curator panelu') do %> + title: t("admin.open_in_admin") do %> - <%= t('curator.edit', default: 'Curator') %> + <%= t("admin.edit_label") %> <% end %> <% end %> diff --git a/config/locales/ar.yml b/config/locales/ar.yml index e54ccaaf..7b7c34dd 100644 --- a/config/locales/ar.yml +++ b/config/locales/ar.yml @@ -858,10 +858,6 @@ ar: title: لوحة تحكم أمين المحتوى nav: dashboard: لوحة التحكم - locations: الأماكن - experiences: التجارب - plans: الخطط - audio_tours: الجولات الصوتية reviews: المراجعات dashboard: welcome: مرحباً، %{username}! @@ -890,134 +886,13 @@ ar: no_experiences: لا توجد تجارب بعد no_reviews: لا توجد مراجعات بعد no_plans: لا توجد خطط عامة بعد - locations: - title: الأماكن - new: مكان جديد - edit: تعديل - view: عرض - delete: حذف - edit_title: 'تعديل: %{name}' - back_to_list: العودة للقائمة - name: الاسم - city: المدينة - type: النوع - budget: الميزانية - address: العنوان - description: الوصف - historical_context: السياق التاريخي - historical_context_hint: الخلفية التاريخية وأهمية هذا المكان - latitude: خط العرض - longitude: خط الطول - coordinates: الإحداثيات - view_on_map: عرض على الخريطة - phone: الهاتف - email: البريد الإلكتروني - website: الموقع الإلكتروني - video_url: رابط الفيديو - video_url_hint: رابط يوتيوب أو فيديو آخر عن هذا المكان - opening_hours: ساعات العمل - created_at: تاريخ الإنشاء - updated_at: تاريخ التحديث - average_rating: متوسط التقييم - reviews_count: المراجعات - actions: الإجراءات - select_city: اختر مدينة... - no_locations: لم يتم العثور على أماكن - created: تم إنشاء المكان بنجاح - updated: تم تحديث المكان بنجاح - deleted: تم حذف المكان بنجاح - confirm_delete: هل أنت متأكد من حذف %{name}؟ - tags: العلامات - tags_placeholder: 'مثال: طبيعة، تاريخي، مناسب للعائلات' - tags_hint: افصل العلامات بفاصلة - experiences_hint: اختر أنواع التجارب المناسبة لهذا المكان - current_photos: الصور الحالية - add_photos: إضافة صور - photos_hint: 'يمكنك اختيار عدة صور. الصيغ المدعومة: JPG, PNG, WebP' - remove_photos_hint: اضغط على أيقونة سلة المهملات لتحديد الصور للإزالة - current_audio: التسجيل الصوتي الحالي - upload_audio: رفع تسجيل صوتي - audio_hint: 'الصيغ المدعومة: MP3, WAV, OGG. الحجم الأقصى: 50MB' - remove_audio: إزالة - audio_not_supported: متصفحك لا يدعم تشغيل الصوت. - sections: - basic_info: معلومات أساسية - location: الموقع والإحداثيات - contact: معلومات التواصل - social: وسائل التواصل الاجتماعي - experiences: أنواع التجارب المناسبة - tags: العلامات - photos: الصور - audio: التسجيل الصوتي - metadata: البيانات الوصفية - filter: - all_cities: جميع المدن experiences: - title: التجارب - new: تجربة جديدة - edit: تعديل - view: عرض - delete: حذف - edit_title: 'تعديل: %{name}' - back_to_list: العودة للقائمة - name: الاسم - city: المدينة - category: الفئة - duration: المدة - duration_placeholder: المدة بالدقائق - duration_hint: أدخل المدة بالدقائق - best_season: أفضل موسم - difficulty: الصعوبة - description: الوصف - created_at: تاريخ الإنشاء - updated_at: تاريخ التحديث - average_rating: متوسط التقييم - reviews_count: المراجعات - locations_count: الأماكن - actions: الإجراءات - select_city: اختر مدينة... - select_category: اختر فئة... - no_experiences: لم يتم العثور على تجارب - created: تم إنشاء التجربة بنجاح - updated: تم تحديث التجربة بنجاح - deleted: تم حذف التجربة بنجاح - confirm_delete: هل أنت متأكد من حذف %{name}؟ - current_cover: صورة الغلاف الحالية - upload_cover: رفع صورة الغلاف - cover_photo_hint: 'الحجم الموصى به: 1200x800px. الصيغ المدعومة: JPG, PNG, WebP' - remove_cover_hint: اضغط على أيقونة سلة المهملات لإزالة صورة الغلاف الحالية - contact_hint: تفاصيل التواصل للحجز أو الاستفسارات عن هذه التجربة - contact_name: اسم جهة الاتصال - contact_name_placeholder: 'مثال: أحمد محمد' - contact_email: البريد الإلكتروني للتواصل - contact_phone: هاتف التواصل - contact_website: موقع التواصل - locations_hint: اختر الأماكن التي هي جزء من هذه التجربة. الترتيب مهم - اسحب - لإعادة الترتيب. - selected_locations: الأماكن المختارة - add_location: إضافة مكان - search_location: ابحث واختر مكاناً... - no_locations_selected: لم يتم اختيار أماكن بعد - sections: - basic_info: معلومات أساسية - cover_photo: صورة الغلاف - contact: معلومات التواصل - locations: الأماكن - metadata: البيانات الوصفية - filter: - all_cities: جميع المدن - best_seasons: أفضل المواسم - seasons_hint: اتركه دون تحديد للتجارب المتاحة طوال السنة seasons: all_year: طوال السنة spring: الربيع summer: الصيف fall: الخريف winter: الشتاء - difficulties: - easy: سهل - moderate: متوسط - challenging: صعب reviews: title: المراجعات show_title: تفاصيل المراجعة @@ -1040,91 +915,8 @@ ar: delete: حذف deleted: تم حذف المراجعة بنجاح confirm_delete: هل أنت متأكد من حذف هذه المراجعة؟ - audio_tours: - title: الجولات الصوتية - show_title: تفاصيل الجولة الصوتية - new: جولة صوتية جديدة - edit: تعديل - edit_title: 'تعديل: %{location}' - view: عرض - delete: حذف - back_to_list: العودة للقائمة - total: الإجمالي - with_audio: مع صوت - locations_with_tours: تغطية الأماكن - by_locale: حسب اللغة - search_placeholder: ابحث باسم المكان... - all_locales: جميع اللغات - location: المكان - locale: اللغة - audio_status: الحالة - duration: المدة - word_count: عدد الكلمات - script: النص - script_hint: النص الذي سيتم تحويله إلى صوت - created_at: تاريخ الإنشاء - actions: الإجراءات - ready: جاهز - pending: قيد الانتظار - no_audio_tours: لم يتم العثور على جولات صوتية - select_location: اختر مكاناً... - select_locale: اختر لغة... - current_audio: الصوت الحالي - upload_audio: رفع ملف صوتي - audio_hint: 'الصيغ المدعومة: MP3, WAV, OGG' - remove_audio: إزالة الملف الصوتي - audio_not_supported: متصفحك لا يدعم تشغيل الصوت. - audio_player: مشغل الصوت - created: تم إنشاء الجولة الصوتية بنجاح - updated: تم تحديث الجولة الصوتية بنجاح - deleted: تم حذف الجولة الصوتية بنجاح - confirm_delete: هل أنت متأكد من حذف هذه الجولة الصوتية؟ - sections: - basic_info: معلومات أساسية - audio_file: الملف الصوتي plans: - title: الخطط - show_title: تفاصيل الخطة - new: خطة جديدة - edit: تعديل - edit_title: 'تعديل: %{title}' - view: عرض - delete: حذف - back_to_list: العودة للقائمة - total: إجمالي الخطط - public: عام - private: خاص - with_experiences: مع تجارب - all_visibility: جميع حالات الظهور - all_cities: جميع المدن - search_placeholder: ابحث بالعنوان... - plan_title: العنوان - city: المدينة - author: الكاتب no_author: بدون كاتب - visibility: الظهور - visibility_hint: الخطط العامة مرئية لجميع المستخدمين - experiences: التجارب - locations: أماكن - duration: المدة - dates: التواريخ - start_date: تاريخ البداية - end_date: تاريخ النهاية - notes: ملاحظات - notes_hint: ملاحظات إضافية عن هذه الخطة - created_at: تاريخ الإنشاء - actions: الإجراءات - no_plans: لم يتم العثور على خطط - select_city: اختر مدينة... - no_experiences_yet: لم تتم إضافة تجارب بعد - experiences_hint: يمكن إضافة التجارب بعد إنشاء الخطة - created: تم إنشاء الخطة بنجاح - updated: تم تحديث الخطة بنجاح - deleted: تم حذف الخطة بنجاح - confirm_delete: هل أنت متأكد من حذف خطة '%{title}'؟ - sections: - basic_info: معلومات أساسية - experiences: التجارب travel_profile: checking_location: جاري التحقق من موقعك... visit_recorded: تم تسجيل الزيارة بنجاح! diff --git a/config/locales/bs.yml b/config/locales/bs.yml index d9481856..10ffb227 100644 --- a/config/locales/bs.yml +++ b/config/locales/bs.yml @@ -608,6 +608,8 @@ bs: published: Uspomena podijeljena — curator će je pregledati prije nego postane javna unpublished: Uspomena je ponovo privatna admin: + open_in_admin: Otvori u adminu + edit_label: Uredi fields: name: Naziv title: Naslov @@ -681,6 +683,11 @@ bs: ownerships: curated: Usput travellers: Putnici (javni) + audio_tours: + place: Mjesto + language: Jezik + audio: Audio fajl + script: Tekst auth: register_title: Registracija - Usput register_heading: Kreiraj nalog @@ -1188,12 +1195,7 @@ bs: title: Kurator Panel nav: dashboard: Pregled - locations: Lokacije - experiences: Iskustva - plans: Planovi - audio_tours: Audio ture reviews: Recenzije - proposals: Prijedlozi moments: Uspomene moments: title: Podijeljene uspomene @@ -1238,159 +1240,13 @@ bs: no_reviews: Još nema recenzija no_plans: Još nema javnih planova recent_activity: Nedavne aktivnosti kuratora - pending_proposals_alert: - one: Postoji 1 prijedlog na čekanju - other: Postoji %{count} prijedloga na čekanju - review_proposals: Pregledaj prijedloge - locations: - title: Lokacije - new: Nova lokacija - edit: Uredi - view: Pregledaj - delete: Obriši - edit_title: 'Uredi: %{name}' - back_to_list: Nazad na listu - name: Naziv - city: Mjesto - type: Tip - budget: Budžet - address: Adresa - description: Opis - historical_context: Istorijski kontekst - historical_context_hint: Istorijska pozadina i značaj ove lokacije - latitude: Geografska širina - longitude: Geografska dužina - coordinates: Koordinate - view_on_map: Pogledaj na mapi - phone: Telefon - email: E-mail - website: Web stranica - video_url: Video URL - video_url_hint: YouTube ili drugi video link o ovoj lokaciji - opening_hours: Radno vrijeme - created_at: Kreirano - updated_at: Ažurirano - average_rating: Prosječna ocjena - reviews_count: Recenzije - actions: Akcije - select_city: Odaberi mjesto... - no_locations: Nema pronađenih lokacija - created: Lokacija uspješno kreirana - updated: Lokacija uspješno ažurirana - deleted: Lokacija uspješno obrisana - confirm_delete: Jesi li siguran da želiš obrisati %{name}? - confirm_delete_with_memories: - one: "Obrisati %{name}? Putnik ovdje ima 1 zabilježenu posjetu ili trenutak koji će također biti obrisan. Ovo se ne može poništiti — arhiviraj umjesto toga da sačuvaš." - other: "Obrisati %{name}? Putnici ovdje imaju %{count} zabilježenih posjeta i trenutaka koji će svi biti obrisani. Ovo se ne može poništiti — arhiviraj umjesto toga da ih sačuvaš." - archive: Arhiviraj - restore: Vrati - confirm_archive: "Arhivirati %{name}? Prestaje se nuditi putnicima; sve što su ovdje zabilježili ostaje sačuvano." - archived: Lokacija arhivirana — putnici je više ne vide, a njihove uspomene su sačuvane - restored: Lokacija vraćena — putnici je ponovo mogu pronaći - show_archived: Arhivirane - show_live: Aktivne - tags: Oznake - tags_placeholder: npr. priroda, istorijsko, za porodice - tags_hint: Razdvoji oznake zarezom - experiences_hint: Odaberi za koje tipove iskustava je ova lokacija pogodna - current_photos: Trenutne fotografije - add_photos: Dodaj fotografije - photos_hint: 'Možeš odabrati više fotografija. Podržani formati: JPG, PNG, WebP' - remove_photos_hint: Klikni na ikonu kante za brisanje fotografije - current_audio: Trenutni audio zapis - upload_audio: Učitaj audio zapis - audio_hint: 'Podržani formati: MP3, WAV, OGG. Maksimalna veličina: 50MB' - remove_audio: Ukloni - audio_not_supported: Tvoj preglednik ne podržava reprodukciju zvuka. - sections: - basic_info: Osnovne informacije - location: Lokacija i koordinate - contact: Kontakt informacije - social: Društvene mreže - experiences: Pogodni tipovi iskustava - tags: Oznake - photos: Fotografije - audio: Audio zapis - metadata: Metapodaci - accessibility: Pristupačnost - filter: - all_cities: Sva mjesta - needs_photos: - title: Lokacije kojima trebaju fotografije - description: Lokacije sortirane po broju fotografija (najmanje prvo). Pomozite poboljšati naš - sadržaj dodavanjem fotografija! - photo_count: Fotografije - photos: fotografija - max_photos: Max fotografija - add_photo: Dodaj fotografiju - no_results: Nema pronađenih lokacija - no_results_hint: Pokušajte prilagoditi filtere - accessibility_hint: Informacije o pristupu za osobe u invalidskim kolicima i osobe s invaliditetom experiences: - title: Iskustva - new: Novo iskustvo - edit: Uredi - view: Pregledaj - delete: Obriši - edit_title: 'Uredi: %{name}' - back_to_list: Nazad na listu - name: Naziv - city: Mjesto - category: Kategorija - duration: Trajanje - duration_placeholder: Trajanje u minutama - duration_hint: Unesi trajanje u minutama - best_season: Najbolja sezona - difficulty: Težina - description: Opis - created_at: Kreirano - updated_at: Ažurirano - average_rating: Prosječna ocjena - reviews_count: Recenzije - locations_count: Lokacije - actions: Akcije - select_city: Odaberi mjesto... - select_category: Odaberi kategoriju... - no_experiences: Nema pronađenih iskustava - created: Iskustvo uspješno kreirano - updated: Iskustvo uspješno ažurirano - deleted: Iskustvo uspješno obrisano - confirm_delete: Jesi li siguran da želiš obrisati %{name}? - current_cover: Trenutna naslovna fotografija - upload_cover: Učitaj naslovnu fotografiju - cover_photo_hint: 'Preporučena veličina: 1200x800px. Podržani formati: JPG, PNG, WebP' - remove_cover_hint: Klikni na ikonu kante za uklanjanje trenutne naslovne fotografije - contact_hint: Kontakt podaci za rezervacije ili upite o ovom iskustvu - contact_name: Ime kontakta - contact_name_placeholder: npr. Marko Marković - contact_email: E-mail kontakta - contact_phone: Telefon kontakta - contact_website: Web stranica kontakta - locations_hint: Odaberi lokacije koje su dio ovog iskustva. Redoslijed je bitan - povuci za reorganizaciju. - selected_locations: Odabrane lokacije - add_location: Dodaj lokaciju - search_location: Pretraži i odaberi lokaciju... - no_locations_selected: Još nema odabranih lokacija - sections: - basic_info: Osnovne informacije - cover_photo: Naslovna fotografija - contact: Kontakt informacije - locations: Lokacije - metadata: Metapodaci - filter: - all_cities: Sva mjesta - best_seasons: Najbolje sezone - seasons_hint: Ostavite neoznačeno za doživljaje tokom cijele godine seasons: all_year: Cijela godina spring: Proljeće summer: Ljeto fall: Jesen winter: Zima - difficulties: - easy: Lako - moderate: Umjereno - challenging: Zahtjevno admin: nav: users: Upravljanje korisnicima @@ -1400,13 +1256,6 @@ bs: updated: Korisnik uspješno ažuriran unblocked: Korisnik uspješno deblokiran not_blocked: Ovaj korisnik nije blokiran - content_changes: - title: Promjene sadržaja - approved: Promjena sadržaja odobrena i primijenjena uspješno - rejected: Promjena sadržaja uspješno odbijena - approval_failed: Nije uspjelo primjenjivanje promjene sadržaja - rejection_failed: Nije uspjelo odbijanje promjene sadržaja - already_reviewed: Ova promjena sadržaja je već pregledana pagination: aria_label: Paginacija previous_short: Nazad diff --git a/config/locales/cs.yml b/config/locales/cs.yml index 05d11d8e..c3119676 100644 --- a/config/locales/cs.yml +++ b/config/locales/cs.yml @@ -872,8 +872,6 @@ cs: title: Panel Kurátora nav: dashboard: Panel - locations: Místa - experiences: Zážitky dashboard: welcome: Vítejte, %{username}! total_locations: Celkový Počet Míst @@ -886,75 +884,13 @@ cs: recent_experiences: Nedávné Zážitky no_locations: Zatím žádná místa no_experiences: Zatím žádné zážitky - locations: - title: Místa - new: Nové Místo - edit: Upravit - view: Zobrazit - delete: Smazat - edit_title: 'Úprava: %{name}' - back_to_list: Zpět na seznam - name: Název - city: Město - type: Typ - budget: Rozpočet - address: Adresa - description: Popis - latitude: Zeměpisná šířka - longitude: Zeměpisná délka - coordinates: Souřadnice - phone: Telefon - email: E-mail - website: Webová stránka - opening_hours: Otevírací doba - created_at: Vytvořeno - actions: Akce - select_city: Vyberte město... - no_locations: Nebyla nalezena žádná místa - created: Místo bylo úspěšně vytvořeno - updated: Místo bylo úspěšně aktualizováno - deleted: Místo bylo úspěšně smazáno - confirm_delete: Jste si jisti, že chcete smazat %{name}? - filter: - all_cities: Všechna města experiences: - title: Zážitky - new: Nový Zážitek - edit: Upravit - view: Zobrazit - delete: Smazat - edit_title: 'Úprava: %{name}' - back_to_list: Zpět na seznam - name: Název - city: Město - category: Kategorie - duration: Délka - best_season: Nejlepší Sezóna - difficulty: Obtížnost - description: Popis - created_at: Vytvořeno - actions: Akce - select_city: Vyberte město... - select_category: Vyberte kategorii... - no_experiences: Nebyly nalezeny žádné zážitky - created: Zážitek byl úspěšně vytvořen - updated: Zážitek byl úspěšně aktualizován - deleted: Zážitek byl úspěšně smazán - confirm_delete: Jste si jisti, že chcete smazat %{name}? - filter: - all_cities: Všechna města - best_seasons: Nejlepší roční období - seasons_hint: Nechte nezaškrtnuté pro celoroční zážitky seasons: all_year: Celý rok spring: Jaro summer: Léto fall: Podzim winter: Zima - difficulties: - easy: Snadné - moderate: Středně náročné - challenging: Náročné minesweeper: title: Miny subtitle: "Vzdělávací hra na skutečných mapách — miny jsou tam, kde skutečná data zaznamenávají oblasti podezřelé z výskytu min." diff --git a/config/locales/de.yml b/config/locales/de.yml index ab0ba07d..3fd0e391 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -980,8 +980,6 @@ de: title: Kurator-Dashboard nav: dashboard: Übersicht - locations: Orte - experiences: Erlebnisse dashboard: welcome: Willkommen, %{username}! total_locations: Orte gesamt @@ -994,75 +992,13 @@ de: recent_experiences: Neueste Erlebnisse no_locations: Noch keine Orte no_experiences: Noch keine Erlebnisse - locations: - title: Orte - new: Neuer Ort - edit: Bearbeiten - view: Ansehen - delete: Löschen - edit_title: 'Bearbeiten: %{name}' - back_to_list: Zurück zur Liste - name: Name - city: Ort - type: Typ - budget: Budget - address: Adresse - description: Beschreibung - latitude: Breitengrad - longitude: Längengrad - coordinates: Koordinaten - phone: Telefon - email: E-Mail - website: Webseite - opening_hours: Öffnungszeiten - created_at: Erstellt - actions: Aktionen - select_city: Ort auswählen... - no_locations: Keine Orte gefunden - created: Ort erfolgreich erstellt - updated: Ort erfolgreich aktualisiert - deleted: Ort erfolgreich gelöscht - confirm_delete: Möchten Sie %{name} wirklich löschen? - filter: - all_cities: Alle Orte experiences: - title: Erlebnisse - new: Neues Erlebnis - edit: Bearbeiten - view: Ansehen - delete: Löschen - edit_title: 'Bearbeiten: %{name}' - back_to_list: Zurück zur Liste - name: Name - city: Ort - category: Kategorie - duration: Dauer - best_season: Beste Jahreszeit - difficulty: Schwierigkeit - description: Beschreibung - created_at: Erstellt - actions: Aktionen - select_city: Ort auswählen... - select_category: Kategorie auswählen... - no_experiences: Keine Erlebnisse gefunden - created: Erlebnis erfolgreich erstellt - updated: Erlebnis erfolgreich aktualisiert - deleted: Erlebnis erfolgreich gelöscht - confirm_delete: Möchten Sie %{name} wirklich löschen? - filter: - all_cities: Alle Orte - best_seasons: Beste Jahreszeiten - seasons_hint: Für ganzjährige Erlebnisse nichts auswählen seasons: all_year: Ganzjährig spring: Frühling summer: Sommer fall: Herbst winter: Winter - difficulties: - easy: Einfach - moderate: Mittel - challenging: Anspruchsvoll minesweeper: title: Minesweeper subtitle: "Ein Lernspiel auf echten Karten — Minen liegen dort, wo echte Daten minenverdächtige Gebiete verzeichnen." diff --git a/config/locales/en.yml b/config/locales/en.yml index d0eef2f4..80daeaa8 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -804,6 +804,8 @@ en: updated: Experience was successfully updated deleted: Experience was successfully deleted admin: + open_in_admin: Open in the admin + edit_label: Edit fields: name: Name title: Title @@ -877,6 +879,11 @@ en: ownerships: curated: Usput travellers: Travellers (public) + audio_tours: + place: Place + language: Language + audio: Audio file + script: Script auth: register_title: Register - Usput register_heading: Create account @@ -1248,14 +1255,8 @@ en: nav: dashboard: Dashboard content: Content - media: Media workflow: Workflow - locations: Locations - experiences: Experiences - plans: Plans - audio_tours: Audio Tours reviews: Reviews - proposals: Proposals moments: Moments moments: title: Shared moments @@ -1300,166 +1301,21 @@ en: no_reviews: No reviews yet no_plans: No public plans yet recent_activity: Recent Curator Activity - pending_proposals_alert: - one: There is 1 pending proposal awaiting review - other: There are %{count} pending proposals awaiting review - review_proposals: Review Proposals spam_blocked: Your account has been temporarily blocked due to high activity. Please try again after %{until}. activities: recent_activity: Recent Activity no_activities: No recent activity yet - locations: - title: Locations - new: New Location - edit: Edit - view: View - delete: Delete - edit_title: 'Edit: %{name}' - back_to_list: Back to list - name: Name - city: Place - type: Type - budget: Budget - address: Address - description: Description - historical_context: Historical Context - historical_context_hint: Historical background and significance of this location - latitude: Latitude - longitude: Longitude - coordinates: Coordinates - view_on_map: View on map - phone: Phone - email: Email - website: Website - video_url: Video URL - video_url_hint: YouTube or other video link about this location - opening_hours: Opening Hours - created_at: Created - updated_at: Updated - average_rating: Average Rating - reviews_count: Reviews - actions: Actions - select_city: Select place... - no_locations: No locations found - created: Location created successfully - updated: Location updated successfully - deleted: Location deleted successfully - confirm_delete: Are you sure you want to delete %{name}? - confirm_delete_with_memories: - one: "Delete %{name}? A traveller has 1 visit or moment recorded here and it will be deleted too. This cannot be undone — archive instead to keep it." - other: "Delete %{name}? Travellers have %{count} visits and moments recorded here and they will all be deleted. This cannot be undone — archive instead to keep them." - archive: Archive - restore: Restore - confirm_archive: "Archive %{name}? It stops being offered to travellers; everything they recorded there is kept." - archived: Location archived — travellers no longer see it, and their memories are kept - restored: Location restored — travellers can find it again - show_archived: Archived - show_live: Live - tags: Tags - tags_placeholder: e.g. nature, historic, family-friendly - tags_hint: Separate tags with commas - experiences_hint: Select what types of experiences this location is suitable for - current_photos: Current photos - add_photos: Add Photos - photos_hint: 'You can select multiple photos. Supported formats: JPG, PNG, WebP' - remove_photos_hint: Click the trash icon to mark photos for removal - current_audio: Current audio recording - upload_audio: Upload Audio Recording - audio_hint: 'Supported formats: MP3, WAV, OGG. Max size: 50MB' - remove_audio: Remove - audio_not_supported: Your browser does not support audio playback. - sections: - basic_info: Basic Information - location: Location & Coordinates - contact: Contact Information - social: Social Media - experiences: Suitable Experience Types - tags: Tags - photos: Photos - audio: Audio Recording - metadata: Metadata - accessibility: Accessibility - filter: - all_cities: All places - needs_photos: - title: Locations Needing Photos - description: Locations sorted by photo count (least first). Help improve our content by adding - photos! - photo_count: Photos - photos: photos - max_photos: Max Photos - add_photo: Add Photo - no_results: No locations found - no_results_hint: Try adjusting your filters - accessibility_hint: Wheelchair and disability access information for this location experiences: - title: Experiences - new: New Experience - edit: Edit - view: View - delete: Delete - edit_title: 'Edit: %{name}' - back_to_list: Back to list - name: Name - city: Place - category: Category - duration: Duration - duration_placeholder: Duration in minutes - duration_hint: Enter duration in minutes - best_season: Best Season - difficulty: Difficulty - description: Description - created_at: Created - updated_at: Updated - average_rating: Average Rating - reviews_count: Reviews - locations_count: Locations - actions: Actions - select_city: Select place... - select_category: Select category... - no_experiences: No experiences found - created: Experience created successfully - updated: Experience updated successfully - deleted: Experience deleted successfully - confirm_delete: Are you sure you want to delete %{name}? - current_cover: Current cover photo - upload_cover: Upload Cover Photo - cover_photo_hint: 'Recommended size: 1200x800px. Supported formats: JPG, PNG, WebP' - remove_cover_hint: Click the trash icon to remove the current cover photo - contact_hint: Contact details for booking or inquiries about this experience - contact_name: Contact Name - contact_name_placeholder: e.g. John Doe - contact_email: Contact Email - contact_phone: Contact Phone - contact_website: Contact Website - locations_hint: Select locations that are part of this experience. The order matters - drag to reorder. - selected_locations: Selected Locations - add_location: Add Location - search_location: Search and select a location... - no_locations_selected: No locations selected yet - sections: - basic_info: Basic Information - cover_photo: Cover Photo - contact: Contact Information - locations: Locations - metadata: Metadata - filter: - all_cities: All places - best_seasons: Best Seasons - seasons_hint: Leave unchecked for year-round experiences seasons: all_year: All year spring: Spring summer: Summer fall: Autumn winter: Winter - difficulties: - easy: Easy - moderate: Moderate - challenging: Challenging reviews: title: Reviews + removed: Review removed. show_title: Review Details back_to_list: Back to list total: Total Reviews @@ -1480,155 +1336,8 @@ en: delete: Delete deleted: Review deleted successfully confirm_delete: Are you sure you want to delete this review? - audio_tours: - title: Audio Tours - show_title: Audio Tour Details - new: New Audio Tour - edit: Edit - edit_title: 'Edit: %{location}' - view: View - delete: Delete - back_to_list: Back to list - total: Total - with_audio: With Audio - locations_with_tours: Locations Coverage - by_locale: By Language - search_placeholder: Search by location name... - all_locales: All languages - location: Location - locale: Language - audio_status: Status - duration: Duration - word_count: Word Count - script: Script - script_hint: The text that will be converted to audio - created_at: Created - actions: Actions - ready: Ready - pending: Pending - no_audio_tours: No audio tours found - select_location: Select a location... - select_locale: Select a language... - current_audio: Current Audio - upload_audio: Upload Audio File - audio_hint: 'Supported formats: MP3, WAV, OGG' - remove_audio: Remove audio file - audio_not_supported: Your browser does not support audio playback. - audio_player: Audio Player - created: Audio tour created successfully - updated: Audio tour updated successfully - deleted: Audio tour deleted successfully - confirm_delete: Are you sure you want to delete this audio tour? - ai_generation_title: AI Audio Generation - ai_generation_hint: Audio files are automatically generated by AI based on the script text you provide. - Enter your script above and it will be converted to audio after admin approval. - sections: - basic_info: Basic Information - audio_file: Audio File plans: - title: Plans - show_title: Plan Details - new: New Plan - edit: Edit - edit_title: 'Edit: %{title}' - view: View - delete: Delete - back_to_list: Back to list - total: Total Plans - public: Public - private: Private - with_experiences: With Experiences - all_visibility: All visibility - all_cities: All places - search_placeholder: Search by title... - plan_title: Title - city: Place - author: Author no_author: No author - visibility: Visibility - visibility_hint: Public plans are visible to all users - experiences: Experiences - locations: locations - duration: Duration - dates: Dates - start_date: Start Date - end_date: End Date - notes: Notes - notes_hint: Additional notes about this plan - created_at: Created - actions: Actions - no_plans: No plans found - select_city: Select a place... - no_experiences_yet: No experiences added yet - experiences_hint: Experiences can be added after creating the plan - created: Plan created successfully - updated: Plan updated successfully - deleted: Plan deleted successfully - confirm_delete: Are you sure you want to delete plan '%{title}'? - sections: - basic_info: Basic Information - experiences: Experiences - locations: Locations - locations_management_hint: Optionally add standalone locations to visit on each day, alongside the - experiences. - select_locations: Select locations for this day... - proposals: - title: Content Proposals - subtitle: Review proposals from all curators - submitted_for_review: Your changes have been submitted for admin review - delete_submitted_for_review: Your deletion request has been submitted for admin review - failed_to_submit: Failed to submit your changes. Please try again. - pending_title: Pending Proposals - no_pending: No pending proposals - no_proposals: No pending proposals - no_proposals_hint: All proposals have been reviewed or no proposals exist yet. - pending_for_resource: Pending Proposal - pending_proposal_info: '%{type} proposal by %{user} on %{date}' - contributors_count: - one: '%{count} other curator has contributed' - other: '%{count} other curators have contributed' - view_proposal: View Proposal - contributors: contributors - proposal_details: Proposal Details - proposed_changes: Proposed Changes - changes_diff: Changes - new_content: New Content Data - empty_value: (empty) - deletion_request: Deletion Request - deletion_warning: This proposal requests the deletion of the resource and all associated data. - contributors_title: Contributors - view_contribution: View changes - reviews_title: Curator Reviews - no_reviews_yet: No reviews yet. Be the first to review this proposal. - add_your_review: Add Your Review - your_recommendation: Your Recommendation - your_comment: Comment - comment_placeholder: Share your thoughts on this proposal... - comment_hint: Minimum 10 characters. Be constructive and specific. - submit_review: Submit Review - review_added: Your review has been added - already_reviewed: You have already reviewed this proposal - recommend_approve: Approve - recommend_reject: Reject - neutral: Neutral - info: Proposal Information - proposed_by: Proposed by - content_type: Content Type - submitted_at: Submitted - target_resource: Target Resource - pending_note: This proposal is awaiting admin review. Only administrators can approve or reject - proposals. - filter: - all_types: All change types - all_content_types: All content types - status: - pending: Pending Review - approved: Approved - rejected: Rejected - types: - create_content: Create - update_content: Update - delete_content: Delete admin: nav: users: User Management @@ -1638,13 +1347,6 @@ en: updated: User updated successfully unblocked: User unblocked successfully not_blocked: This user is not blocked - content_changes: - title: Content Changes - approved: Content change approved and applied successfully - rejected: Content change rejected successfully - approval_failed: Failed to apply content change - rejection_failed: Failed to reject content change - already_reviewed: This content change has already been reviewed travel_profile: checking_location: Checking your location... visit_recorded: Visit recorded successfully! diff --git a/config/locales/es.yml b/config/locales/es.yml index a5a15dea..a09e81ec 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -965,8 +965,6 @@ es: title: Panel de Curador nav: dashboard: Panel - locations: Lugares - experiences: Experiencias dashboard: welcome: "¡Bienvenido, %{username}!" total_locations: Total de Lugares @@ -979,75 +977,13 @@ es: recent_experiences: Experiencias Recientes no_locations: Aún no hay lugares no_experiences: Aún no hay experiencias - locations: - title: Lugares - new: Nuevo Lugar - edit: Editar - view: Ver - delete: Eliminar - edit_title: 'Editar: %{name}' - back_to_list: Volver a la lista - name: Nombre - city: Ciudad - type: Tipo - budget: Presupuesto - address: Dirección - description: Descripción - latitude: Latitud - longitude: Longitud - coordinates: Coordenadas - phone: Teléfono - email: Correo electrónico - website: Sitio web - opening_hours: Horario de Apertura - created_at: Creado - actions: Acciones - select_city: Seleccionar ciudad... - no_locations: No se encontraron lugares - created: Lugar creado exitosamente - updated: Lugar actualizado exitosamente - deleted: Lugar eliminado exitosamente - confirm_delete: "¿Estás seguro de que deseas eliminar %{name}?" - filter: - all_cities: Todas las ciudades experiences: - title: Experiencias - new: Nueva Experiencia - edit: Editar - view: Ver - delete: Eliminar - edit_title: 'Editar: %{name}' - back_to_list: Volver a la lista - name: Nombre - city: Ciudad - category: Categoría - duration: Duración - best_season: Mejor Temporada - difficulty: Dificultad - description: Descripción - created_at: Creado - actions: Acciones - select_city: Seleccionar ciudad... - select_category: Seleccionar categoría... - no_experiences: No se encontraron experiencias - created: Experiencia creada exitosamente - updated: Experiencia actualizada exitosamente - deleted: Experiencia eliminada exitosamente - confirm_delete: "¿Estás seguro de que deseas eliminar %{name}?" - filter: - all_cities: Todas las ciudades - best_seasons: Mejores temporadas - seasons_hint: Déjalo sin marcar para experiencias durante todo el año seasons: all_year: Todo el año spring: Primavera summer: Verano fall: Otoño winter: Invierno - difficulties: - easy: Fácil - moderate: Moderado - challenging: Desafiante travel_profile: checking_location: Verificando tu ubicación... visit_recorded: "¡Visita registrada con éxito!" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index b53abc73..496fd084 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -982,8 +982,6 @@ fr: title: Tableau de Bord Curateur nav: dashboard: Tableau de Bord - locations: Lieux - experiences: Expériences dashboard: welcome: Bienvenue, %{username} ! total_locations: Total des Lieux @@ -996,75 +994,13 @@ fr: recent_experiences: Expériences Récentes no_locations: Pas encore de lieux no_experiences: Pas encore d'expériences - locations: - title: Lieux - new: Nouveau Lieu - edit: Modifier - view: Voir - delete: Supprimer - edit_title: 'Modifier : %{name}' - back_to_list: Retour à la liste - name: Nom - city: Ville - type: Type - budget: Budget - address: Adresse - description: Description - latitude: Latitude - longitude: Longitude - coordinates: Coordonnées - phone: Téléphone - email: E-mail - website: Site web - opening_hours: Heures d'Ouverture - created_at: Créé - actions: Actions - select_city: Sélectionner une ville... - no_locations: Aucun lieu trouvé - created: Lieu créé avec succès - updated: Lieu mis à jour avec succès - deleted: Lieu supprimé avec succès - confirm_delete: Êtes-vous sûr de vouloir supprimer %{name} ? - filter: - all_cities: Toutes les villes experiences: - title: Expériences - new: Nouvelle Expérience - edit: Modifier - view: Voir - delete: Supprimer - edit_title: 'Modifier : %{name}' - back_to_list: Retour à la liste - name: Nom - city: Ville - category: Catégorie - duration: Durée - best_season: Meilleure Saison - difficulty: Difficulté - description: Description - created_at: Créé - actions: Actions - select_city: Sélectionner une ville... - select_category: Sélectionner une catégorie... - no_experiences: Aucune expérience trouvée - created: Expérience créée avec succès - updated: Expérience mise à jour avec succès - deleted: Expérience supprimée avec succès - confirm_delete: Êtes-vous sûr de vouloir supprimer %{name} ? - filter: - all_cities: Toutes les villes - best_seasons: Meilleures saisons - seasons_hint: Laissez décoché pour les expériences toute l’année seasons: all_year: Toute l'année spring: Printemps summer: Été fall: Automne winter: Hiver - difficulties: - easy: Facile - moderate: Modéré - challenging: Difficile travel_profile: checking_location: Vérification de votre position... visit_recorded: Visite enregistrée avec succès ! diff --git a/config/locales/hr.yml b/config/locales/hr.yml index e52e991b..9e9962fd 100644 --- a/config/locales/hr.yml +++ b/config/locales/hr.yml @@ -830,14 +830,8 @@ hr: nav: dashboard: Kontrolna Ploča content: Sadržaj - media: Mediji workflow: Tok Rada - locations: Lokacije - experiences: Iskustva - plans: Planovi - audio_tours: Audio Ture reviews: Recenzije - proposals: Prijedlozi dashboard: welcome: Dobrodošao, %{username}! total_locations: Ukupno Lokacija @@ -850,75 +844,13 @@ hr: recent_experiences: Nedavna Iskustva no_locations: Još nema lokacija no_experiences: Još nema iskustava - locations: - title: Lokacije - new: Nova Lokacija - edit: Uredi - view: Pogledaj - delete: Obriši - edit_title: 'Uredi: %{name}' - back_to_list: Natrag na listu - name: Naziv - city: Mjesto - type: Vrsta - budget: Budžet - address: Adresa - description: Opis - latitude: Geografska širina - longitude: Geografska dužina - coordinates: Koordinate - phone: Telefon - email: E-pošta - website: Web stranica - opening_hours: Radno Vrijeme - created_at: Kreirano - actions: Akcije - select_city: Odaberi mjesto... - no_locations: Nema pronađenih lokacija - created: Lokacija uspješno kreirana - updated: Lokacija uspješno ažurirana - deleted: Lokacija uspješno obrisana - confirm_delete: Jesi li siguran da želiš obrisati %{name}? - filter: - all_cities: Sva mjesta experiences: - title: Iskustva - new: Novo Iskustvo - edit: Uredi - view: Pogledaj - delete: Obriši - edit_title: 'Uredi: %{name}' - back_to_list: Natrag na listu - name: Naziv - city: Mjesto - category: Kategorija - duration: Trajanje - best_season: Najbolja Sezona - difficulty: Težina - description: Opis - created_at: Kreirano - actions: Akcije - select_city: Odaberi mjesto... - select_category: Odaberi kategoriju... - no_experiences: Nema pronađenih iskustava - created: Iskustvo uspješno kreirano - updated: Iskustvo uspješno ažurirano - deleted: Iskustvo uspješno obrisano - confirm_delete: Jesi li siguran da želiš obrisati %{name}? - filter: - all_cities: Sva mjesta - best_seasons: Najbolje sezone - seasons_hint: Ostavite neoznačeno za doživljaje tijekom cijele godine seasons: all_year: Cijela godina spring: Proljeće summer: Ljeto fall: Jesen winter: Zima - difficulties: - easy: Lako - moderate: Umjereno - challenging: Zahtjevno travel_profile: checking_location: Provjeravamo vašu lokaciju... visit_recorded: Posjet uspješno zabilježen! diff --git a/config/locales/it.yml b/config/locales/it.yml index 996a5f0f..ef094c86 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -971,8 +971,6 @@ it: title: Dashboard Curatore nav: dashboard: Dashboard - locations: Luoghi - experiences: Esperienze dashboard: welcome: Benvenuto, %{username}! total_locations: Totale Luoghi @@ -985,75 +983,13 @@ it: recent_experiences: Esperienze Recenti no_locations: Nessun luogo ancora no_experiences: Nessuna esperienza ancora - locations: - title: Luoghi - new: Nuovo Luogo - edit: Modifica - view: Visualizza - delete: Elimina - edit_title: 'Modifica: %{name}' - back_to_list: Torna alla lista - name: Nome - city: Città - type: Tipo - budget: Budget - address: Indirizzo - description: Descrizione - latitude: Latitudine - longitude: Longitudine - coordinates: Coordinate - phone: Telefono - email: E-mail - website: Sito web - opening_hours: Orari di Apertura - created_at: Creato - actions: Azioni - select_city: Seleziona città... - no_locations: Nessun luogo trovato - created: Luogo creato con successo - updated: Luogo aggiornato con successo - deleted: Luogo eliminato con successo - confirm_delete: Sei sicuro di voler eliminare %{name}? - filter: - all_cities: Tutte le città experiences: - title: Esperienze - new: Nuova Esperienza - edit: Modifica - view: Visualizza - delete: Elimina - edit_title: 'Modifica: %{name}' - back_to_list: Torna alla lista - name: Nome - city: Città - category: Categoria - duration: Durata - best_season: Stagione Migliore - difficulty: Difficoltà - description: Descrizione - created_at: Creato - actions: Azioni - select_city: Seleziona città... - select_category: Seleziona categoria... - no_experiences: Nessuna esperienza trovata - created: Esperienza creata con successo - updated: Esperienza aggiornata con successo - deleted: Esperienza eliminata con successo - confirm_delete: Sei sicuro di voler eliminare %{name}? - filter: - all_cities: Tutte le città - best_seasons: Stagioni migliori - seasons_hint: Lascia deselezionato per esperienze tutto l’anno seasons: all_year: Tutto l'anno spring: Primavera summer: Estate fall: Autunno winter: Inverno - difficulties: - easy: Facile - moderate: Moderato - challenging: Impegnativo minesweeper: title: Campo minato subtitle: "Un gioco educativo su mappe reali — le mine sono dove i dati reali registrano aree sospette." diff --git a/config/locales/nl.yml b/config/locales/nl.yml index f4467eff..cd026028 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -881,8 +881,6 @@ nl: title: Curator Dashboard nav: dashboard: Dashboard - locations: Locaties - experiences: Ervaringen dashboard: welcome: Welkom, %{username}! total_locations: Totaal Locaties @@ -895,75 +893,13 @@ nl: recent_experiences: Recente Ervaringen no_locations: Nog geen locaties no_experiences: Nog geen ervaringen - locations: - title: Locaties - new: Nieuwe Locatie - edit: Bewerken - view: Bekijken - delete: Verwijderen - edit_title: 'Bewerken: %{name}' - back_to_list: Terug naar lijst - name: Naam - city: Stad - type: Type - budget: Budget - address: Adres - description: Beschrijving - latitude: Breedtegraad - longitude: Lengtegraad - coordinates: Coördinaten - phone: Telefoon - email: E-mail - website: Website - opening_hours: Openingstijden - created_at: Aangemaakt - actions: Acties - select_city: Selecteer stad... - no_locations: Geen locaties gevonden - created: Locatie succesvol aangemaakt - updated: Locatie succesvol bijgewerkt - deleted: Locatie succesvol verwijderd - confirm_delete: Weet je zeker dat je %{name} wilt verwijderen? - filter: - all_cities: Alle steden experiences: - title: Ervaringen - new: Nieuwe Ervaring - edit: Bewerken - view: Bekijken - delete: Verwijderen - edit_title: 'Bewerken: %{name}' - back_to_list: Terug naar lijst - name: Naam - city: Stad - category: Categorie - duration: Duur - best_season: Beste Seizoen - difficulty: Moeilijkheidsgraad - description: Beschrijving - created_at: Aangemaakt - actions: Acties - select_city: Selecteer stad... - select_category: Selecteer categorie... - no_experiences: Geen ervaringen gevonden - created: Ervaring succesvol aangemaakt - updated: Ervaring succesvol bijgewerkt - deleted: Ervaring succesvol verwijderd - confirm_delete: Weet je zeker dat je %{name} wilt verwijderen? - filter: - all_cities: Alle steden - best_seasons: Beste seizoenen - seasons_hint: Laat leeg voor ervaringen het hele jaar door seasons: all_year: Het hele jaar spring: Lente summer: Zomer fall: Herfst winter: Winter - difficulties: - easy: Makkelijk - moderate: Gemiddeld - challenging: Uitdagend minesweeper: title: Mijnenveger subtitle: "Een educatief spel op echte kaarten — mijnen liggen waar echte gegevens mijnverdachte gebieden registreren." diff --git a/config/locales/pl.yml b/config/locales/pl.yml index fad7abe7..7b35fbe1 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -881,8 +881,6 @@ pl: title: Panel Kuratora nav: dashboard: Panel - locations: Lokalizacje - experiences: Doświadczenia dashboard: welcome: Witaj, %{username}! total_locations: Łączna Liczba Lokalizacji @@ -895,75 +893,13 @@ pl: recent_experiences: Ostatnie Doświadczenia no_locations: Brak jeszcze lokalizacji no_experiences: Brak jeszcze doświadczeń - locations: - title: Lokalizacje - new: Nowa Lokalizacja - edit: Edytuj - view: Zobacz - delete: Usuń - edit_title: 'Edycja: %{name}' - back_to_list: Powrót do listy - name: Nazwa - city: Miasto - type: Typ - budget: Budżet - address: Adres - description: Opis - latitude: Szerokość geograficzna - longitude: Długość geograficzna - coordinates: Współrzędne - phone: Telefon - email: E-mail - website: Strona internetowa - opening_hours: Godziny otwarcia - created_at: Utworzono - actions: Działania - select_city: Wybierz miasto... - no_locations: Nie znaleziono lokalizacji - created: Lokalizacja utworzona pomyślnie - updated: Lokalizacja zaktualizowana pomyślnie - deleted: Lokalizacja usunięta pomyślnie - confirm_delete: Czy na pewno chcesz usunąć %{name}? - filter: - all_cities: Wszystkie miasta experiences: - title: Doświadczenia - new: Nowe Doświadczenie - edit: Edytuj - view: Zobacz - delete: Usuń - edit_title: 'Edycja: %{name}' - back_to_list: Powrót do listy - name: Nazwa - city: Miasto - category: Kategoria - duration: Czas trwania - best_season: Najlepszy Sezon - difficulty: Trudność - description: Opis - created_at: Utworzono - actions: Działania - select_city: Wybierz miasto... - select_category: Wybierz kategorię... - no_experiences: Nie znaleziono doświadczeń - created: Doświadczenie utworzone pomyślnie - updated: Doświadczenie zaktualizowane pomyślnie - deleted: Doświadczenie usunięte pomyślnie - confirm_delete: Czy na pewno chcesz usunąć %{name}? - filter: - all_cities: Wszystkie miasta - best_seasons: Najlepsze pory roku - seasons_hint: Pozostaw niezaznaczone dla całorocznych atrakcji seasons: all_year: Cały rok spring: Wiosna summer: Lato fall: Jesień winter: Zima - difficulties: - easy: Łatwy - moderate: Umiarkowany - challenging: Wymagający minesweeper: title: Saper subtitle: "Gra edukacyjna na prawdziwych mapach — miny są tam, gdzie prawdziwe dane rejestrują obszary podejrzane o miny." diff --git a/config/locales/pt.yml b/config/locales/pt.yml index aa9de88d..e8df7fc9 100644 --- a/config/locales/pt.yml +++ b/config/locales/pt.yml @@ -927,8 +927,6 @@ pt: title: Painel do Curador nav: dashboard: Painel - locations: Locais - experiences: Experiências dashboard: welcome: Bem-vindo, %{username}! total_locations: Total de Locais @@ -941,75 +939,13 @@ pt: recent_experiences: Experiências Recentes no_locations: Ainda não há locais no_experiences: Ainda não há experiências - locations: - title: Locais - new: Novo Local - edit: Editar - view: Ver - delete: Excluir - edit_title: 'Editar: %{name}' - back_to_list: Voltar à lista - name: Nome - city: Cidade - type: Tipo - budget: Orçamento - address: Endereço - description: Descrição - latitude: Latitude - longitude: Longitude - coordinates: Coordenadas - phone: Telefone - email: E-mail - website: Site - opening_hours: Horário de Funcionamento - created_at: Criado - actions: Ações - select_city: Selecione a cidade... - no_locations: Nenhum local encontrado - created: Local criado com sucesso - updated: Local atualizado com sucesso - deleted: Local excluído com sucesso - confirm_delete: Tem certeza de que deseja excluir %{name}? - filter: - all_cities: Todas as cidades experiences: - title: Experiências - new: Nova Experiência - edit: Editar - view: Ver - delete: Excluir - edit_title: 'Editar: %{name}' - back_to_list: Voltar à lista - name: Nome - city: Cidade - category: Categoria - duration: Duração - best_season: Melhor Época - difficulty: Dificuldade - description: Descrição - created_at: Criado - actions: Ações - select_city: Selecione a cidade... - select_category: Selecione a categoria... - no_experiences: Nenhuma experiência encontrada - created: Experiência criada com sucesso - updated: Experiência atualizada com sucesso - deleted: Experiência excluída com sucesso - confirm_delete: Tem certeza de que deseja excluir %{name}? - filter: - all_cities: Todas as cidades - best_seasons: Melhores estações - seasons_hint: Deixe desmarcado para experiências durante todo o ano seasons: all_year: Ano todo spring: Primavera summer: Verão fall: Outono winter: Inverno - difficulties: - easy: Fácil - moderate: Moderado - challenging: Desafiador minesweeper: title: Campo minado subtitle: "Um jogo educativo sobre mapas reais — as minas estão onde os dados reais registam áreas suspeitas." diff --git a/config/locales/sk.yml b/config/locales/sk.yml index df699ac0..98152a20 100644 --- a/config/locales/sk.yml +++ b/config/locales/sk.yml @@ -871,8 +871,6 @@ sk: title: Panel Kurátora nav: dashboard: Panel - locations: Miesta - experiences: Zážitky dashboard: welcome: Vitajte, %{username}! total_locations: Celkový Počet Miest @@ -885,75 +883,13 @@ sk: recent_experiences: Nedávne Zážitky no_locations: Zatiaľ žiadne miesta no_experiences: Zatiaľ žiadne zážitky - locations: - title: Miesta - new: Nové Miesto - edit: Upraviť - view: Zobraziť - delete: Vymazať - edit_title: 'Úprava: %{name}' - back_to_list: Späť na zoznam - name: Názov - city: Mesto - type: Typ - budget: Rozpočet - address: Adresa - description: Popis - latitude: Zemepisná šírka - longitude: Zemepisná dĺžka - coordinates: Súradnice - phone: Telefón - email: E-mail - website: Webová stránka - opening_hours: Otváracie hodiny - created_at: Vytvorené - actions: Akcie - select_city: Vyberte mesto... - no_locations: Neboli nájdené žiadne miesta - created: Miesto bolo úspešne vytvorené - updated: Miesto bolo úspešne aktualizované - deleted: Miesto bolo úspešne vymazané - confirm_delete: Ste si istí, že chcete vymazať %{name}? - filter: - all_cities: Všetky mestá experiences: - title: Zážitky - new: Nový Zážitok - edit: Upraviť - view: Zobraziť - delete: Vymazať - edit_title: 'Úprava: %{name}' - back_to_list: Späť na zoznam - name: Názov - city: Mesto - category: Kategória - duration: Dĺžka - best_season: Najlepšia Sezóna - difficulty: Obtiažnosť - description: Popis - created_at: Vytvorené - actions: Akcie - select_city: Vyberte mesto... - select_category: Vyberte kategóriu... - no_experiences: Neboli nájdené žiadne zážitky - created: Zážitok bol úspešne vytvorený - updated: Zážitok bol úspešne aktualizovaný - deleted: Zážitok bol úspešne vymazaný - confirm_delete: Ste si istí, že chcete vymazať %{name}? - filter: - all_cities: Všetky mestá - best_seasons: Najlepšie ročné obdobia - seasons_hint: Nechajte nezaškrtnuté pre celoročné zážitky seasons: all_year: Celý rok spring: Jar summer: Leto fall: Jeseň winter: Zima - difficulties: - easy: Ľahké - moderate: Stredne náročné - challenging: Náročné minesweeper: title: Míny subtitle: "Vzdelávacia hra na skutočných mapách — míny sú tam, kde skutočné údaje zaznamenávajú oblasti podozrivé z výskytu mín." diff --git a/config/locales/sl.yml b/config/locales/sl.yml index 3ae4e59f..83d007f3 100644 --- a/config/locales/sl.yml +++ b/config/locales/sl.yml @@ -872,8 +872,6 @@ sl: title: Nadzorna Plošča Kustosa nav: dashboard: Nadzorna Plošča - locations: Lokacije - experiences: Doživetja dashboard: welcome: Dobrodošli, %{username}! total_locations: Skupaj Lokacij @@ -886,75 +884,13 @@ sl: recent_experiences: Nedavna Doživetja no_locations: Še ni lokacij no_experiences: Še ni doživetij - locations: - title: Lokacije - new: Nova Lokacija - edit: Uredi - view: Poglej - delete: Izbriši - edit_title: 'Uredi: %{name}' - back_to_list: Nazaj na seznam - name: Ime - city: Mesto - type: Vrsta - budget: Proračun - address: Naslov - description: Opis - latitude: Geografska širina - longitude: Geografska dolžina - coordinates: Koordinate - phone: Telefon - email: E-pošta - website: Spletna stran - opening_hours: Delovni Čas - created_at: Ustvarjeno - actions: Akcije - select_city: Izberite mesto... - no_locations: Ni najdenih lokacij - created: Lokacija uspešno ustvarjena - updated: Lokacija uspešno posodobljena - deleted: Lokacija uspešno izbrisana - confirm_delete: Ali ste prepričani, da želite izbrisati %{name}? - filter: - all_cities: Vsa mesta experiences: - title: Doživetja - new: Novo Doživetje - edit: Uredi - view: Poglej - delete: Izbriši - edit_title: 'Uredi: %{name}' - back_to_list: Nazaj na seznam - name: Ime - city: Mesto - category: Kategorija - duration: Trajanje - best_season: Najboljša Sezona - difficulty: Težavnost - description: Opis - created_at: Ustvarjeno - actions: Akcije - select_city: Izberite mesto... - select_category: Izberite kategorijo... - no_experiences: Ni najdenih doživetij - created: Doživetje uspešno ustvarjeno - updated: Doživetje uspešno posodobljeno - deleted: Doživetje uspešno izbrisano - confirm_delete: Ali ste prepričani, da želite izbrisati %{name}? - filter: - all_cities: Vsa mesta - best_seasons: Najboljši letni časi - seasons_hint: Pustite neoznačeno za doživetja skozi vse leto seasons: all_year: Vse leto spring: Pomlad summer: Poletje fall: Jesen winter: Zima - difficulties: - easy: Lahko - moderate: Zmerno - challenging: Zahtevno minesweeper: title: Minolovec subtitle: "Izobraževalna igra na resničnih zemljevidih — mine so tam, kjer resnični podatki beležijo območja, sumljiva zaradi min." diff --git a/config/locales/sr.yml b/config/locales/sr.yml index 1c5f192a..1dbdbc75 100644 --- a/config/locales/sr.yml +++ b/config/locales/sr.yml @@ -960,8 +960,6 @@ sr: title: Куратор Панел nav: dashboard: Преглед - locations: Локације - experiences: Искуства dashboard: welcome: Добродошли, %{username}! total_locations: Укупно локација @@ -974,75 +972,13 @@ sr: recent_experiences: Недавна искуства no_locations: Још нема локација no_experiences: Још нема искустава - locations: - title: Локације - new: Нова локација - edit: Измени - view: Прегледај - delete: Обриши - edit_title: 'Измени: %{name}' - back_to_list: Назад на листу - name: Назив - city: Место - type: Тип - budget: Буџет - address: Адреса - description: Опис - latitude: Географска ширина - longitude: Географска дужина - coordinates: Координате - phone: Телефон - email: Е-пошта - website: Веб страница - opening_hours: Радно време - created_at: Креирано - actions: Акције - select_city: Изаберите место... - no_locations: Нема пронађених локација - created: Локација успешно креирана - updated: Локација успешно ажурирана - deleted: Локација успешно обрисана - confirm_delete: Да ли сте сигурни да желите да обришете %{name}? - filter: - all_cities: Сва места experiences: - title: Искуства - new: Ново искуство - edit: Измени - view: Прегледај - delete: Обриши - edit_title: 'Измени: %{name}' - back_to_list: Назад на листу - name: Назив - city: Место - category: Категорија - duration: Трајање - best_season: Најбоља сезона - difficulty: Тежина - description: Опис - created_at: Креирано - actions: Акције - select_city: Изаберите место... - select_category: Изаберите категорију... - no_experiences: Нема пронађених искустава - created: Искуство успешно креирано - updated: Искуство успешно ажурирано - deleted: Искуство успешно обрисано - confirm_delete: Да ли сте сигурни да желите да обришете %{name}? - filter: - all_cities: Сва места - best_seasons: Најбоље сезоне - seasons_hint: Оставите неозначено за доживљаје током целе године seasons: all_year: Цела година spring: Пролеће summer: Лето fall: Јесен winter: Зима - difficulties: - easy: Лако - moderate: Умерено - challenging: Захтевно minesweeper: title: Миноловац subtitle: "Едукативна игра на стварним картама — мине су тамо где стварни подаци бележе минско сумњива подручја." diff --git a/config/locales/tr.yml b/config/locales/tr.yml index a94dbf2c..5419dc48 100644 --- a/config/locales/tr.yml +++ b/config/locales/tr.yml @@ -877,10 +877,6 @@ tr: title: Küratör Paneli nav: dashboard: Panel - locations: Mekanlar - experiences: Deneyimler - plans: Planlar - audio_tours: Sesli Turlar reviews: Yorumlar dashboard: welcome: Hoş geldiniz, %{username}! @@ -909,138 +905,13 @@ tr: no_experiences: Henüz deneyim yok no_reviews: Henüz yorum yok no_plans: Henüz herkese açık plan yok - locations: - title: Mekanlar - new: Yeni Mekan - edit: Düzenle - view: Görüntüle - delete: Sil - edit_title: 'Düzenle: %{name}' - back_to_list: Listeye dön - name: İsim - city: Şehir - type: Tür - budget: Bütçe - address: Adres - description: Açıklama - historical_context: Tarihsel Bağlam - historical_context_hint: Bu mekanın tarihsel arka planı ve önemi - latitude: Enlem - longitude: Boylam - coordinates: Koordinatlar - view_on_map: Haritada görüntüle - phone: Telefon - email: E-posta - website: Web sitesi - video_url: Video URL - video_url_hint: Bu mekan hakkında YouTube veya diğer video bağlantısı - opening_hours: Açılış Saatleri - created_at: Oluşturulma - updated_at: Güncellenme - average_rating: Ortalama Puan - reviews_count: Yorumlar - actions: İşlemler - select_city: Şehir seçin... - no_locations: Mekan bulunamadı - created: Mekan başarıyla oluşturuldu - updated: Mekan başarıyla güncellendi - deleted: Mekan başarıyla silindi - confirm_delete: "%{name} mekanını silmek istediğinizden emin misiniz?" - tags: Etiketler - tags_placeholder: örn. doğa, tarihi, aile dostu - tags_hint: Etiketleri virgülle ayırın - experiences_hint: Bu mekanın uygun olduğu deneyim türlerini seçin - current_photos: Mevcut fotoğraflar - add_photos: Fotoğraf Ekle - photos_hint: 'Birden fazla fotoğraf seçebilirsiniz. Desteklenen formatlar: JPG, - PNG, WebP' - remove_photos_hint: Kaldırılacak fotoğrafları işaretlemek için çöp kutusu simgesine - tıklayın - current_audio: Mevcut ses kaydı - upload_audio: Ses Kaydı Yükle - audio_hint: 'Desteklenen formatlar: MP3, WAV, OGG. Maksimum boyut: 50MB' - remove_audio: Kaldır - audio_not_supported: Tarayıcınız ses oynatmayı desteklemiyor. - sections: - basic_info: Temel Bilgiler - location: Konum ve Koordinatlar - contact: İletişim Bilgileri - social: Sosyal Medya - experiences: Uygun Deneyim Türleri - tags: Etiketler - photos: Fotoğraflar - audio: Ses Kaydı - metadata: Meta Veriler - filter: - all_cities: Tüm şehirler experiences: - title: Deneyimler - new: Yeni Deneyim - edit: Düzenle - view: Görüntüle - delete: Sil - edit_title: 'Düzenle: %{name}' - back_to_list: Listeye dön - name: İsim - city: Şehir - category: Kategori - duration: Süre - duration_placeholder: Dakika cinsinden süre - duration_hint: Süreyi dakika olarak girin - best_season: En İyi Mevsim - difficulty: Zorluk - description: Açıklama - created_at: Oluşturulma - updated_at: Güncellenme - average_rating: Ortalama Puan - reviews_count: Yorumlar - locations_count: Mekanlar - actions: İşlemler - select_city: Şehir seçin... - select_category: Kategori seçin... - no_experiences: Deneyim bulunamadı - created: Deneyim başarıyla oluşturuldu - updated: Deneyim başarıyla güncellendi - deleted: Deneyim başarıyla silindi - confirm_delete: "%{name} deneyimini silmek istediğinizden emin misiniz?" - current_cover: Mevcut kapak fotoğrafı - upload_cover: Kapak Fotoğrafı Yükle - cover_photo_hint: 'Önerilen boyut: 1200x800px. Desteklenen formatlar: JPG, PNG, - WebP' - remove_cover_hint: Mevcut kapak fotoğrafını kaldırmak için çöp kutusu simgesine - tıklayın - contact_hint: Bu deneyim için rezervasyon veya sorular için iletişim bilgileri - contact_name: İletişim Adı - contact_name_placeholder: örn. Ahmet Yılmaz - contact_email: İletişim E-postası - contact_phone: İletişim Telefonu - contact_website: İletişim Web Sitesi - locations_hint: Bu deneyimin parçası olan mekanları seçin. Sıralama önemlidir - - yeniden sıralamak için sürükleyin. - selected_locations: Seçili Mekanlar - add_location: Mekan Ekle - search_location: Mekan arayın ve seçin... - no_locations_selected: Henüz mekan seçilmedi - sections: - basic_info: Temel Bilgiler - cover_photo: Kapak Fotoğrafı - contact: İletişim Bilgileri - locations: Mekanlar - metadata: Meta Veriler - filter: - all_cities: Tüm şehirler - best_seasons: En iyi mevsimler - seasons_hint: Yıl boyu süren deneyimler için işaretlemeyin seasons: all_year: Tüm yıl spring: İlkbahar summer: Yaz fall: Sonbahar winter: Kış - difficulties: - easy: Kolay - moderate: Orta - challenging: Zorlu reviews: title: Yorumlar show_title: Yorum Detayları @@ -1063,91 +934,8 @@ tr: delete: Sil deleted: Yorum başarıyla silindi confirm_delete: Bu yorumu silmek istediğinizden emin misiniz? - audio_tours: - title: Sesli Turlar - show_title: Sesli Tur Detayları - new: Yeni Sesli Tur - edit: Düzenle - edit_title: 'Düzenle: %{location}' - view: Görüntüle - delete: Sil - back_to_list: Listeye dön - total: Toplam - with_audio: Sesli - locations_with_tours: Mekan Kapsamı - by_locale: Dile Göre - search_placeholder: Mekan adına göre ara... - all_locales: Tüm diller - location: Mekan - locale: Dil - audio_status: Durum - duration: Süre - word_count: Kelime Sayısı - script: Metin - script_hint: Sese dönüştürülecek metin - created_at: Oluşturulma - actions: İşlemler - ready: Hazır - pending: Beklemede - no_audio_tours: Sesli tur bulunamadı - select_location: Bir mekan seçin... - select_locale: Bir dil seçin... - current_audio: Mevcut Ses - upload_audio: Ses Dosyası Yükle - audio_hint: 'Desteklenen formatlar: MP3, WAV, OGG' - remove_audio: Ses dosyasını kaldır - audio_not_supported: Tarayıcınız ses oynatmayı desteklemiyor. - audio_player: Ses Oynatıcı - created: Sesli tur başarıyla oluşturuldu - updated: Sesli tur başarıyla güncellendi - deleted: Sesli tur başarıyla silindi - confirm_delete: Bu sesli turu silmek istediğinizden emin misiniz? - sections: - basic_info: Temel Bilgiler - audio_file: Ses Dosyası plans: - title: Planlar - show_title: Plan Detayları - new: Yeni Plan - edit: Düzenle - edit_title: 'Düzenle: %{title}' - view: Görüntüle - delete: Sil - back_to_list: Listeye dön - total: Toplam Plan - public: Herkese Açık - private: Özel - with_experiences: Deneyimli - all_visibility: Tüm görünürlük - all_cities: Tüm şehirler - search_placeholder: Başlığa göre ara... - plan_title: Başlık - city: Şehir - author: Yazar no_author: Yazar yok - visibility: Görünürlük - visibility_hint: Herkese açık planlar tüm kullanıcılara görünür - experiences: Deneyimler - locations: mekan - duration: Süre - dates: Tarihler - start_date: Başlangıç Tarihi - end_date: Bitiş Tarihi - notes: Notlar - notes_hint: Bu plan hakkında ek notlar - created_at: Oluşturulma - actions: İşlemler - no_plans: Plan bulunamadı - select_city: Bir şehir seçin... - no_experiences_yet: Henüz deneyim eklenmedi - experiences_hint: Deneyimler plan oluşturulduktan sonra eklenebilir - created: Plan başarıyla oluşturuldu - updated: Plan başarıyla güncellendi - deleted: Plan başarıyla silindi - confirm_delete: "'%{title}' planını silmek istediğinizden emin misiniz?" - sections: - basic_info: Temel Bilgiler - experiences: Deneyimler travel_profile: checking_location: Konumunuz kontrol ediliyor... visit_recorded: Ziyaret başarıyla kaydedildi! diff --git a/config/routes.rb b/config/routes.rb index 42807978..829d4ef5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -142,24 +142,7 @@ # Curator dashboard - for curators and admins namespace :curator do - resources :locations do - collection do - get :needs_photos - end - member do - patch :archive - patch :restore - end - end - resources :experiences resources :reviews, only: [ :index, :show, :destroy ] - resources :audio_tours - resources :plans - resources :proposals, only: [ :index, :show ] do - member do - post :add_review - end - end resources :moments, only: [ :index ] do member do get :photo @@ -175,12 +158,6 @@ post :unblock end end - resources :content_changes, only: [ :index, :show ] do - member do - post :approve - post :reject - end - end end root "dashboard#index" diff --git a/db/migrate/20260930180000_drop_proposals.rb b/db/migrate/20260930180000_drop_proposals.rb new file mode 100644 index 00000000..eb94a30e --- /dev/null +++ b/db/migrate/20260930180000_drop_proposals.rb @@ -0,0 +1,43 @@ +class DropProposals < ActiveRecord::Migration[8.1] + def change + drop_table :curator_reviews do |t| + t.references :content_change, null: false, foreign_key: true + t.references :user, null: false, foreign_key: true + t.text :comment, null: false + t.integer :recommendation, default: 0 + t.timestamps + t.index %i[content_change_id created_at] + end + + drop_table :content_change_contributions do |t| + t.references :content_change, null: false, foreign_key: true + t.references :user, null: false, foreign_key: true + t.jsonb :proposed_data, default: {} + t.text :notes + t.timestamps + t.index %i[content_change_id user_id], unique: true, name: "idx_contributions_unique_user_per_change" + end + + drop_table :content_changes do |t| + t.references :user, null: false, foreign_key: true + t.references :reviewed_by, foreign_key: { to_table: :users } + t.integer :change_type, default: 0, null: false + t.string :changeable_class + t.bigint :changeable_id + t.string :changeable_type + t.jsonb :original_data, default: {} + t.jsonb :proposed_data, default: {} + t.datetime :reviewed_at + t.integer :status, default: 0, null: false + t.text :admin_notes + t.timestamps + t.index :change_type + t.index :status + t.index %i[user_id status] + t.index %i[changeable_type changeable_id], name: "index_content_changes_on_changeable" + t.index %i[changeable_type changeable_id status], name: "idx_content_changes_on_changeable_and_status" + t.index %i[changeable_type changeable_id], unique: true, where: "((status = 0) AND (changeable_id IS NOT NULL))", + name: "idx_unique_pending_proposal_per_resource" + end + end +end diff --git a/db/schema.rb b/db/schema.rb index 85e0779d..ef11752e 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[8.1].define(version: 2026_09_30_170000) do +ActiveRecord::Schema[8.1].define(version: 2026_09_30_180000) do # These are extensions that must be enabled in order to support this database enable_extension "pg_catalog.plpgsql" @@ -112,42 +112,6 @@ t.index ["wheelchair_accessible"], name: "index_browses_on_wheelchair_accessible" end - create_table "content_change_contributions", force: :cascade do |t| - t.bigint "content_change_id", null: false - t.datetime "created_at", null: false - t.text "notes" - t.jsonb "proposed_data", default: {} - t.datetime "updated_at", null: false - t.bigint "user_id", null: false - t.index ["content_change_id", "user_id"], name: "idx_contributions_unique_user_per_change", unique: true - t.index ["content_change_id"], name: "index_content_change_contributions_on_content_change_id" - t.index ["user_id"], name: "index_content_change_contributions_on_user_id" - end - - create_table "content_changes", force: :cascade do |t| - t.text "admin_notes" - t.integer "change_type", default: 0, null: false - t.string "changeable_class" - t.bigint "changeable_id" - t.string "changeable_type" - t.datetime "created_at", null: false - t.jsonb "original_data", default: {} - t.jsonb "proposed_data", default: {} - t.datetime "reviewed_at" - t.bigint "reviewed_by_id" - t.integer "status", default: 0, null: false - t.datetime "updated_at", null: false - t.bigint "user_id", null: false - t.index ["change_type"], name: "index_content_changes_on_change_type" - t.index ["changeable_type", "changeable_id", "status"], name: "idx_content_changes_on_changeable_and_status" - t.index ["changeable_type", "changeable_id"], name: "idx_unique_pending_proposal_per_resource", unique: true, where: "((status = 0) AND (changeable_id IS NOT NULL))" - t.index ["changeable_type", "changeable_id"], name: "index_content_changes_on_changeable" - t.index ["reviewed_by_id"], name: "index_content_changes_on_reviewed_by_id" - t.index ["status"], name: "index_content_changes_on_status" - t.index ["user_id", "status"], name: "index_content_changes_on_user_id_and_status" - t.index ["user_id"], name: "index_content_changes_on_user_id" - end - create_table "curator_activities", force: :cascade do |t| t.string "action", null: false t.datetime "created_at", null: false @@ -165,18 +129,6 @@ t.index ["user_id"], name: "index_curator_activities_on_user_id" end - create_table "curator_reviews", force: :cascade do |t| - t.text "comment", null: false - t.bigint "content_change_id", null: false - t.datetime "created_at", null: false - t.integer "recommendation", default: 0 - t.datetime "updated_at", null: false - t.bigint "user_id", null: false - t.index ["content_change_id", "created_at"], name: "index_curator_reviews_on_content_change_id_and_created_at" - t.index ["content_change_id"], name: "index_curator_reviews_on_content_change_id" - t.index ["user_id"], name: "index_curator_reviews_on_user_id" - end - create_table "events", force: :cascade do |t| t.datetime "created_at", null: false t.text "description" @@ -607,13 +559,7 @@ add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" add_foreign_key "audio_tours", "locations" - add_foreign_key "content_change_contributions", "content_changes" - add_foreign_key "content_change_contributions", "users" - add_foreign_key "content_changes", "users" - add_foreign_key "content_changes", "users", column: "reviewed_by_id" add_foreign_key "curator_activities", "users" - add_foreign_key "curator_reviews", "content_changes" - add_foreign_key "curator_reviews", "users" add_foreign_key "events", "locations" add_foreign_key "experience_category_types", "experience_categories" add_foreign_key "experience_category_types", "experience_types" diff --git a/lib/platform/dsl/executor.rb b/lib/platform/dsl/executor.rb index cef25257..1b752c8e 100644 --- a/lib/platform/dsl/executor.rb +++ b/lib/platform/dsl/executor.rb @@ -16,7 +16,7 @@ module DSL # - TableQuery: dynamic queries on tables # - Infrastructure: system health, queue status, logs # - Content: mutations, generation, audio - # - Curator: proposals, approval, curator management + # - Curator: curator management # - External: external APIs, code introspection # class Executor @@ -50,10 +50,6 @@ def execute(ast) Executors::Content.execute_audio(ast) # Curator queries - when :proposals_query - Executors::Curator.execute_proposals_query(ast) - when :approval - Executors::Curator.execute_approval(ast) when :curators_query Executors::Curator.execute_curators_query(ast) when :curator_management @@ -133,11 +129,8 @@ def find_record_for_mutation(model, filters) = Executors::Content.send(:find_rec def format_created_record(record) = Executors::Content.send(:format_created_record, record) # Curator delegations - def execute_proposals_query(ast) = Executors::Curator.execute_proposals_query(ast) - def execute_approval(ast) = Executors::Curator.execute_approval(ast) def execute_curators_query(ast) = Executors::Curator.execute_curators_query(ast) def execute_curator_management(ast) = Executors::Curator.execute_curator_management(ast) - def list_proposals(filters) = Executors::Curator.send(:list_proposals, filters) def list_curators(filters) = Executors::Curator.send(:list_curators, filters) # External delegations diff --git a/lib/platform/dsl/executors/curator.rb b/lib/platform/dsl/executors/curator.rb index 5793c08e..5ea9c618 100644 --- a/lib/platform/dsl/executors/curator.rb +++ b/lib/platform/dsl/executors/curator.rb @@ -3,49 +3,14 @@ module Platform module DSL module Executors - # Curator executor - handles proposals, approval, and curator management + # Curator executor - handles curator management # # Query types: - # - proposals_query: list/show content change proposals - # - approval: approve/reject proposals # - curators_query: list/show curators # - curator_management: block/unblock curators # module Curator class << self - # Execute proposals query - def execute_proposals_query(ast) - filters = ast[:filters] || {} - operation = ast[:operations]&.first - - case operation&.dig(:name) - when :list, nil - list_proposals(filters) - when :show - show_proposal(filters) - when :count - count_proposals(filters) - else - list_proposals(filters) - end - end - - # Execute approval action - def execute_approval(ast) - action = ast[:action] - type = ast[:approval_type] - filters = ast[:filters] - - case action - when :approve - approve_proposal(filters, ast[:notes]) - when :reject - reject_proposal(filters, ast[:reason]) - else - raise ExecutionError, "Nepoznata approval akcija: #{action}" - end - end - # Execute curators query def execute_curators_query(ast) filters = ast[:filters] || {} @@ -86,157 +51,6 @@ def execute_curator_management(ast) private - # =================== - # Proposals methods - # =================== - - def list_proposals(filters) - scope = ContentChange.all - - if filters[:status] - status = filters[:status].to_s - scope = scope.where(status: status) if ContentChange.statuses.key?(status) - else - scope = scope.pending - end - - if filters[:change_type] || filters[:type] - change_type = (filters[:change_type] || filters[:type]).to_s - scope = scope.where(change_type: change_type) if ContentChange.change_types.key?(change_type) - end - - if filters[:content_type] - scope = scope.where(changeable_type: filters[:content_type].to_s.classify) - end - - proposals = scope.order(created_at: :desc).limit(50) - - { - action: :list_proposals, - count: proposals.size, - total_pending: ContentChange.pending.count, - proposals: proposals.map { |p| format_proposal(p) } - } - end - - def show_proposal(filters) - proposal = find_proposal(filters) - - { - action: :show_proposal, - id: proposal.id, - status: proposal.status, - change_type: proposal.change_type, - changeable_type: proposal.changeable_type || proposal.changeable_class, - changeable_id: proposal.changeable_id, - description: proposal.description, - proposed_data: proposal.proposed_data, - original_data: proposal.original_data, - changes_diff: proposal.changes_diff, - proposer: { - id: proposal.user_id, - username: proposal.user.username - }, - contributors: proposal.all_contributors.map { |u| { id: u.id, username: u.username } }, - reviews: proposal.curator_reviews.map do |r| - { - user: r.user.username, - recommendation: r.recommendation, - comment: r.comment.truncate(100) - } - end, - recommendation_summary: proposal.recommendation_summary, - created_at: proposal.created_at.iso8601, - reviewed_at: proposal.reviewed_at&.iso8601, - reviewed_by: proposal.reviewed_by&.username - } - end - - def count_proposals(filters) - { - pending: ContentChange.pending.count, - approved: ContentChange.approved.count, - rejected: ContentChange.rejected.count, - total: ContentChange.count, - by_type: ContentChange.group(:change_type).count, - by_content_type: ContentChange.group(:changeable_type).count - } - end - - def find_proposal(filters) - raise ExecutionError, "Potreban filter: id" unless filters[:id] - - proposal = ContentChange.find_by(id: filters[:id]) - raise ExecutionError, "Proposal sa id=#{filters[:id]} nije pronađen" unless proposal - - proposal - end - - def format_proposal(proposal) - { - id: proposal.id, - status: proposal.status, - change_type: proposal.change_type, - description: proposal.description, - content_type: proposal.changeable_type || proposal.changeable_class, - proposer: proposal.user.username, - contributors_count: proposal.all_contributors.size, - reviews_count: proposal.curator_reviews.count, - recommendation_summary: proposal.recommendation_summary, - created_at: proposal.created_at.iso8601 - } - end - - # =================== - # Approval methods - # =================== - - def approve_proposal(filters, notes) - proposal = find_proposal(filters) - - unless proposal.pending? - raise ExecutionError, "Proposal nije u pending statusu (trenutni status: #{proposal.status})" - end - - admin = platform_admin_user - success = proposal.approve!(admin, notes: notes) - - unless success - raise ExecutionError, "Odobravanje prijedloga nije uspjelo" - end - - { - success: true, - action: :approve_proposal, - proposal_id: proposal.id, - change_type: proposal.change_type, - content_type: proposal.changeable_type || proposal.changeable_class, - notes: notes, - message: "Prijedlog je odobren i promjene su primijenjene" - } - end - - def reject_proposal(filters, reason) - proposal = find_proposal(filters) - - unless proposal.pending? - raise ExecutionError, "Proposal nije u pending statusu (trenutni status: #{proposal.status})" - end - - raise ExecutionError, "Potreban razlog za odbijanje" if reason.blank? - - admin = platform_admin_user - proposal.reject!(admin, notes: reason) - - { - success: true, - action: :reject_proposal, - proposal_id: proposal.id, - reason: reason, - message: "Prijedlog je odbijen" - } - end - def platform_admin_user User.find_by(user_type: :admin) || User.find_by(username: "platform_system") || create_platform_user end @@ -299,9 +113,7 @@ def show_curator(filters) spam_block_reason: curator.spam_block_reason, spam_blocked_until: curator.spam_blocked_until&.iso8601, activity_count_today: curator.activity_count_today, - total_activities: curator.curator_activities.count, - proposals_count: curator.content_changes.count, - reviews_count: curator.curator_reviews.count + total_activities: curator.curator_activities.count } end diff --git a/lib/platform/dsl/executors/infrastructure.rb b/lib/platform/dsl/executors/infrastructure.rb index 59f5550a..a4b87f06 100644 --- a/lib/platform/dsl/executors/infrastructure.rb +++ b/lib/platform/dsl/executors/infrastructure.rb @@ -346,7 +346,7 @@ def process_uptime end def get_table_sizes - tables = %w[locations experiences plans users reviews content_changes knowledge_summaries] + tables = %w[locations experiences plans users reviews knowledge_summaries] tables.each_with_object({}) do |table, hash| begin hash[table] = ActiveRecord::Base.connection.execute("SELECT COUNT(*) FROM #{table}").first["count"] diff --git a/lib/platform/dsl/executors/table_query.rb b/lib/platform/dsl/executors/table_query.rb index 153b96b6..c06843a4 100644 --- a/lib/platform/dsl/executors/table_query.rb +++ b/lib/platform/dsl/executors/table_query.rb @@ -29,9 +29,7 @@ class TableQuery "review" => "Review", "translations" => "Translation", "translation" => "Translation", - "browse" => "Browse", - "content_changes" => "ContentChange", - "content_change" => "ContentChange" + "browse" => "Browse" }.freeze class << self diff --git a/lib/platform/dsl/grammar.rb b/lib/platform/dsl/grammar.rb index 208e1021..904f4fd9 100644 --- a/lib/platform/dsl/grammar.rb +++ b/lib/platform/dsl/grammar.rb @@ -203,40 +203,6 @@ class Grammar < Parslet::Parser synthesize_audio_command | estimate_audio_command end - # Approval commands - # proposals { status: "pending" } | list - # proposals { id: 123 } | show - rule(:proposals_command) do - str("proposals").as(:command_type) >> space? >> filters.maybe >> space? >> operations.maybe - end - - # approve proposal { id: 123 } - # approve proposal { id: 123 } notes "..." - rule(:approval_notes_clause) do - space >> str("notes") >> space >> string.as(:approval_notes) - end - - rule(:approve_command) do - str("approve").as(:approval_cmd) >> space >> - str("proposal").as(:approval_type) >> space? >> filters >> - approval_notes_clause.maybe - end - - # reject proposal { id: 123 } reason "..." - rule(:rejection_reason_clause) do - space >> str("reason") >> space >> string.as(:rejection_reason) - end - - rule(:reject_command) do - str("reject").as(:approval_cmd) >> space >> - str("proposal").as(:approval_type) >> space? >> filters >> - rejection_reason_clause - end - - rule(:approval_command) do - approve_command | reject_command - end - # Curator management commands # curators { status: "active" } | list # curators { id: 123 } | activity @@ -244,6 +210,10 @@ class Grammar < Parslet::Parser str("curators").as(:command_type) >> space? >> filters.maybe >> space? >> operations.maybe end + rule(:rejection_reason_clause) do + space >> str("reason") >> space >> string.as(:rejection_reason) + end + # block curator { id: 123 } reason "spam" rule(:block_curator_command) do str("block").as(:curator_cmd) >> space >> @@ -326,7 +296,7 @@ class Grammar < Parslet::Parser end rule(:query) do - space? >> (schema_command | external_command | proposals_command | curators_command | code_command | logs_command | infrastructure_command | quality_command | validation_command | approval_command | curator_management_command | create_command | update_command | delete_command | generation_command | audio_command | table_query).as(:query) >> space? + space? >> (schema_command | external_command | curators_command | code_command | logs_command | infrastructure_command | quality_command | validation_command | curator_management_command | create_command | update_command | delete_command | generation_command | audio_command | table_query).as(:query) >> space? end root(:query) diff --git a/lib/platform/dsl/parser.rb b/lib/platform/dsl/parser.rb index a00f3f5b..a87bc11d 100644 --- a/lib/platform/dsl/parser.rb +++ b/lib/platform/dsl/parser.rb @@ -315,43 +315,6 @@ def self.convert_filters(raw_filters) } end - # Approval commands - # approve proposal { id: 123 } - rule(query: { approval_cmd: simple(:cmd), approval_type: simple(:at), filters: subtree(:f) }) do |dict| - { - type: :approval, - action: dict[:cmd].to_s.to_sym, - approval_type: dict[:at].to_s.to_sym, - filters: Transform.convert_filters(dict[:f]), - notes: nil, - reason: nil - } - end - - # approve proposal { id: 123 } notes "..." - rule(query: { approval_cmd: simple(:cmd), approval_type: simple(:at), filters: subtree(:f), approval_notes: subtree(:n) }) do |dict| - { - type: :approval, - action: dict[:cmd].to_s.to_sym, - approval_type: dict[:at].to_s.to_sym, - filters: Transform.convert_filters(dict[:f]), - notes: dict[:n]&.to_s, - reason: nil - } - end - - # reject proposal { id: 123 } reason "..." - rule(query: { approval_cmd: simple(:cmd), approval_type: simple(:at), filters: subtree(:f), rejection_reason: subtree(:r) }) do |dict| - { - type: :approval, - action: dict[:cmd].to_s.to_sym, - approval_type: dict[:at].to_s.to_sym, - filters: Transform.convert_filters(dict[:f]), - notes: nil, - reason: dict[:r]&.to_s - } - end - # Curator management commands # block curator { id: 123 } reason "spam" rule(query: { curator_cmd: simple(:cmd), curator_action: simple(:ca), filters: subtree(:f), rejection_reason: subtree(:r) }) do |dict| diff --git a/test/controllers/curator/admin/base_controller_test.rb b/test/controllers/curator/admin/base_controller_test.rb index 1f1b662a..e10308d9 100644 --- a/test/controllers/curator/admin/base_controller_test.rb +++ b/test/controllers/curator/admin/base_controller_test.rb @@ -32,25 +32,25 @@ class Curator::Admin::BaseControllerTest < ActionDispatch::IntegrationTest # Test that admin routes require admin role test "admin routes require login" do - get curator_admin_content_changes_path + get curator_admin_users_path assert_redirected_to new_user_session_path end test "admin routes require curator role first" do login_as(@basic_user) - get curator_admin_content_changes_path + get curator_admin_users_path assert_redirected_to root_path end test "admin routes require admin role" do login_as(@curator) - get curator_admin_content_changes_path + get curator_admin_users_path assert_redirected_to curator_root_path end test "admin routes accessible by admin users" do login_as(@admin) - get curator_admin_content_changes_path + get curator_admin_users_path assert_response :success end diff --git a/test/controllers/curator/admin/content_changes_controller_test.rb b/test/controllers/curator/admin/content_changes_controller_test.rb deleted file mode 100644 index 234ad78e..00000000 --- a/test/controllers/curator/admin/content_changes_controller_test.rb +++ /dev/null @@ -1,183 +0,0 @@ -# frozen_string_literal: true - -require "test_helper" - -class Curator::Admin::ContentChangesControllerTest < ActionDispatch::IntegrationTest - setup do - @admin = User.create!( - username: "test_admin_#{SecureRandom.hex(4)}", - email: "test_admin_#{SecureRandom.hex(4)}@example.com", - password: "password123", - user_type: :admin - ) - @curator = User.create!( - username: "test_curator_#{SecureRandom.hex(4)}", - email: "test_curator_#{SecureRandom.hex(4)}@example.com", - password: "password123", - user_type: :curator - ) - @location = Location.create!( - name: "Test Location", - city: "Sarajevo", - lat: 43.8563, - lng: 18.4131, - location_type: :place - ) - - @content_change = ContentChange.create!( - user: @curator, - change_type: :update_content, - changeable: @location, - original_data: { "name" => "Test Location", "description" => "Old description" }, - proposed_data: { "name" => "Test Location", "description" => "New improved description" } - ) - end - - teardown do - ContentChange.destroy_all - @location&.destroy - @admin&.destroy - @curator&.destroy - end - - # Index tests - test "index requires admin" do - login_as(@curator) - get curator_admin_content_changes_path - assert_redirected_to curator_root_path - end - - test "index shows all content changes" do - login_as(@admin) - get curator_admin_content_changes_path - assert_response :success - end - - test "index filters by status" do - login_as(@admin) - get curator_admin_content_changes_path(status: "pending") - assert_response :success - end - - test "index filters by change type" do - login_as(@admin) - get curator_admin_content_changes_path(type: "update_content") - assert_response :success - end - - test "index filters by content type" do - login_as(@admin) - get curator_admin_content_changes_path(content_type: "Location") - assert_response :success - end - - # Show tests - test "show displays content change details" do - login_as(@admin) - get curator_admin_content_change_path(@content_change) - assert_response :success - end - - # Approve tests - test "approve requires admin" do - login_as(@curator) - post approve_curator_admin_content_change_path(@content_change) - assert_redirected_to curator_root_path - end - - test "approve approves pending content change" do - login_as(@admin) - post approve_curator_admin_content_change_path(@content_change) - assert_redirected_to curator_admin_content_changes_path - - @content_change.reload - assert @content_change.approved? - assert_equal @admin, @content_change.reviewed_by - - @location.reload - assert_equal "New improved description", @location.description - end - - test "approve records curator activity" do - login_as(@admin) - - assert_difference "CuratorActivity.count", 1 do - post approve_curator_admin_content_change_path(@content_change) - end - - activity = CuratorActivity.last - assert_equal "approve_content_change", activity.action - assert_equal @admin, activity.user - end - - test "approve fails for already reviewed content change" do - @content_change.update!(status: :approved, reviewed_by: @admin, reviewed_at: Time.current) - - login_as(@admin) - post approve_curator_admin_content_change_path(@content_change) - assert_redirected_to curator_admin_content_changes_path - assert_match /already.*reviewed/i, flash[:alert] - end - - test "approve shows error when approval fails" do - login_as(@admin) - - # Create a mock that returns false for approve! - mock_change = @content_change - mock_change.define_singleton_method(:approve!) { |*_args, **_kwargs| false } - - ContentChange.stub(:find, ->(_id) { mock_change }) do - post approve_curator_admin_content_change_path(@content_change) - end - - assert_redirected_to curator_admin_content_change_path(@content_change) - assert_match /failed/i, flash[:alert] - end - - # Reject tests - test "reject requires admin" do - login_as(@curator) - post reject_curator_admin_content_change_path(@content_change) - assert_redirected_to curator_root_path - end - - test "reject rejects pending content change" do - login_as(@admin) - post reject_curator_admin_content_change_path(@content_change), params: { admin_notes: "Not accurate" } - assert_redirected_to curator_admin_content_changes_path - - @content_change.reload - assert @content_change.rejected? - assert_equal @admin, @content_change.reviewed_by - assert_equal "Not accurate", @content_change.admin_notes - - @location.reload - assert_nil @location.description - end - - test "reject records curator activity" do - login_as(@admin) - - assert_difference "CuratorActivity.count", 1 do - post reject_curator_admin_content_change_path(@content_change) - end - - activity = CuratorActivity.last - assert_equal "reject_content_change", activity.action - end - - test "reject fails for already reviewed content change" do - @content_change.update!(status: :rejected, reviewed_by: @admin, reviewed_at: Time.current) - - login_as(@admin) - post reject_curator_admin_content_change_path(@content_change) - assert_redirected_to curator_admin_content_changes_path - assert_match /already.*reviewed/i, flash[:alert] - end - - private - - def login_as(user) - post user_session_path, params: { user: { email: user.email, password: "password123" } } - end -end diff --git a/test/controllers/curator/audio_tours_controller_test.rb b/test/controllers/curator/audio_tours_controller_test.rb deleted file mode 100644 index 897d48c8..00000000 --- a/test/controllers/curator/audio_tours_controller_test.rb +++ /dev/null @@ -1,686 +0,0 @@ -# frozen_string_literal: true - -require "test_helper" - -class Curator::AudioToursControllerTest < ActionDispatch::IntegrationTest - # Disable parallel tests for this file to avoid database conflicts - parallelize(workers: 1) - - setup do - # Use unique random values to prevent collisions - @random_suffix = SecureRandom.hex(8) - - @curator = User.create!( - username: "test_curator_#{@random_suffix}", - email: "test_curator_#{@random_suffix}@example.com", - password: "password123", - user_type: :curator - ) - @other_curator = User.create!( - username: "other_curator_#{@random_suffix}", - email: "other_curator_#{@random_suffix}@example.com", - password: "password123", - user_type: :curator - ) - @admin = User.create!( - username: "admin_user_#{@random_suffix}", - email: "admin_user_#{@random_suffix}@example.com", - password: "password123", - user_type: :admin - ) - @basic_user = User.create!( - username: "basic_user_#{@random_suffix}", - email: "basic_user_#{@random_suffix}@example.com", - password: "password123", - user_type: :basic - ) - - # Use unique coordinates to avoid validation failures - @lat_base = 43.8563 + rand * 0.001 - @lng_base = 18.4131 + rand * 0.001 - - @location = Location.create!( - name: "Test Location #{@random_suffix}", - city: "Sarajevo", - lat: @lat_base, - lng: @lng_base, - location_type: :place - ) - - @other_location = Location.create!( - name: "Other Location #{@random_suffix}", - city: "Mostar", - lat: @lat_base + 0.01, - lng: @lng_base + 0.01, - location_type: :place - ) - - @audio_tour = AudioTour.create!( - location: @location, - locale: "bs", - script: "Ovo je testni audio tour za Sarajevo #{@random_suffix}.", - word_count: 10, - duration: "2 min" - ) - - @other_audio_tour = AudioTour.create!( - location: @other_location, - locale: "en", - script: "This is a test audio tour for Mostar #{@random_suffix}.", - word_count: 15, - duration: "3 min" - ) - end - - # ========================================================================== - # Authentication Tests - # ========================================================================== - - test "index requires login" do - get curator_audio_tours_path - assert_redirected_to new_user_session_path - end - - test "show requires login" do - get curator_audio_tour_path(@audio_tour) - assert_redirected_to new_user_session_path - end - - test "new requires login" do - get new_curator_audio_tour_path - assert_redirected_to new_user_session_path - end - - test "create requires login" do - post curator_audio_tours_path, params: { - audio_tour: { location_id: @location.id, locale: "de", script: "Test" } - } - assert_redirected_to new_user_session_path - end - - test "edit requires login" do - get edit_curator_audio_tour_path(@audio_tour) - assert_redirected_to new_user_session_path - end - - test "update requires login" do - patch curator_audio_tour_path(@audio_tour), params: { - audio_tour: { script: "Updated script" } - } - assert_redirected_to new_user_session_path - end - - test "destroy requires login" do - delete curator_audio_tour_path(@audio_tour) - assert_redirected_to new_user_session_path - end - - # ========================================================================== - # Authorization Tests - Basic User Cannot Access - # ========================================================================== - - test "index requires curator role" do - login_as(@basic_user) - get curator_audio_tours_path - assert_redirected_to root_path - end - - test "show requires curator role" do - login_as(@basic_user) - get curator_audio_tour_path(@audio_tour) - assert_redirected_to root_path - end - - test "new requires curator role" do - login_as(@basic_user) - get new_curator_audio_tour_path - assert_redirected_to root_path - end - - test "create requires curator role" do - login_as(@basic_user) - post curator_audio_tours_path, params: { - audio_tour: { location_id: @location.id, locale: "de", script: "Test" } - } - assert_redirected_to root_path - end - - test "edit requires curator role" do - login_as(@basic_user) - get edit_curator_audio_tour_path(@audio_tour) - assert_redirected_to root_path - end - - test "update requires curator role" do - login_as(@basic_user) - patch curator_audio_tour_path(@audio_tour), params: { - audio_tour: { script: "Updated script" } - } - assert_redirected_to root_path - end - - test "destroy requires curator role" do - login_as(@basic_user) - delete curator_audio_tour_path(@audio_tour) - assert_redirected_to root_path - end - - # ========================================================================== - # Spam Block Tests - # ========================================================================== - - test "spam blocked curator cannot access index" do - @curator.update!( - spam_blocked_at: Time.current, - spam_blocked_until: 1.hour.from_now, - spam_block_reason: "Testing spam block" - ) - - login_as(@curator) - get curator_audio_tours_path - assert_redirected_to root_path - # Flash message mentions being blocked due to high activity - assert_match(/blocked/i, flash[:alert]) - end - - test "spam blocked curator cannot create proposals" do - @curator.update!( - spam_blocked_at: Time.current, - spam_blocked_until: 1.hour.from_now, - spam_block_reason: "Testing spam block" - ) - - login_as(@curator) - post curator_audio_tours_path, params: { - audio_tour: { location_id: @location.id, locale: "de", script: "Test" } - } - assert_redirected_to root_path - end - - # ========================================================================== - # Index Action Tests - # ========================================================================== - - test "curator can access index" do - login_as(@curator) - get curator_audio_tours_path - assert_response :success - end - - test "admin can access index" do - login_as(@admin) - get curator_audio_tours_path - assert_response :success - end - - test "index shows audio tours list" do - login_as(@curator) - get curator_audio_tours_path - assert_response :success - # Check page contains audio tour info - assert_match @location.name, response.body - end - - test "index filters by locale" do - login_as(@curator) - get curator_audio_tours_path, params: { locale: "bs" } - assert_response :success - end - - test "index filters by location_id" do - login_as(@curator) - get curator_audio_tours_path, params: { location_id: @location.id } - assert_response :success - end - - test "index filters by search term" do - login_as(@curator) - get curator_audio_tours_path, params: { search: "Sarajevo" } - assert_response :success - end - - test "index paginates results" do - login_as(@curator) - get curator_audio_tours_path, params: { page: 1 } - assert_response :success - end - - # ========================================================================== - # Show Action Tests - # ========================================================================== - - test "curator can view audio tour" do - login_as(@curator) - get curator_audio_tour_path(@audio_tour) - assert_response :success - end - - test "admin can view audio tour" do - login_as(@admin) - get curator_audio_tour_path(@audio_tour) - assert_response :success - end - - test "show displays audio tour details" do - login_as(@curator) - get curator_audio_tour_path(@audio_tour) - assert_response :success - assert_match @audio_tour.script, response.body - end - - test "show returns 404 for non-existent audio tour" do - login_as(@curator) - get curator_audio_tour_path(id: 999999) - # BaseController has rescue_from RecordNotFound that redirects to index - assert_redirected_to curator_audio_tours_path - assert_equal "Audio tours not found.", flash[:alert] - end - - # ========================================================================== - # New Action Tests - # ========================================================================== - - test "curator can access new form" do - login_as(@curator) - get new_curator_audio_tour_path - assert_response :success - end - - test "admin can access new form" do - login_as(@admin) - get new_curator_audio_tour_path - assert_response :success - end - - test "new form displays form elements" do - login_as(@curator) - get new_curator_audio_tour_path - assert_response :success - # Check form elements are present - assert_select "form" - end - - test "new form preselects location when location_id param provided" do - login_as(@curator) - get new_curator_audio_tour_path, params: { location_id: @other_location.id } - assert_response :success - # Check that the page loads successfully with the param - assert_select "form" - end - - # ========================================================================== - # Create Action Tests - # ========================================================================== - - test "create creates a proposal instead of direct audio tour" do - login_as(@curator) - - initial_audio_tour_count = AudioTour.count - initial_content_change_count = ContentChange.count - - post curator_audio_tours_path, params: { - audio_tour: { - location_id: @other_location.id, - locale: "de", - script: "Dies ist ein deutscher Audio-Tour.", - word_count: 8, - duration: "1 min" - } - } - - assert_redirected_to curator_audio_tours_path - - # AudioTour count should not change (not created directly) - assert_equal initial_audio_tour_count, AudioTour.count - # ContentChange count should increase by 1 - assert_equal initial_content_change_count + 1, ContentChange.count - - proposal = ContentChange.order(created_at: :desc).first - assert_equal "create_content", proposal.change_type - assert_equal "AudioTour", proposal.changeable_class - assert_equal @curator, proposal.user - assert_equal @other_location.id.to_s, proposal.proposed_data["location_id"].to_s - assert_equal "de", proposal.proposed_data["locale"] - end - - test "create records curator activity" do - login_as(@curator) - - initial_activity_count = CuratorActivity.where(user: @curator).count - - post curator_audio_tours_path, params: { - audio_tour: { - location_id: @location.id, - locale: "fr", - script: "Tour audio en francais." - } - } - - assert_equal initial_activity_count + 1, CuratorActivity.where(user: @curator).count - - activity = CuratorActivity.where(user: @curator).order(created_at: :desc).first - assert_equal "proposal_created", activity.action - assert_equal @curator, activity.user - assert_equal "AudioTour", activity.metadata["type"] - end - - test "create with valid params redirects to index" do - login_as(@curator) - - post curator_audio_tours_path, params: { - audio_tour: { - location_id: @location.id, - locale: "it", - script: "Tour audio in italiano." - } - } - - assert_redirected_to curator_audio_tours_path - end - - # ========================================================================== - # Edit Action Tests - # ========================================================================== - - test "curator can access edit form" do - login_as(@curator) - get edit_curator_audio_tour_path(@audio_tour) - assert_response :success - end - - test "admin can access edit form" do - login_as(@admin) - get edit_curator_audio_tour_path(@audio_tour) - assert_response :success - end - - test "edit form shows current audio tour data" do - login_as(@curator) - get edit_curator_audio_tour_path(@audio_tour) - assert_response :success - # Check form contains audio tour data - assert_match @audio_tour.script, response.body - end - - # ========================================================================== - # Update Action Tests - # ========================================================================== - - test "update creates a proposal instead of direct update" do - login_as(@curator) - - original_script = @audio_tour.script - initial_content_change_count = ContentChange.count - - patch curator_audio_tour_path(@audio_tour), params: { - audio_tour: { - location_id: @audio_tour.location_id, - locale: @audio_tour.locale, - script: "Updated script for testing.", - word_count: 5, - duration: "1 min" - } - } - - # Original audio tour should not be modified - @audio_tour.reload - assert_equal original_script, @audio_tour.script - - assert_redirected_to curator_audio_tour_path(@audio_tour) - - # ContentChange count should increase by 1 - assert_equal initial_content_change_count + 1, ContentChange.count - - proposal = ContentChange.order(created_at: :desc).first - assert_equal "update_content", proposal.change_type - assert_equal @audio_tour, proposal.changeable - assert_equal @curator, proposal.user - assert_equal "Updated script for testing.", proposal.proposed_data["script"] - end - - test "update records curator activity" do - login_as(@curator) - - initial_activity_count = CuratorActivity.where(user: @curator).count - - patch curator_audio_tour_path(@audio_tour), params: { - audio_tour: { - script: "New script content." - } - } - - assert_equal initial_activity_count + 1, CuratorActivity.where(user: @curator).count - - activity = CuratorActivity.where(user: @curator).order(created_at: :desc).first - assert_includes %w[proposal_updated proposal_contributed], activity.action - assert_equal @curator, activity.user - assert_equal "AudioTour", activity.metadata["type"] - end - - test "update to existing pending proposal adds contribution" do - # First curator creates a proposal - proposal = ContentChange.find_or_create_for_update( - changeable: @audio_tour, - user: @other_curator, - original_data: @audio_tour.attributes.slice("location_id", "locale", "script", "word_count", "duration"), - proposed_data: { "script" => "Other curator's script" } - ) - - login_as(@curator) - - initial_content_change_count = ContentChange.count - - # Second curator updates the same audio tour - patch curator_audio_tour_path(@audio_tour), params: { - audio_tour: { - script: "My contribution to the proposal." - } - } - - assert_redirected_to curator_audio_tour_path(@audio_tour) - - # No new ContentChange should be created - assert_equal initial_content_change_count, ContentChange.count - - # Contribution should be added - proposal.reload - assert proposal.contributions.exists?(user: @curator) - end - - test "update redirects to show page" do - login_as(@curator) - - patch curator_audio_tour_path(@audio_tour), params: { - audio_tour: { - script: "Another updated script." - } - } - - assert_redirected_to curator_audio_tour_path(@audio_tour) - end - - # ========================================================================== - # Destroy Action Tests - # ========================================================================== - - test "destroy creates a delete proposal instead of deleting directly" do - login_as(@curator) - - initial_audio_tour_count = AudioTour.count - initial_content_change_count = ContentChange.count - - delete curator_audio_tour_path(@audio_tour) - - assert_redirected_to curator_audio_tours_path - - # AudioTour count should not change (not deleted directly) - assert_equal initial_audio_tour_count, AudioTour.count - # ContentChange count should increase by 1 - assert_equal initial_content_change_count + 1, ContentChange.count - - proposal = ContentChange.order(created_at: :desc).first - assert_equal "delete_content", proposal.change_type - assert_equal @audio_tour, proposal.changeable - assert_equal @curator, proposal.user - end - - test "destroy records curator activity" do - login_as(@curator) - - initial_activity_count = CuratorActivity.where(user: @curator).count - - delete curator_audio_tour_path(@audio_tour) - - assert_equal initial_activity_count + 1, CuratorActivity.where(user: @curator).count - - activity = CuratorActivity.where(user: @curator).order(created_at: :desc).first - assert_equal "proposal_deleted", activity.action - assert_equal @curator, activity.user - assert_equal "AudioTour", activity.metadata["type"] - end - - test "destroy redirects to index page" do - login_as(@curator) - - delete curator_audio_tour_path(@audio_tour) - assert_redirected_to curator_audio_tours_path - end - - test "destroy to existing pending update proposal converts to delete" do - # First curator creates an update proposal - proposal = ContentChange.find_or_create_for_update( - changeable: @audio_tour, - user: @other_curator, - original_data: @audio_tour.attributes.slice("location_id", "locale", "script", "word_count", "duration"), - proposed_data: { "script" => "Updated by other curator" } - ) - - login_as(@curator) - - initial_content_change_count = ContentChange.count - - # Request deletion - delete curator_audio_tour_path(@audio_tour) - - # No new ContentChange should be created - assert_equal initial_content_change_count, ContentChange.count - - proposal.reload - assert_equal "delete_content", proposal.change_type - end - - # ========================================================================== - # Edge Cases and Additional Tests - # ========================================================================== - - test "curator can work with audio tour without script" do - audio_tour_no_script = AudioTour.create!( - location: @other_location, - locale: "hr" - ) - - login_as(@curator) - get curator_audio_tour_path(audio_tour_no_script) - assert_response :success - end - - test "multiple curators can create proposals for different audio tours" do - # First curator creates proposal for one audio tour - login_as(@curator) - post curator_audio_tours_path, params: { - audio_tour: { - location_id: @location.id, - locale: "nl", - script: "Dutch tour" - } - } - logout - - # Second curator creates proposal for another audio tour - login_as(@other_curator) - post curator_audio_tours_path, params: { - audio_tour: { - location_id: @other_location.id, - locale: "pl", - script: "Polish tour" - } - } - - # Both proposals should exist - assert ContentChange.where(changeable_class: "AudioTour", user: @curator).exists? - assert ContentChange.where(changeable_class: "AudioTour", user: @other_curator).exists? - end - - test "admin can perform all actions" do - login_as(@admin) - - # Index - get curator_audio_tours_path - assert_response :success - - # Show - get curator_audio_tour_path(@audio_tour) - assert_response :success - - # New - get new_curator_audio_tour_path - assert_response :success - - # Create proposal - post curator_audio_tours_path, params: { - audio_tour: { - location_id: @location.id, - locale: "es", - script: "Spanish tour" - } - } - assert_redirected_to curator_audio_tours_path - - # Edit - get edit_curator_audio_tour_path(@audio_tour) - assert_response :success - - # Update proposal - patch curator_audio_tour_path(@audio_tour), params: { - audio_tour: { script: "Admin updated script" } - } - assert_redirected_to curator_audio_tour_path(@audio_tour) - end - - test "strong parameters only allow permitted attributes" do - login_as(@curator) - - # Try to include unpermitted attributes - post curator_audio_tours_path, params: { - audio_tour: { - location_id: @location.id, - locale: "de", - script: "Test", - id: 999, - created_at: 1.year.ago, - updated_at: 1.year.ago, - malicious_field: "hacked" - } - } - - proposal = ContentChange.order(created_at: :desc).first - # Only permitted fields should be in proposed_data - permitted_keys = %w[location_id locale script word_count duration] - proposal.proposed_data.keys.each do |key| - assert_includes permitted_keys, key - end - assert_nil proposal.proposed_data["id"] - assert_nil proposal.proposed_data["created_at"] - assert_nil proposal.proposed_data["malicious_field"] - end - - private - - def login_as(user) - post user_session_path, params: { user: { email: user.email, password: "password123" } } - end - - def logout - delete destroy_user_session_path - end -end diff --git a/test/controllers/curator/experiences_controller_test.rb b/test/controllers/curator/experiences_controller_test.rb deleted file mode 100644 index 54e6444b..00000000 --- a/test/controllers/curator/experiences_controller_test.rb +++ /dev/null @@ -1,643 +0,0 @@ -# frozen_string_literal: true - -require "test_helper" - -class Curator::ExperiencesControllerTest < ActionDispatch::IntegrationTest - setup do - @curator = User.create!( - username: "test_curator_#{SecureRandom.hex(4)}", - email: "test_curator_#{SecureRandom.hex(4)}@example.com", - password: "password123", - user_type: :curator - ) - @other_curator = User.create!( - username: "other_curator_#{SecureRandom.hex(4)}", - email: "other_curator_#{SecureRandom.hex(4)}@example.com", - password: "password123", - user_type: :curator - ) - @basic_user = User.create!( - username: "basic_user_#{SecureRandom.hex(4)}", - email: "basic_user_#{SecureRandom.hex(4)}@example.com", - password: "password123", - user_type: :basic - ) - @admin = User.create!( - username: "admin_user_#{SecureRandom.hex(4)}", - email: "admin_user_#{SecureRandom.hex(4)}@example.com", - password: "password123", - user_type: :admin - ) - - @experience_category = ExperienceCategory.create!( - key: "test_category_#{SecureRandom.hex(4)}", - name: "Test Category" - ) - - @location = Location.create!( - name: "Test Location", - city: "Sarajevo", - lat: 43.8563, - lng: 18.4131, - location_type: :place - ) - - @experience = Experience.create!( - title: "Test Experience", - description: "A test experience description", - experience_category: @experience_category, - estimated_duration: 120, - contact_name: "John Doe", - contact_email: "john@example.com" - ) - @experience.locations << @location - end - - teardown do - ContentChange.destroy_all - CuratorActivity.destroy_all - @experience&.experience_locations&.destroy_all - @experience&.destroy - @location&.destroy - @experience_category&.destroy - @curator&.destroy - @other_curator&.destroy - @basic_user&.destroy - @admin&.destroy - end - - # ============================================ - # Authentication Tests - # ============================================ - - test "index requires login" do - get curator_experiences_path - assert_redirected_to new_user_session_path - end - - test "index requires curator role" do - login_as(@basic_user) - get curator_experiences_path - assert_redirected_to root_path - end - - test "show requires login" do - get curator_experience_path(@experience) - assert_redirected_to new_user_session_path - end - - test "show requires curator role" do - login_as(@basic_user) - get curator_experience_path(@experience) - assert_redirected_to root_path - end - - test "new requires login" do - get new_curator_experience_path - assert_redirected_to new_user_session_path - end - - test "new requires curator role" do - login_as(@basic_user) - get new_curator_experience_path - assert_redirected_to root_path - end - - test "create requires login" do - post curator_experiences_path, params: { experience: valid_experience_params } - assert_redirected_to new_user_session_path - end - - test "create requires curator role" do - login_as(@basic_user) - post curator_experiences_path, params: { experience: valid_experience_params } - assert_redirected_to root_path - end - - test "edit requires login" do - get edit_curator_experience_path(@experience) - assert_redirected_to new_user_session_path - end - - test "edit requires curator role" do - login_as(@basic_user) - get edit_curator_experience_path(@experience) - assert_redirected_to root_path - end - - test "update requires login" do - patch curator_experience_path(@experience), params: { experience: { title: "Updated" } } - assert_redirected_to new_user_session_path - end - - test "update requires curator role" do - login_as(@basic_user) - patch curator_experience_path(@experience), params: { experience: { title: "Updated" } } - assert_redirected_to root_path - end - - test "destroy requires login" do - delete curator_experience_path(@experience) - assert_redirected_to new_user_session_path - end - - test "destroy requires curator role" do - login_as(@basic_user) - delete curator_experience_path(@experience) - assert_redirected_to root_path - end - - # ============================================ - # Admin Access Tests - # ============================================ - - test "admin can access curator experiences" do - login_as(@admin) - get curator_experiences_path - assert_response :success - end - - # ============================================ - # Index Action Tests - # ============================================ - - test "index shows experiences list" do - login_as(@curator) - get curator_experiences_path - assert_response :success - assert_match @experience.title, response.body - end - - test "index filters by city_name" do - login_as(@curator) - get curator_experiences_path, params: { city_name: "Sarajevo" } - assert_response :success - assert_match @experience.title, response.body - end - - test "index filters by city_name excludes non-matching" do - login_as(@curator) - get curator_experiences_path, params: { city_name: "Mostar" } - assert_response :success - assert_no_match @experience.title, response.body - end - - test "index filters by category_id" do - login_as(@curator) - get curator_experiences_path, params: { category_id: @experience_category.uuid } - assert_response :success - assert_match @experience.title, response.body - end - - test "index filters by search term" do - login_as(@curator) - get curator_experiences_path, params: { search: "Test" } - assert_response :success - assert_match @experience.title, response.body - end - - test "index search excludes non-matching" do - login_as(@curator) - get curator_experiences_path, params: { search: "NonExistent" } - assert_response :success - assert_no_match @experience.title, response.body - end - - test "index shows pending proposals for curator" do - # Create a pending proposal for this curator - proposal = @curator.content_changes.create!( - change_type: :create_content, - changeable_class: "Experience", - proposed_data: { "title" => "New Experience" } - ) - - login_as(@curator) - get curator_experiences_path - assert_response :success - - proposal.destroy - end - - # ============================================ - # Show Action Tests - # ============================================ - - test "show displays experience details" do - login_as(@curator) - get curator_experience_path(@experience) - assert_response :success - assert_match @experience.title, response.body - assert_match @experience.description, response.body - end - - test "show finds experience by uuid" do - login_as(@curator) - get curator_experience_path(@experience.uuid) - assert_response :success - assert_match @experience.title, response.body - end - - test "show returns 404 for non-existent experience" do - login_as(@curator) - get curator_experience_path("00000000-0000-0000-0000-000000000000") - # BaseController has rescue_from RecordNotFound that redirects to index - assert_redirected_to curator_experiences_path - assert_equal "Experiences not found.", flash[:alert] - end - - test "show displays pending proposal if exists" do - # Create a pending proposal for this experience - proposal = ContentChange.create!( - user: @other_curator, - change_type: :update_content, - changeable: @experience, - original_data: { "title" => @experience.title }, - proposed_data: { "title" => "Updated Title" } - ) - - login_as(@curator) - get curator_experience_path(@experience) - assert_response :success - - proposal.destroy - end - - # ============================================ - # New Action Tests - # ============================================ - - test "new shows create form" do - login_as(@curator) - get new_curator_experience_path - assert_response :success - end - - test "new loads form options" do - login_as(@curator) - get new_curator_experience_path - assert_response :success - # Form should render categories and locations dropdowns - assert_select "select[name='experience[experience_category_id]']" - assert_select "select#location-search" - end - - # ============================================ - # Create Action Tests - # ============================================ - - test "create with valid params creates proposal not experience" do - login_as(@curator) - - assert_no_difference "Experience.count" do - assert_difference "ContentChange.count", 1 do - post curator_experiences_path, params: { experience: valid_experience_params } - end - end - - assert_redirected_to curator_experiences_path - - proposal = ContentChange.last - assert_equal "create_content", proposal.change_type - assert_equal "Experience", proposal.changeable_class - assert_equal @curator, proposal.user - assert_equal "pending", proposal.status - assert_equal valid_experience_params[:title], proposal.proposed_data["title"] - - proposal.destroy - end - - test "create records curator activity" do - login_as(@curator) - - assert_difference "CuratorActivity.count", 1 do - post curator_experiences_path, params: { experience: valid_experience_params } - end - - activity = CuratorActivity.last - assert_equal "proposal_created", activity.action - assert_equal @curator, activity.user - assert_equal "Experience", activity.metadata["type"] - - activity.destroy - ContentChange.last&.destroy - end - - test "create includes location_uuids in proposal data" do - login_as(@curator) - - params = valid_experience_params.merge(location_uuids: [ @location.uuid ]) - post curator_experiences_path, params: { experience: params } - - proposal = ContentChange.last - assert_includes proposal.proposed_data["location_uuids"], @location.uuid - - proposal.destroy - end - - test "create with empty title still creates proposal" do - # Note: Experience validation happens when proposal is approved, not at submission - # The proposal system accepts any data, admin validates on approval - login_as(@curator) - - assert_difference "ContentChange.count", 1 do - post curator_experiences_path, params: { experience: { title: "" } } - end - - assert_redirected_to curator_experiences_path - ContentChange.last&.destroy - end - - test "create without experience params returns bad request" do - login_as(@curator) - - # This should fail as there's no experience parameter at all - post curator_experiences_path, params: {} - assert_response :bad_request - end - - # ============================================ - # Edit Action Tests - # ============================================ - - test "edit shows edit form" do - login_as(@curator) - get edit_curator_experience_path(@experience) - assert_response :success - assert_match @experience.title, response.body - end - - test "edit loads form options" do - login_as(@curator) - get edit_curator_experience_path(@experience) - assert_response :success - # Form should render categories and locations dropdowns - assert_select "select[name='experience[experience_category_id]']" - assert_select "select#location-search" - end - - test "edit shows pending proposal warning if exists" do - # Create a pending proposal for this experience - proposal = ContentChange.create!( - user: @other_curator, - change_type: :update_content, - changeable: @experience, - original_data: { "title" => @experience.title }, - proposed_data: { "title" => "Updated Title" } - ) - - login_as(@curator) - get edit_curator_experience_path(@experience) - assert_response :success - # The page should show some indication of pending proposal - # (checking for presence in response body or specific element) - - proposal.destroy - end - - # ============================================ - # Update Action Tests - # ============================================ - - test "update creates proposal not direct update" do - login_as(@curator) - - original_title = @experience.title - - assert_difference "ContentChange.count", 1 do - patch curator_experience_path(@experience), params: { - experience: { title: "Updated Experience Title" } - } - end - - assert_redirected_to curator_experience_path(@experience) - - # Experience should not be updated directly - @experience.reload - assert_equal original_title, @experience.title - - proposal = ContentChange.last - assert_equal "update_content", proposal.change_type - assert_equal @experience, proposal.changeable - assert_equal "Updated Experience Title", proposal.proposed_data["title"] - - proposal.destroy - end - - test "update records curator activity" do - login_as(@curator) - - assert_difference "CuratorActivity.count", 1 do - patch curator_experience_path(@experience), params: { - experience: { title: "Updated Experience Title" } - } - end - - activity = CuratorActivity.last - assert_includes [ "proposal_updated", "proposal_contributed" ], activity.action - assert_equal @curator, activity.user - - activity.destroy - ContentChange.last&.destroy - end - - test "update adds contribution to existing proposal" do - # Create an existing pending proposal by another curator - existing_proposal = ContentChange.create!( - user: @other_curator, - change_type: :update_content, - changeable: @experience, - original_data: { "title" => @experience.title }, - proposed_data: { "title" => "First Update" } - ) - - login_as(@curator) - - # Should not create a new proposal, but add contribution - assert_no_difference "ContentChange.count" do - patch curator_experience_path(@experience), params: { - experience: { title: "Second Update", description: "New description" } - } - end - - assert_redirected_to curator_experience_path(@experience) - - existing_proposal.reload - # Contributions should be added - assert existing_proposal.contributions.exists?(user: @curator) - - existing_proposal.destroy - end - - test "update with invalid data renders edit with errors" do - login_as(@curator) - - # Mock the find_or_create_for_update to return unpersisted record - ContentChange.stub(:find_or_create_for_update, ContentChange.new) do - patch curator_experience_path(@experience), params: { - experience: { title: "Updated Title" } - } - end - - assert_response :unprocessable_entity - end - - # ============================================ - # Destroy Action Tests - # ============================================ - - test "destroy creates delete proposal not direct delete" do - login_as(@curator) - - assert_no_difference "Experience.count" do - assert_difference "ContentChange.count", 1 do - delete curator_experience_path(@experience) - end - end - - assert_redirected_to curator_experiences_path - - proposal = ContentChange.last - assert_equal "delete_content", proposal.change_type - assert_equal @experience, proposal.changeable - - proposal.destroy - end - - test "destroy records curator activity" do - login_as(@curator) - - assert_difference "CuratorActivity.count", 1 do - delete curator_experience_path(@experience) - end - - activity = CuratorActivity.last - assert_equal "proposal_deleted", activity.action - assert_equal @curator, activity.user - assert_equal @experience.title, activity.metadata["title"] - - activity.destroy - ContentChange.last&.destroy - end - - test "destroy adds contribution to existing proposal" do - # Create an existing pending update proposal - existing_proposal = ContentChange.create!( - user: @other_curator, - change_type: :update_content, - changeable: @experience, - original_data: { "title" => @experience.title }, - proposed_data: { "title" => "Updated Title" } - ) - - login_as(@curator) - - # Should not create a new proposal - assert_no_difference "ContentChange.count" do - delete curator_experience_path(@experience) - end - - assert_redirected_to curator_experiences_path - - existing_proposal.reload - # Should be converted to delete - assert_equal "delete_content", existing_proposal.change_type - - existing_proposal.destroy - end - - # ============================================ - # Spam Protection Tests - # ============================================ - - test "spam blocked curator cannot access index" do - @curator.update!( - spam_blocked_at: Time.current, - spam_blocked_until: 1.hour.from_now, - spam_block_reason: "Testing" - ) - - login_as(@curator) - get curator_experiences_path - assert_redirected_to root_path - end - - test "spam blocked curator cannot create" do - @curator.update!( - spam_blocked_at: Time.current, - spam_blocked_until: 1.hour.from_now, - spam_block_reason: "Testing" - ) - - login_as(@curator) - post curator_experiences_path, params: { experience: valid_experience_params } - assert_redirected_to root_path - - assert_no_difference "ContentChange.count" do - # Re-attempt after redirect - end - end - - # ============================================ - # Edge Cases - # ============================================ - - test "create filters blank location_uuids" do - login_as(@curator) - - params = valid_experience_params.merge(location_uuids: [ "", @location.uuid, "" ]) - post curator_experiences_path, params: { experience: params } - - proposal = ContentChange.last - assert_equal [ @location.uuid ], proposal.proposed_data["location_uuids"] - - proposal.destroy - end - - test "create handles seasons array" do - login_as(@curator) - - params = valid_experience_params.merge(seasons: [ "spring", "summer" ]) - post curator_experiences_path, params: { experience: params } - - proposal = ContentChange.last - assert_equal [ "spring", "summer" ], proposal.proposed_data["seasons"] - - proposal.destroy - end - - test "index with pagination" do - login_as(@curator) - get curator_experiences_path, params: { page: 1 } - assert_response :success - end - - test "index combined filters" do - login_as(@curator) - get curator_experiences_path, params: { - city_name: "Sarajevo", - category_id: @experience_category.uuid, - search: "Test" - } - assert_response :success - assert_match @experience.title, response.body - end - - private - - def login_as(user) - post user_session_path, params: { user: { email: user.email, password: "password123" } } - end - - def valid_experience_params - { - title: "New Test Experience", - description: "A description for the new experience", - experience_category_id: @experience_category.id, - estimated_duration: 90, - contact_name: "Jane Doe", - contact_email: "jane@example.com", - contact_phone: "+387 61 123 456", - contact_website: "https://example.com" - } - end -end diff --git a/test/controllers/curator/locations_controller_test.rb b/test/controllers/curator/locations_controller_test.rb deleted file mode 100644 index fd9c1bb5..00000000 --- a/test/controllers/curator/locations_controller_test.rb +++ /dev/null @@ -1,876 +0,0 @@ -# frozen_string_literal: true - -require "test_helper" - -class Curator::LocationsControllerTest < ActionDispatch::IntegrationTest - setup do - @curator = User.create!( - username: "test_curator_#{SecureRandom.hex(4)}", - email: "test_curator_#{SecureRandom.hex(4)}@example.com", - password: "password123", - user_type: :curator - ) - @other_curator = User.create!( - username: "other_curator_#{SecureRandom.hex(4)}", - email: "other_curator_#{SecureRandom.hex(4)}@example.com", - password: "password123", - user_type: :curator - ) - @basic_user = User.create!( - username: "basic_user_#{SecureRandom.hex(4)}", - email: "basic_user_#{SecureRandom.hex(4)}@example.com", - password: "password123", - user_type: :basic - ) - @admin = User.create!( - username: "admin_user_#{SecureRandom.hex(4)}", - email: "admin_user_#{SecureRandom.hex(4)}@example.com", - password: "password123", - user_type: :admin - ) - - @location = Location.create!( - name: "Test Location", - description: "A test location for testing", - city: "Sarajevo", - lat: 43.8563, - lng: 18.4131, - location_type: :place - ) - - @other_location = Location.create!( - name: "Other Location", - city: "Mostar", - lat: 43.3438, - lng: 17.8078, - location_type: :place - ) - - # Create a location category for form tests - @category = LocationCategory.find_or_create_by!(key: "attraction") do |c| - c.name = "Attraction" - c.active = true - c.position = 1 - end - - # Create an experience type for form tests - @experience_type = ExperienceType.find_or_create_by!(key: "culture") do |et| - et.name = "Culture" - et.active = true - et.position = 1 - end - end - - teardown do - # Clean up content changes first (due to foreign keys) - ContentChange.where(user: [ @curator, @other_curator, @admin ]).destroy_all - ContentChange.where(changeable: [ @location, @other_location ]).destroy_all - CuratorActivity.where(user: [ @curator, @other_curator, @admin ]).destroy_all - - # Clean up locations - @location&.destroy - @other_location&.destroy - - # Clean up users - @curator&.destroy - @other_curator&.destroy - @basic_user&.destroy - @admin&.destroy - end - - # ========================================================================== - # Authentication Tests - # ========================================================================== - - test "index requires login" do - get curator_locations_path - assert_redirected_to new_user_session_path - end - - test "show requires login" do - get curator_location_path(@location) - assert_redirected_to new_user_session_path - end - - test "new requires login" do - get new_curator_location_path - assert_redirected_to new_user_session_path - end - - test "create requires login" do - post curator_locations_path, params: { location: { name: "New Location" } } - assert_redirected_to new_user_session_path - end - - test "edit requires login" do - get edit_curator_location_path(@location) - assert_redirected_to new_user_session_path - end - - test "update requires login" do - patch curator_location_path(@location), params: { location: { name: "Updated Name" } } - assert_redirected_to new_user_session_path - end - - test "destroy requires login" do - delete curator_location_path(@location) - assert_redirected_to new_user_session_path - end - - # ========================================================================== - # Authorization Tests (curator role required) - # ========================================================================== - - test "index requires curator role" do - login_as(@basic_user) - get curator_locations_path - assert_redirected_to root_path - end - - test "show requires curator role" do - login_as(@basic_user) - get curator_location_path(@location) - assert_redirected_to root_path - end - - test "new requires curator role" do - login_as(@basic_user) - get new_curator_location_path - assert_redirected_to root_path - end - - test "create requires curator role" do - login_as(@basic_user) - post curator_locations_path, params: { location: { name: "New Location" } } - assert_redirected_to root_path - end - - test "edit requires curator role" do - login_as(@basic_user) - get edit_curator_location_path(@location) - assert_redirected_to root_path - end - - test "update requires curator role" do - login_as(@basic_user) - patch curator_location_path(@location), params: { location: { name: "Updated Name" } } - assert_redirected_to root_path - end - - test "destroy requires curator role" do - login_as(@basic_user) - delete curator_location_path(@location) - assert_redirected_to root_path - end - - # ========================================================================== - # Spam Block Tests - # ========================================================================== - - test "spam blocked curator cannot access index" do - @curator.update!( - spam_blocked_at: Time.current, - spam_blocked_until: 24.hours.from_now, - spam_block_reason: "Too many actions" - ) - login_as(@curator) - get curator_locations_path - assert_redirected_to root_path - end - - # ========================================================================== - # Index Action Tests - # ========================================================================== - - test "index shows locations for curator" do - login_as(@curator) - get curator_locations_path - assert_response :success - assert_match @location.name, response.body - end - - test "index shows locations for admin" do - login_as(@admin) - get curator_locations_path - assert_response :success - end - - test "index filters by city" do - login_as(@curator) - get curator_locations_path, params: { city_name: "Sarajevo" } - assert_response :success - assert_match @location.name, response.body - assert_no_match @other_location.name, response.body - end - - test "index filters by search term" do - login_as(@curator) - get curator_locations_path, params: { search: "Test" } - assert_response :success - assert_match @location.name, response.body - assert_no_match @other_location.name, response.body - end - - test "index filters by category" do - @location.add_category(@category) - login_as(@curator) - get curator_locations_path, params: { category: "attraction" } - assert_response :success - assert_match @location.name, response.body - @location.remove_category(@category) - end - - test "index shows pending proposals for current curator" do - # Create a pending proposal for the curator - proposal = @curator.content_changes.create!( - change_type: :create_content, - changeable_class: "Location", - proposed_data: { "name" => "New Proposed Location" } - ) - - login_as(@curator) - get curator_locations_path - assert_response :success - - proposal.destroy - end - - # ========================================================================== - # Show Action Tests - # ========================================================================== - - test "show displays location for curator" do - login_as(@curator) - get curator_location_path(@location) - assert_response :success - assert_match @location.name, response.body - end - - test "show works with UUID" do - login_as(@curator) - get curator_location_path(@location.uuid) - assert_response :success - end - - test "show displays pending proposal if exists" do - # Create a pending proposal for this location - proposal = ContentChange.create!( - user: @curator, - change_type: :update_content, - changeable: @location, - original_data: { "name" => @location.name }, - proposed_data: { "name" => "Updated Name" } - ) - - login_as(@curator) - get curator_location_path(@location) - assert_response :success - - proposal.destroy - end - - test "show returns 404 for non-existent location" do - login_as(@curator) - get curator_location_path("00000000-0000-0000-0000-000000000000") - # BaseController has rescue_from RecordNotFound that redirects to index - assert_redirected_to curator_locations_path - assert_equal "Locations not found.", flash[:alert] - end - - # ========================================================================== - # New Action Tests - # ========================================================================== - - test "new shows form for curator" do - login_as(@curator) - get new_curator_location_path - assert_response :success - assert_select "form" - end - - test "new loads form options" do - login_as(@curator) - get new_curator_location_path - assert_response :success - # Form should have access to city names and categories - end - - # ========================================================================== - # Create Action Tests - # ========================================================================== - - test "create with valid data creates proposal not location" do - login_as(@curator) - - assert_difference "ContentChange.count", 1 do - assert_no_difference "Location.count" do - post curator_locations_path, params: { - location: { - name: "New Proposed Location", - description: "A great new place", - city: "Tuzla", - lat: 44.5384, - lng: 18.6763, - location_type: "place" - } - } - end - end - - assert_redirected_to curator_locations_path - follow_redirect! - assert_response :success - - # Verify the proposal was created - proposal = ContentChange.last - assert_equal "create_content", proposal.change_type - assert_equal "Location", proposal.changeable_class - assert_equal "New Proposed Location", proposal.proposed_data["name"] - assert_equal @curator, proposal.user - - proposal.destroy - end - - test "create records curator activity" do - login_as(@curator) - - assert_difference "CuratorActivity.count", 1 do - post curator_locations_path, params: { - location: { - name: "Activity Test Location", - city: "Sarajevo", - lat: 43.8563, - lng: 18.4131 - } - } - end - - activity = CuratorActivity.last - assert_equal "proposal_created", activity.action - assert_equal @curator, activity.user - - ContentChange.last.destroy - end - - test "create with category IDs includes them in proposal" do - login_as(@curator) - - post curator_locations_path, params: { - location: { - name: "Location With Category", - city: "Sarajevo", - lat: 43.85, - lng: 18.41, - location_category_ids: [ @category.id.to_s, "" ] - } - } - - proposal = ContentChange.last - assert_includes proposal.proposed_data["location_category_ids"], @category.id - - proposal.destroy - end - - test "create with tags processes comma-separated input" do - login_as(@curator) - - post curator_locations_path, params: { - location: { - name: "Location With Tags", - city: "Sarajevo", - lat: 43.85, - lng: 18.41, - tags_input: "historic, museum, culture" - } - } - - proposal = ContentChange.last - assert_equal [ "historic", "museum", "culture" ], proposal.proposed_data["tags"] - - proposal.destroy - end - - test "create with social links cleans empty values" do - login_as(@curator) - - post curator_locations_path, params: { - location: { - name: "Location With Social", - city: "Sarajevo", - lat: 43.85, - lng: 18.41, - social_links: { - facebook: "https://facebook.com/test", - instagram: "", - twitter: "https://twitter.com/test" - } - } - } - - proposal = ContentChange.last - assert_equal({ "facebook" => "https://facebook.com/test", "twitter" => "https://twitter.com/test" }, proposal.proposed_data["social_links"]) - - proposal.destroy - end - - test "create without location params returns bad request" do - login_as(@curator) - - # When location param is completely missing, Rails returns bad request - post curator_locations_path, params: {} - assert_response :bad_request - end - - # ========================================================================== - # Edit Action Tests - # ========================================================================== - - test "edit shows form for curator" do - login_as(@curator) - get edit_curator_location_path(@location) - assert_response :success - assert_select "form" - end - - test "edit shows pending proposal notice if exists" do - proposal = ContentChange.create!( - user: @other_curator, - change_type: :update_content, - changeable: @location, - original_data: { "name" => @location.name }, - proposed_data: { "name" => "Other proposed name" } - ) - - login_as(@curator) - get edit_curator_location_path(@location) - assert_response :success - - proposal.destroy - end - - # ========================================================================== - # Update Action Tests - # ========================================================================== - - test "update with valid data creates proposal not direct update" do - login_as(@curator) - original_name = @location.name - - assert_difference "ContentChange.count", 1 do - patch curator_location_path(@location), params: { - location: { - name: "Updated Location Name", - description: "Updated description" - } - } - end - - assert_redirected_to curator_location_path(@location) - - # Location should NOT be updated directly - @location.reload - assert_equal original_name, @location.name - - # Verify proposal was created - proposal = ContentChange.last - assert_equal "update_content", proposal.change_type - assert_equal @location, proposal.changeable - assert_equal "Updated Location Name", proposal.proposed_data["name"] - - proposal.destroy - end - - test "update with accessibility data stores normalized accessibility in proposal" do - login_as(@curator) - - patch curator_location_path(@location), params: { - location: { - accessibility: { - wheelchair_access: "partial", - ramp: "true", - wheelchair_toilet: "true", - notes: "Ramp at side entrance" - } - } - } - - assert_redirected_to curator_location_path(@location) - - proposal = ContentChange.last - assert_equal({}, proposal.original_data["accessibility"]) - assert_equal "partial", proposal.proposed_data["accessibility"]["wheelchair_access"] - assert_equal true, proposal.proposed_data["accessibility"]["ramp"] - assert_equal true, proposal.proposed_data["accessibility"]["wheelchair_toilet"] - assert_equal "Ramp at side entrance", proposal.proposed_data["accessibility"]["notes"] - - proposal.destroy - end - - test "update with accessibility clears unchecked features to false" do - login_as(@curator) - - # First submit with ramp and elevator checked - patch curator_location_path(@location), params: { - location: { - accessibility: { - wheelchair_access: "full", - ramp: "true", - elevator: "true", - notes: "Both available" - } - } - } - - first_proposal = ContentChange.last - assert_equal true, first_proposal.proposed_data["accessibility"]["ramp"] - assert_equal true, first_proposal.proposed_data["accessibility"]["elevator"] - # Features not submitted should be initialized to false - assert_equal false, first_proposal.proposed_data["accessibility"]["wheelchair_parking"] - assert_equal false, first_proposal.proposed_data["accessibility"]["wheelchair_toilet"] - assert_equal false, first_proposal.proposed_data["accessibility"]["flat_terrain"] - - first_proposal.destroy - end - - test "update with accessibility without any features sets all features to false" do - login_as(@curator) - - patch curator_location_path(@location), params: { - location: { - accessibility: { - wheelchair_access: "partial", - notes: "Limited access" - } - } - } - - proposal = ContentChange.last - assert_equal "partial", proposal.proposed_data["accessibility"]["wheelchair_access"] - # All feature checkboxes not submitted should default to false - Location::ACCESSIBILITY_FEATURES.each do |feature| - assert_equal false, proposal.proposed_data["accessibility"][feature], - "Expected #{feature} to be false when not submitted" - end - - proposal.destroy - end - - test "update records curator activity" do - login_as(@curator) - - assert_difference "CuratorActivity.count", 1 do - patch curator_location_path(@location), params: { - location: { - name: "Activity Update Test" - } - } - end - - activity = CuratorActivity.last - assert_includes [ "proposal_updated", "proposal_contributed" ], activity.action - assert_equal @curator, activity.user - - ContentChange.last.destroy - end - - test "update adds contribution to existing pending proposal" do - # First curator creates a proposal - existing_proposal = ContentChange.create!( - user: @other_curator, - change_type: :update_content, - changeable: @location, - original_data: { "name" => @location.name }, - proposed_data: { "name" => "First curator's name" } - ) - - login_as(@curator) - - # Should not create a new proposal, but add contribution - assert_no_difference "ContentChange.count" do - patch curator_location_path(@location), params: { - location: { - name: "Second curator's name", - description: "Second curator's description" - } - } - end - - assert_redirected_to curator_location_path(@location) - - # Verify contribution was added - existing_proposal.reload - assert existing_proposal.contributions.exists?(user: @curator) - - existing_proposal.destroy - end - - test "update with invalid proposal renders edit form" do - login_as(@curator) - - # Force the find_or_create_for_update to return a non-persisted record - mock_proposal = ContentChange.new - mock_proposal.define_singleton_method(:persisted?) { false } - - ContentChange.stub(:find_or_create_for_update, mock_proposal) do - patch curator_location_path(@location), params: { - location: { - name: "Test" - } - } - assert_response :unprocessable_entity - end - end - - # ========================================================================== - # Destroy Action Tests - # ========================================================================== - - test "destroy creates delete proposal not direct deletion" do - login_as(@curator) - - assert_difference "ContentChange.count", 1 do - assert_no_difference "Location.count" do - delete curator_location_path(@location) - end - end - - assert_redirected_to curator_locations_path - - # Verify delete proposal was created - proposal = ContentChange.last - assert_equal "delete_content", proposal.change_type - assert_equal @location, proposal.changeable - assert_equal @curator, proposal.user - - proposal.destroy - end - - test "destroy records curator activity" do - login_as(@curator) - - assert_difference "CuratorActivity.count", 1 do - delete curator_location_path(@location) - end - - activity = CuratorActivity.last - assert_equal "proposal_deleted", activity.action - assert_equal @curator, activity.user - - ContentChange.last.destroy - end - - test "destroy adds contribution to existing pending proposal" do - # First curator creates an update proposal - existing_proposal = ContentChange.create!( - user: @other_curator, - change_type: :update_content, - changeable: @location, - original_data: { "name" => @location.name }, - proposed_data: { "name" => "Other name" } - ) - - login_as(@curator) - - # Should convert to delete proposal, not create new - assert_no_difference "ContentChange.count" do - delete curator_location_path(@location) - end - - existing_proposal.reload - assert_equal "delete_content", existing_proposal.change_type - assert existing_proposal.contributions.exists?(user: @curator) - - existing_proposal.destroy - end - - test "destroy with failed proposal shows alert" do - login_as(@curator) - - # Force the find_or_create_for_delete to return a non-persisted record - mock_proposal = ContentChange.new - mock_proposal.define_singleton_method(:persisted?) { false } - - ContentChange.stub(:find_or_create_for_delete, mock_proposal) do - delete curator_location_path(@location) - assert_redirected_to curator_locations_path - follow_redirect! - # Should have an alert flash - end - end - - # ========================================================================== - # Admin Access Tests - # ========================================================================== - - test "admin can access all curator location actions" do - login_as(@admin) - - # Index - get curator_locations_path - assert_response :success - - # Show - get curator_location_path(@location) - assert_response :success - - # New - get new_curator_location_path - assert_response :success - - # Edit - get edit_curator_location_path(@location) - assert_response :success - end - - test "admin can create location proposals" do - login_as(@admin) - - assert_difference "ContentChange.count", 1 do - post curator_locations_path, params: { - location: { - name: "Admin Proposed Location", - city: "Zenica", - lat: 44.2037, - lng: 17.9078 - } - } - end - - assert_redirected_to curator_locations_path - ContentChange.last.destroy - end - - # ========================================================================== - # Edge Cases - # ========================================================================== - - test "handles location not found gracefully on edit" do - login_as(@curator) - get edit_curator_location_path("00000000-0000-0000-0000-000000000000") - # BaseController has rescue_from RecordNotFound that redirects to index - assert_redirected_to curator_locations_path - assert_equal "Locations not found.", flash[:alert] - end - - test "handles empty location params" do - login_as(@curator) - # Empty location params should still attempt to create a proposal - # Depending on Rails strong parameters and model validation: - # - 302 redirect if proposal created successfully - # - 400 if required params are missing - # - 422 if validation fails - post curator_locations_path, params: { location: {} } - # All are acceptable graceful handling (no 500 error) - assert_includes [ 302, 400, 422 ], response.status - end - - # The action bar hides behind curator_edit_delete, so both the button being - # there and the flag actually gating it are worth asserting — the flag was - # unset in a working checkout and every action silently disappeared. - test "the archive button shows on the location page when the flag is on" do - Flipper.enable(:curator_edit_delete) - login_as(@curator) - - get curator_location_path(@location) - - assert_response :success - assert_match archive_curator_location_path(@location), response.body - assert_match curator_location_path(@location), response.body - ensure - Flipper.disable(:curator_edit_delete) - end - - test "an archived location offers restore instead of archive" do - Flipper.enable(:curator_edit_delete) - @location.archive! - login_as(@curator) - - get curator_location_path(@location) - - assert_response :success - assert_match restore_curator_location_path(@location), response.body - assert_no_match archive_curator_location_path(@location), response.body - ensure - Flipper.disable(:curator_edit_delete) - end - - test "the action bar disappears entirely when the flag is off" do - Flipper.disable(:curator_edit_delete) - login_as(@curator) - - get curator_location_path(@location) - - assert_response :success - assert_no_match archive_curator_location_path(@location), response.body - end - - test "archiving hides the place from travellers and keeps it for the curator" do - login_as(@curator) - - patch archive_curator_location_path(@location) - - assert_redirected_to curator_location_path(@location) - assert @location.reload.archived? - - get curator_locations_path(archived: "1") - assert_response :success - assert_match @location.name, response.body - - patch restore_curator_location_path(@location) - assert_not @location.reload.archived? - end - - test "the delete confirmation names the memories it will destroy" do - Flipper.enable(:curator_edit_delete) - traveller = User.create!(username: "held_#{SecureRandom.hex(4)}", email: "held_#{SecureRandom.hex(4)}@example.com", password: "password123") - plan = Plan.explore_bosnia_for(traveller) - traveller.plan_visits.create!(plan: plan, location: @location) - moment = traveller.moments.build(plan: plan, location: @location, note: "here") - moment.photo.attach(io: StringIO.new("fake"), filename: "m.jpg", content_type: "image/jpeg") - moment.save! - - login_as(@curator) - get curator_location_path(@location) - - assert_response :success - assert_match I18n.t("curator.locations.confirm_delete_with_memories", name: @location.name, count: 2), - CGI.unescapeHTML(response.body) - ensure - Flipper.disable(:curator_edit_delete) - traveller&.destroy - end - - test "the delete confirmation stays plain when nothing was recorded there" do - Flipper.enable(:curator_edit_delete) - login_as(@curator) - - get curator_location_path(@location) - - assert_response :success - body = CGI.unescapeHTML(response.body) - assert_match I18n.t("curator.locations.confirm_delete", name: @location.name), body - assert_no_match(/will all be deleted/, body) - ensure - Flipper.disable(:curator_edit_delete) - end - - # CuratorActivity.record validates the action name and the caller swallows the - # failure, so a name missing from ACTIONS logs a line and records nothing. - test "archiving and restoring are recorded in the curator activity trail" do - login_as(@curator) - - assert_difference -> { CuratorActivity.by_action("archive_location").count }, 1 do - patch archive_curator_location_path(@location) - end - - assert_difference -> { CuratorActivity.by_action("restore_location").count }, 1 do - patch restore_curator_location_path(@location) - end - end - - private - - def login_as(user) - post user_session_path, params: { user: { email: user.email, password: "password123" } } - end -end diff --git a/test/controllers/curator/nav_test.rb b/test/controllers/curator/nav_test.rb index 3606139b..516994d3 100644 --- a/test/controllers/curator/nav_test.rb +++ b/test/controllers/curator/nav_test.rb @@ -14,14 +14,14 @@ class Curator::NavTest < ActionDispatch::IntegrationTest @curator&.destroy end - test "workflow routes are linked from both navs" do + test "workflow routes and the admin are linked from both navs" do login_as(@curator) get curator_root_path assert_response :success nav = response.body[//m] - [ curator_reviews_path, curator_proposals_path, curator_moments_path ].each do |path| + [ curator_reviews_path, curator_moments_path, "/admin/" ].each do |path| count = nav.scan(/href="#{Regexp.escape(path)}"/).size assert_equal 2, count, "#{path} should be in the desktop nav and the mobile nav, found #{count}" end diff --git a/test/controllers/curator/plans_controller_test.rb b/test/controllers/curator/plans_controller_test.rb deleted file mode 100644 index 307152ce..00000000 --- a/test/controllers/curator/plans_controller_test.rb +++ /dev/null @@ -1,517 +0,0 @@ -# frozen_string_literal: true - -require "test_helper" - -class Curator::PlansControllerTest < ActionDispatch::IntegrationTest - setup do - @admin = User.create!( - username: "test_admin_#{SecureRandom.hex(4)}", - email: "test_admin_#{SecureRandom.hex(4)}@example.com", - password: "password123", - user_type: :admin - ) - @curator = User.create!( - username: "test_curator_#{SecureRandom.hex(4)}", - email: "test_curator_#{SecureRandom.hex(4)}@example.com", - password: "password123", - user_type: :curator - ) - @other_curator = User.create!( - username: "other_curator_#{SecureRandom.hex(4)}", - email: "other_curator_#{SecureRandom.hex(4)}@example.com", - password: "password123", - user_type: :curator - ) - @basic_user = User.create!( - username: "basic_user_#{SecureRandom.hex(4)}", - email: "basic_user_#{SecureRandom.hex(4)}@example.com", - password: "password123", - user_type: :basic - ) - - @location = Location.create!( - name: "Test Location", - city: "Sarajevo", - lat: 43.8563, - lng: 18.4131, - location_type: :place - ) - - @experience = Experience.create!( - title: "Test Experience", - estimated_duration: 60 - ) - @experience.add_location(@location, position: 1) - - @plan = Plan.create!( - title: "Test Plan", - city_name: "Sarajevo", - visibility: :public_plan, - notes: "Test notes" - ) - @plan.add_experience(@experience, day_number: 1) - - @private_plan = Plan.create!( - title: "Private Plan", - city_name: "Mostar", - visibility: :private_plan - ) - end - - teardown do - ContentChange.destroy_all - CuratorActivity.destroy_all - PlanExperience.destroy_all - Plan.destroy_all - ExperienceLocation.destroy_all - @experience&.destroy - @location&.destroy - @admin&.destroy - @curator&.destroy - @other_curator&.destroy - @basic_user&.destroy - end - - # === Authentication tests === - - test "index requires login" do - get curator_plans_path - assert_redirected_to new_user_session_path - end - - test "index requires curator role" do - login_as(@basic_user) - get curator_plans_path - assert_redirected_to root_path - end - - test "show requires login" do - get curator_plan_path(@plan) - assert_redirected_to new_user_session_path - end - - test "show requires curator role" do - login_as(@basic_user) - get curator_plan_path(@plan) - assert_redirected_to root_path - end - - test "new requires login" do - get new_curator_plan_path - assert_redirected_to new_user_session_path - end - - test "new requires curator role" do - login_as(@basic_user) - get new_curator_plan_path - assert_redirected_to root_path - end - - test "create requires login" do - post curator_plans_path, params: { plan: { title: "New Plan" } } - assert_redirected_to new_user_session_path - end - - test "create requires curator role" do - login_as(@basic_user) - post curator_plans_path, params: { plan: { title: "New Plan" } } - assert_redirected_to root_path - end - - test "edit requires login" do - get edit_curator_plan_path(@plan) - assert_redirected_to new_user_session_path - end - - test "edit requires curator role" do - login_as(@basic_user) - get edit_curator_plan_path(@plan) - assert_redirected_to root_path - end - - test "update requires login" do - patch curator_plan_path(@plan), params: { plan: { title: "Updated" } } - assert_redirected_to new_user_session_path - end - - test "update requires curator role" do - login_as(@basic_user) - patch curator_plan_path(@plan), params: { plan: { title: "Updated" } } - assert_redirected_to root_path - end - - test "destroy requires login" do - delete curator_plan_path(@plan) - assert_redirected_to new_user_session_path - end - - test "destroy requires curator role" do - login_as(@basic_user) - delete curator_plan_path(@plan) - assert_redirected_to root_path - end - - # === Authorization: Curator can access === - - test "curator can access index" do - login_as(@curator) - get curator_plans_path - assert_response :success - end - - test "admin can access index" do - login_as(@admin) - get curator_plans_path - assert_response :success - end - - # === Spam block tests === - - test "spam blocked curator cannot access index" do - @curator.block_for_spam!("Testing spam block") - login_as(@curator) - get curator_plans_path - assert_redirected_to root_path - assert_match(/blocked/i, flash[:alert]) - end - - # === Index action tests === - - test "index shows all plans" do - login_as(@curator) - get curator_plans_path - assert_response :success - assert_match @plan.title, response.body - end - - test "index filters by public visibility" do - login_as(@curator) - get curator_plans_path(visibility: "public") - assert_response :success - assert_match @plan.title, response.body - assert_no_match @private_plan.title, response.body - end - - test "index filters by private visibility" do - login_as(@curator) - get curator_plans_path(visibility: "private") - assert_response :success - assert_no_match @plan.title, response.body - assert_match @private_plan.title, response.body - end - - test "index filters by city name" do - login_as(@curator) - get curator_plans_path(city_name: "Sarajevo") - assert_response :success - assert_match @plan.title, response.body - assert_no_match @private_plan.title, response.body - end - - test "index searches by title" do - login_as(@curator) - get curator_plans_path(search: "Test") - assert_response :success - assert_match @plan.title, response.body - end - - test "index search is case insensitive" do - login_as(@curator) - get curator_plans_path(search: "test") - assert_response :success - assert_match @plan.title, response.body - end - - test "index paginates results" do - login_as(@curator) - get curator_plans_path(page: 1) - assert_response :success - end - - # === Show action tests === - - test "show displays plan details" do - login_as(@curator) - get curator_plan_path(@plan) - assert_response :success - assert_match @plan.title, response.body - end - - test "show finds plan by public_id (uuid)" do - login_as(@curator) - get curator_plan_path(@plan.uuid) - assert_response :success - end - - test "show returns 404 for non-existent plan" do - login_as(@curator) - get curator_plan_path("non-existent-uuid") - assert_redirected_to curator_plans_path - end - - # === New action tests === - - test "new shows form" do - login_as(@curator) - get new_curator_plan_path - assert_response :success - end - - # === Create action tests === - - test "create creates proposal instead of direct plan" do - login_as(@curator) - - assert_difference "ContentChange.count", 1 do - assert_no_difference "Plan.count" do - post curator_plans_path, params: { - plan: { - title: "New Curator Plan", - city_name: "Banja Luka", - visibility: "public_plan", - notes: "Some notes" - } - } - end - end - - assert_redirected_to curator_plans_path - - proposal = ContentChange.last - assert_equal :create_content, proposal.change_type.to_sym - assert_equal "Plan", proposal.changeable_class - assert_equal "New Curator Plan", proposal.proposed_data["title"] - assert_equal "Banja Luka", proposal.proposed_data["city_name"] - assert_equal @curator.id, proposal.proposed_data["user_id"] - assert_equal @curator, proposal.user - - proposal.destroy - end - - test "create records curator activity" do - login_as(@curator) - - assert_difference "CuratorActivity.count", 1 do - post curator_plans_path, params: { - plan: { - title: "Activity Test Plan", - city_name: "Sarajevo" - } - } - end - - activity = CuratorActivity.last - assert_equal "proposal_created", activity.action - assert_equal @curator, activity.user - assert_equal "Plan", activity.metadata["type"] - assert_equal "Activity Test Plan", activity.metadata["title"] - - ContentChange.last.destroy - end - - # === Edit action tests === - - test "edit shows form with plan data" do - login_as(@curator) - get edit_curator_plan_path(@plan) - assert_response :success - assert_match @plan.title, response.body - end - - # === Update action tests === - - test "update creates proposal instead of direct update" do - login_as(@curator) - - original_title = @plan.title - - assert_difference "ContentChange.count", 1 do - patch curator_plan_path(@plan), params: { - plan: { - title: "Updated Plan Title", - notes: "Updated notes" - } - } - end - - assert_redirected_to curator_plan_path(@plan) - - # Plan should NOT be updated directly - @plan.reload - assert_equal original_title, @plan.title - - # Proposal should be created - proposal = ContentChange.last - assert_equal :update_content, proposal.change_type.to_sym - assert_equal @plan, proposal.changeable - assert_equal "Updated Plan Title", proposal.proposed_data["title"] - assert_equal @curator, proposal.user - - proposal.destroy - end - - test "update records curator activity" do - login_as(@curator) - - assert_difference "CuratorActivity.count", 1 do - patch curator_plan_path(@plan), params: { - plan: { title: "Updated for Activity" } - } - end - - activity = CuratorActivity.last - # First update creates "proposal_updated" - assert_includes [ "proposal_updated", "proposal_contributed" ], activity.action - assert_equal @curator, activity.user - - ContentChange.last.destroy - end - - test "update adds contribution to existing pending proposal" do - # Create existing proposal from another curator - existing_proposal = ContentChange.create!( - user: @other_curator, - change_type: :update_content, - changeable: @plan, - original_data: { "title" => @plan.title, "notes" => @plan.notes }, - proposed_data: { "title" => "Other curator's title", "notes" => @plan.notes } - ) - - login_as(@curator) - - assert_no_difference "ContentChange.count" do - patch curator_plan_path(@plan), params: { - plan: { notes: "Curator's additional notes" } - } - end - - assert_redirected_to curator_plan_path(@plan) - - # Check contribution was added - existing_proposal.reload - assert existing_proposal.contributions.exists?(user: @curator) - - existing_proposal.destroy - end - - # === Destroy action tests === - - test "destroy creates delete proposal instead of direct deletion" do - login_as(@curator) - - plan_to_delete = Plan.create!( - title: "Plan to Delete", - city_name: "Trebinje" - ) - - assert_difference "ContentChange.count", 1 do - assert_no_difference "Plan.count" do - delete curator_plan_path(plan_to_delete) - end - end - - assert_redirected_to curator_plans_path - - proposal = ContentChange.last - assert_equal :delete_content, proposal.change_type.to_sym - assert_equal plan_to_delete, proposal.changeable - assert_equal @curator, proposal.user - - proposal.destroy - plan_to_delete.destroy - end - - test "destroy records curator activity" do - login_as(@curator) - - plan_to_delete = Plan.create!( - title: "Activity Delete Plan", - city_name: "Zenica" - ) - - assert_difference "CuratorActivity.count", 1 do - delete curator_plan_path(plan_to_delete) - end - - activity = CuratorActivity.last - assert_equal "proposal_deleted", activity.action - assert_equal @curator, activity.user - assert_equal "Plan", activity.metadata["type"] - - ContentChange.last.destroy - plan_to_delete.destroy - end - - test "destroy adds contribution to existing pending proposal" do - plan_to_delete = Plan.create!( - title: "Plan with Existing Proposal", - city_name: "Tuzla" - ) - - # Create existing update proposal from another curator - existing_proposal = ContentChange.create!( - user: @other_curator, - change_type: :update_content, - changeable: plan_to_delete, - original_data: { "title" => plan_to_delete.title }, - proposed_data: { "title" => "Updated title" } - ) - - login_as(@curator) - - assert_no_difference "ContentChange.count" do - delete curator_plan_path(plan_to_delete) - end - - assert_redirected_to curator_plans_path - - # Should convert to delete and add contribution - existing_proposal.reload - assert_equal :delete_content, existing_proposal.change_type.to_sym - - existing_proposal.destroy - plan_to_delete.destroy - end - - # === Edge cases === - - test "handles plan with all fields" do - login_as(@curator) - - post curator_plans_path, params: { - plan: { - title: "Complete Plan", - notes: "Detailed notes", - city_name: "Sarajevo", - visibility: "private_plan", - start_date: Date.today, - end_date: Date.today + 5.days - } - } - - assert_redirected_to curator_plans_path - - proposal = ContentChange.last - assert_equal "Complete Plan", proposal.proposed_data["title"] - assert_equal "Detailed notes", proposal.proposed_data["notes"] - assert_equal "Sarajevo", proposal.proposed_data["city_name"] - assert_equal "private_plan", proposal.proposed_data["visibility"] - assert proposal.proposed_data["start_date"].present? - assert proposal.proposed_data["end_date"].present? - - proposal.destroy - end - - test "index with multiple filters" do - login_as(@curator) - get curator_plans_path(visibility: "public", city_name: "Sarajevo", search: "Test") - assert_response :success - assert_match @plan.title, response.body - end - - private - - def login_as(user) - post user_session_path, params: { user: { email: user.email, password: "password123" } } - end -end diff --git a/test/controllers/mine_check_public_controller_test.rb b/test/controllers/mine_check_public_controller_test.rb index 25cfe407..5a3dc3f3 100644 --- a/test/controllers/mine_check_public_controller_test.rb +++ b/test/controllers/mine_check_public_controller_test.rb @@ -6,7 +6,8 @@ # recorded, fail-closed without artifacts. class MineCheckPublicControllerTest < ActionDispatch::IntegrationTest setup do - @dir = Rails.root.join("tmp/mine_check_public_test").to_s + # One directory per test worker: tests of one class run in several processes. + @dir = Rails.root.join("tmp/mine_check_public_test-#{Process.pid}").to_s @points = StaticArtifacts.install!(dir: @dir) end diff --git a/test/controllers/minesweeper_controller_test.rb b/test/controllers/minesweeper_controller_test.rb index 6fc7e35b..51d91c91 100644 --- a/test/controllers/minesweeper_controller_test.rb +++ b/test/controllers/minesweeper_controller_test.rb @@ -5,7 +5,8 @@ # from the recorded areas, playable only where the data records something. class MinesweeperControllerTest < ActionDispatch::IntegrationTest setup do - @dir = Rails.root.join("tmp/minesweeper_test").to_s + # One directory per test worker: tests of one class run in several processes. + @dir = Rails.root.join("tmp/minesweeper_test-#{Process.pid}").to_s @points = StaticArtifacts.install!(dir: @dir) end diff --git a/test/integration/admin_audio_tours_test.rb b/test/integration/admin_audio_tours_test.rb new file mode 100644 index 00000000..8d3908fe --- /dev/null +++ b/test/integration/admin_audio_tours_test.rb @@ -0,0 +1,61 @@ +# frozen_string_literal: true + +require "test_helper" + +class AdminAudioToursTest < ActionDispatch::IntegrationTest + setup do + @place = Location.create!(name: "Stari most", city: "Mostar", lat: 43.3372, lng: 17.8150) + @tour = AudioTour.create!(location: @place, locale: "bs", script: "Most je sagrađen 1566.") + end + + test "a curator lists audio tours by place" do + sign_in person(:curator) + + get "/admin/resources/audio_tours" + + assert_response :success + assert_includes response.body, "Stari most" + end + + test "a curator adds a tour for another language" do + sign_in person(:curator) + + assert_difference "AudioTour.count", 1 do + post "/admin/resources/audio_tours", + params: { audio_tour: { location_id: @place.to_param, locale: "en", script: "The bridge was built in 1566." } } + end + assert_equal "The bridge was built in 1566.", @place.audio_tours.find_by(locale: "en").script + end + + test "a second tour in the same language is refused" do + sign_in person(:curator) + + assert_no_difference "AudioTour.count" do + post "/admin/resources/audio_tours", params: { audio_tour: { location_id: @place.to_param, locale: "bs", script: "x" } } + end + end + + test "a curator edits a script" do + sign_in person(:curator) + + patch "/admin/resources/audio_tours/#{@tour.to_param}", params: { audio_tour: { script: "Novi tekst." } } + + assert_equal "Novi tekst.", @tour.reload.script + end + + test "only an admin deletes a tour" do + sign_in person(:curator) + delete "/admin/resources/audio_tours/#{@tour.to_param}" + assert AudioTour.exists?(@tour.id) + + sign_in person(:admin) + delete "/admin/resources/audio_tours/#{@tour.to_param}" + assert_not AudioTour.exists?(@tour.id) + end + + private + + def person(role) + User.create!(username: "aat_#{role}", email: "aat_#{role}@example.com", password: "password123", user_type: role).tap(&:confirm) + end +end diff --git a/test/integration/curator_experience_delete_test.rb b/test/integration/curator_experience_delete_test.rb deleted file mode 100644 index 130ca40a..00000000 --- a/test/integration/curator_experience_delete_test.rb +++ /dev/null @@ -1,78 +0,0 @@ -# frozen_string_literal: true - -require "test_helper" - -# Deleting an experience is a two-step workflow: a curator files a proposal, an -# admin approves it. The whole chain worked long before there was a button to -# start it — the delete was reachable only by hand-crafting an HTTP request — -# so these tests pin the affordance, not just the mechanism. -class CuratorExperienceDeleteTest < ActionDispatch::IntegrationTest - setup do - @curator = User.create!(username: "del_curator", email: "del_curator@example.com", password: "password123", user_type: :curator) - @admin = User.create!(username: "del_admin", email: "del_admin@example.com", password: "password123", user_type: :admin) - @experience = Experience.create!(title: "Doomed Experience", description: "d") - Flipper.enable(:curator_edit_delete) - end - - teardown do - ContentChange.destroy_all - @experience&.destroy if @experience&.persisted? - @curator&.destroy - @admin&.destroy - end - - test "the show page offers a delete button when the flag is on" do - login_as(@curator) - - get curator_experience_path(@experience) - - assert_response :success - assert_select "form[action=?][method=post]", curator_experience_path(@experience) do - assert_select "input[name='_method'][value='delete']" - end - end - - test "the delete button is hidden when the flag is off" do - Flipper.disable(:curator_edit_delete) - login_as(@curator) - - get curator_experience_path(@experience) - - assert_response :success - assert_select "input[name='_method'][value='delete']", count: 0 - end - - test "a curator's delete files a proposal rather than destroying the experience" do - login_as(@curator) - - assert_no_difference "Experience.count" do - delete curator_experience_path(@experience) - end - - proposal = ContentChange.find_by(changeable: @experience, change_type: :delete_content) - assert proposal.present? - assert proposal.pending? - assert_equal @curator, proposal.user - end - - test "an admin approving the proposal destroys the experience" do - login_as(@curator) - delete curator_experience_path(@experience) - proposal = ContentChange.find_by(changeable: @experience, change_type: :delete_content) - delete destroy_user_session_path - - login_as(@admin) - - assert_difference "Experience.count", -1 do - post approve_curator_admin_content_change_path(proposal) - end - - assert proposal.reload.approved? - end - - private - - def login_as(user) - post user_session_path, params: { user: { email: user.email, password: "password123" } } - end -end diff --git a/test/integration/curator_proposals_removed_test.rb b/test/integration/curator_proposals_removed_test.rb new file mode 100644 index 00000000..78881d5a --- /dev/null +++ b/test/integration/curator_proposals_removed_test.rb @@ -0,0 +1,68 @@ +# frozen_string_literal: true + +require "test_helper" + +# Proposals are gone: curators edit places, experiences, plans and audio tours +# directly in the admin, so the old curator pages for them are gone too. +class CuratorProposalsRemovedTest < ActionDispatch::IntegrationTest + setup do + @curator = person(:curator) + @place = Location.create!(name: "Kravice", city: "Ljubuški", lat: 43.1564, lng: 17.6081) + end + + test "the old curator content pages are not routed" do + %w[/curator/locations /curator/experiences /curator/plans /curator/audio_tours /curator/proposals + /curator/admin/content_changes /curator/locations/needs_photos].each do |path| + assert_raises(ActionController::RoutingError, path) { Rails.application.routes.recognize_path(path) } + end + end + + test "the proposal tables are gone" do + %w[content_changes content_change_contributions curator_reviews].each do |table| + assert_not ActiveRecord::Base.connection.table_exists?(table), "#{table} should be dropped" + end + end + + test "the curator dashboard sends content work to the admin" do + sign_in @curator + + get curator_root_path + + assert_response :success + assert_select "a[href=?]", "/admin/resources/locations/new" + assert_select "a[href=?]", "/admin/resources/audio_tours/new" + end + + test "a place's edit button opens it in the admin" do + sign_in @curator + + get location_path(@place) + + assert_select "a[href=?]", "/admin/resources/locations/#{@place.to_param}/edit" + end + + test "a curator cannot remove a review" do + review = Review.create!(reviewable: @place, rating: 4, author_name: "Ana", comment: "Lijepo") + sign_in @curator + + delete curator_review_path(review) + + assert Review.exists?(review.id) + end + + test "an admin removes a review directly" do + review = Review.create!(reviewable: @place, rating: 4, author_name: "Ana", comment: "Lijepo") + sign_in person(:admin) + + delete curator_review_path(review) + + assert_redirected_to curator_reviews_path + assert_not Review.exists?(review.id) + end + + private + + def person(role) + User.create!(username: "cpr_#{role}", email: "cpr_#{role}@example.com", password: "password123", user_type: role).tap(&:confirm) + end +end diff --git a/test/integration/curator_show_actions_test.rb b/test/integration/curator_show_actions_test.rb deleted file mode 100644 index 77639001..00000000 --- a/test/integration/curator_show_actions_test.rb +++ /dev/null @@ -1,79 +0,0 @@ -# frozen_string_literal: true - -require "test_helper" - -# Every curator show page carries the same action row, top-right of the title: -# View in App · Edit · Delete · Back to list. The pages drifted apart once -# already — experiences and locations had no delete button at all while -# the whole propose/approve chain behind it worked, and plans put its delete in -# a separate block at the bottom of the page. Nothing failed, because no test -# looked at the affordance. -class CuratorShowActionsTest < ActionDispatch::IntegrationTest - setup do - @curator = User.create!(username: "actions_curator", email: "actions_curator@example.com", password: "password123", user_type: :curator) - @location = Location.create!(name: "Actions Loc", city: "Sarajevo", lat: 43.85, lng: 18.41) - @experience = Experience.create!(title: "Actions Exp", description: "d") - @plan = Plan.create!(title: "Actions Plan", city_name: "Sarajevo", visibility: :private_plan) - Flipper.enable(:curator_edit_delete) - login_as(@curator) - end - - teardown do - ContentChange.destroy_all - @plan&.destroy - @experience&.destroy - @location&.destroy - @curator&.destroy - end - - # path => the DELETE action its button must post to - def self.deletable_pages - { - experiences: ->(t) { [ t.curator_experience_path(t.experience), t.curator_experience_path(t.experience) ] }, - locations: ->(t) { [ t.curator_location_path(t.location), t.curator_location_path(t.location) ] }, - plans: ->(t) { [ t.curator_plan_path(t.plan), t.curator_plan_path(t.plan) ] } - } - end - - attr_reader :experience, :location, :plan - - deletable_pages.each do |resource, paths| - test "#{resource} show offers exactly one delete button, in the header" do - show_path, delete_path = paths.call(self) - - get show_path - - assert_response :success - assert_select "form[action=?] input[name='_method'][value='delete']", delete_path, count: 1, - message: "#{resource} show must have exactly one delete button" - end - - test "#{resource} show hides delete when the flag is off" do - Flipper.disable(:curator_edit_delete) - show_path, = paths.call(self) - - get show_path - - assert_response :success - assert_select "input[name='_method'][value='delete']", count: 0 - end - end - - test "reviews show keeps its delete regardless of the flag — moderation, not editing" do - review = Review.create!(reviewable: @location, rating: 1, comment: "spam", author_name: "x") - Flipper.disable(:curator_edit_delete) - - get curator_review_path(review) - - assert_response :success - assert_select "form[action=?] input[name='_method'][value='delete']", curator_review_path(review), count: 1 - ensure - review&.destroy - end - - private - - def login_as(user) - post user_session_path, params: { user: { email: user.email, password: "password123" } } - end -end diff --git a/test/lib/platform/dsl/approval_test.rb b/test/lib/platform/dsl/approval_test.rb index 99fe5602..789b1db8 100644 --- a/test/lib/platform/dsl/approval_test.rb +++ b/test/lib/platform/dsl/approval_test.rb @@ -2,71 +2,17 @@ require "test_helper" +# Proposals and curator applications were removed with the curator area: +# curators edit content directly in Avo and an admin sets roles there. class Platform::DSL::ApprovalTest < ActiveSupport::TestCase - setup do - @admin = User.create!( - username: "test_admin_#{SecureRandom.hex(4)}", - email: "test_admin_#{SecureRandom.hex(4)}@example.com", - user_type: :admin, - password: "securepassword123" - ) - - @curator = User.create!( - username: "test_curator_#{SecureRandom.hex(4)}", - email: "test_curator_#{SecureRandom.hex(4)}@example.com", - user_type: :curator, - password: "securepassword123" - ) - - @regular_user = User.create!( - username: "test_user_#{SecureRandom.hex(4)}", - email: "test_user_#{SecureRandom.hex(4)}@example.com", - user_type: :basic, - password: "securepassword123" - ) - - @location = Location.create!( - name: "Test Lokacija", - city: "Sarajevo", - lat: 43.8563, - lng: 18.4131, - description: "Originalni opis" - ) - - # Create a pending proposal - @proposal = ContentChange.create!( - user: @curator, - change_type: :update_content, - changeable: @location, - original_data: { "description" => "Originalni opis" }, - proposed_data: { "description" => "Novi opis lokacije" }, - status: :pending - ) - end - - # Parser tests - Proposals commands - test "parses proposals list command" do - ast = Platform::DSL::Parser.parse('proposals { status: "pending" } | list') - - assert_equal :proposals_query, ast[:type] - assert_equal "pending", ast[:filters][:status] - end - - test "parses proposals show command" do - ast = Platform::DSL::Parser.parse("proposals { id: 123 } | show") - - assert_equal :proposals_query, ast[:type] - assert_equal 123, ast[:filters][:id] - end - - test "parses proposals without filters" do - ast = Platform::DSL::Parser.parse("proposals | list") - - assert_equal :proposals_query, ast[:type] + test "proposal commands are gone" do + [ "approve proposal { id: 1 }", 'reject proposal { id: 1 } reason "x"' ].each do |dsl| + assert_raises(Platform::DSL::ParseError, dsl) { Platform::DSL::Parser.parse(dsl) } + end + error = assert_raises(Platform::DSL::ExecutionError) { Platform::DSL.execute("proposals | list") } + assert_match "proposals", error.message end - # Curator applications were removed with the curator area; an admin sets - # roles in Avo instead. test "curator application commands are gone" do [ "approve application { id: 1 }", 'reject application { id: 1 } reason "x"' ].each do |dsl| assert_raises(Platform::DSL::ParseError, dsl) { Platform::DSL::Parser.parse(dsl) } @@ -74,126 +20,4 @@ class Platform::DSL::ApprovalTest < ActiveSupport::TestCase error = assert_raises(Platform::DSL::ExecutionError) { Platform::DSL.execute("applications | list") } assert_match "applications", error.message end - - # Parser tests - Approve commands - test "parses approve proposal command" do - ast = Platform::DSL::Parser.parse("approve proposal { id: 123 }") - - assert_equal :approval, ast[:type] - assert_equal :approve, ast[:action] - assert_equal :proposal, ast[:approval_type] - assert_equal 123, ast[:filters][:id] - end - - test "parses approve proposal with notes" do - ast = Platform::DSL::Parser.parse('approve proposal { id: 123 } notes "Odlična izmjena"') - - assert_equal :approval, ast[:type] - assert_equal :approve, ast[:action] - assert_equal "Odlična izmjena", ast[:notes] - end - - # Parser tests - Reject commands - test "parses reject proposal command" do - ast = Platform::DSL::Parser.parse('reject proposal { id: 123 } reason "Netačne informacije"') - - assert_equal :approval, ast[:type] - assert_equal :reject, ast[:action] - assert_equal :proposal, ast[:approval_type] - assert_equal "Netačne informacije", ast[:reason] - end - - # Execution tests - Proposals - test "lists pending proposals" do - result = Platform::DSL.execute('proposals { status: "pending" } | list') - - assert_equal :list_proposals, result[:action] - assert result[:count] >= 1 - assert result[:proposals].any? { |p| p[:id] == @proposal.id } - end - - test "shows proposal details" do - result = Platform::DSL.execute("proposals { id: #{@proposal.id} } | show") - - assert_equal :show_proposal, result[:action] - assert_equal @proposal.id, result[:id] - assert_equal "pending", result[:status] - assert_equal "update_content", result[:change_type] - assert_equal @curator.username, result[:proposer][:username] - end - - test "counts proposals by status" do - result = Platform::DSL.execute("proposals | count") - - assert result[:pending] >= 1 - assert result[:total] >= 1 - end - - # Execution tests - Approve proposal - test "approves pending proposal" do - result = Platform::DSL.execute("approve proposal { id: #{@proposal.id} }") - - assert result[:success] - assert_equal :approve_proposal, result[:action] - assert_equal @proposal.id, result[:proposal_id] - - @proposal.reload - assert @proposal.approved? - - # Verify changes were applied - @location.reload - assert_equal "Novi opis lokacije", @location.description - end - - test "approves proposal with notes" do - result = Platform::DSL.execute("approve proposal { id: #{@proposal.id} } notes \"Odlična izmjena\"") - - assert result[:success] - assert_equal "Odlična izmjena", result[:notes] - - @proposal.reload - assert_equal "Odlična izmjena", @proposal.admin_notes - end - - test "rejects proposal with reason" do - result = Platform::DSL.execute("reject proposal { id: #{@proposal.id} } reason \"Netačne informacije\"") - - assert result[:success] - assert_equal :reject_proposal, result[:action] - assert_equal "Netačne informacije", result[:reason] - - @proposal.reload - assert @proposal.rejected? - - # Verify changes were NOT applied - @location.reload - assert_equal "Originalni opis", @location.description - end - - test "rejects rejection without reason" do - error = assert_raises(Platform::DSL::ExecutionError) do - Platform::DSL.execute("reject proposal { id: #{@proposal.id} } reason \"\"") - end - - assert_match(/razlog/i, error.message) - end - - # Error handling - test "rejects approval for non-existent proposal" do - error = assert_raises(Platform::DSL::ExecutionError) do - Platform::DSL.execute("approve proposal { id: 999999 }") - end - - assert_match(/nije pronađen/i, error.message) - end - - test "rejects approval for already approved proposal" do - @proposal.update!(status: :approved) - - error = assert_raises(Platform::DSL::ExecutionError) do - Platform::DSL.execute("approve proposal { id: #{@proposal.id} }") - end - - assert_match(/pending/i, error.message) - end end diff --git a/test/lib/platform/dsl/executor_test.rb b/test/lib/platform/dsl/executor_test.rb index e476a3e3..9ebb74e3 100644 --- a/test/lib/platform/dsl/executor_test.rb +++ b/test/lib/platform/dsl/executor_test.rb @@ -511,11 +511,6 @@ class Platform::DSL::ExecutorTest < ActiveSupport::TestCase end # Execute type routing - test "execute routes proposals_query correctly" do - result = Platform::DSL.execute("proposals | count") - - assert result.is_a?(Hash) || result.is_a?(Integer) - end test "execute routes curators_query correctly" do result = Platform::DSL.execute("curators | count") @@ -530,34 +525,6 @@ class Platform::DSL::ExecutorTest < ActiveSupport::TestCase end # Proposals query tests - test "execute_proposals_query with list operation" do - result = Platform::DSL.execute("proposals | list") - - assert result.is_a?(Hash) - assert_equal :list_proposals, result[:action] - end - - test "execute_proposals_query with show operation" do - proposal = ContentChange.create!( - user: @test_user, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { name: "Test" }, - status: :pending - ) - - result = Platform::DSL.execute("proposals { id: #{proposal.id} } | show") - - assert result.is_a?(Hash) - assert_equal :show_proposal, result[:action] - end - - test "execute_proposals_query with status filter" do - result = Platform::DSL.execute('proposals { status: "pending" } | list') - - assert result.is_a?(Hash) - assert_equal :list_proposals, result[:action] - end # Curators query tests test "execute_curators_query with list" do @@ -617,39 +584,6 @@ class Platform::DSL::ExecutorTest < ActiveSupport::TestCase # Approval tests - test "execute_approval approve proposal" do - proposal = ContentChange.create!( - user: @test_user, - change_type: :update_content, - changeable_type: "Location", - changeable_id: @sarajevo_location.id, - proposed_data: { name: "Updated Name" }, - status: :pending - ) - - result = Platform::DSL.execute("approve proposal { id: #{proposal.id} }") - - assert result.is_a?(Hash) - assert result[:success] - assert_equal :approve_proposal, result[:action] - end - - test "execute_approval reject proposal" do - proposal = ContentChange.create!( - user: @test_user, - change_type: :update_content, - changeable_type: "Location", - changeable_id: @sarajevo_location.id, - proposed_data: { name: "Updated Name" }, - status: :pending - ) - - result = Platform::DSL.execute("reject proposal { id: #{proposal.id} } reason \"Invalid data\"") - - assert result.is_a?(Hash) - assert result[:success] - assert_equal :reject_proposal, result[:action] - end # Geoapify service test test "geoapify_service returns service instance" do @@ -939,12 +873,6 @@ class Platform::DSL::ExecutorTest < ActiveSupport::TestCase assert scope.is_a?(ActiveRecord::Relation) end - test "apply_filter with status filter" do - scope = Platform::DSL::Executor.send(:apply_filter, ContentChange.all, :status, "pending") - - assert scope.is_a?(ActiveRecord::Relation) - end - test "apply_filter with type filter" do scope = Platform::DSL::Executor.send(:apply_filter, Location.all, :type, "place") @@ -1074,37 +1002,8 @@ class Platform::DSL::ExecutorTest < ActiveSupport::TestCase end # Test format_proposal returns hash with required keys - test "format_proposal returns hash with keys" do - proposal = ContentChange.create!( - user: @test_user, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { name: "Test" }, - status: :pending - ) - - result = Platform::DSL::Executors::Curator.send(:format_proposal, proposal) - - assert result.is_a?(Hash) - assert result.key?(:id) - assert result.key?(:status) - end # Test show_proposal includes reviews array - test "show_proposal includes reviews array" do - proposal = ContentChange.create!( - user: @test_user, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { name: "Test Proposal" }, - status: :pending - ) - - result = Platform::DSL::Executors::Curator.send(:show_proposal, { id: proposal.id }) - - assert result.is_a?(Hash) - assert result.key?(:reviews) - end # Test execute_schema_query with unknown operation test "execute_schema_query raises for unknown operation" do @@ -1167,27 +1066,6 @@ class Platform::DSL::ExecutorTest < ActiveSupport::TestCase end # Test show_proposal with curator reviews - test "show_proposal with curator reviews maps them correctly" do - proposal = ContentChange.create!( - user: @test_user, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { name: "Test" }, - status: :pending - ) - - CuratorReview.create!( - content_change: proposal, - user: @test_user, - recommendation: :recommend_approve, - comment: "Looks good" - ) - - result = Platform::DSL::Executors::Curator.send(:show_proposal, { id: proposal.id }) - - assert result[:reviews].is_a?(Array) - assert result[:reviews].any? { |r| r[:recommendation] == "recommend_approve" } - end # Test apply_filter with Range value test "apply_filter with range value" do @@ -1283,21 +1161,6 @@ class Platform::DSL::ExecutorTest < ActiveSupport::TestCase end # Test count_proposals returns statistics - test "count_proposals returns statistics hash" do - ContentChange.create!( - user: @test_user, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { name: "Count Test" }, - status: :pending - ) - - result = Platform::DSL::Executors::Curator.send(:count_proposals, {}) - - assert result.is_a?(Hash) - assert result.key?(:total) - assert result.key?(:pending) - end # Test list_curators returns curators with stats test "list_curators returns curators list" do diff --git a/test/lib/platform/dsl/executors/curator_test.rb b/test/lib/platform/dsl/executors/curator_test.rb index 683417c7..f4d88efd 100644 --- a/test/lib/platform/dsl/executors/curator_test.rb +++ b/test/lib/platform/dsl/executors/curator_test.rb @@ -34,186 +34,6 @@ class Platform::DSL::Executors::CuratorTest < ActiveSupport::TestCase password_confirmation: "password123", user_type: :admin ) - - @content_change = ContentChange.create!( - user: @user, - changeable: @location, - change_type: :update_content, - proposed_data: { name: "Updated Location" }, - original_data: { name: @location.name }, - status: :pending - ) - end - - # =================== - # Proposals Query Tests - # =================== - - test "execute_proposals_query lists pending proposals by default" do - ast = { filters: {} } - - result = Platform::DSL::Executors::Curator.execute_proposals_query(ast) - - assert_equal :list_proposals, result[:action] - assert result[:proposals].is_a?(Array) - assert result[:total_pending] >= 0 - end - - test "execute_proposals_query lists proposals with status filter" do - ast = { filters: { status: "pending" } } - - result = Platform::DSL::Executors::Curator.execute_proposals_query(ast) - - assert_equal :list_proposals, result[:action] - assert result[:proposals].all? { |p| p[:status] == "pending" } - end - - test "execute_proposals_query lists proposals with change_type filter" do - ast = { filters: { change_type: "update_content" } } - - result = Platform::DSL::Executors::Curator.execute_proposals_query(ast) - - assert_equal :list_proposals, result[:action] - end - - test "execute_proposals_query lists proposals with content_type filter" do - ast = { filters: { content_type: "location" } } - - result = Platform::DSL::Executors::Curator.execute_proposals_query(ast) - - assert_equal :list_proposals, result[:action] - end - - test "execute_proposals_query shows single proposal" do - ast = { - filters: { id: @content_change.id }, - operations: [ { name: :show } ] - } - - result = Platform::DSL::Executors::Curator.execute_proposals_query(ast) - - assert_equal :show_proposal, result[:action] - assert_equal @content_change.id, result[:id] - assert_equal "pending", result[:status] - end - - test "execute_proposals_query raises for non-existent proposal" do - ast = { - filters: { id: 999999 }, - operations: [ { name: :show } ] - } - - error = assert_raises(Platform::DSL::ExecutionError) do - Platform::DSL::Executors::Curator.execute_proposals_query(ast) - end - - assert_match(/nije pronađen/i, error.message) - end - - test "execute_proposals_query counts proposals" do - ast = { - filters: {}, - operations: [ { name: :count } ] - } - - result = Platform::DSL::Executors::Curator.execute_proposals_query(ast) - - assert result.key?(:pending) - assert result.key?(:approved) - assert result.key?(:rejected) - assert result.key?(:total) - assert result.key?(:by_type) - assert result.key?(:by_content_type) - end - - # =================== - # Applications Query Tests - # =================== - - # =================== - # Approval Tests - # =================== - - test "execute_approval approves proposal" do - ast = { - action: :approve, - approval_type: :proposal, - filters: { id: @content_change.id }, - notes: "Looks good" - } - - result = Platform::DSL::Executors::Curator.execute_approval(ast) - - assert result[:success] - assert_equal :approve_proposal, result[:action] - assert_equal @content_change.id, result[:proposal_id] - - @content_change.reload - assert_equal "approved", @content_change.status - end - - test "execute_approval rejects proposal" do - ast = { - action: :reject, - approval_type: :proposal, - filters: { id: @content_change.id }, - reason: "Not accurate information" - } - - result = Platform::DSL::Executors::Curator.execute_approval(ast) - - assert result[:success] - assert_equal :reject_proposal, result[:action] - assert_equal @content_change.id, result[:proposal_id] - - @content_change.reload - assert_equal "rejected", @content_change.status - end - - test "execute_approval raises for rejection without reason" do - ast = { - action: :reject, - approval_type: :proposal, - filters: { id: @content_change.id }, - reason: nil - } - - error = assert_raises(Platform::DSL::ExecutionError) do - Platform::DSL::Executors::Curator.execute_approval(ast) - end - - assert_match(/razlog/i, error.message) - end - - test "execute_approval raises for unknown action" do - ast = { - action: :unknown_action, - approval_type: :proposal, - filters: { id: @content_change.id } - } - - error = assert_raises(Platform::DSL::ExecutionError) do - Platform::DSL::Executors::Curator.execute_approval(ast) - end - - assert_match(/Nepoznata approval akcija/i, error.message) - end - - test "execute_approval raises for non-pending proposal" do - @content_change.update!(status: :approved) - - ast = { - action: :approve, - approval_type: :proposal, - filters: { id: @content_change.id }, - notes: "Trying again" - } - - error = assert_raises(Platform::DSL::ExecutionError) do - Platform::DSL::Executors::Curator.execute_approval(ast) - end - - assert_match(/nije u pending statusu/i, error.message) end # =================== @@ -469,14 +289,6 @@ class Platform::DSL::Executors::CuratorTest < ActiveSupport::TestCase # Edge Cases and Helper Tests # =================== - test "find_proposal raises without id filter" do - error = assert_raises(Platform::DSL::ExecutionError) do - Platform::DSL::Executors::Curator.send(:find_proposal, {}) - end - - assert_match(/Potreban filter: id/i, error.message) - end - test "find_curator raises without id or username filter" do error = assert_raises(Platform::DSL::ExecutionError) do Platform::DSL::Executors::Curator.send(:find_curator, {}) @@ -491,14 +303,6 @@ class Platform::DSL::Executors::CuratorTest < ActiveSupport::TestCase assert admin.admin? end - test "format_proposal returns correct structure" do - result = Platform::DSL::Executors::Curator.send(:format_proposal, @content_change) - - assert_equal @content_change.id, result[:id] - assert_equal "pending", result[:status] - assert_equal "update_content", result[:change_type] - end - test "format_curator returns correct structure" do result = Platform::DSL::Executors::Curator.send(:format_curator, @curator) @@ -509,17 +313,6 @@ class Platform::DSL::Executors::CuratorTest < ActiveSupport::TestCase # Additional branch coverage tests - else cases - test "execute_proposals_query with unknown operation falls back to list" do - ast = { - filters: {}, - operations: [ { name: :unknown_operation } ] - } - - result = Platform::DSL::Executors::Curator.execute_proposals_query(ast) - - assert_equal :list_proposals, result[:action] - end - test "execute_curators_query with unknown operation falls back to list" do ast = { filters: {}, @@ -533,68 +326,6 @@ class Platform::DSL::Executors::CuratorTest < ActiveSupport::TestCase # Additional branch coverage tests for specific uncovered branches - test "list_proposals with invalid status filter ignores it" do - ast = { filters: { status: "invalid_status_xyz" } } - - result = Platform::DSL::Executors::Curator.execute_proposals_query(ast) - - # Should still return results (invalid status is ignored) - assert_equal :list_proposals, result[:action] - assert result[:proposals].is_a?(Array) - end - - test "show_proposal for reviewed proposal includes reviewed_at" do - @content_change.update!(status: :approved, reviewed_at: Time.current) - - ast = { - filters: { id: @content_change.id }, - operations: [ { name: :show } ] - } - - result = Platform::DSL::Executors::Curator.execute_proposals_query(ast) - - assert_equal :show_proposal, result[:action] - assert result[:reviewed_at].present? - end - - test "approve_proposal raises when approval fails" do - # Create a mock proposal that returns false for approve! - mock_proposal = @content_change - mock_proposal.define_singleton_method(:approve!) { |_admin, **_opts| false } - - Platform::DSL::Executors::Curator.stub(:find_proposal, ->(_filters) { mock_proposal }) do - ast = { - action: :approve, - approval_type: :proposal, - filters: { id: @content_change.id }, - notes: "Should fail" - } - - error = assert_raises(Platform::DSL::ExecutionError) do - Platform::DSL::Executors::Curator.execute_approval(ast) - end - - assert_match(/nije uspjelo/i, error.message) - end - end - - test "reject_proposal raises for non-pending proposal" do - @content_change.update!(status: :approved) - - ast = { - action: :reject, - approval_type: :proposal, - filters: { id: @content_change.id }, - reason: "Some reason" - } - - error = assert_raises(Platform::DSL::ExecutionError) do - Platform::DSL::Executors::Curator.execute_approval(ast) - end - - assert_match(/nije u pending statusu/i, error.message) - end - test "list_curators with high_activity filter" do # Set curator with high activity @curator.update!(activity_count_today: User::MAX_ACTIVITIES_PER_DAY) @@ -634,26 +365,6 @@ class Platform::DSL::Executors::CuratorTest < ActiveSupport::TestCase end end - test "list_proposals with type alias filter" do - # Test the :type alias for :change_type - ast = { filters: { type: "update_content" } } - - result = Platform::DSL::Executors::Curator.execute_proposals_query(ast) - - assert_equal :list_proposals, result[:action] - end - - test "list_proposals with invalid change_type filter ignores it" do - # Test line 131: if ContentChange.change_types.key?(change_type) - false branch - ast = { filters: { change_type: "invalid_change_type_xyz" } } - - result = Platform::DSL::Executors::Curator.execute_proposals_query(ast) - - # Should still return results (invalid change_type is ignored) - assert_equal :list_proposals, result[:action] - assert result[:proposals].is_a?(Array) - end - test "create_platform_user creates new user when no admin exists" do # Test line 422-428: when User.admin.first returns nil # Remove all admins @@ -665,19 +376,4 @@ class Platform::DSL::Executors::CuratorTest < ActiveSupport::TestCase assert result.admin? assert_equal "platform_system", result.username end - - test "show_proposal for unreviewed proposal has nil reviewed_at" do - # Test line 176: reviewed_at&.iso8601 when nil - @content_change.update_column(:reviewed_at, nil) - - ast = { - filters: { id: @content_change.id }, - operations: [ { name: :show } ] - } - - result = Platform::DSL::Executors::Curator.execute_proposals_query(ast) - - assert_equal :show_proposal, result[:action] - assert_nil result[:reviewed_at] - end end diff --git a/test/lib/platform/dsl/parser_test.rb b/test/lib/platform/dsl/parser_test.rb index 43030c29..f6ff5ceb 100644 --- a/test/lib/platform/dsl/parser_test.rb +++ b/test/lib/platform/dsl/parser_test.rb @@ -125,27 +125,6 @@ class Platform::DSL::ParserTest < ActiveSupport::TestCase end # Approval queries - test "parses approve proposal command" do - ast = Platform::DSL::Parser.parse("approve proposal { id: 123 }") - assert_equal :approval, ast[:type] - assert_equal :approve, ast[:action] - assert_equal :proposal, ast[:approval_type] - assert_equal 123, ast[:filters][:id] - end - - test "parses reject proposal with reason" do - ast = Platform::DSL::Parser.parse('reject proposal { id: 123 } reason "Not accurate"') - assert_equal :approval, ast[:type] - assert_equal :reject, ast[:action] - assert_equal "Not accurate", ast[:reason] - end - - test "parses approve with notes" do - ast = Platform::DSL::Parser.parse('approve proposal { id: 123 } notes "LGTM"') - assert_equal :approval, ast[:type] - assert_equal :approve, ast[:action] - assert_equal "LGTM", ast[:notes] - end # Curator management commands test "parses block curator command" do @@ -292,10 +271,6 @@ class Platform::DSL::ParserTest < ActiveSupport::TestCase end # Proposals queries - test "parses proposals query" do - ast = Platform::DSL::Parser.parse('proposals { status: "pending" } | list') - assert_equal :proposals_query, ast[:type] - end # Curators query test "parses curators query" do @@ -518,11 +493,6 @@ class Platform::DSL::ParserTest < ActiveSupport::TestCase end # Test proposals operations - test "parses proposals count" do - ast = Platform::DSL::Parser.parse("proposals | count") - assert_equal :proposals_query, ast[:type] - assert_equal :count, ast[:operations].first[:name] - end # Test curators operations test "parses curators with activity" do diff --git a/test/models/content_change_test.rb b/test/models/content_change_test.rb deleted file mode 100644 index 8ec6117d..00000000 --- a/test/models/content_change_test.rb +++ /dev/null @@ -1,534 +0,0 @@ -# frozen_string_literal: true - -require "test_helper" - -class ContentChangeTest < ActiveSupport::TestCase - setup do - @curator = User.create!( - username: "test_curator", - email: "test_curator@example.com", - password: "password123", - user_type: :curator - ) - @admin = User.create!( - username: "test_admin", - email: "test_admin@example.com", - password: "password123", - user_type: :curator - ) - @location = Location.create!( - name: "Test Bridge", - city: "Sarajevo", - lat: 43.8563, - lng: 18.4131, - location_type: :place - ) - end - - teardown do - ContentChange.destroy_all - @location&.destroy - @curator&.destroy - @admin&.destroy - end - - test "create content change requires user" do - change = ContentChange.new( - change_type: :create_content, - changeable_class: "Location", - proposed_data: { "name" => "New Location" } - ) - assert_not change.valid? - assert_includes change.errors[:user], "must exist" - end - - test "create content change requires changeable_class" do - change = ContentChange.new( - user: @curator, - change_type: :create_content, - proposed_data: { "name" => "New Location" } - ) - assert_not change.valid? - end - - test "update content change requires changeable" do - change = ContentChange.new( - user: @curator, - change_type: :update_content, - proposed_data: { "name" => "Updated Name" } - ) - assert_not change.valid? - assert change.errors[:changeable].present? - end - - test "create proposal sets default status to pending" do - change = ContentChange.create!( - user: @curator, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { "name" => "New Location", "city" => "Sarajevo" } - ) - assert change.pending? - end - - test "approve creates record for create_content" do - change = ContentChange.create!( - user: @curator, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { - "name" => "Test Location", - "city" => "Sarajevo", - "description" => "A test location" - } - ) - - assert_difference "Location.count", 1 do - change.approve!(@admin) - end - - assert change.approved? - assert_equal @admin, change.reviewed_by - assert_not_nil change.reviewed_at - assert_not_nil change.changeable - assert_equal "Test Location", change.changeable.name - end - - test "approve updates record for update_content" do - original_name = @location.name - change = ContentChange.create!( - user: @curator, - change_type: :update_content, - changeable: @location, - original_data: { "name" => original_name }, - proposed_data: { "name" => "Updated Bridge Name" } - ) - - change.approve!(@admin) - - assert change.approved? - @location.reload - assert_equal "Updated Bridge Name", @location.name - end - - test "approve updates location accessibility for update_content" do - change = ContentChange.create!( - user: @curator, - change_type: :update_content, - changeable: @location, - original_data: { "accessibility" => @location.accessibility }, - proposed_data: { - "accessibility" => { - "wheelchair_access" => "partial", - "ramp" => true, - "wheelchair_toilet" => true, - "notes" => "Ramp at side entrance" - } - } - ) - - assert change.approve!(@admin) - - @location.reload - assert_equal "partial", @location.wheelchair_access - assert @location.accessibility_feature?(:ramp) - assert @location.accessibility_feature?(:wheelchair_toilet) - assert_equal "Ramp at side entrance", @location.accessibility_notes - end - - test "approve destroys record for delete_content" do - # Create a separate location for this test since it will be destroyed - delete_location = Location.create!( - name: "To Delete", - city: "Mostar", - lat: 43.3438, - lng: 17.8078, - location_type: :place - ) - change = ContentChange.create!( - user: @curator, - change_type: :delete_content, - changeable: delete_location, - original_data: { "name" => delete_location.name } - ) - - assert_difference "Location.count", -1 do - change.approve!(@admin) - end - - assert change.approved? - end - - test "reject sets status and notes" do - change = ContentChange.create!( - user: @curator, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { "name" => "Test Location" } - ) - - change.reject!(@admin, notes: "Not appropriate content") - - assert change.rejected? - assert_equal @admin, change.reviewed_by - assert_equal "Not appropriate content", change.admin_notes - assert_not_nil change.reviewed_at - end - - test "cannot approve already reviewed proposal" do - change = ContentChange.create!( - user: @curator, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { "name" => "Test Location" } - ) - change.reject!(@admin, notes: "Rejected") - - assert_equal false, change.approve!(@admin) - assert change.rejected? # Still rejected - end - - test "cannot reject already approved proposal" do - change = ContentChange.create!( - user: @curator, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { "name" => "Test Location", "city" => "Sarajevo" } - ) - change.approve!(@admin) - - result = change.reject!(@admin, notes: "Too late") - assert_equal false, result - assert change.approved? # Still approved - end - - test "description for create content" do - change = ContentChange.new( - user: @curator, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { "name" => "New Location" } - ) - assert_match(/Create new Location: New Location/, change.description) - end - - test "description for update content" do - change = ContentChange.new( - user: @curator, - change_type: :update_content, - changeable: @location, - proposed_data: { "name" => "Updated Name" } - ) - assert_match(/Update Location/, change.description) - end - - test "description for delete content" do - change = ContentChange.new( - user: @curator, - change_type: :delete_content, - changeable: @location, - original_data: { "name" => @location.name } - ) - assert_match(/Delete Location/, change.description) - end - - test "changes_diff shows changed fields" do - change = ContentChange.new( - user: @curator, - change_type: :update_content, - changeable: @location, - original_data: { "name" => "Old Name", "city" => "Sarajevo" }, - proposed_data: { "name" => "New Name", "city" => "Sarajevo" } - ) - - diff = change.changes_diff - assert diff.key?("name") - assert_equal "Old Name", diff["name"][:from] - assert_equal "New Name", diff["name"][:to] - assert_not diff.key?("city") # Unchanged - end - - test "pending_review scope returns only pending ordered by created_at" do - ContentChange.create!( - user: @curator, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { "name" => "First" }, - created_at: 2.days.ago - ) - ContentChange.create!( - user: @curator, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { "name" => "Second" }, - created_at: 1.day.ago - ) - - pending = ContentChange.pending_review - assert pending.all?(&:pending?) - assert_equal "First", pending.first.proposed_data["name"] - end - - # Tests for single proposal per resource feature - test "find_or_create_for_update creates new proposal when none exists" do - proposal = ContentChange.find_or_create_for_update( - changeable: @location, - user: @curator, - original_data: { "name" => @location.name }, - proposed_data: { "name" => "New Name" } - ) - - assert proposal.persisted? - assert_equal @curator, proposal.user - assert_equal @location, proposal.changeable - assert proposal.update_content? - end - - test "find_or_create_for_update adds contribution to existing proposal" do - # First curator creates proposal - first_proposal = ContentChange.find_or_create_for_update( - changeable: @location, - user: @curator, - original_data: { "name" => @location.name }, - proposed_data: { "name" => "Name from first curator" } - ) - - # Second curator adds to same proposal - second_curator = User.create!( - username: "second_curator", - email: "second_curator@example.com", - password: "password123", - user_type: :curator - ) - - second_proposal = ContentChange.find_or_create_for_update( - changeable: @location, - user: second_curator, - original_data: { "name" => @location.name }, - proposed_data: { "name" => "Name from second curator", "description" => "New description" } - ) - - # Should return the same proposal - assert_equal first_proposal.id, second_proposal.id - - # Should have one contribution (second curator's - first curator's data is in main proposed_data) - assert_equal 1, second_proposal.contributions.count - - # Merged data should have the second curator's changes - assert_equal "Name from second curator", second_proposal.proposed_data["name"] - assert_equal "New description", second_proposal.proposed_data["description"] - - second_curator.destroy - end - - test "find_or_create_for_delete creates deletion proposal" do - proposal = ContentChange.find_or_create_for_delete( - changeable: @location, - user: @curator, - original_data: { "name" => @location.name } - ) - - assert proposal.persisted? - assert proposal.delete_content? - end - - test "find_or_create_for_delete converts update proposal to delete" do - # First create an update proposal - update_proposal = ContentChange.find_or_create_for_update( - changeable: @location, - user: @curator, - original_data: { "name" => @location.name }, - proposed_data: { "name" => "Updated Name" } - ) - - assert update_proposal.update_content? - - # Now request deletion - delete_proposal = ContentChange.find_or_create_for_delete( - changeable: @location, - user: @curator, - original_data: { "name" => @location.name } - ) - - # Should be the same proposal, converted to delete - assert_equal update_proposal.id, delete_proposal.id - assert delete_proposal.reload.delete_content? - end - - test "recommendation_summary counts reviews correctly" do - change = ContentChange.create!( - user: @curator, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { "name" => "Test Location" } - ) - - reviewer1 = User.create!(username: "reviewer1", email: "reviewer1@example.com", password: "password123", user_type: :curator) - reviewer2 = User.create!(username: "reviewer2", email: "reviewer2@example.com", password: "password123", user_type: :curator) - reviewer3 = User.create!(username: "reviewer3", email: "reviewer3@example.com", password: "password123", user_type: :curator) - - CuratorReview.create!(content_change: change, user: reviewer1, comment: "Looks good to me", recommendation: :recommend_approve) - CuratorReview.create!(content_change: change, user: reviewer2, comment: "I have concerns about this", recommendation: :recommend_reject) - CuratorReview.create!(content_change: change, user: reviewer3, comment: "No strong opinion", recommendation: :neutral) - - summary = change.recommendation_summary - assert_equal 1, summary[:approve] - assert_equal 1, summary[:reject] - assert_equal 1, summary[:neutral] - - reviewer1.destroy - reviewer2.destroy - reviewer3.destroy - end - - test "all_contributors includes proposer and all contributors" do - change = ContentChange.create!( - user: @curator, - change_type: :update_content, - changeable: @location, - original_data: { "name" => @location.name }, - proposed_data: { "name" => "Updated" } - ) - - contributor = User.create!(username: "contributor", email: "contributor@example.com", password: "password123", user_type: :curator) - change.add_contribution(user: contributor, proposed_data: { "description" => "New description" }) - - all = change.all_contributors - assert_includes all, @curator - assert_includes all, contributor - assert_equal 2, all.size - - contributor.destroy - end - - test "sanitize_proposed_data removes dangerous HTML" do - change = ContentChange.new( - user: @curator, - change_type: :create_content, - changeable_class: "Location", - proposed_data: { - "name" => "Test Location", - "description" => "Bold and dangerous" - } - ) - change.save! - - # Script tags should be stripped - assert_not_includes change.proposed_data["name"], "This is safe bold text", - recommendation: :neutral - ) - review.save! - - # Script tags should be stripped - assert_not_includes review.comment, "